From 96fa5dea5e686f0adece3da7e336fbacc76a7fea Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 29 Aug 2023 13:47:50 +0200 Subject: [PATCH 01/34] Use generated implementation for data source --- .../provider-install-verification/main.tf | 13 +- internal/provider/example_resource.go | 187 - internal/provider/group_data_source.go | 134 +- internal/provider/group_resource.go | 332 + ...esource_test.go => group_resource_test.go} | 0 internal/provider/impl.go | 25793 ++++++++++++++++ internal/provider/provider.go | 12 +- 7 files changed, 26154 insertions(+), 317 deletions(-) delete mode 100644 internal/provider/example_resource.go create mode 100644 internal/provider/group_resource.go rename internal/provider/{example_resource_test.go => group_resource_test.go} (100%) create mode 100644 internal/provider/impl.go diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index c175715..dc4da6d 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -7,12 +7,15 @@ terraform { } provider "keyhub" { - issuer = "https://keyhub.localhost:8443" - clientid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" - clientsecret = "o9n8b8j3TRk7A4eQfKEIDIoN-IUvRAlA3gGLUNW8" + issuer = "https://keyhub.topicusonderwijs.nl" + clientid = "3a5e82ad-3f0d-4a63-846b-4b3e431f1135" + clientsecret = "P0OERPwK2hHJGS68Op2epiXvcVy4GDpx98huzagI" } -data "keyhub_group" "testgroup" { - uuid = "c20a6ed4-1ae5-4a9f-91b5-2f56f5a1522f" +data "keyhub_group" "test" { + uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" } +output "testgroup" { + value = data.keyhub_group.test +} diff --git a/internal/provider/example_resource.go b/internal/provider/example_resource.go deleted file mode 100644 index af8c0fa..0000000 --- a/internal/provider/example_resource.go +++ /dev/null @@ -1,187 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package provider - -import ( - "context" - "fmt" - "net/http" - - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/hashicorp/terraform-plugin-log/tflog" -) - -// Ensure provider defined types fully satisfy framework interfaces. -var _ resource.Resource = &ExampleResource{} -var _ resource.ResourceWithImportState = &ExampleResource{} - -func NewExampleResource() resource.Resource { - return &ExampleResource{} -} - -// ExampleResource defines the resource implementation. -type ExampleResource struct { - client *http.Client -} - -// ExampleResourceModel describes the resource data model. -type ExampleResourceModel struct { - ConfigurableAttribute types.String `tfsdk:"configurable_attribute"` - Defaulted types.String `tfsdk:"defaulted"` - Id types.String `tfsdk:"id"` -} - -func (r *ExampleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_example" -} - -func (r *ExampleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = schema.Schema{ - // This description is used by the documentation generator and the language server. - MarkdownDescription: "Example resource", - - Attributes: map[string]schema.Attribute{ - "configurable_attribute": schema.StringAttribute{ - MarkdownDescription: "Example configurable attribute", - Optional: true, - }, - "defaulted": schema.StringAttribute{ - MarkdownDescription: "Example configurable attribute with default value", - Optional: true, - Computed: true, - Default: stringdefault.StaticString("example value when not configured"), - }, - "id": schema.StringAttribute{ - Computed: true, - MarkdownDescription: "Example identifier", - PlanModifiers: []planmodifier.String{ - stringplanmodifier.UseStateForUnknown(), - }, - }, - }, - } -} - -func (r *ExampleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { - // Prevent panic if the provider has not been configured. - if req.ProviderData == nil { - return - } - - client, ok := req.ProviderData.(*http.Client) - - if !ok { - resp.Diagnostics.AddError( - "Unexpected Resource Configure Type", - fmt.Sprintf("Expected *http.Client, got: %T. Please report this issue to the provider developers.", req.ProviderData), - ) - - return - } - - r.client = client -} - -func (r *ExampleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *ExampleResourceModel - - // Read Terraform plan data into the model - resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) - - if resp.Diagnostics.HasError() { - return - } - - // If applicable, this is a great opportunity to initialize any necessary - // provider client data and make a call using it. - // httpResp, err := r.client.Do(httpReq) - // if err != nil { - // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to create example, got error: %s", err)) - // return - // } - - // For the purposes of this example code, hardcoding a response value to - // save into the Terraform state. - data.Id = types.StringValue("example-id") - - // Write logs using the tflog package - // Documentation: https://terraform.io/plugin/log - tflog.Trace(ctx, "created a resource") - - // Save data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *ExampleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data *ExampleResourceModel - - // Read Terraform prior state data into the model - resp.Diagnostics.Append(req.State.Get(ctx, &data)...) - - if resp.Diagnostics.HasError() { - return - } - - // If applicable, this is a great opportunity to initialize any necessary - // provider client data and make a call using it. - // httpResp, err := r.client.Do(httpReq) - // if err != nil { - // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to read example, got error: %s", err)) - // return - // } - - // Save updated data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *ExampleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *ExampleResourceModel - - // Read Terraform plan data into the model - resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) - - if resp.Diagnostics.HasError() { - return - } - - // If applicable, this is a great opportunity to initialize any necessary - // provider client data and make a call using it. - // httpResp, err := r.client.Do(httpReq) - // if err != nil { - // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to update example, got error: %s", err)) - // return - // } - - // Save updated data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *ExampleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *ExampleResourceModel - - // Read Terraform prior state data into the model - resp.Diagnostics.Append(req.State.Get(ctx, &data)...) - - if resp.Diagnostics.HasError() { - return - } - - // If applicable, this is a great opportunity to initialize any necessary - // provider client data and make a call using it. - // httpResp, err := r.client.Do(httpReq) - // if err != nil { - // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to delete example, got error: %s", err)) - // return - // } -} - -func (r *ExampleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp) -} diff --git a/internal/provider/group_data_source.go b/internal/provider/group_data_source.go index 0696ed2..ab76b26 100644 --- a/internal/provider/group_data_source.go +++ b/internal/provider/group_data_source.go @@ -9,10 +9,9 @@ import ( "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" keyhubgroup "github.com/topicuskeyhub/sdk-go/group" - keyhubmodel "github.com/topicuskeyhub/sdk-go/models" ) // Ensure provider defined types fully satisfy framework interfaces. @@ -30,28 +29,6 @@ type groupDataSource struct { client *keyhub.KeyHubClient } -// GroupDataSourceModel describes the data source data model. -type GroupDataSourceModel struct { - ID types.Int64 `tfsdk:"id"` - UUID types.String `tfsdk:"uuid"` - Name types.String `tfsdk:"name"` - Description types.String `tfsdk:"description"` - ExtendedAccess types.String `tfsdk:"extended_access"` - VaultRecovery types.String `tfsdk:"vault_recovery"` - AuditMonths types.List `tfsdk:"audit_months"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - RecordTrail types.Bool `tfsdk:"record_trail"` - PrivateGroup types.Bool `tfsdk:"private_group"` - HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` - ApplicationAdministration types.Bool `tfsdk:"application_administration"` - Auditor types.Bool `tfsdk:"auditor"` - SingleManaged types.Bool `tfsdk:"single_managed"` - ProvisioningAuthGroupUUID types.String `tfsdk:"provisioning_auth_groupuuid"` - MembershipAuthGroupUUID types.String `tfsdk:"membership_auth_groupuuid"` - AuditingAuthGroupUUID types.String `tfsdk:"auditing_auth_groupuuid"` - NestedUnderGroupUUID types.String `tfsdk:"nested_under_groupuuid"` -} - func (d *groupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { resp.TypeName = req.ProviderTypeName + "_group" } @@ -60,64 +37,7 @@ func (d *groupDataSource) Schema(ctx context.Context, req datasource.SchemaReque resp.Schema = schema.Schema{ // This description is used by the documentation generator and the language server. MarkdownDescription: "Group data source", - - Attributes: map[string]schema.Attribute{ - "id": schema.Int64Attribute{ - Computed: true, - }, - "uuid": schema.StringAttribute{ - Required: true, - }, - "name": schema.StringAttribute{ - Computed: true, - }, - "description": schema.StringAttribute{ - Computed: true, - }, - "extended_access": schema.StringAttribute{ - Computed: true, - }, - "vault_recovery": schema.StringAttribute{ - Computed: true, - }, - "audit_months": schema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - }, - "rotating_password_required": schema.BoolAttribute{ - Computed: true, - }, - "record_trail": schema.BoolAttribute{ - Computed: true, - }, - "private_group": schema.BoolAttribute{ - Computed: true, - }, - "hide_audit_trail": schema.BoolAttribute{ - Computed: true, - }, - "application_administration": schema.BoolAttribute{ - Computed: true, - }, - "auditor": schema.BoolAttribute{ - Computed: true, - }, - "single_managed": schema.BoolAttribute{ - Computed: true, - }, - "provisioning_auth_groupuuid": schema.StringAttribute{ - Computed: true, - }, - "membership_auth_groupuuid": schema.StringAttribute{ - Computed: true, - }, - "auditing_auth_groupuuid": schema.StringAttribute{ - Computed: true, - }, - "nested_under_groupuuid": schema.StringAttribute{ - Computed: true, - }, - }, + Attributes: dataSourceSchemaAttrsGroupGroup(true), } } @@ -142,7 +62,7 @@ func (d *groupDataSource) Configure(ctx context.Context, req datasource.Configur } func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data GroupDataSourceModel + var data groupGroupData // Read Terraform configuration data into the model resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) @@ -151,6 +71,8 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } + ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) + tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") groups, err := d.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ Uuid: []string{data.UUID.ValueString()}, @@ -165,49 +87,13 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } group := groups.GetItems()[0] - - data.ID = types.Int64PointerValue(group.GetLinks()[0].GetId()) - data.UUID = types.StringPointerValue(group.GetUuid()) - data.Name = types.StringPointerValue(group.GetName()) - data.Description = types.StringPointerValue(group.GetDescription()) - data.ExtendedAccess = types.StringValue(group.GetExtendedAccess().String()) - data.AuditMonths, _ = types.ListValueFrom(ctx, types.StringType, toMonthsString(group.GetAuditConfig().GetMonths())) - data.RotatingPasswordRequired = types.BoolPointerValue(group.GetRotatingPasswordRequired()) - data.RecordTrail = types.BoolPointerValue(group.GetRecordTrail()) - data.PrivateGroup = types.BoolPointerValue(group.GetPrivateGroup()) - data.HideAuditTrail = types.BoolPointerValue(group.GetHideAuditTrail()) - data.ApplicationAdministration = types.BoolPointerValue(group.GetApplicationAdministration()) - data.Auditor = types.BoolPointerValue(group.GetAuditor()) - data.SingleManaged = types.BoolPointerValue(group.GetSingleManaged()) - if group.GetAuthorizingGroupProvisioning() == nil { - data.ProvisioningAuthGroupUUID = types.StringNull() - } else { - data.ProvisioningAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupProvisioning().GetUuid()) - } - if group.GetAuthorizingGroupMembership() == nil { - data.MembershipAuthGroupUUID = types.StringNull() - } else { - data.MembershipAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupMembership().GetUuid()) - } - if group.GetAuthorizingGroupAuditing() == nil { - data.AuditingAuthGroupUUID = types.StringNull() - } else { - data.AuditingAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupAuditing().GetUuid()) - } - if group.GetNestedUnder() == nil { - data.NestedUnderGroupUUID = types.StringNull() - } else { - data.NestedUnderGroupUUID = types.StringPointerValue(group.GetNestedUnder().GetUuid()) + tfGroup, diags := tkhToTFObjectGroupGroup(true, group) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return } + fillDataStructFromTFObjectGroupGroup(&data, tfGroup) // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } - -func toMonthsString(months []keyhubmodel.Month) []string { - ret := make([]string, len(months)) - for _, month := range months { - ret = append(ret, month.String()) - } - return ret -} diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go new file mode 100644 index 0000000..c88c39e --- /dev/null +++ b/internal/provider/group_resource.go @@ -0,0 +1,332 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + "strconv" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &groupResource{} + _ resource.ResourceWithImportState = &groupResource{} + _ resource.ResourceWithConfigure = &groupResource{} +) + +func NewGroupResource() resource.Resource { + return &groupResource{} +} + +// groupResource defines the resource implementation. +type groupResource struct { + client *keyhub.KeyHubClient +} + +// groupResourceModel describes the resource data model. +type groupResourceModel struct { + ID types.Int64 `tfsdk:"id"` + UUID types.String `tfsdk:"uuid"` + Name types.String `tfsdk:"name"` + Description types.String `tfsdk:"description"` + ExtendedAccess types.String `tfsdk:"extended_access"` + VaultRecovery types.String `tfsdk:"vault_recovery"` + AuditMonths types.List `tfsdk:"audit_months"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + RecordTrail types.Bool `tfsdk:"record_trail"` + PrivateGroup types.Bool `tfsdk:"private_group"` + HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` + ApplicationAdministration types.Bool `tfsdk:"application_administration"` + Auditor types.Bool `tfsdk:"auditor"` + SingleManaged types.Bool `tfsdk:"single_managed"` + ProvisioningAuthGroupUUID types.String `tfsdk:"provisioning_auth_groupuuid"` + MembershipAuthGroupUUID types.String `tfsdk:"membership_auth_groupuuid"` + AuditingAuthGroupUUID types.String `tfsdk:"auditing_auth_groupuuid"` + NestedUnderGroupUUID types.String `tfsdk:"nested_under_groupuuid"` +} + +func (r *groupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_group" +} + +func (r *groupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + // This description is used by the documentation generator and the language server. + MarkdownDescription: "Example resource", + + Attributes: map[string]schema.Attribute{ + "id": schema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{ + int64planmodifier.UseStateForUnknown(), + }, + }, + "uuid": schema.StringAttribute{ + Computed: true, + }, + "name": schema.StringAttribute{ + Required: true, + }, + "description": schema.StringAttribute{ + Optional: true, + }, + "extended_access": schema.StringAttribute{ + Computed: true, + Default: stringdefault.StaticString("NOT_ALLOWED"), + }, + "vault_recovery": schema.StringAttribute{ + Computed: true, + Default: stringdefault.StaticString("FULL"), + }, + "audit_months": schema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + }, + "rotating_password_required": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "record_trail": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "private_group": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "hide_audit_trail": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "application_administration": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "auditor": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "single_managed": schema.BoolAttribute{ + Computed: true, + Default: booldefault.StaticBool(false), + }, + "provisioning_auth_groupuuid": schema.StringAttribute{ + Computed: true, + }, + "membership_auth_groupuuid": schema.StringAttribute{ + Computed: true, + }, + "auditing_auth_groupuuid": schema.StringAttribute{ + Computed: true, + }, + "nested_under_groupuuid": schema.StringAttribute{ + Computed: true, + }, + }, + } +} + +func (r *groupResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Resource Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data *groupResourceModel + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + newgroup := keyhubmodel.NewGroupGroup() + newgroup.SetName(data.Name.ValueStringPointer()) + newgroup.SetDescription(data.Description.ValueStringPointer()) + extendedaccessstr := data.ExtendedAccess.ValueString() + if extendedaccessstr != "" { + extendedaccess, err := keyhubmodel.ParseGroupGroupExtendedAccess(extendedaccessstr) + if err != nil { + resp.Diagnostics.AddError("Conversion error", fmt.Sprintf("Cannot convert %s to GroupGroupExtendedAccess: %s", extendedaccessstr, err)) + return + } + newgroup.SetExtendedAccess(extendedaccess.(*keyhubmodel.GroupGroupExtendedAccess)) + } + + vaultrecoverystr := data.VaultRecovery.ValueString() + if vaultrecoverystr != "" { + vaultrecovery, err := keyhubmodel.ParseGroupVaultRecoveryAvailability(vaultrecoverystr) + if err != nil { + resp.Diagnostics.AddError("Conversion error", fmt.Sprintf("Cannot convert %s to GroupVaultRecoveryAvailability: %s", vaultrecoverystr, err)) + return + } + newgroup.SetVaultRecovery(vaultrecovery.(*keyhubmodel.GroupVaultRecoveryAvailability)) + } + + // newgroup.SetAuditMonths(data.AuditMonths.ValueStringPointer()) + newgroup.SetRotatingPasswordRequired(data.RotatingPasswordRequired.ValueBoolPointer()) + newgroup.SetRecordTrail(data.RecordTrail.ValueBoolPointer()) + newgroup.SetPrivateGroup(data.PrivateGroup.ValueBoolPointer()) + newgroup.SetHideAuditTrail(data.HideAuditTrail.ValueBoolPointer()) + newgroup.SetApplicationAdministration(data.ApplicationAdministration.ValueBoolPointer()) + newgroup.SetAuditor(data.Auditor.ValueBoolPointer()) + newgroup.SetSingleManaged(data.SingleManaged.ValueBoolPointer()) + // newgroup.SetAuthorizingGroupProvisioning(data.ProvisioningAuthGroupUUID.ValueStringPointer()) + // newgroup.SetAuthorizingGroupMembership(data.MembershipAuthGroupUUID.ValueStringPointer()) + // newgroup.SetAuthorizingGroupAuditing(data.AuditingAuthGroupUUID.ValueStringPointer()) + // newgroup.SetNestedUnder(data.NestedUnderGroupUUID.ValueStringPointer()) + + ctx = tflog.SetField(ctx, "keyhub_group_name", data.Name.ValueString()) + tflog.Debug(ctx, "Creating Topicus KeyHub group") + wrapper := keyhubmodel.NewGroupGroupLinkableWrapper() + wrapper.SetItems([]keyhubmodel.GroupGroupable{newgroup}) + createdwrapper, err := r.client.Group().Post(ctx, wrapper, nil) + if err != nil { + resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to create group, got error: %s", err)) + return + } + + group := createdwrapper.GetItems()[0] + fillGroupModelFromResponse(ctx, data, group) + + tflog.Trace(ctx, "Created a new Topicus KeyHub group") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data groupResourceModel + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = tflog.SetField(ctx, "keyhub_group_id", data.ID.ValueInt64()) + tflog.Debug(ctx, "Reading Topicus KeyHub group by ID") + + group, err := r.client.Group().ByGroupid(strconv.FormatInt(data.ID.ValueInt64(), 10)).Get(ctx, nil) + if err != nil { + resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to read group, got error: %s", err)) + return + } + fillGroupModelFromResponse(ctx, &data, group) + + tflog.Trace(ctx, "Read a group from Topicus KeyHub") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data *groupResourceModel + + // Read Terraform plan data into the model + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + // If applicable, this is a great opportunity to initialize any necessary + // provider client data and make a call using it. + // httpResp, err := r.client.Do(httpReq) + // if err != nil { + // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to update example, got error: %s", err)) + // return + // } + + // Save updated data into Terraform state + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data *groupResourceModel + + // Read Terraform prior state data into the model + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + + if resp.Diagnostics.HasError() { + return + } + + // If applicable, this is a great opportunity to initialize any necessary + // provider client data and make a call using it. + // httpResp, err := r.client.Do(httpReq) + // if err != nil { + // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to delete example, got error: %s", err)) + // return + // } +} + +func (r *groupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp) +} + +func fillGroupModelFromResponse(ctx context.Context, data *groupResourceModel, group keyhubmodel.GroupGroupable) { + data.ID = types.Int64PointerValue(group.GetLinks()[0].GetId()) + data.UUID = types.StringPointerValue(group.GetUuid()) + data.Name = types.StringPointerValue(group.GetName()) + data.Description = types.StringPointerValue(group.GetDescription()) + data.ExtendedAccess = types.StringValue(group.GetExtendedAccess().String()) + data.AuditMonths, _ = types.ListValueFrom(ctx, types.StringType, toMonthsString(group.GetAuditConfig().GetMonths())) + data.RotatingPasswordRequired = types.BoolPointerValue(group.GetRotatingPasswordRequired()) + data.RecordTrail = types.BoolPointerValue(group.GetRecordTrail()) + data.PrivateGroup = types.BoolPointerValue(group.GetPrivateGroup()) + data.HideAuditTrail = types.BoolPointerValue(group.GetHideAuditTrail()) + data.ApplicationAdministration = types.BoolPointerValue(group.GetApplicationAdministration()) + data.Auditor = types.BoolPointerValue(group.GetAuditor()) + data.SingleManaged = types.BoolPointerValue(group.GetSingleManaged()) + if group.GetAuthorizingGroupProvisioning() == nil { + data.ProvisioningAuthGroupUUID = types.StringNull() + } else { + data.ProvisioningAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupProvisioning().GetUuid()) + } + if group.GetAuthorizingGroupMembership() == nil { + data.MembershipAuthGroupUUID = types.StringNull() + } else { + data.MembershipAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupMembership().GetUuid()) + } + if group.GetAuthorizingGroupAuditing() == nil { + data.AuditingAuthGroupUUID = types.StringNull() + } else { + data.AuditingAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupAuditing().GetUuid()) + } + if group.GetNestedUnder() == nil { + data.NestedUnderGroupUUID = types.StringNull() + } else { + data.NestedUnderGroupUUID = types.StringPointerValue(group.GetNestedUnder().GetUuid()) + } +} + +func toMonthsString[T fmt.Stringer](months []T) []attr.Value { + ret := make([]attr.Value, len(months)) + for _, month := range months { + ret = append(ret, types.StringValue(month.String())) + } + return ret +} diff --git a/internal/provider/example_resource_test.go b/internal/provider/group_resource_test.go similarity index 100% rename from internal/provider/example_resource_test.go rename to internal/provider/group_resource_test.go diff --git a/internal/provider/impl.go b/internal/provider/impl.go new file mode 100644 index 0000000..7d2a646 --- /dev/null +++ b/internal/provider/impl.go @@ -0,0 +1,25793 @@ +package provider + +import ( + "fmt" + "time" + + "github.com/hashicorp/terraform-plugin-framework/attr" + dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" +) + +var AuditInfoAttrTypes = objectAttrsTypeAuditInfo(false) +var AuditInfoAttrTypesRecurse = objectAttrsTypeAuditInfo(true) + +type AuditInfoData struct { + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LastModifiedBy types.String `tfsdk:"last_modified_by"` +} + +var ErrorReportAttrTypes = objectAttrsTypeErrorReport(false) +var ErrorReportAttrTypesRecurse = objectAttrsTypeErrorReport(true) + +type ErrorReportData struct { + ApplicationError types.String `tfsdk:"application_error"` + ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` + Code types.Int64 `tfsdk:"code"` + ErrorDetails types.List `tfsdk:"error_details"` + Exception types.String `tfsdk:"exception"` + Message types.String `tfsdk:"message"` + Reason types.String `tfsdk:"reason"` + Stacktrace types.List `tfsdk:"stacktrace"` +} + +var ErrorReport_applicationErrorParametersAttrTypes = objectAttrsTypeErrorReport_applicationErrorParameters(false) +var ErrorReport_applicationErrorParametersAttrTypesRecurse = objectAttrsTypeErrorReport_applicationErrorParameters(true) + +type ErrorReport_applicationErrorParametersData struct { +} + +var GeneratedSecretAttrTypes = objectAttrsTypeGeneratedSecret(false) +var GeneratedSecretAttrTypesRecurse = objectAttrsTypeGeneratedSecret(true) + +type GeneratedSecretData struct { + GeneratedSecret types.String `tfsdk:"generated_secret"` + OldSecret types.String `tfsdk:"old_secret"` + Regenerate types.Bool `tfsdk:"regenerate"` +} + +var LinkableAttrTypes = objectAttrsTypeLinkable(false) +var LinkableAttrTypesRecurse = objectAttrsTypeLinkable(true) + +type LinkableData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var NonLinkableAttrTypes = objectAttrsTypeNonLinkable(false) +var NonLinkableAttrTypesRecurse = objectAttrsTypeNonLinkable(true) + +type NonLinkableData struct { +} + +var RestLinkAttrTypes = objectAttrsTypeRestLink(false) +var RestLinkAttrTypesRecurse = objectAttrsTypeRestLink(true) + +type RestLinkData struct { + Href types.String `tfsdk:"href"` + ID types.Int64 `tfsdk:"id"` + Rel types.String `tfsdk:"rel"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var SegmentCountAttrTypes = objectAttrsTypeSegmentCount(false) +var SegmentCountAttrTypesRecurse = objectAttrsTypeSegmentCount(true) + +type SegmentCountData struct { + Count types.Int64 `tfsdk:"count"` + Name types.String `tfsdk:"name"` +} + +var auditAuditRecordAttrTypes = objectAttrsTypeAuditAuditRecord(false) +var auditAuditRecordAttrTypesRecurse = objectAttrsTypeAuditAuditRecord(true) + +type auditAuditRecordData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + DateTime types.String `tfsdk:"date_time"` + OnAccount types.String `tfsdk:"on_account"` + OnCertificate types.String `tfsdk:"on_certificate"` + OnClient types.String `tfsdk:"on_client"` + OnDirectory types.String `tfsdk:"on_directory"` + OnGroup types.String `tfsdk:"on_group"` + OnGroup2 types.String `tfsdk:"on_group2"` + OnGroupClassification types.String `tfsdk:"on_group_classification"` + OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` + OnServiceAccount types.String `tfsdk:"on_service_account"` + OnSystem types.String `tfsdk:"on_system"` + OnVaultRecord types.String `tfsdk:"on_vault_record"` + OnWebhook types.String `tfsdk:"on_webhook"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + PerformedBy types.String `tfsdk:"performed_by"` + SecurityLevel types.String `tfsdk:"security_level"` +} + +var auditAuditRecordLinkableWrapperAttrTypes = objectAttrsTypeAuditAuditRecordLinkableWrapper(false) +var auditAuditRecordLinkableWrapperAttrTypesRecurse = objectAttrsTypeAuditAuditRecordLinkableWrapper(true) + +type auditAuditRecordLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var auditAuditRecord_additionalObjectsAttrTypes = objectAttrsTypeAuditAuditRecord_additionalObjects(false) +var auditAuditRecord_additionalObjectsAttrTypesRecurse = objectAttrsTypeAuditAuditRecord_additionalObjects(true) + +type auditAuditRecord_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var authAccountAttrTypes = objectAttrsTypeAuthAccount(false) +var authAccountAttrTypesRecurse = objectAttrsTypeAuthAccount(true) + +type authAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` +} + +var authAccountBulkUpdateAttrTypes = objectAttrsTypeAuthAccountBulkUpdate(false) +var authAccountBulkUpdateAttrTypesRecurse = objectAttrsTypeAuthAccountBulkUpdate(true) + +type authAccountBulkUpdateData struct { + Action types.String `tfsdk:"action"` + ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` + SelectedAccounts types.List `tfsdk:"selected_accounts"` +} + +var authAccountChangeLocaleAttrTypes = objectAttrsTypeAuthAccountChangeLocale(false) +var authAccountChangeLocaleAttrTypesRecurse = objectAttrsTypeAuthAccountChangeLocale(true) + +type authAccountChangeLocaleData struct { + Locale types.String `tfsdk:"locale"` +} + +var authAccountLinkableWrapperAttrTypes = objectAttrsTypeAuthAccountLinkableWrapper(false) +var authAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeAuthAccountLinkableWrapper(true) + +type authAccountLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var authAccountPrimerAttrTypes = objectAttrsTypeAuthAccountPrimer(false) +var authAccountPrimerAttrTypesRecurse = objectAttrsTypeAuthAccountPrimer(true) + +type authAccountPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` +} + +var authAccountRecoveryStatusAttrTypes = objectAttrsTypeAuthAccountRecoveryStatus(false) +var authAccountRecoveryStatusAttrTypesRecurse = objectAttrsTypeAuthAccountRecoveryStatus(true) + +type authAccountRecoveryStatusData struct { + Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` + PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` +} + +var authAccountSettingsAttrTypes = objectAttrsTypeAuthAccountSettings(false) +var authAccountSettingsAttrTypesRecurse = objectAttrsTypeAuthAccountSettings(true) + +type authAccountSettingsData struct { + DefaultOrganizationalUnitUUID types.String `tfsdk:"default_organizational_unit_uuid"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryType types.String `tfsdk:"directory_type"` + InGroups types.Bool `tfsdk:"in_groups"` + InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` + KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` + MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` + PasswordMode types.String `tfsdk:"password_mode"` + SshPublicKey types.String `tfsdk:"ssh_public_key"` + TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` + UseTokenPassword types.Bool `tfsdk:"use_token_password"` + VaultStatus types.String `tfsdk:"vault_status"` +} + +var authAccountStatusAttrTypes = objectAttrsTypeAuthAccountStatus(false) +var authAccountStatusAttrTypesRecurse = objectAttrsTypeAuthAccountStatus(true) + +type authAccountStatusData struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` + LicenseRole types.String `tfsdk:"license_role"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` +} + +var authAccount_additionalObjectsAttrTypes = objectAttrsTypeAuthAccount_additionalObjects(false) +var authAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeAuthAccount_additionalObjects(true) + +type authAccount_additionalObjectsData struct { + ActiveLogin types.Bool `tfsdk:"active_login"` + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` + Settings types.Object `tfsdk:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes"` + Vault types.Object `tfsdk:"vault"` +} + +var authAccountsAuditStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats(false) +var authAccountsAuditStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats(true) + +type authAccountsAuditStatsData struct { + DirectoryStats types.Object `tfsdk:"directory_stats"` + TwoFAStats types.Object `tfsdk:"two_f_a_stats"` + ValidityStats types.Object `tfsdk:"validity_stats"` +} + +var authAccountsAuditStats_directoryStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats_directoryStats(false) +var authAccountsAuditStats_directoryStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats_directoryStats(true) + +type authAccountsAuditStats_directoryStatsData struct { +} + +var authAccountsAuditStats_twoFAStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats_twoFAStats(false) +var authAccountsAuditStats_twoFAStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats_twoFAStats(true) + +type authAccountsAuditStats_twoFAStatsData struct { +} + +var authAccountsAuditStats_validityStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats_validityStats(false) +var authAccountsAuditStats_validityStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats_validityStats(true) + +type authAccountsAuditStats_validityStatsData struct { +} + +var authInternalAccountAttrTypes = objectAttrsTypeAuthInternalAccount(false) +var authInternalAccountAttrTypesRecurse = objectAttrsTypeAuthInternalAccount(true) + +type authInternalAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var authInternalAccountLinkableWrapperAttrTypes = objectAttrsTypeAuthInternalAccountLinkableWrapper(false) +var authInternalAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeAuthInternalAccountLinkableWrapper(true) + +type authInternalAccountLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var authInternalAccountStatusObjectAttrTypes = objectAttrsTypeAuthInternalAccountStatusObject(false) +var authInternalAccountStatusObjectAttrTypesRecurse = objectAttrsTypeAuthInternalAccountStatusObject(true) + +type authInternalAccountStatusObjectData struct { + Status types.String `tfsdk:"status"` +} + +var authInternalAccount_additionalObjectsAttrTypes = objectAttrsTypeAuthInternalAccount_additionalObjects(false) +var authInternalAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeAuthInternalAccount_additionalObjects(true) + +type authInternalAccount_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Reason types.String `tfsdk:"reason"` +} + +var authMoveInternalAccountAttrTypes = objectAttrsTypeAuthMoveInternalAccount(false) +var authMoveInternalAccountAttrTypesRecurse = objectAttrsTypeAuthMoveInternalAccount(true) + +type authMoveInternalAccountData struct { + InternalDirectory types.Object `tfsdk:"internal_directory"` +} + +var authPermissionAttrTypes = objectAttrsTypeAuthPermission(false) +var authPermissionAttrTypesRecurse = objectAttrsTypeAuthPermission(true) + +type authPermissionData struct { + Full types.String `tfsdk:"full"` + Instances types.List `tfsdk:"instances"` + Operations types.List `tfsdk:"operations"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var authStoredAccountAttributeAttrTypes = objectAttrsTypeAuthStoredAccountAttribute(false) +var authStoredAccountAttributeAttrTypesRecurse = objectAttrsTypeAuthStoredAccountAttribute(true) + +type authStoredAccountAttributeData struct { + Name types.String `tfsdk:"name"` + Value types.String `tfsdk:"value"` +} + +var authStoredAccountAttributesAttrTypes = objectAttrsTypeAuthStoredAccountAttributes(false) +var authStoredAccountAttributesAttrTypesRecurse = objectAttrsTypeAuthStoredAccountAttributes(true) + +type authStoredAccountAttributesData struct { + Attributes types.List `tfsdk:"attributes"` +} + +var certificateCertificateAttrTypes = objectAttrsTypeCertificateCertificate(false) +var certificateCertificateAttrTypesRecurse = objectAttrsTypeCertificateCertificate(true) + +type certificateCertificateData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + KeyData types.List `tfsdk:"key_data"` +} + +var certificateCertificateLinkableWrapperAttrTypes = objectAttrsTypeCertificateCertificateLinkableWrapper(false) +var certificateCertificateLinkableWrapperAttrTypesRecurse = objectAttrsTypeCertificateCertificateLinkableWrapper(true) + +type certificateCertificateLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var certificateCertificatePrimerAttrTypes = objectAttrsTypeCertificateCertificatePrimer(false) +var certificateCertificatePrimerAttrTypesRecurse = objectAttrsTypeCertificateCertificatePrimer(true) + +type certificateCertificatePrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` +} + +var certificateCertificate_additionalObjectsAttrTypes = objectAttrsTypeCertificateCertificate_additionalObjects(false) +var certificateCertificate_additionalObjectsAttrTypesRecurse = objectAttrsTypeCertificateCertificate_additionalObjects(true) + +type certificateCertificate_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientClientApplicationAttrTypes = objectAttrsTypeClientClientApplication(false) +var clientClientApplicationAttrTypesRecurse = objectAttrsTypeClientClientApplication(true) + +type clientClientApplicationData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` +} + +var clientClientApplicationLinkableWrapperAttrTypes = objectAttrsTypeClientClientApplicationLinkableWrapper(false) +var clientClientApplicationLinkableWrapperAttrTypesRecurse = objectAttrsTypeClientClientApplicationLinkableWrapper(true) + +type clientClientApplicationLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var clientClientApplicationPrimerAttrTypes = objectAttrsTypeClientClientApplicationPrimer(false) +var clientClientApplicationPrimerAttrTypesRecurse = objectAttrsTypeClientClientApplicationPrimer(true) + +type clientClientApplicationPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` +} + +var clientClientApplication_additionalObjectsAttrTypes = objectAttrsTypeClientClientApplication_additionalObjects(false) +var clientClientApplication_additionalObjectsAttrTypesRecurse = objectAttrsTypeClientClientApplication_additionalObjects(true) + +type clientClientApplication_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + Groupclients types.Object `tfsdk:"groupclients"` + Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` + Tile types.Object `tfsdk:"tile"` + VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` +} + +var clientLdapClientAttrTypes = objectAttrsTypeClientLdapClient(false) +var clientLdapClientAttrTypesRecurse = objectAttrsTypeClientLdapClient(true) + +type clientLdapClientData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + BindDn types.String `tfsdk:"bind_dn"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` +} + +var clientOAuth2ClientAttrTypes = objectAttrsTypeClientOAuth2Client(false) +var clientOAuth2ClientAttrTypesRecurse = objectAttrsTypeClientOAuth2Client(true) + +type clientOAuth2ClientData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_u_r_i"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` + ResourceURIs types.String `tfsdk:"resource_u_r_is"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` +} + +var clientOAuth2ClientPermissionAttrTypes = objectAttrsTypeClientOAuth2ClientPermission(false) +var clientOAuth2ClientPermissionAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermission(true) + +type clientOAuth2ClientPermissionData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` +} + +var clientOAuth2ClientPermissionLinkableWrapperAttrTypes = objectAttrsTypeClientOAuth2ClientPermissionLinkableWrapper(false) +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermissionLinkableWrapper(true) + +type clientOAuth2ClientPermissionLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermissionWithClientAttrTypes = objectAttrsTypeClientOAuth2ClientPermissionWithClient(false) +var clientOAuth2ClientPermissionWithClientAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermissionWithClient(true) + +type clientOAuth2ClientPermissionWithClientData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` + Client types.Object `tfsdk:"client"` +} + +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypes = objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(false) +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(true) + +type clientOAuth2ClientPermissionWithClientLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermission_additionalObjectsAttrTypes = objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(false) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(true) + +type clientOAuth2ClientPermission_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientOAuth2Client_attributesAttrTypes = objectAttrsTypeClientOAuth2Client_attributes(false) +var clientOAuth2Client_attributesAttrTypesRecurse = objectAttrsTypeClientOAuth2Client_attributes(true) + +type clientOAuth2Client_attributesData struct { +} + +var clientSaml2ClientAttrTypes = objectAttrsTypeClientSaml2Client(false) +var clientSaml2ClientAttrTypesRecurse = objectAttrsTypeClientSaml2Client(true) + +type clientSaml2ClientData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` +} + +var clientSaml2Client_attributesAttrTypes = objectAttrsTypeClientSaml2Client_attributes(false) +var clientSaml2Client_attributesAttrTypesRecurse = objectAttrsTypeClientSaml2Client_attributes(true) + +type clientSaml2Client_attributesData struct { +} + +var directoryAccountDirectoryAttrTypes = objectAttrsTypeDirectoryAccountDirectory(false) +var directoryAccountDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectory(true) + +type directoryAccountDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectoryLinkableWrapperAttrTypes = objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(false) +var directoryAccountDirectoryLinkableWrapperAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(true) + +type directoryAccountDirectoryLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectoryPrimerAttrTypes = objectAttrsTypeDirectoryAccountDirectoryPrimer(false) +var directoryAccountDirectoryPrimerAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectoryPrimer(true) + +type directoryAccountDirectoryPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var directoryAccountDirectoryStatusReportAttrTypes = objectAttrsTypeDirectoryAccountDirectoryStatusReport(false) +var directoryAccountDirectoryStatusReportAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectoryStatusReport(true) + +type directoryAccountDirectoryStatusReportData struct { + Accounts types.Int64 `tfsdk:"accounts"` + Reason types.String `tfsdk:"reason"` + Status types.String `tfsdk:"status"` +} + +var directoryAccountDirectorySummaryAttrTypes = objectAttrsTypeDirectoryAccountDirectorySummary(false) +var directoryAccountDirectorySummaryAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectorySummary(true) + +type directoryAccountDirectorySummaryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Name types.String `tfsdk:"name"` + Status types.Object `tfsdk:"status"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectorySummaryLinkableWrapperAttrTypes = objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(false) +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(true) + +type directoryAccountDirectorySummaryLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectory_additionalObjectsAttrTypes = objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false) +var directoryAccountDirectory_additionalObjectsAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectory_additionalObjects(true) + +type directoryAccountDirectory_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Markers types.Object `tfsdk:"markers"` + Status types.Object `tfsdk:"status"` +} + +var directoryInternalDirectoryAttrTypes = objectAttrsTypeDirectoryInternalDirectory(false) +var directoryInternalDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryInternalDirectory(true) + +type directoryInternalDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + OwnerUUID types.String `tfsdk:"owner_uuid"` +} + +var directoryLDAPDirectoryAttrTypes = objectAttrsTypeDirectoryLDAPDirectory(false) +var directoryLDAPDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryLDAPDirectory(true) + +type directoryLDAPDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_d_n"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_d_n"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` +} + +var directoryMaintenanceDirectoryAttrTypes = objectAttrsTypeDirectoryMaintenanceDirectory(false) +var directoryMaintenanceDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryMaintenanceDirectory(true) + +type directoryMaintenanceDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryOIDCDirectoryAttrTypes = objectAttrsTypeDirectoryOIDCDirectory(false) +var directoryOIDCDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryOIDCDirectory(true) + +type directoryOIDCDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` +} + +var groupAccountGroupAttrTypes = objectAttrsTypeGroupAccountGroup(false) +var groupAccountGroupAttrTypesRecurse = objectAttrsTypeGroupAccountGroup(true) + +type groupAccountGroupData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupAccountGroupLinkableWrapperAttrTypes = objectAttrsTypeGroupAccountGroupLinkableWrapper(false) +var groupAccountGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupAccountGroupLinkableWrapper(true) + +type groupAccountGroupLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupAccountGroup_additionalObjectsAttrTypes = objectAttrsTypeGroupAccountGroup_additionalObjects(false) +var groupAccountGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupAccountGroup_additionalObjects(true) + +type groupAccountGroup_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var groupAuthorizedGroupsWrapperAttrTypes = objectAttrsTypeGroupAuthorizedGroupsWrapper(false) +var groupAuthorizedGroupsWrapperAttrTypesRecurse = objectAttrsTypeGroupAuthorizedGroupsWrapper(true) + +type groupAuthorizedGroupsWrapperData struct { + Items types.List `tfsdk:"items"` + GroupCount types.Int64 `tfsdk:"group_count"` +} + +var groupGroupAttrTypes = objectAttrsTypeGroupGroup(false) +var groupGroupAttrTypesRecurse = objectAttrsTypeGroupGroup(true) + +type groupGroupData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationAdministration types.Bool `tfsdk:"application_administration"` + AuditConfig types.Object `tfsdk:"audit_config"` + AuditRequested types.Bool `tfsdk:"audit_requested"` + Auditor types.Bool `tfsdk:"auditor"` + AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` + AuthorizingGroupDelegationUUID types.String `tfsdk:"authorizing_group_delegation_uuid"` + AuthorizingGroupMembershipUUID types.String `tfsdk:"authorizing_group_membership_uuid"` + AuthorizingGroupProvisioningUUID types.String `tfsdk:"authorizing_group_provisioning_uuid"` + AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` + ClassificationUUID types.String `tfsdk:"classification_uuid"` + Description types.String `tfsdk:"description"` + ExtendedAccess types.String `tfsdk:"extended_access"` + HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` + NestedUnderUUID types.String `tfsdk:"nested_under_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + PrivateGroup types.Bool `tfsdk:"private_group"` + RecordTrail types.Bool `tfsdk:"record_trail"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + SingleManaged types.Bool `tfsdk:"single_managed"` + VaultRecovery types.String `tfsdk:"vault_recovery"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupAccountAttrTypes = objectAttrsTypeGroupGroupAccount(false) +var groupGroupAccountAttrTypesRecurse = objectAttrsTypeGroupGroupAccount(true) + +type groupGroupAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccountLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupAccountLinkableWrapper(false) +var groupGroupAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupAccountLinkableWrapper(true) + +type groupGroupAccountLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAccountNestingAttrTypes = objectAttrsTypeGroupGroupAccountNesting(false) +var groupGroupAccountNestingAttrTypesRecurse = objectAttrsTypeGroupGroupAccountNesting(true) + +type groupGroupAccountNestingData struct { + Connected types.Bool `tfsdk:"connected"` +} + +var groupGroupAccountStatusAttrTypes = objectAttrsTypeGroupGroupAccountStatus(false) +var groupGroupAccountStatusAttrTypesRecurse = objectAttrsTypeGroupGroupAccountStatus(true) + +type groupGroupAccountStatusData struct { + Folder types.Object `tfsdk:"folder"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccount_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupAccount_additionalObjects(false) +var groupGroupAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupAccount_additionalObjects(true) + +type groupGroupAccount_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAdminMailAttrTypes = objectAttrsTypeGroupGroupAdminMail(false) +var groupGroupAdminMailAttrTypesRecurse = objectAttrsTypeGroupGroupAdminMail(true) + +type groupGroupAdminMailData struct { + Body types.String `tfsdk:"body"` +} + +var groupGroupAuditAttrTypes = objectAttrsTypeGroupGroupAudit(false) +var groupGroupAuditAttrTypesRecurse = objectAttrsTypeGroupGroupAudit(true) + +type groupGroupAuditData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var groupGroupAuditAccountAttrTypes = objectAttrsTypeGroupGroupAuditAccount(false) +var groupGroupAuditAccountAttrTypesRecurse = objectAttrsTypeGroupGroupAuditAccount(true) + +type groupGroupAuditAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AccountValid types.Bool `tfsdk:"account_valid"` + Action types.String `tfsdk:"action"` + Comment types.String `tfsdk:"comment"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + DisplayName types.String `tfsdk:"display_name"` + EndDate types.String `tfsdk:"end_date"` + LastActive types.String `tfsdk:"last_active"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + Rights types.String `tfsdk:"rights"` + Username types.String `tfsdk:"username"` +} + +var groupGroupAuditConfigAttrTypes = objectAttrsTypeGroupGroupAuditConfig(false) +var groupGroupAuditConfigAttrTypesRecurse = objectAttrsTypeGroupGroupAuditConfig(true) + +type groupGroupAuditConfigData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Months types.List `tfsdk:"months"` +} + +var groupGroupAuditLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupAuditLinkableWrapper(false) +var groupGroupAuditLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupAuditLinkableWrapper(true) + +type groupGroupAuditLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAudit_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupAudit_additionalObjects(false) +var groupGroupAudit_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupAudit_additionalObjects(true) + +type groupGroupAudit_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAuditingInfoAttrTypes = objectAttrsTypeGroupGroupAuditingInfo(false) +var groupGroupAuditingInfoAttrTypesRecurse = objectAttrsTypeGroupGroupAuditingInfo(true) + +type groupGroupAuditingInfoData struct { + AuditDueDate types.String `tfsdk:"audit_due_date"` + LastAuditDate types.String `tfsdk:"last_audit_date"` + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrDisabledAccounts types.Int64 `tfsdk:"nr_disabled_accounts"` + NrDisabledManagers types.Int64 `tfsdk:"nr_disabled_managers"` + NrExpiredVaultRecords types.Int64 `tfsdk:"nr_expired_vault_records"` + NrManagers types.Int64 `tfsdk:"nr_managers"` + NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` +} + +var groupGroupClassificationAttrTypes = objectAttrsTypeGroupGroupClassification(false) +var groupGroupClassificationAttrTypesRecurse = objectAttrsTypeGroupGroupClassification(true) + +type groupGroupClassificationData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` + AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` + AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` + AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` + DefaultClassification types.Bool `tfsdk:"default_classification"` + Description types.String `tfsdk:"description"` + MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` + MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` + RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` + RequiredMonths types.List `tfsdk:"required_months"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupClassificationInfoAttrTypes = objectAttrsTypeGroupGroupClassificationInfo(false) +var groupGroupClassificationInfoAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationInfo(true) + +type groupGroupClassificationInfoData struct { + NrGroups types.Int64 `tfsdk:"nr_groups"` +} + +var groupGroupClassificationLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupClassificationLinkableWrapper(false) +var groupGroupClassificationLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationLinkableWrapper(true) + +type groupGroupClassificationLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClassificationPrimerAttrTypes = objectAttrsTypeGroupGroupClassificationPrimer(false) +var groupGroupClassificationPrimerAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationPrimer(true) + +type groupGroupClassificationPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupClassificationUpdateAttrTypes = objectAttrsTypeGroupGroupClassificationUpdate(false) +var groupGroupClassificationUpdateAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationUpdate(true) + +type groupGroupClassificationUpdateData struct { + ClassificatonUUID types.String `tfsdk:"classificaton_uuid"` +} + +var groupGroupClassification_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupClassification_additionalObjects(false) +var groupGroupClassification_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupClassification_additionalObjects(true) + +type groupGroupClassification_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Info types.Object `tfsdk:"info"` +} + +var groupGroupClientAttrTypes = objectAttrsTypeGroupGroupClient(false) +var groupGroupClientAttrTypesRecurse = objectAttrsTypeGroupGroupClient(true) + +type groupGroupClientData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ClientUUID types.String `tfsdk:"client_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` +} + +var groupGroupClientLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupClientLinkableWrapper(false) +var groupGroupClientLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupClientLinkableWrapper(true) + +type groupGroupClientLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClient_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupClient_additionalObjects(false) +var groupGroupClient_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupClient_additionalObjects(true) + +type groupGroupClient_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupFolderAttrTypes = objectAttrsTypeGroupGroupFolder(false) +var groupGroupFolderAttrTypesRecurse = objectAttrsTypeGroupGroupFolder(true) + +type groupGroupFolderData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` +} + +var groupGroupFolderLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupFolderLinkableWrapper(false) +var groupGroupFolderLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupFolderLinkableWrapper(true) + +type groupGroupFolderLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupFolder_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupFolder_additionalObjects(false) +var groupGroupFolder_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupFolder_additionalObjects(true) + +type groupGroupFolder_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupInfoAttrTypes = objectAttrsTypeGroupGroupInfo(false) +var groupGroupInfoAttrTypesRecurse = objectAttrsTypeGroupGroupInfo(true) + +type groupGroupInfoData struct { + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` + NrAudits types.Int64 `tfsdk:"nr_audits"` + NrClients types.Int64 `tfsdk:"nr_clients"` + NrProvisionedSystems types.Int64 `tfsdk:"nr_provisioned_systems"` + NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` +} + +var groupGroupLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupLinkableWrapper(false) +var groupGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupLinkableWrapper(true) + +type groupGroupLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupPrimerAttrTypes = objectAttrsTypeGroupGroupPrimer(false) +var groupGroupPrimerAttrTypesRecurse = objectAttrsTypeGroupGroupPrimer(true) + +type groupGroupPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupPrimerLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupPrimerLinkableWrapper(false) +var groupGroupPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupPrimerLinkableWrapper(true) + +type groupGroupPrimerLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupSegmentedLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupSegmentedLinkableWrapper(false) +var groupGroupSegmentedLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupSegmentedLinkableWrapper(true) + +type groupGroupSegmentedLinkableWrapperData struct { + Items types.List `tfsdk:"items"` + Segments types.List `tfsdk:"segments"` +} + +var groupGroup_additionalObjectsAttrTypes = objectAttrsTypeGroupGroup_additionalObjects(false) +var groupGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroup_additionalObjects(true) + +type groupGroup_additionalObjectsData struct { + Accounts types.Object `tfsdk:"accounts"` + AdministeredClients types.Object `tfsdk:"administered_clients"` + AdministeredSystems types.Object `tfsdk:"administered_systems"` + Admins types.Object `tfsdk:"admins"` + Audit types.Object `tfsdk:"audit"` + AuthorizedGroups types.Object `tfsdk:"authorized_groups"` + ClientPermissions types.Object `tfsdk:"client_permissions"` + Clients types.Object `tfsdk:"clients"` + ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` + Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` + Groupinfo types.Object `tfsdk:"groupinfo"` + Helpdesk types.Object `tfsdk:"helpdesk"` + Markers types.Object `tfsdk:"markers"` + Myaccount types.Object `tfsdk:"myaccount"` + Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` + NestedGroups types.Object `tfsdk:"nested_groups"` + OwnedClients types.Object `tfsdk:"owned_clients"` + OwnedDirectories types.Object `tfsdk:"owned_directories"` + OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` + OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` + OwnedSystems types.Object `tfsdk:"owned_systems"` + RecentAudits types.Object `tfsdk:"recent_audits"` + Requeststatus types.String `tfsdk:"requeststatus"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` + Systems types.Object `tfsdk:"systems"` + Vault types.Object `tfsdk:"vault"` + Webhooks types.Object `tfsdk:"webhooks"` +} + +var groupGroupsAuditStatsAttrTypes = objectAttrsTypeGroupGroupsAuditStats(false) +var groupGroupsAuditStatsAttrTypesRecurse = objectAttrsTypeGroupGroupsAuditStats(true) + +type groupGroupsAuditStatsData struct { + AuditedGroups types.Int64 `tfsdk:"audited_groups"` + Classifications types.List `tfsdk:"classifications"` + OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` + OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` + UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` + ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` + VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` +} + +var groupProvisioningGroupAttrTypes = objectAttrsTypeGroupProvisioningGroup(false) +var groupProvisioningGroupAttrTypesRecurse = objectAttrsTypeGroupProvisioningGroup(true) + +type groupProvisioningGroupData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + GroupUUID types.String `tfsdk:"group_uuid"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var groupProvisioningGroupLinkableWrapperAttrTypes = objectAttrsTypeGroupProvisioningGroupLinkableWrapper(false) +var groupProvisioningGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupProvisioningGroupLinkableWrapper(true) + +type groupProvisioningGroupLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var groupProvisioningGroup_additionalObjectsAttrTypes = objectAttrsTypeGroupProvisioningGroup_additionalObjects(false) +var groupProvisioningGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupProvisioningGroup_additionalObjects(true) + +type groupProvisioningGroup_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadDisplayedLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadDisplayedLaunchpadTile(false) +var launchpadDisplayedLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadDisplayedLaunchpadTile(true) + +type launchpadDisplayedLaunchpadTileData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + Logo types.List `tfsdk:"logo"` + Tile types.Object `tfsdk:"tile"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadDisplayedLaunchpadTilesAttrTypes = objectAttrsTypeLaunchpadDisplayedLaunchpadTiles(false) +var launchpadDisplayedLaunchpadTilesAttrTypesRecurse = objectAttrsTypeLaunchpadDisplayedLaunchpadTiles(true) + +type launchpadDisplayedLaunchpadTilesData struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadLaunchpadTile(false) +var launchpadLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTile(true) + +type launchpadLaunchpadTileData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` +} + +var launchpadLaunchpadTileLinkableWrapperAttrTypes = objectAttrsTypeLaunchpadLaunchpadTileLinkableWrapper(false) +var launchpadLaunchpadTileLinkableWrapperAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTileLinkableWrapper(true) + +type launchpadLaunchpadTileLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTilePrimerAttrTypes = objectAttrsTypeLaunchpadLaunchpadTilePrimer(false) +var launchpadLaunchpadTilePrimerAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTilePrimer(true) + +type launchpadLaunchpadTilePrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var launchpadLaunchpadTile_additionalObjectsAttrTypes = objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false) +var launchpadLaunchpadTile_additionalObjectsAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(true) + +type launchpadLaunchpadTile_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadManualLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadManualLaunchpadTile(false) +var launchpadManualLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadManualLaunchpadTile(true) + +type launchpadManualLaunchpadTileData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadSsoApplicationLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(false) +var launchpadSsoApplicationLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(true) + +type launchpadSsoApplicationLaunchpadTileData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadVaultRecordLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(false) +var launchpadVaultRecordLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(true) + +type launchpadVaultRecordLaunchpadTileData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` +} + +var licenseKeyHubLicenseInfoAttrTypes = objectAttrsTypeLicenseKeyHubLicenseInfo(false) +var licenseKeyHubLicenseInfoAttrTypesRecurse = objectAttrsTypeLicenseKeyHubLicenseInfo(true) + +type licenseKeyHubLicenseInfoData struct { + CurrentLicenseStatus types.String `tfsdk:"current_license_status"` + CustomerCompany types.String `tfsdk:"customer_company"` + CustomerContact types.String `tfsdk:"customer_contact"` + CustomerDomains types.List `tfsdk:"customer_domains"` + Details types.List `tfsdk:"details"` + ExpirationTime types.String `tfsdk:"expiration_time"` + Features types.List `tfsdk:"features"` + IssueTime types.String `tfsdk:"issue_time"` + KeyHubDomain types.String `tfsdk:"key_hub_domain"` + LicenseKey types.String `tfsdk:"license_key"` + NotBeforeTime types.String `tfsdk:"not_before_time"` + UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` + UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` + UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` + UUID types.String `tfsdk:"uuid"` + Version types.Int64 `tfsdk:"version"` +} + +var markItemMarkerAttrTypes = objectAttrsTypeMarkItemMarker(false) +var markItemMarkerAttrTypesRecurse = objectAttrsTypeMarkItemMarker(true) + +type markItemMarkerData struct { + Level types.String `tfsdk:"level"` + MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + Parameters types.Object `tfsdk:"parameters"` +} + +var markItemMarker_parametersAttrTypes = objectAttrsTypeMarkItemMarker_parameters(false) +var markItemMarker_parametersAttrTypesRecurse = objectAttrsTypeMarkItemMarker_parameters(true) + +type markItemMarker_parametersData struct { +} + +var markItemMarkersAttrTypes = objectAttrsTypeMarkItemMarkers(false) +var markItemMarkersAttrTypesRecurse = objectAttrsTypeMarkItemMarkers(true) + +type markItemMarkersData struct { + Markers types.List `tfsdk:"markers"` +} + +var notificationCertificateExpiredNotificationAttrTypes = objectAttrsTypeNotificationCertificateExpiredNotification(false) +var notificationCertificateExpiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationCertificateExpiredNotification(true) + +type notificationCertificateExpiredNotificationData struct { + Certificate types.Object `tfsdk:"certificate"` + Directory types.Object `tfsdk:"directory"` + Expiration types.String `tfsdk:"expiration"` + LdapClient types.Object `tfsdk:"ldap_client"` + System types.Object `tfsdk:"system"` + Usage types.String `tfsdk:"usage"` + WebhookUUID types.String `tfsdk:"webhook_uuid"` +} + +var notificationGroupAuditRequiredNotificationAttrTypes = objectAttrsTypeNotificationGroupAuditRequiredNotification(false) +var notificationGroupAuditRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationGroupAuditRequiredNotification(true) + +type notificationGroupAuditRequiredNotificationData struct { + DueDate types.String `tfsdk:"due_date"` + Group types.Object `tfsdk:"group"` + NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` +} + +var notificationGroupEditRequiredNotificationAttrTypes = objectAttrsTypeNotificationGroupEditRequiredNotification(false) +var notificationGroupEditRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationGroupEditRequiredNotification(true) + +type notificationGroupEditRequiredNotificationData struct { + Group types.Object `tfsdk:"group"` + Parameters types.Object `tfsdk:"parameters"` + Reason types.String `tfsdk:"reason"` +} + +var notificationGroupEditRequiredNotification_parametersAttrTypes = objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(false) +var notificationGroupEditRequiredNotification_parametersAttrTypesRecurse = objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(true) + +type notificationGroupEditRequiredNotification_parametersData struct { +} + +var notificationInvalidSignaturesDetectedNotificationAttrTypes = objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(false) +var notificationInvalidSignaturesDetectedNotificationAttrTypesRecurse = objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(true) + +type notificationInvalidSignaturesDetectedNotificationData struct { +} + +var notificationLicenseStatusNotificationAttrTypes = objectAttrsTypeNotificationLicenseStatusNotification(false) +var notificationLicenseStatusNotificationAttrTypesRecurse = objectAttrsTypeNotificationLicenseStatusNotification(true) + +type notificationLicenseStatusNotificationData struct { + ActiveAccounts types.Int64 `tfsdk:"active_accounts"` + LicenseInfoUUID types.String `tfsdk:"license_info_uuid"` +} + +var notificationModificationRequestNotificationAttrTypes = objectAttrsTypeNotificationModificationRequestNotification(false) +var notificationModificationRequestNotificationAttrTypesRecurse = objectAttrsTypeNotificationModificationRequestNotification(true) + +type notificationModificationRequestNotificationData struct { + Admins types.List `tfsdk:"admins"` + Groups types.List `tfsdk:"groups"` + Request types.Object `tfsdk:"request"` +} + +var notificationNotificationAttrTypes = objectAttrsTypeNotificationNotification(false) +var notificationNotificationAttrTypesRecurse = objectAttrsTypeNotificationNotification(true) + +type notificationNotificationData struct { +} + +var notificationNotificationsAttrTypes = objectAttrsTypeNotificationNotifications(false) +var notificationNotificationsAttrTypesRecurse = objectAttrsTypeNotificationNotifications(true) + +type notificationNotificationsData struct { + Items types.List `tfsdk:"items"` +} + +var notificationOldApiVersionUsageNotificationAttrTypes = objectAttrsTypeNotificationOldApiVersionUsageNotification(false) +var notificationOldApiVersionUsageNotificationAttrTypesRecurse = objectAttrsTypeNotificationOldApiVersionUsageNotification(true) + +type notificationOldApiVersionUsageNotificationData struct { + ApiVersion types.Int64 `tfsdk:"api_version"` + Client types.Object `tfsdk:"client"` +} + +var notificationProvisionConfigRequiredNotificationAttrTypes = objectAttrsTypeNotificationProvisionConfigRequiredNotification(false) +var notificationProvisionConfigRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationProvisionConfigRequiredNotification(true) + +type notificationProvisionConfigRequiredNotificationData struct { + Systems types.List `tfsdk:"systems"` +} + +var notificationRotatingPasswordRequiredNotificationAttrTypes = objectAttrsTypeNotificationRotatingPasswordRequiredNotification(false) +var notificationRotatingPasswordRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationRotatingPasswordRequiredNotification(true) + +type notificationRotatingPasswordRequiredNotificationData struct { + Groups types.List `tfsdk:"groups"` +} + +var notificationUpdateAvailableNotificationAttrTypes = objectAttrsTypeNotificationUpdateAvailableNotification(false) +var notificationUpdateAvailableNotificationAttrTypesRecurse = objectAttrsTypeNotificationUpdateAvailableNotification(true) + +type notificationUpdateAvailableNotificationData struct { + ReleasedAt types.String `tfsdk:"released_at"` +} + +var notificationVaultRecordExpiredNotificationAttrTypes = objectAttrsTypeNotificationVaultRecordExpiredNotification(false) +var notificationVaultRecordExpiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationVaultRecordExpiredNotification(true) + +type notificationVaultRecordExpiredNotificationData struct { + Record types.Object `tfsdk:"record"` +} + +var organizationAccountOrganizationalUnitAttrTypes = objectAttrsTypeOrganizationAccountOrganizationalUnit(false) +var organizationAccountOrganizationalUnitAttrTypesRecurse = objectAttrsTypeOrganizationAccountOrganizationalUnit(true) + +type organizationAccountOrganizationalUnitData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypes = objectAttrsTypeOrganizationAccountOrganizationalUnitLinkableWrapper(false) +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationAccountOrganizationalUnitLinkableWrapper(true) + +type organizationAccountOrganizationalUnitLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypes = objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(false) +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRecurse = objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(true) + +type organizationAccountOrganizationalUnit_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitAttrTypes = objectAttrsTypeOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnit(true) + +type organizationOrganizationalUnitData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Depth types.Int64 `tfsdk:"depth"` + Description types.String `tfsdk:"description"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + ParentUUID types.String `tfsdk:"parent_uuid"` +} + +var organizationOrganizationalUnitAccountAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitAccount(false) +var organizationOrganizationalUnitAccountAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitAccount(true) + +type organizationOrganizationalUnitAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` +} + +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitAccountLinkableWrapper(false) +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitAccountLinkableWrapper(true) + +type organizationOrganizationalUnitAccountLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(false) +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(true) + +type organizationOrganizationalUnitAccount_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitLinkableWrapperAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(false) +var organizationOrganizationalUnitLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(true) + +type organizationOrganizationalUnitLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitPrimerAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitPrimer(false) +var organizationOrganizationalUnitPrimerAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitPrimer(true) + +type organizationOrganizationalUnitPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(false) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(true) + +type organizationOrganizationalUnitPrimerLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnit_additionalObjectsAttrTypes = objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(false) +var organizationOrganizationalUnit_additionalObjectsAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(true) + +type organizationOrganizationalUnit_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` +} + +var provisioningAbstractProvisionedLDAPAttrTypes = objectAttrsTypeProvisioningAbstractProvisionedLDAP(false) +var provisioningAbstractProvisionedLDAPAttrTypesRecurse = objectAttrsTypeProvisioningAbstractProvisionedLDAP(true) + +type provisioningAbstractProvisionedLDAPData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_d_n"` +} + +var provisioningAbstractProvisionedLDAP_attributesAttrTypes = objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false) +var provisioningAbstractProvisionedLDAP_attributesAttrTypesRecurse = objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(true) + +type provisioningAbstractProvisionedLDAP_attributesData struct { +} + +var provisioningAccountProvisioningStatusAttrTypes = objectAttrsTypeProvisioningAccountProvisioningStatus(false) +var provisioningAccountProvisioningStatusAttrTypesRecurse = objectAttrsTypeProvisioningAccountProvisioningStatus(true) + +type provisioningAccountProvisioningStatusData struct { + Description types.String `tfsdk:"description"` + Result types.String `tfsdk:"result"` + System types.Object `tfsdk:"system"` +} + +var provisioningAccountProvisioningStatusReportAttrTypes = objectAttrsTypeProvisioningAccountProvisioningStatusReport(false) +var provisioningAccountProvisioningStatusReportAttrTypesRecurse = objectAttrsTypeProvisioningAccountProvisioningStatusReport(true) + +type provisioningAccountProvisioningStatusReportData struct { + Status types.List `tfsdk:"status"` +} + +var provisioningCircuitBreakerStatisticsAttrTypes = objectAttrsTypeProvisioningCircuitBreakerStatistics(false) +var provisioningCircuitBreakerStatisticsAttrTypesRecurse = objectAttrsTypeProvisioningCircuitBreakerStatistics(true) + +type provisioningCircuitBreakerStatisticsData struct { + NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` + NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` + NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` + State types.String `tfsdk:"state"` +} + +var provisioningGroupOnSystemAttrTypes = objectAttrsTypeProvisioningGroupOnSystem(false) +var provisioningGroupOnSystemAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystem(true) + +type provisioningGroupOnSystemData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var provisioningGroupOnSystemLinkableWrapperAttrTypes = objectAttrsTypeProvisioningGroupOnSystemLinkableWrapper(false) +var provisioningGroupOnSystemLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystemLinkableWrapper(true) + +type provisioningGroupOnSystemLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var provisioningGroupOnSystemPrimerAttrTypes = objectAttrsTypeProvisioningGroupOnSystemPrimer(false) +var provisioningGroupOnSystemPrimerAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystemPrimer(true) + +type provisioningGroupOnSystemPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` +} + +var provisioningGroupOnSystemTypesAttrTypes = objectAttrsTypeProvisioningGroupOnSystemTypes(false) +var provisioningGroupOnSystemTypesAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystemTypes(true) + +type provisioningGroupOnSystemTypesData struct { + Types types.List `tfsdk:"types"` +} + +var provisioningGroupOnSystem_additionalObjectsAttrTypes = objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(false) +var provisioningGroupOnSystem_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(true) + +type provisioningGroupOnSystem_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Provgroups types.Object `tfsdk:"provgroups"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` +} + +var provisioningGroupProvisioningStatusAttrTypes = objectAttrsTypeProvisioningGroupProvisioningStatus(false) +var provisioningGroupProvisioningStatusAttrTypesRecurse = objectAttrsTypeProvisioningGroupProvisioningStatus(true) + +type provisioningGroupProvisioningStatusData struct { + Folder types.Object `tfsdk:"folder"` + Group types.Object `tfsdk:"group"` + ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` + StatusReport types.Object `tfsdk:"status_report"` + VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` +} + +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypes = objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(false) +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRecurse = objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(true) + +type provisioningGroupProvisioningStatus_provisioningDurationData struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var provisioningOwnedGroupOnSystemsWrapperAttrTypes = objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(false) +var provisioningOwnedGroupOnSystemsWrapperAttrTypesRecurse = objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(true) + +type provisioningOwnedGroupOnSystemsWrapperData struct { + Items types.List `tfsdk:"items"` + UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` +} + +var provisioningProvisionNumberSequenceAttrTypes = objectAttrsTypeProvisioningProvisionNumberSequence(false) +var provisioningProvisionNumberSequenceAttrTypesRecurse = objectAttrsTypeProvisioningProvisionNumberSequence(true) + +type provisioningProvisionNumberSequenceData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + NextUID types.Int64 `tfsdk:"next_u_i_d"` +} + +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionNumberSequenceLinkableWrapper(false) +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionNumberSequenceLinkableWrapper(true) + +type provisioningProvisionNumberSequenceLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionNumberSequence_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(false) +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(true) + +type provisioningProvisionNumberSequence_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Systems types.Object `tfsdk:"systems"` +} + +var provisioningProvisionedADAttrTypes = objectAttrsTypeProvisioningProvisionedAD(false) +var provisioningProvisionedADAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAD(true) + +type provisioningProvisionedADData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_d_n"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` +} + +var provisioningProvisionedAccountAttrTypes = objectAttrsTypeProvisioningProvisionedAccount(false) +var provisioningProvisionedAccountAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAccount(true) + +type provisioningProvisionedAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Uid types.Int64 `tfsdk:"uid"` +} + +var provisioningProvisionedAccountLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedAccountLinkableWrapper(false) +var provisioningProvisionedAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAccountLinkableWrapper(true) + +type provisioningProvisionedAccountLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedAccount_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(false) +var provisioningProvisionedAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(true) + +type provisioningProvisionedAccount_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedAzureOIDCDirectoryAttrTypes = objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(false) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(true) + +type provisioningProvisionedAzureOIDCDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypes = objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(false) +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(true) + +type provisioningProvisionedAzureSyncLDAPDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureTenantAttrTypes = objectAttrsTypeProvisioningProvisionedAzureTenant(false) +var provisioningProvisionedAzureTenantAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAzureTenant(true) + +type provisioningProvisionedAzureTenantData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedInternalLDAPAttrTypes = objectAttrsTypeProvisioningProvisionedInternalLDAP(false) +var provisioningProvisionedInternalLDAPAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedInternalLDAP(true) + +type provisioningProvisionedInternalLDAPData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Client types.Object `tfsdk:"client"` +} + +var provisioningProvisionedLDAPAttrTypes = objectAttrsTypeProvisioningProvisionedLDAP(false) +var provisioningProvisionedLDAPAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedLDAP(true) + +type provisioningProvisionedLDAPData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_d_n"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` +} + +var provisioningProvisionedLDAPDirectoryAttrTypes = objectAttrsTypeProvisioningProvisionedLDAPDirectory(false) +var provisioningProvisionedLDAPDirectoryAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedLDAPDirectory(true) + +type provisioningProvisionedLDAPDirectoryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` +} + +var provisioningProvisionedSystemAttrTypes = objectAttrsTypeProvisioningProvisionedSystem(false) +var provisioningProvisionedSystemAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystem(true) + +type provisioningProvisionedSystemData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` +} + +var provisioningProvisionedSystemLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(false) +var provisioningProvisionedSystemLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(true) + +type provisioningProvisionedSystemLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemPrimerAttrTypes = objectAttrsTypeProvisioningProvisionedSystemPrimer(false) +var provisioningProvisionedSystemPrimerAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemPrimer(true) + +type provisioningProvisionedSystemPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` +} + +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(false) +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(true) + +type provisioningProvisionedSystemPrimerLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLogAttrTypes = objectAttrsTypeProvisioningProvisionedSystemSyncLog(false) +var provisioningProvisionedSystemSyncLogAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemSyncLog(true) + +type provisioningProvisionedSystemSyncLogData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedSystemSyncLogLinkableWrapper(false) +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemSyncLogLinkableWrapper(true) + +type provisioningProvisionedSystemSyncLogLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(false) +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(true) + +type provisioningProvisionedSystemSyncLog_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedSystem_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false) +var provisioningProvisionedSystem_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(true) + +type provisioningProvisionedSystem_additionalObjectsData struct { + Account types.Object `tfsdk:"account"` + Audit types.Object `tfsdk:"audit"` + IssuedPermissions types.Object `tfsdk:"issued_permissions"` + LoginName types.String `tfsdk:"login_name"` + ManagementPermissions types.Object `tfsdk:"management_permissions"` + Markers types.Object `tfsdk:"markers"` + Statistics types.Object `tfsdk:"statistics"` + SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` +} + +var provisioningProvisioningManagementPermissionsAttrTypes = objectAttrsTypeProvisioningProvisioningManagementPermissions(false) +var provisioningProvisioningManagementPermissionsAttrTypesRecurse = objectAttrsTypeProvisioningProvisioningManagementPermissions(true) + +type provisioningProvisioningManagementPermissionsData struct { + CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` + CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` + ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` +} + +var provisioningProvisioningStatusAttrTypes = objectAttrsTypeProvisioningProvisioningStatus(false) +var provisioningProvisioningStatusAttrTypesRecurse = objectAttrsTypeProvisioningProvisioningStatus(true) + +type provisioningProvisioningStatusData struct { + Groups types.List `tfsdk:"groups"` + IgnoreErrors types.Bool `tfsdk:"ignore_errors"` + RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` +} + +var provisioningTokenPasswordAttrTypes = objectAttrsTypeProvisioningTokenPassword(false) +var provisioningTokenPasswordAttrTypesRecurse = objectAttrsTypeProvisioningTokenPassword(true) + +type provisioningTokenPasswordData struct { + Password types.String `tfsdk:"password"` +} + +var requestAbstractApplicationModificationRequestAttrTypes = objectAttrsTypeRequestAbstractApplicationModificationRequest(false) +var requestAbstractApplicationModificationRequestAttrTypesRecurse = objectAttrsTypeRequestAbstractApplicationModificationRequest(true) + +type requestAbstractApplicationModificationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestAbstractOrganizationalUnitModificationRequestAttrTypes = objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(false) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesRecurse = objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(true) + +type requestAbstractOrganizationalUnitModificationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` +} + +var requestAbstractProvisionedSystemModificationRequestAttrTypes = objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(false) +var requestAbstractProvisionedSystemModificationRequestAttrTypesRecurse = objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(true) + +type requestAbstractProvisionedSystemModificationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestAcceptGrantAccessRequestParametersAttrTypes = objectAttrsTypeRequestAcceptGrantAccessRequestParameters(false) +var requestAcceptGrantAccessRequestParametersAttrTypesRecurse = objectAttrsTypeRequestAcceptGrantAccessRequestParameters(true) + +type requestAcceptGrantAccessRequestParametersData struct { + AccessDuration types.Object `tfsdk:"access_duration"` +} + +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypes = objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(false) +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRecurse = objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(true) + +type requestAcceptGrantAccessRequestParameters_accessDurationData struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var requestAcceptJoinGroupRequestParametersAttrTypes = objectAttrsTypeRequestAcceptJoinGroupRequestParameters(false) +var requestAcceptJoinGroupRequestParametersAttrTypesRecurse = objectAttrsTypeRequestAcceptJoinGroupRequestParameters(true) + +type requestAcceptJoinGroupRequestParametersData struct { + EndDate types.String `tfsdk:"end_date"` + MakeManager types.Bool `tfsdk:"make_manager"` +} + +var requestAcceptModificationRequestParametersAttrTypes = objectAttrsTypeRequestAcceptModificationRequestParameters(false) +var requestAcceptModificationRequestParametersAttrTypesRecurse = objectAttrsTypeRequestAcceptModificationRequestParameters(true) + +type requestAcceptModificationRequestParametersData struct { +} + +var requestAddGroupAdminRequestAttrTypes = objectAttrsTypeRequestAddGroupAdminRequest(false) +var requestAddGroupAdminRequestAttrTypesRecurse = objectAttrsTypeRequestAddGroupAdminRequest(true) + +type requestAddGroupAdminRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewAdminUUID types.String `tfsdk:"new_admin_uuid"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var requestCreateGroupOnSystemRequestAttrTypes = objectAttrsTypeRequestCreateGroupOnSystemRequest(false) +var requestCreateGroupOnSystemRequestAttrTypesRecurse = objectAttrsTypeRequestCreateGroupOnSystemRequest(true) + +type requestCreateGroupOnSystemRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` +} + +var requestCreateGroupRequestAttrTypes = objectAttrsTypeRequestCreateGroupRequest(false) +var requestCreateGroupRequestAttrTypesRecurse = objectAttrsTypeRequestCreateGroupRequest(true) + +type requestCreateGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestCreateServiceAccountRequestAttrTypes = objectAttrsTypeRequestCreateServiceAccountRequest(false) +var requestCreateServiceAccountRequestAttrTypesRecurse = objectAttrsTypeRequestCreateServiceAccountRequest(true) + +type requestCreateServiceAccountRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` + Username types.String `tfsdk:"username"` +} + +var requestDisable2FARequestAttrTypes = objectAttrsTypeRequestDisable2FARequest(false) +var requestDisable2FARequestAttrTypesRecurse = objectAttrsTypeRequestDisable2FARequest(true) + +type requestDisable2FARequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Subject types.String `tfsdk:"subject"` +} + +var requestEnableTechnicalAdministrationRequestAttrTypes = objectAttrsTypeRequestEnableTechnicalAdministrationRequest(false) +var requestEnableTechnicalAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestEnableTechnicalAdministrationRequest(true) + +type requestEnableTechnicalAdministrationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestExtendAccessRequestAttrTypes = objectAttrsTypeRequestExtendAccessRequest(false) +var requestExtendAccessRequestAttrTypesRecurse = objectAttrsTypeRequestExtendAccessRequest(true) + +type requestExtendAccessRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ExtendUntil types.String `tfsdk:"extend_until"` +} + +var requestGrantAccessRequestAttrTypes = objectAttrsTypeRequestGrantAccessRequest(false) +var requestGrantAccessRequestAttrTypesRecurse = objectAttrsTypeRequestGrantAccessRequest(true) + +type requestGrantAccessRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestGrantApplicationRequestAttrTypes = objectAttrsTypeRequestGrantApplicationRequest(false) +var requestGrantApplicationRequestAttrTypesRecurse = objectAttrsTypeRequestGrantApplicationRequest(true) + +type requestGrantApplicationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestGrantClientPermissionRequestAttrTypes = objectAttrsTypeRequestGrantClientPermissionRequest(false) +var requestGrantClientPermissionRequestAttrTypesRecurse = objectAttrsTypeRequestGrantClientPermissionRequest(true) + +type requestGrantClientPermissionRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + PermissionType types.String `tfsdk:"permission_type"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestGrantGroupOnSystemRequestAttrTypes = objectAttrsTypeRequestGrantGroupOnSystemRequest(false) +var requestGrantGroupOnSystemRequestAttrTypesRecurse = objectAttrsTypeRequestGrantGroupOnSystemRequest(true) + +type requestGrantGroupOnSystemRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantGroupOnSystemRequestRequestAttrTypes = objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(false) +var requestGrantGroupOnSystemRequestRequestAttrTypesRecurse = objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(true) + +type requestGrantGroupOnSystemRequestRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantServiceAccountGroupRequestAttrTypes = objectAttrsTypeRequestGrantServiceAccountGroupRequest(false) +var requestGrantServiceAccountGroupRequestAttrTypesRecurse = objectAttrsTypeRequestGrantServiceAccountGroupRequest(true) + +type requestGrantServiceAccountGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` +} + +var requestJoinGroupRequestAttrTypes = objectAttrsTypeRequestJoinGroupRequest(false) +var requestJoinGroupRequestAttrTypesRecurse = objectAttrsTypeRequestJoinGroupRequest(true) + +type requestJoinGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestJoinVaultRequestAttrTypes = objectAttrsTypeRequestJoinVaultRequest(false) +var requestJoinVaultRequestAttrTypesRecurse = objectAttrsTypeRequestJoinVaultRequest(true) + +type requestJoinVaultRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestAttrTypes = objectAttrsTypeRequestModificationRequest(false) +var requestModificationRequestAttrTypesRecurse = objectAttrsTypeRequestModificationRequest(true) + +type requestModificationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestLinkableWrapperAttrTypes = objectAttrsTypeRequestModificationRequestLinkableWrapper(false) +var requestModificationRequestLinkableWrapperAttrTypesRecurse = objectAttrsTypeRequestModificationRequestLinkableWrapper(true) + +type requestModificationRequestLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var requestModificationRequest_additionalObjectsAttrTypes = objectAttrsTypeRequestModificationRequest_additionalObjects(false) +var requestModificationRequest_additionalObjectsAttrTypesRecurse = objectAttrsTypeRequestModificationRequest_additionalObjects(true) + +type requestModificationRequest_additionalObjectsData struct { + AcceptParams types.Object `tfsdk:"accept_params"` + Audit types.Object `tfsdk:"audit"` + ResetStatus types.Object `tfsdk:"reset_status"` +} + +var requestPasswordResetRequestAttrTypes = objectAttrsTypeRequestPasswordResetRequest(false) +var requestPasswordResetRequestAttrTypesRecurse = objectAttrsTypeRequestPasswordResetRequest(true) + +type requestPasswordResetRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` + NewVaultPassword types.String `tfsdk:"new_vault_password"` + UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` +} + +var requestPasswordResetRequestStatusAttrTypes = objectAttrsTypeRequestPasswordResetRequestStatus(false) +var requestPasswordResetRequestStatusAttrTypesRecurse = objectAttrsTypeRequestPasswordResetRequestStatus(true) + +type requestPasswordResetRequestStatusData struct { + CooldownEnd types.String `tfsdk:"cooldown_end"` + Managers types.List `tfsdk:"managers"` + NrAccepted types.Int64 `tfsdk:"nr_accepted"` + ResetViaMail types.String `tfsdk:"reset_via_mail"` +} + +var requestRemoveGroupRequestAttrTypes = objectAttrsTypeRequestRemoveGroupRequest(false) +var requestRemoveGroupRequestAttrTypesRecurse = objectAttrsTypeRequestRemoveGroupRequest(true) + +type requestRemoveGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestRemoveOrganizationalUnitRequestAttrTypes = objectAttrsTypeRequestRemoveOrganizationalUnitRequest(false) +var requestRemoveOrganizationalUnitRequestAttrTypesRecurse = objectAttrsTypeRequestRemoveOrganizationalUnitRequest(true) + +type requestRemoveOrganizationalUnitRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` +} + +var requestRemoveProvisionedSystemRequestAttrTypes = objectAttrsTypeRequestRemoveProvisionedSystemRequest(false) +var requestRemoveProvisionedSystemRequestAttrTypesRecurse = objectAttrsTypeRequestRemoveProvisionedSystemRequest(true) + +type requestRemoveProvisionedSystemRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` + SystemName types.String `tfsdk:"system_name"` +} + +var requestReviewAuditRequestAttrTypes = objectAttrsTypeRequestReviewAuditRequest(false) +var requestReviewAuditRequestAttrTypesRecurse = objectAttrsTypeRequestReviewAuditRequest(true) + +type requestReviewAuditRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestRevokeAdminRequestAttrTypes = objectAttrsTypeRequestRevokeAdminRequest(false) +var requestRevokeAdminRequestAttrTypesRecurse = objectAttrsTypeRequestRevokeAdminRequest(true) + +type requestRevokeAdminRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AdminUUID types.String `tfsdk:"admin_uuid"` +} + +var requestSetupAuthorizingGroupRequestAttrTypes = objectAttrsTypeRequestSetupAuthorizingGroupRequest(false) +var requestSetupAuthorizingGroupRequestAttrTypesRecurse = objectAttrsTypeRequestSetupAuthorizingGroupRequest(true) + +type requestSetupAuthorizingGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` +} + +var requestSetupNestedGroupRequestAttrTypes = objectAttrsTypeRequestSetupNestedGroupRequest(false) +var requestSetupNestedGroupRequestAttrTypesRecurse = objectAttrsTypeRequestSetupNestedGroupRequest(true) + +type requestSetupNestedGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` +} + +var requestTransferApplicationAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferApplicationAdministrationRequest(false) +var requestTransferApplicationAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferApplicationAdministrationRequest(true) + +type requestTransferApplicationAdministrationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestTransferApplicationOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferApplicationOwnershipRequest(false) +var requestTransferApplicationOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferApplicationOwnershipRequest(true) + +type requestTransferApplicationOwnershipRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestTransferAuditorGroupRequestAttrTypes = objectAttrsTypeRequestTransferAuditorGroupRequest(false) +var requestTransferAuditorGroupRequestAttrTypesRecurse = objectAttrsTypeRequestTransferAuditorGroupRequest(true) + +type requestTransferAuditorGroupRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestTransferGroupOnSystemOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(false) +var requestTransferGroupOnSystemOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(true) + +type requestTransferGroupOnSystemOwnershipRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestTransferOrganizationalUnitOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferOrganizationalUnitOwnershipRequest(false) +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferOrganizationalUnitOwnershipRequest(true) + +type requestTransferOrganizationalUnitOwnershipRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` +} + +var requestTransferProvisionedSystemAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(false) +var requestTransferProvisionedSystemAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(true) + +type requestTransferProvisionedSystemAdministrationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferProvisionedSystemContentAdministrationRequest(false) +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferProvisionedSystemContentAdministrationRequest(true) + +type requestTransferProvisionedSystemContentAdministrationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestTransferProvisionedSystemOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(false) +var requestTransferProvisionedSystemOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(true) + +type requestTransferProvisionedSystemOwnershipRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestTransferServiceAccountAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferServiceAccountAdministrationRequest(false) +var requestTransferServiceAccountAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferServiceAccountAdministrationRequest(true) + +type requestTransferServiceAccountAdministrationRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` +} + +var requestUpdateGroupMembershipRequestAttrTypes = objectAttrsTypeRequestUpdateGroupMembershipRequest(false) +var requestUpdateGroupMembershipRequestAttrTypesRecurse = objectAttrsTypeRequestUpdateGroupMembershipRequest(true) + +type requestUpdateGroupMembershipRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` +} + +var requestVerifyInternalAccountRequestAttrTypes = objectAttrsTypeRequestVerifyInternalAccountRequest(false) +var requestVerifyInternalAccountRequestAttrTypesRecurse = objectAttrsTypeRequestVerifyInternalAccountRequest(true) + +type requestVerifyInternalAccountRequestData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + InternalAccountName types.String `tfsdk:"internal_account_name"` +} + +var serviceaccountServiceAccountAttrTypes = objectAttrsTypeServiceaccountServiceAccount(false) +var serviceaccountServiceAccountAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccount(true) + +type serviceaccountServiceAccountData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + SystemUUID types.String `tfsdk:"system_uuid"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Description types.String `tfsdk:"description"` + PasswordUUID types.String `tfsdk:"password_uuid"` + PasswordRotation types.String `tfsdk:"password_rotation"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` +} + +var serviceaccountServiceAccountGroupAttrTypes = objectAttrsTypeServiceaccountServiceAccountGroup(false) +var serviceaccountServiceAccountGroupAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountGroup(true) + +type serviceaccountServiceAccountGroupData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypes = objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(false) +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(true) + +type serviceaccountServiceAccountGroupLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypes = objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(false) +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(true) + +type serviceaccountServiceAccountGroup_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var serviceaccountServiceAccountLinkableWrapperAttrTypes = objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(false) +var serviceaccountServiceAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(true) + +type serviceaccountServiceAccountLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountPrimerAttrTypes = objectAttrsTypeServiceaccountServiceAccountPrimer(false) +var serviceaccountServiceAccountPrimerAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountPrimer(true) + +type serviceaccountServiceAccountPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + SystemUUID types.String `tfsdk:"system_uuid"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` +} + +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypes = objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(false) +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(true) + +type serviceaccountServiceAccountPrimerLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountStatusAttrTypes = objectAttrsTypeServiceaccountServiceAccountStatus(false) +var serviceaccountServiceAccountStatusAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountStatus(true) + +type serviceaccountServiceAccountStatusData struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` +} + +var serviceaccountServiceAccount_additionalObjectsAttrTypes = objectAttrsTypeServiceaccountServiceAccount_additionalObjects(false) +var serviceaccountServiceAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccount_additionalObjects(true) + +type serviceaccountServiceAccount_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` +} + +var serviceaccountServiceAccountsAuditStatsAttrTypes = objectAttrsTypeServiceaccountServiceAccountsAuditStats(false) +var serviceaccountServiceAccountsAuditStatsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountsAuditStats(true) + +type serviceaccountServiceAccountsAuditStatsData struct { + DisabledCount types.Int64 `tfsdk:"disabled_count"` + PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` + SystemStats types.Object `tfsdk:"system_stats"` +} + +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypes = objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) + +type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsData struct { +} + +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypes = objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(false) +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(true) + +type serviceaccountServiceAccountsAuditStats_systemStatsData struct { +} + +var simpleStringValueAttrTypes = objectAttrsTypeSimpleStringValue(false) +var simpleStringValueAttrTypesRecurse = objectAttrsTypeSimpleStringValue(true) + +type simpleStringValueData struct { + Value types.String `tfsdk:"value"` +} + +var simpleVersionInfoAttrTypes = objectAttrsTypeSimpleVersionInfo(false) +var simpleVersionInfoAttrTypesRecurse = objectAttrsTypeSimpleVersionInfo(true) + +type simpleVersionInfoData struct { + ContractVersions types.List `tfsdk:"contract_versions"` + KeyHubVersion types.String `tfsdk:"key_hub_version"` +} + +var vaultDeletedVaultHolderAttrTypes = objectAttrsTypeVaultDeletedVaultHolder(false) +var vaultDeletedVaultHolderAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultHolder(true) + +type vaultDeletedVaultHolderData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + RecordCount types.Int64 `tfsdk:"record_count"` + VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` +} + +var vaultDeletedVaultHolderLinkableWrapperAttrTypes = objectAttrsTypeVaultDeletedVaultHolderLinkableWrapper(false) +var vaultDeletedVaultHolderLinkableWrapperAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultHolderLinkableWrapper(true) + +type vaultDeletedVaultHolderLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var vaultDeletedVaultHolder_additionalObjectsAttrTypes = objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(false) +var vaultDeletedVaultHolder_additionalObjectsAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(true) + +type vaultDeletedVaultHolder_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var vaultDeletedVaultRecoveryAttrTypes = objectAttrsTypeVaultDeletedVaultRecovery(false) +var vaultDeletedVaultRecoveryAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultRecovery(true) + +type vaultDeletedVaultRecoveryData struct { + Prefix types.String `tfsdk:"prefix"` + PrivateKey types.String `tfsdk:"private_key"` + TargetGroupUUID types.String `tfsdk:"target_group_uuid"` +} + +var vaultMoveVaultRecordAttrTypes = objectAttrsTypeVaultMoveVaultRecord(false) +var vaultMoveVaultRecordAttrTypesRecurse = objectAttrsTypeVaultMoveVaultRecord(true) + +type vaultMoveVaultRecordData struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Action types.String `tfsdk:"action"` + GroupUUID types.String `tfsdk:"group_uuid"` + ShareDuration types.Object `tfsdk:"share_duration"` +} + +var vaultMoveVaultRecord_shareDurationAttrTypes = objectAttrsTypeVaultMoveVaultRecord_shareDuration(false) +var vaultMoveVaultRecord_shareDurationAttrTypesRecurse = objectAttrsTypeVaultMoveVaultRecord_shareDuration(true) + +type vaultMoveVaultRecord_shareDurationData struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var vaultVaultAttrTypes = objectAttrsTypeVaultVault(false) +var vaultVaultAttrTypesRecurse = objectAttrsTypeVaultVault(true) + +type vaultVaultData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccessAvailable types.Bool `tfsdk:"access_available"` + Name types.String `tfsdk:"name"` + Records types.List `tfsdk:"records"` +} + +var vaultVaultHolderAttrTypes = objectAttrsTypeVaultVaultHolder(false) +var vaultVaultHolderAttrTypesRecurse = objectAttrsTypeVaultVaultHolder(true) + +type vaultVaultHolderData struct { +} + +var vaultVaultRecordAttrTypes = objectAttrsTypeVaultVaultRecord(false) +var vaultVaultRecordAttrTypesRecurse = objectAttrsTypeVaultVaultRecord(true) + +type vaultVaultRecordData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + +var vaultVaultRecordLinkableWrapperAttrTypes = objectAttrsTypeVaultVaultRecordLinkableWrapper(false) +var vaultVaultRecordLinkableWrapperAttrTypesRecurse = objectAttrsTypeVaultVaultRecordLinkableWrapper(true) + +type vaultVaultRecordLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordPrimerAttrTypes = objectAttrsTypeVaultVaultRecordPrimer(false) +var vaultVaultRecordPrimerAttrTypesRecurse = objectAttrsTypeVaultVaultRecordPrimer(true) + +type vaultVaultRecordPrimerData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` +} + +var vaultVaultRecordPrimerLinkableWrapperAttrTypes = objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(false) +var vaultVaultRecordPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(true) + +type vaultVaultRecordPrimerLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordSecretsAttrTypes = objectAttrsTypeVaultVaultRecordSecrets(false) +var vaultVaultRecordSecretsAttrTypesRecurse = objectAttrsTypeVaultVaultRecordSecrets(true) + +type vaultVaultRecordSecretsData struct { + Comment types.String `tfsdk:"comment"` + File types.String `tfsdk:"file"` + Password types.String `tfsdk:"password"` + Totp types.String `tfsdk:"totp"` + WriteTotp types.Bool `tfsdk:"write_totp"` +} + +var vaultVaultRecordShareAttrTypes = objectAttrsTypeVaultVaultRecordShare(false) +var vaultVaultRecordShareAttrTypesRecurse = objectAttrsTypeVaultVaultRecordShare(true) + +type vaultVaultRecordShareData struct { + Name types.String `tfsdk:"name"` + VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` +} + +var vaultVaultRecordShareSummaryAttrTypes = objectAttrsTypeVaultVaultRecordShareSummary(false) +var vaultVaultRecordShareSummaryAttrTypesRecurse = objectAttrsTypeVaultVaultRecordShareSummary(true) + +type vaultVaultRecordShareSummaryData struct { + Children types.List `tfsdk:"children"` + Parent types.Object `tfsdk:"parent"` +} + +var vaultVaultRecord_additionalObjectsAttrTypes = objectAttrsTypeVaultVaultRecord_additionalObjects(false) +var vaultVaultRecord_additionalObjectsAttrTypesRecurse = objectAttrsTypeVaultVaultRecord_additionalObjects(true) + +type vaultVaultRecord_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + ParentUUID types.String `tfsdk:"parent_uuid"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` +} + +var vaultVaultRecoveryAttrTypes = objectAttrsTypeVaultVaultRecovery(false) +var vaultVaultRecoveryAttrTypesRecurse = objectAttrsTypeVaultVaultRecovery(true) + +type vaultVaultRecoveryData struct { + AccountUUID types.String `tfsdk:"account_uuid"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var vaultVaultUnlockAttrTypes = objectAttrsTypeVaultVaultUnlock(false) +var vaultVaultUnlockAttrTypesRecurse = objectAttrsTypeVaultVaultUnlock(true) + +type vaultVaultUnlockData struct { + Password types.String `tfsdk:"password"` +} + +var vaultVaultUnlockResponseAttrTypes = objectAttrsTypeVaultVaultUnlockResponse(false) +var vaultVaultUnlockResponseAttrTypesRecurse = objectAttrsTypeVaultVaultUnlockResponse(true) + +type vaultVaultUnlockResponseData struct { + ExpiresAt types.String `tfsdk:"expires_at"` + SessionPassword types.String `tfsdk:"session_password"` +} + +var webhookWebhookAttrTypes = objectAttrsTypeWebhookWebhook(false) +var webhookWebhookAttrTypesRecurse = objectAttrsTypeWebhookWebhook(true) + +type webhookWebhookData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AllTypes types.Bool `tfsdk:"all_types"` + AuthenticationScheme types.String `tfsdk:"authentication_scheme"` + BasicAuthPassword types.String `tfsdk:"basic_auth_password"` + BasicAuthUsername types.String `tfsdk:"basic_auth_username"` + BearerToken types.String `tfsdk:"bearer_token"` + ClientUUID types.String `tfsdk:"client_uuid"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + CustomHeaderName types.String `tfsdk:"custom_header_name"` + CustomHeaderValue types.String `tfsdk:"custom_header_value"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + Name types.String `tfsdk:"name"` + SystemUUID types.String `tfsdk:"system_uuid"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + UUID types.String `tfsdk:"uuid"` + VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` +} + +var webhookWebhookDeliveryAttrTypes = objectAttrsTypeWebhookWebhookDelivery(false) +var webhookWebhookDeliveryAttrTypesRecurse = objectAttrsTypeWebhookWebhookDelivery(true) + +type webhookWebhookDeliveryData struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + +var webhookWebhookDeliveryLinkableWrapperAttrTypes = objectAttrsTypeWebhookWebhookDeliveryLinkableWrapper(false) +var webhookWebhookDeliveryLinkableWrapperAttrTypesRecurse = objectAttrsTypeWebhookWebhookDeliveryLinkableWrapper(true) + +type webhookWebhookDeliveryLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookDelivery_additionalObjectsAttrTypes = objectAttrsTypeWebhookWebhookDelivery_additionalObjects(false) +var webhookWebhookDelivery_additionalObjectsAttrTypesRecurse = objectAttrsTypeWebhookWebhookDelivery_additionalObjects(true) + +type webhookWebhookDelivery_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +var webhookWebhookLinkableWrapperAttrTypes = objectAttrsTypeWebhookWebhookLinkableWrapper(false) +var webhookWebhookLinkableWrapperAttrTypesRecurse = objectAttrsTypeWebhookWebhookLinkableWrapper(true) + +type webhookWebhookLinkableWrapperData struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookNameUuidAttrTypes = objectAttrsTypeWebhookWebhookNameUuid(false) +var webhookWebhookNameUuidAttrTypesRecurse = objectAttrsTypeWebhookWebhookNameUuid(true) + +type webhookWebhookNameUuidData struct { + Name types.String `tfsdk:"name"` + Object types.Object `tfsdk:"object"` + UUID types.String `tfsdk:"uuid"` +} + +var webhookWebhookPushAttrTypes = objectAttrsTypeWebhookWebhookPush(false) +var webhookWebhookPushAttrTypesRecurse = objectAttrsTypeWebhookWebhookPush(true) + +type webhookWebhookPushData struct { + AccountUUID types.String `tfsdk:"account_uuid"` + ByPartyUUID types.String `tfsdk:"by_party_uuid"` + CertificateUUID types.String `tfsdk:"certificate_uuid"` + ClientUUID types.String `tfsdk:"client_uuid"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + Group2UUID types.String `tfsdk:"group2_uuid"` + GroupClassificationUUID types.String `tfsdk:"group_classification_uuid"` + ModificationRequestUUID types.String `tfsdk:"modification_request_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + SecurityLevel types.String `tfsdk:"security_level"` + Seq types.Int64 `tfsdk:"seq"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` + Timestamp types.String `tfsdk:"timestamp"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + WebhookUUID types.String `tfsdk:"webhook_uuid"` + WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` +} + +var webhookWebhook_additionalObjectsAttrTypes = objectAttrsTypeWebhookWebhook_additionalObjects(false) +var webhookWebhook_additionalObjectsAttrTypesRecurse = objectAttrsTypeWebhookWebhook_additionalObjects(true) + +type webhookWebhook_additionalObjectsData struct { + Audit types.Object `tfsdk:"audit"` +} + +func objectAttrsTypeAuditInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["last_modified_by"] = types.StringType + return objectAttrs +} +func objectAttrsTypeErrorReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["application_error"] = types.StringType + objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeErrorReport_applicationErrorParameters(recurse)} + objectAttrs["code"] = types.Int64Type + objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} + objectAttrs["exception"] = types.StringType + objectAttrs["message"] = types.StringType + objectAttrs["reason"] = types.StringType + objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeGeneratedSecret(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["generated_secret"] = types.StringType + objectAttrs["old_secret"] = types.StringType + objectAttrs["regenerate"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + return objectAttrs +} +func objectAttrsTypeNonLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeRestLink(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["href"] = types.StringType + objectAttrs["id"] = types.Int64Type + objectAttrs["rel"] = types.StringType + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} +func objectAttrsTypeSegmentCount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["count"] = types.Int64Type + objectAttrs["name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuditAuditRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditAuditRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["date_time"] = types.StringType + objectAttrs["on_account"] = types.StringType + objectAttrs["on_certificate"] = types.StringType + objectAttrs["on_client"] = types.StringType + objectAttrs["on_directory"] = types.StringType + objectAttrs["on_group"] = types.StringType + objectAttrs["on_group2"] = types.StringType + objectAttrs["on_group_classification"] = types.StringType + objectAttrs["on_organizational_unit"] = types.StringType + objectAttrs["on_service_account"] = types.StringType + objectAttrs["on_system"] = types.StringType + objectAttrs["on_vault_record"] = types.StringType + objectAttrs["on_webhook"] = types.StringType + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["performed_by"] = types.StringType + objectAttrs["security_level"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuditAuditRecord(recurse)}} + return objectAttrs +} +func objectAttrsTypeAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeAuthAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["action"] = types.StringType + objectAttrs["exclusive_selection"] = types.BoolType + objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} + return objectAttrs +} +func objectAttrsTypeAuthAccountChangeLocale(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["locale"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount(recurse)}} + return objectAttrs +} +func objectAttrsTypeAuthAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["pending2_f_a_recovery_request"] = types.BoolType + objectAttrs["pending_password_recovery_request"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeAuthAccountSettings(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["default_organizational_unit_uuid"] = types.StringType + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["in_groups"] = types.BoolType + objectAttrs["in_multiple_organizational_units"] = types.BoolType + objectAttrs["key_hub_admin"] = types.BoolType + objectAttrs["multiple_organizational_units_exist"] = types.BoolType + objectAttrs["password_mode"] = types.StringType + objectAttrs["ssh_public_key"] = types.StringType + objectAttrs["two_factor_authentication"] = types.StringType + objectAttrs["use_token_password"] = types.BoolType + objectAttrs["vault_status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["decline_recovery_requests"] = types.BoolType + objectAttrs["license_role"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["two_factor_authentication_enabled"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountRecoveryStatus(recurse)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountSettings(recurse)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthStoredAccountAttributes(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + return objectAttrs +} +func objectAttrsTypeAuthAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountsAuditStats_directoryStats(recurse)} + objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountsAuditStats_validityStats(recurse)} + return objectAttrs +} +func objectAttrsTypeAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthInternalAccount(recurse)}} + return objectAttrs +} +func objectAttrsTypeAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthInternalAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["reason"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthMoveInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryInternalDirectory(recurse)} + return objectAttrs +} +func objectAttrsTypeAuthPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["full"] = types.StringType + objectAttrs["instances"] = types.ListType{ElemType: types.StringType} + objectAttrs["operations"] = types.ListType{ElemType: types.StringType} + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} +func objectAttrsTypeAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthStoredAccountAttribute(recurse)}} + return objectAttrs +} +func objectAttrsTypeCertificateCertificate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate(recurse)}} + return objectAttrs +} +func objectAttrsTypeCertificateCertificatePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeClientClientApplication(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication(recurse)}} + return objectAttrs +} +func objectAttrsTypeClientClientApplicationPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeGeneratedSecret(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(recurse)} + objectAttrs["vault_record_count"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeClientLdapClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["bind_dn"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret_uuid"] = types.StringType + objectAttrs["used_for_provisioning"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeClientOAuth2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2Client_attributes(false)} + objectAttrs["callback_u_r_i"] = types.StringType + objectAttrs["confidential"] = types.BoolType + objectAttrs["debug_mode"] = types.BoolType + objectAttrs["id_token_claims"] = types.StringType + objectAttrs["initiate_login_u_r_i"] = types.StringType + objectAttrs["resource_u_r_is"] = types.StringType + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret_uuid"] = types.StringType + objectAttrs["show_landing_page"] = types.BoolType + objectAttrs["use_client_credentials"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["for_group_uuid"] = types.StringType + objectAttrs["for_system_uuid"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} +func objectAttrsTypeClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission(recurse)}} + return objectAttrs +} +func objectAttrsTypeClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["for_group_uuid"] = types.StringType + objectAttrs["for_system_uuid"] = types.StringType + objectAttrs["value"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2Client(false)} + return objectAttrs +} +func objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClient(recurse)}} + return objectAttrs +} +func objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeClientSaml2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeClientSaml2Client_attributes(false)} + objectAttrs["metadata"] = types.StringType + objectAttrs["metadata_url"] = types.StringType + objectAttrs["subject_format"] = types.StringType + return objectAttrs +} +func objectAttrsTypeClientSaml2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory(recurse)}} + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.Int64Type + objectAttrs["reason"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectoryStatusReport(recurse)} + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectorySummary(recurse)}} + return objectAttrs +} +func objectAttrsTypeDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarkers(recurse)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectoryStatusReport(recurse)} + return objectAttrs +} +func objectAttrsTypeDirectoryInternalDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["owner_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["base_d_n"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["dialect"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["password_recovery"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["search_bind_d_n"] = types.StringType + objectAttrs["search_bind_password"] = types.StringType + objectAttrs["search_filter"] = types.StringType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["acr_values"] = types.StringType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["enforces2fa"] = types.BoolType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["issuer"] = types.StringType + objectAttrs["logout_url"] = types.StringType + objectAttrs["send_login_hint"] = types.BoolType + objectAttrs["vendor_escaped"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroup(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}} + objectAttrs["group_count"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeGroupGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["application_administration"] = types.BoolType + objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditConfig(false)} + objectAttrs["audit_requested"] = types.BoolType + objectAttrs["auditor"] = types.BoolType + objectAttrs["authorizing_group_auditing_uuid"] = types.StringType + objectAttrs["authorizing_group_delegation_uuid"] = types.StringType + objectAttrs["authorizing_group_membership_uuid"] = types.StringType + objectAttrs["authorizing_group_provisioning_uuid"] = types.StringType + objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} + objectAttrs["classification_uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["extended_access"] = types.StringType + objectAttrs["hide_audit_trail"] = types.BoolType + objectAttrs["nested_under_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["private_group"] = types.BoolType + objectAttrs["record_trail"] = types.BoolType + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["single_managed"] = types.BoolType + objectAttrs["vault_recovery"] = types.StringType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroupAccountNesting(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["connected"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeGroupGroupAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)} + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupGroupAdminMail(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["body"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupAuditAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["account_valid"] = types.BoolType + objectAttrs["action"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["display_name"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["rights"] = types.StringType + objectAttrs["username"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupAuditConfig(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["months"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAudit(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit_due_date"] = types.StringType + objectAttrs["last_audit_date"] = types.StringType + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_disabled_accounts"] = types.Int64Type + objectAttrs["nr_disabled_managers"] = types.Int64Type + objectAttrs["nr_expired_vault_records"] = types.Int64Type + objectAttrs["nr_managers"] = types.Int64Type + objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeGroupGroupClassification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["authorizing_group_auditing_required"] = types.BoolType + objectAttrs["authorizing_group_delegation_required"] = types.BoolType + objectAttrs["authorizing_group_membership_required"] = types.BoolType + objectAttrs["authorizing_group_provisioning_required"] = types.BoolType + objectAttrs["default_classification"] = types.BoolType + objectAttrs["description"] = types.StringType + objectAttrs["maximum_audit_interval"] = types.Int64Type + objectAttrs["minimum_nr_managers"] = types.Int64Type + objectAttrs["record_trail_required"] = types.BoolType + objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_groups"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["classificaton_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassificationInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupGroupClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClient_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["client_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClient(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupGroupFolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupGroupInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_accounts_with_vault"] = types.Int64Type + objectAttrs["nr_audits"] = types.Int64Type + objectAttrs["nr_clients"] = types.Int64Type + objectAttrs["nr_provisioned_systems"] = types.Int64Type + objectAttrs["nr_vault_records"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroupPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}} + objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeSegmentCount(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupAuthorizedGroupsWrapper(recurse)} + objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditingInfo(recurse)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupInfo(recurse)} + objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarkers(recurse)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)} + objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimerLinkableWrapper(recurse)} + objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(recurse)} + objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(recurse)} + objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditLinkableWrapper(recurse)} + objectAttrs["requeststatus"] = types.StringType + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookLinkableWrapper(recurse)} + return objectAttrs +} +func objectAttrsTypeGroupGroupsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audited_groups"] = types.Int64Type + objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}} + objectAttrs["overdue_audit_groups"] = types.Int64Type + objectAttrs["overdue_vault_policies"] = types.Int64Type + objectAttrs["unaudited_groups"] = types.Int64Type + objectAttrs["valid_vault_policies"] = types.Int64Type + objectAttrs["vaults_without_policies"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeGroupProvisioningGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + return objectAttrs +} +func objectAttrsTypeGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup(recurse)}} + return objectAttrs +} +func objectAttrsTypeGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTilePrimer(recurse)} + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} +func objectAttrsTypeLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadDisplayedLaunchpadTile(recurse)}} + return objectAttrs +} +func objectAttrsTypeLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile(recurse)}} + return objectAttrs +} +func objectAttrsTypeLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + return objectAttrs +} +func objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} +func objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} +func objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["current_license_status"] = types.StringType + objectAttrs["customer_company"] = types.StringType + objectAttrs["customer_contact"] = types.StringType + objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} + objectAttrs["details"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration_time"] = types.StringType + objectAttrs["features"] = types.ListType{ElemType: types.StringType} + objectAttrs["issue_time"] = types.StringType + objectAttrs["key_hub_domain"] = types.StringType + objectAttrs["license_key"] = types.StringType + objectAttrs["not_before_time"] = types.StringType + objectAttrs["users_hard_limit"] = types.Int64Type + objectAttrs["users_pro_limit"] = types.Int64Type + objectAttrs["users_soft_limit"] = types.Int64Type + objectAttrs["uuid"] = types.StringType + objectAttrs["version"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeMarkItemMarker(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["level"] = types.StringType + objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarker_parameters(recurse)} + return objectAttrs +} +func objectAttrsTypeMarkItemMarker_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeMarkItemMarkers(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarker(recurse)}} + return objectAttrs +} +func objectAttrsTypeNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryLDAPDirectory(recurse)} + objectAttrs["expiration"] = types.StringType + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientLdapClient(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem(recurse)} + objectAttrs["usage"] = types.StringType + objectAttrs["webhook_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["due_date"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)} + objectAttrs["notification_group_audit_required_notification_type"] = types.StringType + return objectAttrs +} +func objectAttrsTypeNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)} + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(recurse)} + objectAttrs["reason"] = types.StringType + return objectAttrs +} +func objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_accounts"] = types.Int64Type + objectAttrs["license_info_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["admins"] = types.ListType{ElemType: types.StringType} + objectAttrs["groups"] = types.ListType{ElemType: types.StringType} + objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest(recurse)} + return objectAttrs +} +func objectAttrsTypeNotificationNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeNotificationNotifications(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeNotificationNotification(recurse)}} + return objectAttrs +} +func objectAttrsTypeNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["api_version"] = types.Int64Type + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2Client(recurse)} + return objectAttrs +} +func objectAttrsTypeNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["systems"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["released_at"] = types.StringType + return objectAttrs +} +func objectAttrsTypeNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)} + return objectAttrs +} +func objectAttrsTypeOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationAccountOrganizationalUnit(recurse)}} + return objectAttrs +} +func objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["parent_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitAccount(recurse)}} + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnit(recurse)}} + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["description"] = types.StringType + objectAttrs["result"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAccountProvisioningStatus(recurse)}} + return objectAttrs +} +func objectAttrsTypeProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["number_of_failed_calls"] = types.Int64Type + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}} + return objectAttrs +} +func objectAttrsTypeProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)} + objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["provisioning_permission_end_time"] = types.StringType + objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAccountProvisioningStatusReport(recurse)} + objectAttrs["visible_on_dashboard"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_u_i_d"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence(recurse)}} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAD(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + objectAttrs["sam_account_name_scheme"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount(recurse)}} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientLdapClient(false)} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence(false)} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem(recurse)}} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemSyncLog(recurse)}} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystemTypes(recurse)} + return objectAttrs +} +func objectAttrsTypeProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["create_new_groups_allowed"] = types.BoolType + objectAttrs["create_service_accounts_allowed"] = types.BoolType + objectAttrs["reuse_existing_groups_allowed"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupProvisioningStatus(recurse)}} + objectAttrs["ignore_errors"] = types.BoolType + objectAttrs["restricted_by_license"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeProvisioningTokenPassword(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} + return objectAttrs +} +func objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["end_date"] = types.StringType + objectAttrs["make_manager"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_admin_uuid"] = types.StringType + objectAttrs["private_key"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system_type"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestCreateGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["group_name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestDisable2FARequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["subject"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestExtendAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["extend_until"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestGrantAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + objectAttrs["permission_type"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + return objectAttrs +} +func objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + return objectAttrs +} +func objectAttrsTypeRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + objectAttrs["service_account_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestJoinVaultRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest(recurse)}} + return objectAttrs +} +func objectAttrsTypeRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestAcceptModificationRequestParameters(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestPasswordResetRequestStatus(recurse)} + return objectAttrs +} +func objectAttrsTypeRequestPasswordResetRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_vault_and_directory_password"] = types.StringType + objectAttrs["new_vault_password"] = types.StringType + objectAttrs["unsynced_password"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["cooldown_end"] = types.StringType + objectAttrs["managers"] = types.ListType{ElemType: types.StringType} + objectAttrs["nr_accepted"] = types.Int64Type + objectAttrs["reset_via_mail"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["organizational_unit_name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["system_name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestReviewAuditRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["admin_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["authorizing_group_type"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_action"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + return objectAttrs +} +func objectAttrsTypeRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["service_account_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_to_update_uuid"] = types.StringType + objectAttrs["current_end_date"] = types.StringType + objectAttrs["current_rights"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["update_group_membership_type"] = types.StringType + return objectAttrs +} +func objectAttrsTypeRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["internal_account_name"] = types.StringType + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["password_uuid"] = types.StringType + objectAttrs["password_rotation"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroup(recurse)}} + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccount(recurse)}} + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeGeneratedSecret(recurse)} + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["disabled_count"] = types.Int64Type + objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} + objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(recurse)} + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeSimpleStringValue(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["value"] = types.StringType + return objectAttrs +} +func objectAttrsTypeSimpleVersionInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} + objectAttrs["key_hub_version"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["record_count"] = types.Int64Type + objectAttrs["vault_deleted_vault_holder_type"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultDeletedVaultHolder(recurse)}} + return objectAttrs +} +func objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + return objectAttrs +} +func objectAttrsTypeVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["prefix"] = types.StringType + objectAttrs["private_key"] = types.StringType + objectAttrs["target_group_uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultMoveVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_uuid"] = types.StringType + objectAttrs["action"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultMoveVaultRecord_shareDuration(recurse)} + return objectAttrs +} +func objectAttrsTypeVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} +func objectAttrsTypeVaultVault(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["access_available"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}} + return objectAttrs +} +func objectAttrsTypeVaultVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} +func objectAttrsTypeVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}} + return objectAttrs +} +func objectAttrsTypeVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["comment"] = types.StringType + objectAttrs["file"] = types.StringType + objectAttrs["password"] = types.StringType + objectAttrs["totp"] = types.StringType + objectAttrs["write_totp"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeVaultVaultRecordShare(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["vault_vault_record_share_type"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShare(recurse)}} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShare(recurse)} + return objectAttrs +} +func objectAttrsTypeVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordSecrets(recurse)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShareSummary(recurse)} + objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(recurse)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultHolder(recurse)} + return objectAttrs +} +func objectAttrsTypeVaultVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_uuid"] = types.StringType + objectAttrs["private_key"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultVaultUnlock(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} +func objectAttrsTypeVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["expires_at"] = types.StringType + objectAttrs["session_password"] = types.StringType + return objectAttrs +} +func objectAttrsTypeWebhookWebhook(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhook_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["active"] = types.BoolType + objectAttrs["all_types"] = types.BoolType + objectAttrs["authentication_scheme"] = types.StringType + objectAttrs["basic_auth_password"] = types.StringType + objectAttrs["basic_auth_username"] = types.StringType + objectAttrs["bearer_token"] = types.StringType + objectAttrs["client_uuid"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["custom_header_name"] = types.StringType + objectAttrs["custom_header_value"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["verbose_payloads"] = types.BoolType + return objectAttrs +} +func objectAttrsTypeWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} +func objectAttrsTypeWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookDelivery(recurse)}} + return objectAttrs +} +func objectAttrsTypeWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} +func objectAttrsTypeWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} +func objectAttrsTypeWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeLinkable(recurse)} + objectAttrs["uuid"] = types.StringType + return objectAttrs +} +func objectAttrsTypeWebhookWebhookPush(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_uuid"] = types.StringType + objectAttrs["by_party_uuid"] = types.StringType + objectAttrs["certificate_uuid"] = types.StringType + objectAttrs["client_uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["group2_uuid"] = types.StringType + objectAttrs["group_classification_uuid"] = types.StringType + objectAttrs["modification_request_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["security_level"] = types.StringType + objectAttrs["seq"] = types.Int64Type + objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["timestamp"] = types.StringType + objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["webhook_uuid"] = types.StringType + objectAttrs["webhook_webhook_push_type"] = types.StringType + return objectAttrs +} +func objectAttrsTypeWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + return objectAttrs +} + +func tkhToTFObjectAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = AuditInfoAttrTypesRecurse + } else { + attrs = AuditInfoAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["created_at"] = TimePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = ErrorReportAttrTypesRecurse + } else { + attrs = ErrorReportAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) + { + val, d := tkhToTFObjectErrorReport_applicationErrorParameters(false, tkh.GetApplicationErrorParameters()) + diags.Append(d...) + obj["application_error_parameters"] = val + } + obj["code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetCode())) + { + elemType := attrs["error_details"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["error_details"] = val + } + obj["exception"] = types.StringPointerValue(tkh.GetException()) + obj["message"] = types.StringPointerValue(tkh.GetMessage()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + { + elemType := attrs["stacktrace"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["stacktrace"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = ErrorReport_applicationErrorParametersAttrTypesRecurse + } else { + attrs = ErrorReport_applicationErrorParametersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = GeneratedSecretAttrTypesRecurse + } else { + attrs = GeneratedSecretAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) + obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) + obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = LinkableAttrTypesRecurse + } else { + attrs = LinkableAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = NonLinkableAttrTypesRecurse + } else { + attrs = NonLinkableAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = RestLinkAttrTypesRecurse + } else { + attrs = RestLinkAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["href"] = types.StringPointerValue(tkh.GetHref()) + obj["id"] = types.Int64PointerValue(tkh.GetId()) + obj["rel"] = types.StringPointerValue(tkh.GetRel()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = SegmentCountAttrTypesRecurse + } else { + attrs = SegmentCountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["count"] = types.Int64PointerValue(tkh.GetCount()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecordAttrTypesRecurse + } else { + attrs = auditAuditRecordAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["audit_audit_record_type"] = StringerToTF(tkh.GetAuditAuditRecordType()) + obj["date_time"] = TimePointerToTF(tkh.GetDateTime()) + obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) + obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) + obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) + obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) + obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) + obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) + obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) + obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) + obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) + obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) + obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) + obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) + obj["security_level"] = StringerToTF(tkh.GetSecurityLevel()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecordLinkableWrapperAttrTypesRecurse + } else { + attrs = auditAuditRecordLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuditAuditRecord(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecord_additionalObjectsAttrTypesRecurse + } else { + attrs = auditAuditRecord_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountAttrTypesRecurse + } else { + attrs = authAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = StringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = StringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = StringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = StringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = StringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountBulkUpdateAttrTypesRecurse + } else { + attrs = authAccountBulkUpdateAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["action"] = StringerToTF(tkh.GetAction()) + obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) + { + elemType := attrs["selected_accounts"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(tkh) + }) + diags.Append(d...) + obj["selected_accounts"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountChangeLocaleAttrTypesRecurse + } else { + attrs = authAccountChangeLocaleAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountLinkableWrapperAttrTypesRecurse + } else { + attrs = authAccountLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountPrimerAttrTypesRecurse + } else { + attrs = authAccountPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = StringerToTF(tkh.GetValidity()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountRecoveryStatusAttrTypesRecurse + } else { + attrs = authAccountRecoveryStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountSettingsAttrTypesRecurse + } else { + attrs = authAccountSettingsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["default_organizational_unit_uuid"] = WithUuidToTF(tkh.GetDefaultOrganizationalUnit()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_type"] = StringerToTF(tkh.GetDirectoryType()) + obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) + obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) + obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) + obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) + obj["password_mode"] = StringerToTF(tkh.GetPasswordMode()) + obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) + obj["two_factor_authentication"] = StringerToTF(tkh.GetTwoFactorAuthentication()) + obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) + obj["vault_status"] = StringerToTF(tkh.GetVaultStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountStatusAttrTypesRecurse + } else { + attrs = authAccountStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) + obj["license_role"] = StringerToTF(tkh.GetLicenseRole()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccount_additionalObjectsAttrTypesRecurse + } else { + attrs = authAccount_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectGroupAccountGroupLinkableWrapper(false, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectAuthAccountRecoveryStatus(false, tkh.GetPendingRecoveryRequests()) + diags.Append(d...) + obj["pending_recovery_requests"] = val + } + { + val, d := tkhToTFObjectAuthAccountSettings(false, tkh.GetSettings()) + diags.Append(d...) + obj["settings"] = val + } + { + val, d := tkhToTFObjectAuthStoredAccountAttributes(false, tkh.GetStoredAttributes()) + diags.Append(d...) + obj["stored_attributes"] = val + } + { + val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStatsAttrTypesRecurse + } else { + attrs = authAccountsAuditStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuthAccountsAuditStats_directoryStats(false, tkh.GetDirectoryStats()) + diags.Append(d...) + obj["directory_stats"] = val + } + { + val, d := tkhToTFObjectAuthAccountsAuditStats_twoFAStats(false, tkh.GetTwoFAStats()) + diags.Append(d...) + obj["two_f_a_stats"] = val + } + { + val, d := tkhToTFObjectAuthAccountsAuditStats_validityStats(false, tkh.GetValidityStats()) + diags.Append(d...) + obj["validity_stats"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_directoryStatsAttrTypesRecurse + } else { + attrs = authAccountsAuditStats_directoryStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_twoFAStatsAttrTypesRecurse + } else { + attrs = authAccountsAuditStats_twoFAStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_validityStatsAttrTypesRecurse + } else { + attrs = authAccountsAuditStats_validityStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountAttrTypesRecurse + } else { + attrs = authInternalAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = StringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = StringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = StringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = StringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = StringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = TimePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountLinkableWrapperAttrTypesRecurse + } else { + attrs = authInternalAccountLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthInternalAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountStatusObjectAttrTypesRecurse + } else { + attrs = authInternalAccountStatusObjectAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthInternalAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthInternalAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccount_additionalObjectsAttrTypesRecurse + } else { + attrs = authInternalAccount_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authMoveInternalAccountAttrTypesRecurse + } else { + attrs = authMoveInternalAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDirectoryInternalDirectory(false, tkh.GetInternalDirectory()) + diags.Append(d...) + obj["internal_directory"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authPermissionAttrTypesRecurse + } else { + attrs = authPermissionAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["full"] = types.StringPointerValue(tkh.GetFull()) + { + elemType := attrs["instances"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["instances"] = val + } + { + elemType := attrs["operations"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["operations"] = val + } + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authStoredAccountAttributeAttrTypesRecurse + } else { + attrs = authStoredAccountAttributeAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authStoredAccountAttributesAttrTypesRecurse + } else { + attrs = authStoredAccountAttributesAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["attributes"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthStoredAccountAttribute(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["attributes"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificateAttrTypesRecurse + } else { + attrs = certificateCertificateAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = StringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = TimePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + elemType := attrs["key_data"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["key_data"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificateLinkableWrapperAttrTypesRecurse + } else { + attrs = certificateCertificateLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectCertificateCertificate(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificatePrimerAttrTypesRecurse + } else { + attrs = certificateCertificatePrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = StringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = TimePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificate_additionalObjectsAttrTypesRecurse + } else { + attrs = certificateCertificate_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationAttrTypesRecurse + } else { + attrs = clientClientApplicationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationLinkableWrapperAttrTypesRecurse + } else { + attrs = clientClientApplicationLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectClientClientApplication(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationPrimerAttrTypesRecurse + } else { + attrs = clientClientApplicationPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplication_additionalObjectsAttrTypesRecurse + } else { + attrs = clientClientApplication_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + { + val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(false, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = val + } + { + val, d := tkhToTFObjectGroupGroupLinkableWrapper(false, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectGeneratedSecret(false, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(false, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetVaultRecordCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientLdapClientAttrTypesRecurse + } else { + attrs = clientLdapClientAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = WithUuidToTF(tkh.GetSharedSecret()) + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientAttrTypesRecurse + } else { + attrs = clientOAuth2ClientAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectClientOAuth2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = WithUuidToTF(tkh.GetSharedSecret()) + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionAttrTypesRecurse + } else { + attrs = clientOAuth2ClientPermissionAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["for_group_uuid"] = WithUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = WithUuidToTF(tkh.GetForSystem()) + obj["value"] = StringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRecurse + } else { + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectClientOAuth2ClientPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRecurse + } else { + attrs = clientOAuth2ClientPermissionWithClientAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["for_group_uuid"] = WithUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = WithUuidToTF(tkh.GetForSystem()) + obj["value"] = StringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRecurse + } else { + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClient(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRecurse + } else { + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2Client_attributesAttrTypesRecurse + } else { + attrs = clientOAuth2Client_attributesAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2ClientAttrTypesRecurse + } else { + attrs = clientSaml2ClientAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + { + val, d := tkhToTFObjectClientSaml2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = StringerToTF(tkh.GetSubjectFormat()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2Client_attributesAttrTypesRecurse + } else { + attrs = clientSaml2Client_attributesAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryAttrTypesRecurse + } else { + attrs = directoryAccountDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRecurse + } else { + attrs = directoryAccountDirectoryLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDirectoryAccountDirectory(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryPrimerAttrTypesRecurse + } else { + attrs = directoryAccountDirectoryPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryStatusReportAttrTypesRecurse + } else { + attrs = directoryAccountDirectoryStatusReportAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectorySummaryAttrTypesRecurse + } else { + attrs = directoryAccountDirectorySummaryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["directory_account_directory_summary_type"] = StringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(false, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRecurse + } else { + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDirectoryAccountDirectorySummary(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRecurse + } else { + attrs = directoryAccountDirectory_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectMarkItemMarkers(false, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(false, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryInternalDirectoryAttrTypesRecurse + } else { + attrs = directoryInternalDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryLDAPDirectoryAttrTypesRecurse + } else { + attrs = directoryLDAPDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["dialect"] = StringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = StringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = StringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryMaintenanceDirectoryAttrTypesRecurse + } else { + attrs = directoryMaintenanceDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryOIDCDirectoryAttrTypesRecurse + } else { + attrs = directoryOIDCDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = StringerToTF(tkh.GetVendorEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroupAttrTypesRecurse + } else { + attrs = groupAccountGroupAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["end_date"] = StringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = StringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = TimePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = StringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroupLinkableWrapperAttrTypesRecurse + } else { + attrs = groupAccountGroupLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupAccountGroup(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroup_additionalObjectsAttrTypesRecurse + } else { + attrs = groupAccountGroup_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAuthorizedGroupsWrapperAttrTypesRecurse + } else { + attrs = groupAuthorizedGroupsWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroup(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAttrTypesRecurse + } else { + attrs = groupGroupAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) + { + val, d := tkhToTFObjectGroupGroupAuditConfig(false, tkh.GetAuditConfig()) + diags.Append(d...) + obj["audit_config"] = val + } + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + obj["authorizing_group_auditing_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupAuditing()) + obj["authorizing_group_delegation_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupDelegation()) + obj["authorizing_group_membership_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupMembership()) + obj["authorizing_group_provisioning_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupProvisioning()) + { + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["authorizing_group_types"] = val + } + obj["classification_uuid"] = WithUuidToTF(tkh.GetClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["extended_access"] = StringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + obj["nested_under_uuid"] = WithUuidToTF(tkh.GetNestedUnder()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = StringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountAttrTypesRecurse + } else { + attrs = groupGroupAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["last_used"] = StringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = TimePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = StringerToTF(tkh.GetRights()) + obj["two_factor_status"] = StringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupAccountLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountNestingAttrTypesRecurse + } else { + attrs = groupGroupAccountNestingAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountStatusAttrTypesRecurse + } else { + attrs = groupGroupAccountStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccount_additionalObjectsAttrTypesRecurse + } else { + attrs = groupGroupAccount_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAdminMailAttrTypesRecurse + } else { + attrs = groupGroupAdminMailAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["body"] = types.StringPointerValue(tkh.GetBody()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditAttrTypesRecurse + } else { + attrs = groupGroupAuditAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = TimePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = TimePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["submitted_at"] = TimePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditAccountAttrTypesRecurse + } else { + attrs = groupGroupAuditAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = StringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_used"] = StringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = StringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditConfigAttrTypesRecurse + } else { + attrs = groupGroupAuditConfigAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["months"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["months"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupAuditLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupAudit(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAudit_additionalObjectsAttrTypesRecurse + } else { + attrs = groupGroupAudit_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditingInfoAttrTypesRecurse + } else { + attrs = groupGroupAuditingInfoAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["audit_due_date"] = StringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = StringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationAttrTypesRecurse + } else { + attrs = groupGroupClassificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) + obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) + obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) + obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) + obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["maximum_audit_interval"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) + { + elemType := attrs["required_months"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["required_months"] = val + } + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationInfoAttrTypesRecurse + } else { + attrs = groupGroupClassificationInfoAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nr_groups"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrGroups())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupClassificationLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupClassification(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationPrimerAttrTypesRecurse + } else { + attrs = groupGroupClassificationPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationUpdateAttrTypesRecurse + } else { + attrs = groupGroupClassificationUpdateAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["classificaton_uuid"] = WithUuidToTF(tkh.GetClassificaton()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassification_additionalObjectsAttrTypesRecurse + } else { + attrs = groupGroupClassification_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectGroupGroupClassificationInfo(false, tkh.GetInfo()) + diags.Append(d...) + obj["info"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientAttrTypesRecurse + } else { + attrs = groupGroupClientAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["client_uuid"] = WithUuidToTF(tkh.GetClient()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupClientLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupClient(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClient_additionalObjectsAttrTypesRecurse + } else { + attrs = groupGroupClient_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolderAttrTypesRecurse + } else { + attrs = groupGroupFolderAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolderLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupFolderLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupFolder(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolder_additionalObjectsAttrTypesRecurse + } else { + attrs = groupGroupFolder_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupInfoAttrTypesRecurse + } else { + attrs = groupGroupInfoAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nr_accounts"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrVaultRecords())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroup(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerAttrTypesRecurse + } else { + attrs = groupGroupPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupPrimerLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupSegmentedLinkableWrapperAttrTypesRecurse + } else { + attrs = groupGroupSegmentedLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroup(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + { + elemType := attrs["segments"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectSegmentCount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["segments"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroup_additionalObjectsAttrTypesRecurse + } else { + attrs = groupGroup_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(false, tkh.GetAccounts()) + diags.Append(d...) + obj["accounts"] = val + } + { + val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(false, tkh.GetAdministeredClients()) + diags.Append(d...) + obj["administered_clients"] = val + } + { + val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(false, tkh.GetAdministeredSystems()) + diags.Append(d...) + obj["administered_systems"] = val + } + { + val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(false, tkh.GetAdmins()) + diags.Append(d...) + obj["admins"] = val + } + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectGroupAuthorizedGroupsWrapper(false, tkh.GetAuthorizedGroups()) + diags.Append(d...) + obj["authorized_groups"] = val + } + { + val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(false, tkh.GetClientPermissions()) + diags.Append(d...) + obj["client_permissions"] = val + } + { + val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(false, tkh.GetClients()) + diags.Append(d...) + obj["clients"] = val + } + { + val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(false, tkh.GetContentAdministeredSystems()) + diags.Append(d...) + obj["content_administered_systems"] = val + } + { + val, d := tkhToTFObjectGroupGroupAuditingInfo(false, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val + } + { + val, d := tkhToTFObjectGroupGroupInfo(false, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val + } + { + val, d := tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(false, tkh.GetHelpdesk()) + diags.Append(d...) + obj["helpdesk"] = val + } + { + val, d := tkhToTFObjectMarkItemMarkers(false, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectGroupGroupAccount(false, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val + } + { + val, d := tkhToTFObjectGroupGroupAccount(false, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectGroupGroupPrimerLinkableWrapper(false, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = val + } + { + val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(false, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = val + } + { + val, d := tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(false, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = val + } + { + val, d := tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(false, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(false, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = val + } + { + val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(false, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = val + } + { + val, d := tkhToTFObjectGroupGroupAuditLinkableWrapper(false, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = val + } + obj["requeststatus"] = StringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(false, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + { + val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(false, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + { + val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookLinkableWrapper(false, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupsAuditStatsAttrTypesRecurse + } else { + attrs = groupGroupsAuditStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) + { + elemType := attrs["classifications"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupGroupClassification(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["classifications"] = val + } + obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) + obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) + obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) + obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) + obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroupAttrTypesRecurse + } else { + attrs = groupProvisioningGroupAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRecurse + } else { + attrs = groupProvisioningGroupLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectGroupProvisioningGroup(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRecurse + } else { + attrs = groupProvisioningGroup_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTileAttrTypesRecurse + } else { + attrs = launchpadDisplayedLaunchpadTileAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectLaunchpadLaunchpadTilePrimer(false, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectLaunchpadDisplayedLaunchpadTile(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTileAttrTypesRecurse + } else { + attrs = launchpadLaunchpadTileAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRecurse + } else { + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectLaunchpadLaunchpadTile(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRecurse + } else { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = licenseKeyHubLicenseInfoAttrTypesRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = StringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = TimePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = TimePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = TimePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesRecurse + } else { + attrs = markItemMarkerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = StringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = StringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectMarkItemMarker_parameters(false, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesRecurse + } else { + attrs = markItemMarker_parametersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesRecurse + } else { + attrs = markItemMarkersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectMarkItemMarker(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationCertificateExpiredNotificationAttrTypesRecurse + } else { + attrs = notificationCertificateExpiredNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectCertificateCertificate(false, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val + } + { + val, d := tkhToTFObjectDirectoryLDAPDirectory(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["expiration"] = TimePointerToTF(tkh.GetExpiration()) + { + val, d := tkhToTFObjectClientLdapClient(false, tkh.GetLdapClient()) + diags.Append(d...) + obj["ldap_client"] = val + } + { + val, d := tkhToTFObjectProvisioningProvisionedSystem(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["usage"] = StringerToTF(tkh.GetUsage()) + obj["webhook_uuid"] = WithUuidToTF(tkh.GetWebhook()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupAuditRequiredNotificationAttrTypesRecurse + } else { + attrs = notificationGroupAuditRequiredNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["due_date"] = TimePointerToTF(tkh.GetDueDate()) + { + val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["notification_group_audit_required_notification_type"] = StringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupEditRequiredNotificationAttrTypesRecurse + } else { + attrs = notificationGroupEditRequiredNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectNotificationGroupEditRequiredNotification_parameters(false, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + obj["reason"] = StringerToTF(tkh.GetReason()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRecurse + } else { + attrs = notificationGroupEditRequiredNotification_parametersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRecurse + } else { + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationLicenseStatusNotificationAttrTypesRecurse + } else { + attrs = notificationLicenseStatusNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["active_accounts"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetActiveAccounts())) + obj["license_info_uuid"] = WithUuidToTF(tkh.GetLicenseInfo()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationModificationRequestNotificationAttrTypesRecurse + } else { + attrs = notificationModificationRequestNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["admins"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["admins"] = val + } + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectRequestModificationRequest(false, tkh.GetRequest()) + diags.Append(d...) + obj["request"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationNotificationAttrTypesRecurse + } else { + attrs = notificationNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationNotificationsAttrTypesRecurse + } else { + attrs = notificationNotificationsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectNotificationNotification(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationOldApiVersionUsageNotificationAttrTypesRecurse + } else { + attrs = notificationOldApiVersionUsageNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["api_version"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetApiVersion())) + { + val, d := tkhToTFObjectClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationProvisionConfigRequiredNotificationAttrTypesRecurse + } else { + attrs = notificationProvisionConfigRequiredNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["systems"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRecurse + } else { + attrs = notificationRotatingPasswordRequiredNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["groups"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationUpdateAvailableNotificationAttrTypesRecurse + } else { + attrs = notificationUpdateAvailableNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["released_at"] = StringerToTF(tkh.GetReleasedAt()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationVaultRecordExpiredNotificationAttrTypesRecurse + } else { + attrs = notificationVaultRecordExpiredNotificationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectVaultVaultRecord(false, tkh.GetRecord()) + diags.Append(d...) + obj["record"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnitAttrTypesRecurse + } else { + attrs = organizationAccountOrganizationalUnitAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRecurse + } else { + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRecurse + } else { + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["depth"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["parent_uuid"] = WithUuidToTF(tkh.GetParent()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccountAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectOrganizationOrganizationalUnit(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRecurse + } else { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(false, tkh.GetCreateAsParentOf()) + diags.Append(d...) + obj["create_as_parent_of"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAPAttrTypesRecurse + } else { + attrs = provisioningAbstractProvisionedLDAPAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = StringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRecurse + } else { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusAttrTypesRecurse + } else { + attrs = provisioningAccountProvisioningStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["result"] = StringerToTF(tkh.GetResult()) + { + val, d := tkhToTFObjectGroupProvisioningGroup(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusReportAttrTypesRecurse + } else { + attrs = provisioningAccountProvisioningStatusReportAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["status"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningAccountProvisioningStatus(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningCircuitBreakerStatisticsAttrTypesRecurse + } else { + attrs = provisioningCircuitBreakerStatisticsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = StringerToTF(tkh.GetState()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemAttrTypesRecurse + } else { + attrs = provisioningGroupOnSystemAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = StringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRecurse + } else { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemPrimerAttrTypesRecurse + } else { + attrs = provisioningGroupOnSystemPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = StringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemTypesAttrTypesRecurse + } else { + attrs = provisioningGroupOnSystemTypesAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRecurse + } else { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(false, tkh.GetProvgroups()) + diags.Append(d...) + obj["provgroups"] = val + } + { + val, d := tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(false, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatusAttrTypesRecurse + } else { + attrs = provisioningGroupProvisioningStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + { + val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(false, tkh.GetProvisioningDuration()) + diags.Append(d...) + obj["provisioning_duration"] = val + } + obj["provisioning_end_time"] = TimePointerToTF(tkh.GetProvisioningEndTime()) + obj["provisioning_permission_end_time"] = TimePointerToTF(tkh.GetProvisioningPermissionEndTime()) + { + val, d := tkhToTFObjectProvisioningAccountProvisioningStatusReport(false, tkh.GetStatusReport()) + diags.Append(d...) + obj["status_report"] = val + } + obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRecurse + } else { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRecurse + } else { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceAttrTypesRecurse + } else { + attrs = provisioningProvisionNumberSequenceAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRecurse + } else { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningProvisionNumberSequence(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRecurse + } else { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(false, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedADAttrTypesRecurse + } else { + attrs = provisioningProvisionedADAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = StringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["sam_account_name_scheme"] = StringerToTF(tkh.GetSamAccountNameScheme()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountAttrTypesRecurse + } else { + attrs = provisioningProvisionedAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRecurse + } else { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningProvisionedAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRecurse + } else { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRecurse + } else { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectClientLdapClient(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = StringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = StringerToTF(tkh.GetHashingScheme()) + { + val, d := tkhToTFObjectProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) + diags.Append(d...) + obj["numbering"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningProvisionedSystem(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["created_at"] = TimePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectProvisioningProvisionedAccount(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(false, tkh.GetIssuedPermissions()) + diags.Append(d...) + obj["issued_permissions"] = val + } + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) + { + val, d := tkhToTFObjectProvisioningProvisioningManagementPermissions(false, tkh.GetManagementPermissions()) + diags.Append(d...) + obj["management_permissions"] = val + } + { + val, d := tkhToTFObjectMarkItemMarkers(false, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectProvisioningCircuitBreakerStatistics(false, tkh.GetStatistics()) + diags.Append(d...) + obj["statistics"] = val + } + { + val, d := tkhToTFObjectProvisioningGroupOnSystemTypes(false, tkh.GetSupportedGroupTypes()) + diags.Append(d...) + obj["supported_group_types"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningManagementPermissionsAttrTypesRecurse + } else { + attrs = provisioningProvisioningManagementPermissionsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningStatusAttrTypesRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectProvisioningGroupProvisioningStatus(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["groups"] = val + } + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesRecurse + } else { + attrs = provisioningTokenPasswordAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRecurse + } else { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRecurse + } else { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesRecurse + } else { + attrs = requestAcceptGrantAccessRequestParametersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(false, tkh.GetAccessDuration()) + diags.Append(d...) + obj["access_duration"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRecurse + } else { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesRecurse + } else { + attrs = requestAcceptJoinGroupRequestParametersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptModificationRequestParametersAttrTypesRecurse + } else { + attrs = requestAcceptModificationRequestParametersAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAddGroupAdminRequestAttrTypesRecurse + } else { + attrs = requestAddGroupAdminRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["new_admin_uuid"] = WithUuidToTF(tkh.GetNewAdmin()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupOnSystemRequestAttrTypesRecurse + } else { + attrs = requestCreateGroupOnSystemRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = StringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupRequestAttrTypesRecurse + } else { + attrs = requestCreateGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateServiceAccountRequestAttrTypesRecurse + } else { + attrs = requestCreateServiceAccountRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestDisable2FARequestAttrTypesRecurse + } else { + attrs = requestDisable2FARequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesRecurse + } else { + attrs = requestEnableTechnicalAdministrationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestExtendAccessRequestAttrTypesRecurse + } else { + attrs = requestExtendAccessRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["extend_until"] = TimePointerToTF(tkh.GetExtendUntil()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantAccessRequestAttrTypesRecurse + } else { + attrs = requestGrantAccessRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantApplicationRequestAttrTypesRecurse + } else { + attrs = requestGrantApplicationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantClientPermissionRequestAttrTypesRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["permission_type"] = StringerToTF(tkh.GetPermissionType()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestAttrTypesRecurse + } else { + attrs = requestGrantGroupOnSystemRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRecurse + } else { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantServiceAccountGroupRequestAttrTypesRecurse + } else { + attrs = requestGrantServiceAccountGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + obj["service_account_uuid"] = WithUuidToTF(tkh.GetServiceAccount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinGroupRequestAttrTypesRecurse + } else { + attrs = requestJoinGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinVaultRequestAttrTypesRecurse + } else { + attrs = requestJoinVaultRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestAttrTypesRecurse + } else { + attrs = requestModificationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestLinkableWrapperAttrTypesRecurse + } else { + attrs = requestModificationRequestLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRequestModificationRequest(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequest_additionalObjectsAttrTypesRecurse + } else { + attrs = requestModificationRequest_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRequestAcceptModificationRequestParameters(false, tkh.GetAcceptParams()) + diags.Append(d...) + obj["accept_params"] = val + } + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRequestPasswordResetRequestStatus(false, tkh.GetResetStatus()) + diags.Append(d...) + obj["reset_status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestAttrTypesRecurse + } else { + attrs = requestPasswordResetRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) + obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) + obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestStatusAttrTypesRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["cooldown_end"] = TimePointerToTF(tkh.GetCooldownEnd()) + { + elemType := attrs["managers"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["managers"] = val + } + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = StringerToTF(tkh.GetResetViaMail()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveGroupRequestAttrTypesRecurse + } else { + attrs = requestRemoveGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveProvisionedSystemRequestAttrTypesRecurse + } else { + attrs = requestRemoveProvisionedSystemRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestReviewAuditRequestAttrTypesRecurse + } else { + attrs = requestReviewAuditRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["admin_uuid"] = WithUuidToTF(tkh.GetAdmin()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupAuthorizingGroupRequestAttrTypesRecurse + } else { + attrs = requestSetupAuthorizingGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["authorizing_group_type"] = StringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + obj["requesting_group_uuid"] = WithUuidToTF(tkh.GetRequestingGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["account_action"] = StringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + obj["requesting_group_uuid"] = WithUuidToTF(tkh.GetRequestingGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationAdministrationRequestAttrTypesRecurse + } else { + attrs = requestTransferApplicationAdministrationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationOwnershipRequestAttrTypesRecurse + } else { + attrs = requestTransferApplicationOwnershipRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferAuditorGroupRequestAttrTypesRecurse + } else { + attrs = requestTransferAuditorGroupRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRecurse + } else { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRecurse + } else { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRecurse + } else { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRecurse + } else { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRecurse + } else { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["service_account_uuid"] = WithUuidToTF(tkh.GetServiceAccount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestUpdateGroupMembershipRequestAttrTypesRecurse + } else { + attrs = requestUpdateGroupMembershipRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["account_to_update_uuid"] = WithUuidToTF(tkh.GetAccountToUpdate()) + obj["current_end_date"] = StringerToTF(tkh.GetCurrentEndDate()) + obj["current_rights"] = StringerToTF(tkh.GetCurrentRights()) + obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["rights"] = StringerToTF(tkh.GetRights()) + obj["update_group_membership_type"] = StringerToTF(tkh.GetUpdateGroupMembershipType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestVerifyInternalAccountRequestAttrTypesRecurse + } else { + attrs = requestVerifyInternalAccountRequestAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = StringerToTF(tkh.GetStatus()) + obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["password_uuid"] = WithUuidToTF(tkh.GetPassword()) + obj["password_rotation"] = StringerToTF(tkh.GetPasswordRotation()) + obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountGroupAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = StringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectServiceaccountServiceAccountGroup(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectServiceaccountServiceAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountStatusAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountStatusAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(false, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectGeneratedSecret(false, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) + { + val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false, tkh.GetPasswordSchemeEnabledStats()) + diags.Append(d...) + obj["password_scheme_enabled_stats"] = val + } + { + val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(false, tkh.GetSystemStats()) + diags.Append(d...) + obj["system_stats"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleStringValueAttrTypesRecurse + } else { + attrs = simpleStringValueAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleVersionInfoAttrTypesRecurse + } else { + attrs = simpleVersionInfoAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["contract_versions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(int64(tkh)) + }) + diags.Append(d...) + obj["contract_versions"] = val + } + obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderAttrTypesRecurse + } else { + attrs = vaultDeletedVaultHolderAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["record_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetRecordCount())) + obj["vault_deleted_vault_holder_type"] = StringerToTF(tkh.GetVaultDeletedVaultHolderType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRecurse + } else { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectVaultDeletedVaultHolder(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRecurse + } else { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultRecoveryAttrTypesRecurse + } else { + attrs = vaultDeletedVaultRecoveryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + obj["target_group_uuid"] = WithUuidToTF(tkh.GetTargetGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecordAttrTypesRecurse + } else { + attrs = vaultMoveVaultRecordAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["action"] = StringerToTF(tkh.GetAction()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + { + val, d := tkhToTFObjectVaultMoveVaultRecord_shareDuration(false, tkh.GetShareDuration()) + diags.Append(d...) + obj["share_duration"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesRecurse + } else { + attrs = vaultMoveVaultRecord_shareDurationAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultAttrTypesRecurse + } else { + attrs = vaultVaultAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["records"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectVaultVaultRecord(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["records"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultHolderAttrTypesRecurse + } else { + attrs = vaultVaultHolderAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordAttrTypesRecurse + } else { + attrs = vaultVaultRecordAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = StringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = TimePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = StringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordLinkableWrapperAttrTypesRecurse + } else { + attrs = vaultVaultRecordLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectVaultVaultRecord(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerAttrTypesRecurse + } else { + attrs = vaultVaultRecordPrimerAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = StringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = TimePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRecurse + } else { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordSecretsAttrTypesRecurse + } else { + attrs = vaultVaultRecordSecretsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["file"] = types.StringPointerValue(tkh.GetFile()) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["totp"] = types.StringPointerValue(tkh.GetTotp()) + obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareAttrTypesRecurse + } else { + attrs = vaultVaultRecordShareAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["vault_vault_record_share_type"] = StringerToTF(tkh.GetVaultVaultRecordShareType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareSummaryAttrTypesRecurse + } else { + attrs = vaultVaultRecordShareSummaryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["children"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectVaultVaultRecordShare(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["children"] = val + } + { + val, d := tkhToTFObjectVaultVaultRecordShare(false, tkh.GetParent()) + diags.Append(d...) + obj["parent"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecord_additionalObjectsAttrTypesRecurse + } else { + attrs = vaultVaultRecord_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + obj["parent_uuid"] = WithUuidToTF(tkh.GetParent()) + { + val, d := tkhToTFObjectVaultVaultRecordSecrets(false, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectVaultVaultRecordShareSummary(false, tkh.GetShareSummary()) + diags.Append(d...) + obj["share_summary"] = val + } + { + val, d := tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(false, tkh.GetShares()) + diags.Append(d...) + obj["shares"] = val + } + { + val, d := tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(false, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + { + val, d := tkhToTFObjectVaultVaultHolder(false, tkh.GetVaultholder()) + diags.Append(d...) + obj["vaultholder"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecoveryAttrTypesRecurse + } else { + attrs = vaultVaultRecoveryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockAttrTypesRecurse + } else { + attrs = vaultVaultUnlockAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockResponseAttrTypesRecurse + } else { + attrs = vaultVaultUnlockResponseAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["expires_at"] = TimePointerToTF(tkh.GetExpiresAt()) + obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookAttrTypesRecurse + } else { + attrs = webhookWebhookAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) + obj["authentication_scheme"] = StringerToTF(tkh.GetAuthenticationScheme()) + obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) + obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) + obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) + obj["client_uuid"] = WithUuidToTF(tkh.GetClient()) + obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) + obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["tls"] = StringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryAttrTypesRecurse + } else { + attrs = webhookWebhookDeliveryAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRestLink(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val + } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = TimePointerToTF(tkh.GetTriggerTime()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRecurse + } else { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectWebhookWebhookDelivery(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRecurse + } else { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookLinkableWrapperAttrTypesRecurse + } else { + attrs = webhookWebhookLinkableWrapperAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { + return WithUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookNameUuidAttrTypesRecurse + } else { + attrs = webhookWebhookNameUuidAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectLinkable(false, tkh.GetObject()) + diags.Append(d...) + obj["object"] = val + } + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookPushAttrTypesRecurse + } else { + attrs = webhookWebhookPushAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["by_party_uuid"] = WithUuidToTF(tkh.GetByParty()) + obj["certificate_uuid"] = WithUuidToTF(tkh.GetCertificate()) + obj["client_uuid"] = WithUuidToTF(tkh.GetClient()) + obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group2_uuid"] = WithUuidToTF(tkh.GetGroup2()) + obj["group_classification_uuid"] = WithUuidToTF(tkh.GetGroupClassification()) + obj["modification_request_uuid"] = WithUuidToTF(tkh.GetModificationRequest()) + obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["security_level"] = StringerToTF(tkh.GetSecurityLevel()) + obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) + obj["service_account_uuid"] = WithUuidToTF(tkh.GetServiceAccount()) + obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["timestamp"] = TimePointerToTF(tkh.GetTimestamp()) + obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["webhook_uuid"] = WithUuidToTF(tkh.GetWebhook()) + obj["webhook_webhook_push_type"] = StringerToTF(tkh.GetWebhookWebhookPushType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhook_additionalObjectsAttrTypesRecurse + } else { + attrs = webhookWebhook_additionalObjectsAttrTypes + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func fillDataStructFromTFObjectAuditInfo(data *AuditInfoData, obj types.Object) { + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectErrorReport(data *ErrorReportData, obj types.Object) { + data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) + data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) + data.Code = obj.Attributes()["code"].(basetypes.Int64Value) + data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) + data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) + data.Message = obj.Attributes()["message"].(basetypes.StringValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectErrorReport_applicationErrorParameters(data *ErrorReport_applicationErrorParametersData, obj types.Object) { +} + +func fillDataStructFromTFObjectGeneratedSecret(data *GeneratedSecretData, obj types.Object) { + data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) + data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) + data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectLinkable(data *LinkableData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectNonLinkable(data *NonLinkableData, obj types.Object) { +} + +func fillDataStructFromTFObjectRestLink(data *RestLinkData, obj types.Object) { + data.Href = obj.Attributes()["href"].(basetypes.StringValue) + data.ID = obj.Attributes()["id"].(basetypes.Int64Value) + data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectSegmentCount(data *SegmentCountData, obj types.Object) { + data.Count = obj.Attributes()["count"].(basetypes.Int64Value) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuditAuditRecord(data *auditAuditRecordData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) + data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) + data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) + data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) + data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) + data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) + data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) + data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) + data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) + data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) + data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) + data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) + data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectAuthAccount(data *authAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectAuthAccountBulkUpdate(data *authAccountBulkUpdateData, obj types.Object) { + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) + data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectAuthAccountChangeLocale(data *authAccountChangeLocaleData, obj types.Object) { + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthAccountLinkableWrapper(data *authAccountLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectAuthAccountPrimer(data *authAccountPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthAccountRecoveryStatus(data *authAccountRecoveryStatusData, obj types.Object) { + data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectAuthAccountSettings(data *authAccountSettingsData, obj types.Object) { + data.DefaultOrganizationalUnitUUID = obj.Attributes()["default_organizational_unit_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) + data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) + data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) + data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) + data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) + data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) + data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) + data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) + data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthAccountStatus(data *authAccountStatusData, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectAuthAccount_additionalObjects(data *authAccount_additionalObjectsData, obj types.Object) { + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectAuthAccountsAuditStats(data *authAccountsAuditStatsData, obj types.Object) { + data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsData, obj types.Object) { +} + +func fillDataStructFromTFObjectAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsData, obj types.Object) { +} + +func fillDataStructFromTFObjectAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsData, obj types.Object) { +} + +func fillDataStructFromTFObjectAuthInternalAccount(data *authInternalAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectData, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthInternalAccount_additionalObjects(data *authInternalAccount_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthMoveInternalAccount(data *authMoveInternalAccountData, obj types.Object) { + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectAuthPermission(data *authPermissionData, obj types.Object) { + data.Full = obj.Attributes()["full"].(basetypes.StringValue) + data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) + data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthStoredAccountAttribute(data *authStoredAccountAttributeData, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuthStoredAccountAttributes(data *authStoredAccountAttributesData, obj types.Object) { + data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectCertificateCertificate(data *certificateCertificateData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectCertificateCertificatePrimer(data *certificateCertificatePrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectClientClientApplication(data *clientClientApplicationData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectClientClientApplicationPrimer(data *clientClientApplicationPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectClientLdapClient(data *clientLdapClientData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) + data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectClientOAuth2Client(data *clientOAuth2ClientData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) + data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) + data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) + data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) + data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectClientOAuth2Client_attributes(data *clientOAuth2Client_attributesData, obj types.Object) { +} + +func fillDataStructFromTFObjectClientSaml2Client(data *clientSaml2ClientData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) + data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) + data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectClientSaml2Client_attributes(data *clientSaml2Client_attributesData, obj types.Object) { +} + +func fillDataStructFromTFObjectDirectoryAccountDirectory(data *directoryAccountDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportData, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDirectoryInternalDirectory(data *directoryInternalDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDirectoryLDAPDirectory(data *directoryLDAPDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) + data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDirectoryOIDCDirectory(data *directoryOIDCDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) + data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) + data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) + data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupAccountGroup(data *groupAccountGroupData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectGroupGroup(data *groupGroupData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) + data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) + data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) + data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) + data.AuthorizingGroupAuditingUUID = obj.Attributes()["authorizing_group_auditing_uuid"].(basetypes.StringValue) + data.AuthorizingGroupDelegationUUID = obj.Attributes()["authorizing_group_delegation_uuid"].(basetypes.StringValue) + data.AuthorizingGroupMembershipUUID = obj.Attributes()["authorizing_group_membership_uuid"].(basetypes.StringValue) + data.AuthorizingGroupProvisioningUUID = obj.Attributes()["authorizing_group_provisioning_uuid"].(basetypes.StringValue) + data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) + data.ClassificationUUID = obj.Attributes()["classification_uuid"].(basetypes.StringValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) + data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) + data.NestedUnderUUID = obj.Attributes()["nested_under_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) + data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) + data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectGroupGroupAccount(data *groupGroupAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupAccountNesting(data *groupGroupAccountNestingData, obj types.Object) { + data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectGroupGroupAccountStatus(data *groupGroupAccountStatusData, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupGroupAdminMail(data *groupGroupAdminMailData, obj types.Object) { + data.Body = obj.Attributes()["body"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupAudit(data *groupGroupAuditData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupAuditAccount(data *groupGroupAuditAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupAuditConfig(data *groupGroupAuditConfigData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Months = obj.Attributes()["months"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupGroupAuditingInfo(data *groupGroupAuditingInfoData, obj types.Object) { + data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) + data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) + data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) + data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) + data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) + data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectGroupGroupClassification(data *groupGroupClassificationData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) + data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) + data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) + data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) + data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) + data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) + data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) + data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectGroupGroupClassificationInfo(data *groupGroupClassificationInfoData, obj types.Object) { + data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateData, obj types.Object) { + data.ClassificatonUUID = obj.Attributes()["classificaton_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupGroupClient(data *groupGroupClientData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupGroupFolder(data *groupGroupFolderData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupGroupInfo(data *groupGroupInfoData, obj types.Object) { + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) + data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) + data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) + data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) + data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupPrimer(data *groupGroupPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupGroup_additionalObjects(data *groupGroup_additionalObjectsData, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupGroupsAuditStats(data *groupGroupsAuditStatsData, obj types.Object) { + data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) + data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) + data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) + data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) + data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) + data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) + data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectGroupProvisioningGroup(data *groupProvisioningGroupData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectLaunchpadLaunchpadTile(data *launchpadLaunchpadTileData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoData, obj types.Object) { + data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) + data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) + data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) + data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) + data.Details = obj.Attributes()["details"].(basetypes.ListValue) + data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) + data.Features = obj.Attributes()["features"].(basetypes.ListValue) + data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) + data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) + data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) + data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) + data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) + data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) + data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Version = obj.Attributes()["version"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectMarkItemMarker(data *markItemMarkerData, obj types.Object) { + data.Level = obj.Attributes()["level"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectMarkItemMarker_parameters(data *markItemMarker_parametersData, obj types.Object) { +} + +func fillDataStructFromTFObjectMarkItemMarkers(data *markItemMarkersData, obj types.Object) { + data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationData, obj types.Object) { + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) + data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationData, obj types.Object) { + data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationData, obj types.Object) { + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersData, obj types.Object) { +} + +func fillDataStructFromTFObjectNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationData, obj types.Object) { +} + +func fillDataStructFromTFObjectNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationData, obj types.Object) { + data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) + data.LicenseInfoUUID = obj.Attributes()["license_info_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectNotificationModificationRequestNotification(data *notificationModificationRequestNotificationData, obj types.Object) { + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectNotificationNotification(data *notificationNotificationData, obj types.Object) { +} + +func fillDataStructFromTFObjectNotificationNotifications(data *notificationNotificationsData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationData, obj types.Object) { + data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationData, obj types.Object) { + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationData, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationData, obj types.Object) { + data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationData, obj types.Object) { + data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnit(data *organizationOrganizationalUnitData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesData, obj types.Object) { +} + +func fillDataStructFromTFObjectProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusData, obj types.Object) { + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Result = obj.Attributes()["result"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportData, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsData, obj types.Object) { + data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) + data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) + data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) + data.State = obj.Attributes()["state"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningGroupOnSystem(data *provisioningGroupOnSystemData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesData, obj types.Object) { + data.Types = obj.Attributes()["types"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusData, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) + data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) + data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationData, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAD(data *provisioningProvisionedADData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAccount(data *provisioningProvisionedAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystem(data *provisioningProvisionedSystemData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsData, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsData, obj types.Object) { + data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) + data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) + data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectProvisioningProvisioningStatus(data *provisioningProvisioningStatusData, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) + data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectProvisioningTokenPassword(data *provisioningTokenPasswordData, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersData, obj types.Object) { + data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationData, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersData, obj types.Object) { + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersData, obj types.Object) { +} + +func fillDataStructFromTFObjectRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestCreateGroupRequest(data *requestCreateGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestDisable2FARequest(data *requestDisable2FARequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestExtendAccessRequest(data *requestExtendAccessRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestGrantAccessRequest(data *requestGrantAccessRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestGrantApplicationRequest(data *requestGrantApplicationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestJoinGroupRequest(data *requestJoinGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestJoinVaultRequest(data *requestJoinVaultRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestModificationRequest(data *requestModificationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsData, obj types.Object) { + data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRequestPasswordResetRequest(data *requestPasswordResetRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) + data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) + data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusData, obj types.Object) { + data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) + data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) + data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) + data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestRemoveGroupRequest(data *requestRemoveGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestReviewAuditRequest(data *requestReviewAuditRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestRevokeAdminRequest(data *requestRevokeAdminRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) + data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) + data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccount(data *serviceaccountServiceAccountData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.PasswordUUID = obj.Attributes()["password_uuid"].(basetypes.StringValue) + data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusData, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsData, obj types.Object) { + data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) + data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) + data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsData, obj types.Object) { +} + +func fillDataStructFromTFObjectServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsData, obj types.Object) { +} + +func fillDataStructFromTFObjectSimpleStringValue(data *simpleStringValueData, obj types.Object) { + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectSimpleVersionInfo(data *simpleVersionInfoData, obj types.Object) { + data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) + data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultDeletedVaultHolder(data *vaultDeletedVaultHolderData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) + data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryData, obj types.Object) { + data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) + data.TargetGroupUUID = obj.Attributes()["target_group_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultMoveVaultRecord(data *vaultMoveVaultRecordData, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationData, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectVaultVault(data *vaultVaultData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Records = obj.Attributes()["records"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectVaultVaultHolder(data *vaultVaultHolderData, obj types.Object) { +} + +func fillDataStructFromTFObjectVaultVaultRecord(data *vaultVaultRecordData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectVaultVaultRecordPrimer(data *vaultVaultRecordPrimerData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectVaultVaultRecordSecrets(data *vaultVaultRecordSecretsData, obj types.Object) { + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.File = obj.Attributes()["file"].(basetypes.StringValue) + data.Password = obj.Attributes()["password"].(basetypes.StringValue) + data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) + data.WriteTotp = obj.Attributes()["write_totp"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectVaultVaultRecordShare(data *vaultVaultRecordShareData, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryData, obj types.Object) { + data.Children = obj.Attributes()["children"].(basetypes.ListValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectVaultVaultRecovery(data *vaultVaultRecoveryData, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultVaultUnlock(data *vaultVaultUnlockData, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectVaultVaultUnlockResponse(data *vaultVaultUnlockResponseData, obj types.Object) { + data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) + data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectWebhookWebhook(data *webhookWebhookData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) + data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) + data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) + data.BasicAuthUsername = obj.Attributes()["basic_auth_username"].(basetypes.StringValue) + data.BearerToken = obj.Attributes()["bearer_token"].(basetypes.StringValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.CustomHeaderName = obj.Attributes()["custom_header_name"].(basetypes.StringValue) + data.CustomHeaderValue = obj.Attributes()["custom_header_value"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectWebhookWebhookDelivery(data *webhookWebhookDeliveryData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperData, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectWebhookWebhookNameUuid(data *webhookWebhookNameUuidData, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectWebhookWebhookPush(data *webhookWebhookPushData, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.ByPartyUUID = obj.Attributes()["by_party_uuid"].(basetypes.StringValue) + data.CertificateUUID = obj.Attributes()["certificate_uuid"].(basetypes.StringValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group2UUID = obj.Attributes()["group2_uuid"].(basetypes.StringValue) + data.GroupClassificationUUID = obj.Attributes()["group_classification_uuid"].(basetypes.StringValue) + data.ModificationRequestUUID = obj.Attributes()["modification_request_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) + data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) + data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsData, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func dataSourceSchemaAttrsAuditInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_by"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsErrorReport(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["application_error"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_error_parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), + Computed: true, + } + schemaAttrs["code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["error_details"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["exception"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["message"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["stacktrace"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsGeneratedSecret(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["generated_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["old_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["regenerate"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLinkable(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNonLinkable(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRestLink(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["href"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["rel"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["type_escaped"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["date_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_account"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_certificate"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_client"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group2"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group_classification"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_organizational_unit"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_service_account"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_vault_record"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_webhook"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter2"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter3"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["performed_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["security_level"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuditAuditRecord(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["email"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["exclusive_selection"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["selected_accounts"] = dsschema.ListAttribute{ + ElementType: types.Int64Type, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["pending2_f_a_recovery_request"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["pending_password_recovery_request"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["default_organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["in_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["in_multiple_organizational_units"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["key_hub_admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["multiple_organizational_units_exist"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["password_mode"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["two_factor_authentication"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["use_token_password"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vault_status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["decline_recovery_requests"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_authentication_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["active_login"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["pending_recovery_requests"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse), + Computed: true, + } + schemaAttrs["settings"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountSettings(recurse), + Computed: true, + } + schemaAttrs["stored_attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["directory_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), + Computed: true, + } + schemaAttrs["two_f_a_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), + Computed: true, + } + schemaAttrs["validity_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["email"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["activation_code"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["first_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["telephone"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthInternalAccount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthPermission(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["full"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["instances"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["operations"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["type_escaped"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["attributes"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthStoredAccountAttribute(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["alias"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_data"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["expiration"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["key_data"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["alias"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_data"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["expiration"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["delete_tile"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["groupclients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + Computed: true, + } + schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + Computed: true, + } + schemaAttrs["vault_record_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_dn"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["shared_secret_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}, + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), + Computed: true, + } + schemaAttrs["callback_u_r_i"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["confidential"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["debug_mode"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["id_token_claims"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["initiate_login_u_r_i"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["resource_u_r_is"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["shared_secret_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["use_client_credentials"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["for_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["for_system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["for_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["for_system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClient(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(false), + Computed: true, + } + schemaAttrs["metadata"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["metadata_url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["subject_format"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["directory_account_directory_summary_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectorySummary(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["dialect"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password_recovery"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["search_bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["search_filter"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["acr_values"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["issuer"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logout_url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroup(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}, + Computed: true, + } + schemaAttrs["group_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["application_administration"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), + Computed: true, + } + schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["auditor"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_auditing_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_delegation_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_membership_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_provisioning_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["classification_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["extended_access"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["hide_audit_trail"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["nested_under_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["private_group"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["record_trail"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["single_managed"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vault_recovery"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["vault_requires_activation"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["connected"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["body"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["accounts"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditAccount(false)}, + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_valid"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["months"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAudit(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit_due_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_audit_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nr_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_disabled_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_disabled_managers"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_expired_vault_records"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_managers"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_vault_records_with_end_date"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["authorizing_group_auditing_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_delegation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_membership_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_provisioning_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["default_classification"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["maximum_audit_interval"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["minimum_nr_managers"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["record_trail_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["required_months"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["rotating_password_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vault_requires_activation"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nr_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["classificaton_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["info"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["client_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClient(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nr_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_accounts_with_vault"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_audits"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_clients"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_provisioned_systems"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_vault_records"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}, + Computed: true, + } + schemaAttrs["segments"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeSegmentCount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["accounts"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["administered_clients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["administered_systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["admins"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["authorized_groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + Computed: true, + } + schemaAttrs["client_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["clients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["content_administered_systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["groupauditinginfo"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse), + Computed: true, + } + schemaAttrs["groupinfo"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupInfo(recurse), + Computed: true, + } + schemaAttrs["helpdesk"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["myaccount"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + Computed: true, + } + schemaAttrs["mydelegatedaccount"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + Computed: true, + } + schemaAttrs["nested_groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_clients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_directories"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_groups_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_organizational_units"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["recent_audits"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["requeststatus"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + schemaAttrs["webhooks"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audited_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["classifications"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}, + Computed: true, + } + schemaAttrs["overdue_audit_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["overdue_vault_policies"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["unaudited_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["valid_vault_policies"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["vaults_without_policies"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + Computed: true, + } + schemaAttrs["title"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadDisplayedLaunchpadTile(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["title"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["current_license_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["customer_company"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["customer_contact"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["customer_domains"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["details"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["expiration_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["features"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["issue_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["not_before_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["version"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["markers"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarker(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse), + Computed: true, + } + schemaAttrs["expiration"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + Computed: true, + } + schemaAttrs["usage"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["due_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + Computed: true, + } + schemaAttrs["notification_group_audit_required_notification_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + Computed: true, + } + schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["active_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["license_info_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["admins"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["groups"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationNotifications(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeNotificationNotification(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["api_version"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["systems"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["groups"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["released_at"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationAccountOrganizationalUnit(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["depth"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parent_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitAccount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnit(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["create_as_parent_of"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["result"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["status"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAccountProvisioningStatus(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["number_of_failed_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_of_not_permitted_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_of_successful_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["state"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["provgroups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + Computed: true, + } + schemaAttrs["provisioning_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_permission_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status_report"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), + Computed: true, + } + schemaAttrs["visible_on_dashboard"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["seconds"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}, + Computed: true, + } + schemaAttrs["unlinked_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["next_u_i_d"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uid"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["idp_domain"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["gid"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["errors"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["log"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["modifications"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemSyncLog(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + Computed: true, + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["login_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + Computed: true, + } + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["groups"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupProvisioningStatus(recurse)}, + Computed: true, + } + schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["password"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["seconds"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["make_manager"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["new_admin_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["private_key"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["subject"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["extend_until"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["permission_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["accept_params"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + Computed: true, + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["new_vault_and_directory_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["new_vault_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["unsynced_password"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["managers"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["admin_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["connect"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["requesting_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["connect"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["requesting_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_to_update_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["current_end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["current_rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["internal_account_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password_rotation"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroup(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccount(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["disabled_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["password_scheme_enabled_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), + Computed: true, + } + schemaAttrs["system_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsSimpleStringValue(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["contract_versions"] = dsschema.ListAttribute{ + ElementType: types.Int64Type, + Computed: true, + } + schemaAttrs["key_hub_version"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["record_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["vault_deleted_vault_holder_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultDeletedVaultHolder(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["private_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["target_group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["seconds"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["access_available"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["records"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["file"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["totp"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["write_totp"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["vault_vault_record_share_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["children"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShare(recurse)}, + Computed: true, + } + schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["delete_tile"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["parent_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), + Computed: true, + } + schemaAttrs["share_summary"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse), + Computed: true, + } + schemaAttrs["shares"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), + Computed: true, + } + schemaAttrs["vaultholder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultHolder(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["private_key"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["password"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["expires_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["session_password"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["all_types"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authentication_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["basic_auth_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["basic_auth_username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bearer_token"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["custom_header_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["custom_header_value"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["verbose_payloads"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, + Computed: true, + } + schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), + Computed: true, + } + schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_headers"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["response"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["time"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["trigger_time"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookDelivery(recurse)}, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLinkable(recurse), + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["by_party_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group2_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_classification_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["modification_request_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter2"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter3"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["security_level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["seq"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["timestamp"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["webhook_webhook_push_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} + +func SliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { + var diags diag.Diagnostics + ret := make([]attr.Value, 0, len(vals)) + for _, curVal := range vals { + ret = append(ret, toValue(curVal, &diags)) + } + return types.ListValue(elemType, ret) +} + +func Int32PToInt64P(in *int32) *int64 { + if in == nil { + return nil + } + ret := int64(*in) + return &ret +} + +func StringerToTF[T fmt.Stringer](val *T) attr.Value { + if val == nil { + return types.StringNull() + } + return types.StringValue((*val).String()) +} + +func TimeToTF(val time.Time) attr.Value { + ret, _ := val.MarshalText() + return types.StringValue(string(ret)) +} + +func TimePointerToTF(val *time.Time) attr.Value { + if val == nil { + return types.StringNull() + } + ret, _ := val.MarshalText() + return types.StringValue(string(ret)) +} + +func WithUuidToTF(val interface{ GetUuid() *string }) attr.Value { + if val == nil { + return types.StringNull() + } + return types.StringPointerValue(val.GetUuid()) +} diff --git a/internal/provider/provider.go b/internal/provider/provider.go index c0f167c..57af3a7 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -14,10 +14,13 @@ import ( "github.com/hashicorp/terraform-plugin-framework/provider/schema" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" ) // Ensure KeyHubProvider satisfies various provider interfaces. +// +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator var _ provider.Provider = &KeyHubProvider{} // KeyHubProvider defines the provider implementation. @@ -142,7 +145,12 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe if resp.Diagnostics.HasError() { return } + ctx = tflog.SetField(ctx, "keyhub_issuer", issuer) + ctx = tflog.SetField(ctx, "keyhub_clientid", clientid) + ctx = tflog.SetField(ctx, "keyhub_clientsecret", clientsecret) + ctx = tflog.MaskFieldValuesWithFieldKeys(ctx, "keyhub_clientsecret") + tflog.Info(ctx, "Connecting to Topicus KeyHub") adapter, err := keyhub.NewKeyHubRequestAdapter(http.DefaultClient, issuer, clientid, clientsecret) if err != nil { resp.Diagnostics.AddError( @@ -157,11 +165,13 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe client := keyhub.NewKeyHubClient(adapter) resp.DataSourceData = client resp.ResourceData = client + + tflog.Info(ctx, "Connected to Topicus KeyHub", map[string]any{"success": true}) } func (p *KeyHubProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ - NewExampleResource, + NewGroupResource, } } From dfe5c4c5bdcebff8d34f056d0afb0e0d2feb11ed Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 29 Aug 2023 13:51:00 +0200 Subject: [PATCH 02/34] Use private functions --- internal/provider/impl.go | 1790 ++++++++++++++++++------------------- 1 file changed, 895 insertions(+), 895 deletions(-) diff --git a/internal/provider/impl.go b/internal/provider/impl.go index 7d2a646..abecdf5 100644 --- a/internal/provider/impl.go +++ b/internal/provider/impl.go @@ -12,20 +12,20 @@ import ( keyhubmodel "github.com/topicuskeyhub/sdk-go/models" ) -var AuditInfoAttrTypes = objectAttrsTypeAuditInfo(false) -var AuditInfoAttrTypesRecurse = objectAttrsTypeAuditInfo(true) +var auditInfoAttrTypes = objectAttrsTypeAuditInfo(false) +var auditInfoAttrTypesRecurse = objectAttrsTypeAuditInfo(true) -type AuditInfoData struct { +type auditInfoData struct { CreatedAt types.String `tfsdk:"created_at"` CreatedBy types.String `tfsdk:"created_by"` LastModifiedAt types.String `tfsdk:"last_modified_at"` LastModifiedBy types.String `tfsdk:"last_modified_by"` } -var ErrorReportAttrTypes = objectAttrsTypeErrorReport(false) -var ErrorReportAttrTypesRecurse = objectAttrsTypeErrorReport(true) +var errorReportAttrTypes = objectAttrsTypeErrorReport(false) +var errorReportAttrTypesRecurse = objectAttrsTypeErrorReport(true) -type ErrorReportData struct { +type errorReportData struct { ApplicationError types.String `tfsdk:"application_error"` ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` Code types.Int64 `tfsdk:"code"` @@ -36,49 +36,49 @@ type ErrorReportData struct { Stacktrace types.List `tfsdk:"stacktrace"` } -var ErrorReport_applicationErrorParametersAttrTypes = objectAttrsTypeErrorReport_applicationErrorParameters(false) -var ErrorReport_applicationErrorParametersAttrTypesRecurse = objectAttrsTypeErrorReport_applicationErrorParameters(true) +var errorReport_applicationErrorParametersAttrTypes = objectAttrsTypeErrorReport_applicationErrorParameters(false) +var errorReport_applicationErrorParametersAttrTypesRecurse = objectAttrsTypeErrorReport_applicationErrorParameters(true) -type ErrorReport_applicationErrorParametersData struct { +type errorReport_applicationErrorParametersData struct { } -var GeneratedSecretAttrTypes = objectAttrsTypeGeneratedSecret(false) -var GeneratedSecretAttrTypesRecurse = objectAttrsTypeGeneratedSecret(true) +var generatedSecretAttrTypes = objectAttrsTypeGeneratedSecret(false) +var generatedSecretAttrTypesRecurse = objectAttrsTypeGeneratedSecret(true) -type GeneratedSecretData struct { +type generatedSecretData struct { GeneratedSecret types.String `tfsdk:"generated_secret"` OldSecret types.String `tfsdk:"old_secret"` Regenerate types.Bool `tfsdk:"regenerate"` } -var LinkableAttrTypes = objectAttrsTypeLinkable(false) -var LinkableAttrTypesRecurse = objectAttrsTypeLinkable(true) +var linkableAttrTypes = objectAttrsTypeLinkable(false) +var linkableAttrTypesRecurse = objectAttrsTypeLinkable(true) -type LinkableData struct { +type linkableData struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` } -var NonLinkableAttrTypes = objectAttrsTypeNonLinkable(false) -var NonLinkableAttrTypesRecurse = objectAttrsTypeNonLinkable(true) +var nonLinkableAttrTypes = objectAttrsTypeNonLinkable(false) +var nonLinkableAttrTypesRecurse = objectAttrsTypeNonLinkable(true) -type NonLinkableData struct { +type nonLinkableData struct { } -var RestLinkAttrTypes = objectAttrsTypeRestLink(false) -var RestLinkAttrTypesRecurse = objectAttrsTypeRestLink(true) +var restLinkAttrTypes = objectAttrsTypeRestLink(false) +var restLinkAttrTypesRecurse = objectAttrsTypeRestLink(true) -type RestLinkData struct { +type restLinkData struct { Href types.String `tfsdk:"href"` ID types.Int64 `tfsdk:"id"` Rel types.String `tfsdk:"rel"` TypeEscaped types.String `tfsdk:"type_escaped"` } -var SegmentCountAttrTypes = objectAttrsTypeSegmentCount(false) -var SegmentCountAttrTypesRecurse = objectAttrsTypeSegmentCount(true) +var segmentCountAttrTypes = objectAttrsTypeSegmentCount(false) +var segmentCountAttrTypesRecurse = objectAttrsTypeSegmentCount(true) -type SegmentCountData struct { +type segmentCountData struct { Count types.Int64 `tfsdk:"count"` Name types.String `tfsdk:"name"` } @@ -6161,18 +6161,18 @@ func tkhToTFObjectAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types. var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = AuditInfoAttrTypesRecurse + attrs = auditInfoAttrTypesRecurse } else { - attrs = AuditInfoAttrTypes + attrs = auditInfoAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["created_at"] = TimePointerToTF(tkh.GetCreatedAt()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) objVal, d := types.ObjectValue(attrs, obj) @@ -6184,9 +6184,9 @@ func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (ty var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = ErrorReportAttrTypesRecurse + attrs = errorReportAttrTypesRecurse } else { - attrs = ErrorReportAttrTypes + attrs = errorReportAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6199,10 +6199,10 @@ func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (ty diags.Append(d...) obj["application_error_parameters"] = val } - obj["code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetCode())) + obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) { elemType := attrs["error_details"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -6213,7 +6213,7 @@ func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (ty obj["reason"] = types.StringPointerValue(tkh.GetReason()) { elemType := attrs["stacktrace"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -6229,9 +6229,9 @@ func tkhToTFObjectErrorReport_applicationErrorParameters(recurse bool, tkh keyhu var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = ErrorReport_applicationErrorParametersAttrTypesRecurse + attrs = errorReport_applicationErrorParametersAttrTypesRecurse } else { - attrs = ErrorReport_applicationErrorParametersAttrTypes + attrs = errorReport_applicationErrorParametersAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6248,9 +6248,9 @@ func tkhToTFObjectGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecreta var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = GeneratedSecretAttrTypesRecurse + attrs = generatedSecretAttrTypesRecurse } else { - attrs = GeneratedSecretAttrTypes + attrs = generatedSecretAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6270,9 +6270,9 @@ func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Ob var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = LinkableAttrTypesRecurse + attrs = linkableAttrTypesRecurse } else { - attrs = LinkableAttrTypes + attrs = linkableAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6281,7 +6281,7 @@ func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Ob obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -6291,7 +6291,7 @@ func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Ob } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6309,9 +6309,9 @@ func tkhToTFObjectNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (ty var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = NonLinkableAttrTypesRecurse + attrs = nonLinkableAttrTypesRecurse } else { - attrs = NonLinkableAttrTypes + attrs = nonLinkableAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6328,9 +6328,9 @@ func tkhToTFObjectRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Ob var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = RestLinkAttrTypesRecurse + attrs = restLinkAttrTypesRecurse } else { - attrs = RestLinkAttrTypes + attrs = restLinkAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6351,9 +6351,9 @@ func tkhToTFObjectSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) ( var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = SegmentCountAttrTypesRecurse + attrs = segmentCountAttrTypesRecurse } else { - attrs = SegmentCountAttrTypes + attrs = segmentCountAttrTypes } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6390,7 +6390,7 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -6400,7 +6400,7 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6408,8 +6408,8 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor diags.Append(d...) obj["permissions"] = val } - obj["audit_audit_record_type"] = StringerToTF(tkh.GetAuditAuditRecordType()) - obj["date_time"] = TimePointerToTF(tkh.GetDateTime()) + obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["date_time"] = timePointerToTF(tkh.GetDateTime()) obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) @@ -6426,7 +6426,7 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) - obj["security_level"] = StringerToTF(tkh.GetSecurityLevel()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6448,7 +6448,7 @@ func tkhToTFObjectAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuditAuditRecord(false, tkh) diags.Append(d...) return val @@ -6508,7 +6508,7 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -6518,7 +6518,7 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6527,13 +6527,13 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty obj["permissions"] = val } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["validity"] = stringerToTF(tkh.GetValidity()) { elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6543,20 +6543,20 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = StringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = StringerToTF(tkh.GetDirectoryType()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) obj["email"] = types.StringPointerValue(tkh.GetEmail()) obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = StringerToTF(tkh.GetLicenseRole()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) obj["locale"] = types.StringPointerValue(tkh.GetLocale()) obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = StringerToTF(tkh.GetTwoFactorStatus()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) objVal, d := types.ObjectValue(attrs, obj) @@ -6577,11 +6577,11 @@ func tkhToTFObjectAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccoun } obj := make(map[string]attr.Value) - obj["action"] = StringerToTF(tkh.GetAction()) + obj["action"] = stringerToTF(tkh.GetAction()) obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) { elemType := attrs["selected_accounts"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { return types.Int64Value(tkh) }) diags.Append(d...) @@ -6628,7 +6628,7 @@ func tkhToTFObjectAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthA obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthAccount(false, tkh) diags.Append(d...) return val @@ -6657,7 +6657,7 @@ func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPri obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -6667,7 +6667,7 @@ func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPri } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6676,10 +6676,10 @@ func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPri obj["permissions"] = val } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["validity"] = stringerToTF(tkh.GetValidity()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6720,18 +6720,18 @@ func tkhToTFObjectAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountS } obj := make(map[string]attr.Value) - obj["default_organizational_unit_uuid"] = WithUuidToTF(tkh.GetDefaultOrganizationalUnit()) + obj["default_organizational_unit_uuid"] = withUuidToTF(tkh.GetDefaultOrganizationalUnit()) obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_type"] = StringerToTF(tkh.GetDirectoryType()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) - obj["password_mode"] = StringerToTF(tkh.GetPasswordMode()) + obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) - obj["two_factor_authentication"] = StringerToTF(tkh.GetTwoFactorAuthentication()) + obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) - obj["vault_status"] = StringerToTF(tkh.GetVaultStatus()) + obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6754,7 +6754,7 @@ func tkhToTFObjectAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountSta obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) - obj["license_role"] = StringerToTF(tkh.GetLicenseRole()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) @@ -6926,7 +6926,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -6936,7 +6936,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6945,13 +6945,13 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal obj["permissions"] = val } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["validity"] = stringerToTF(tkh.GetValidity()) { elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -6961,27 +6961,27 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = StringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = StringerToTF(tkh.GetDirectoryType()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) obj["email"] = types.StringPointerValue(tkh.GetEmail()) obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = StringerToTF(tkh.GetLicenseRole()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) obj["locale"] = types.StringPointerValue(tkh.GetLocale()) obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = StringerToTF(tkh.GetTwoFactorStatus()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = TimePointerToTF(tkh.GetActivationDeadline()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) obj["company"] = types.StringPointerValue(tkh.GetCompany()) obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) objVal, d := types.ObjectValue(attrs, obj) @@ -7004,7 +7004,7 @@ func tkhToTFObjectAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthInternalAccount(false, tkh) diags.Append(d...) return val @@ -7031,7 +7031,7 @@ func tkhToTFObjectAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel. } obj := make(map[string]attr.Value) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7103,7 +7103,7 @@ func tkhToTFObjectAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionabl obj["full"] = types.StringPointerValue(tkh.GetFull()) { elemType := attrs["instances"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7111,7 +7111,7 @@ func tkhToTFObjectAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionabl } { elemType := attrs["operations"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) @@ -7160,7 +7160,7 @@ func tkhToTFObjectAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.Auth obj := make(map[string]attr.Value) { elemType := attrs["attributes"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthStoredAccountAttribute(false, tkh) diags.Append(d...) return val @@ -7196,7 +7196,7 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7206,7 +7206,7 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7215,16 +7215,16 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = StringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["certificate_data"] = val } - obj["expiration"] = TimePointerToTF(tkh.GetExpiration()) + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) @@ -7232,7 +7232,7 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { elemType := attrs["key_data"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7259,7 +7259,7 @@ func tkhToTFObjectCertificateCertificateLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectCertificateCertificate(false, tkh) diags.Append(d...) return val @@ -7288,7 +7288,7 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7298,7 +7298,7 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7307,16 +7307,16 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = StringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["certificate_data"] = val } - obj["expiration"] = TimePointerToTF(tkh.GetExpiration()) + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) @@ -7374,7 +7374,7 @@ func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientCl } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7384,7 +7384,7 @@ func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientCl } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7392,12 +7392,12 @@ func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientCl diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { elemType := attrs["scopes"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7405,9 +7405,9 @@ func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientCl } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7429,7 +7429,7 @@ func tkhToTFObjectClientClientApplicationLinkableWrapper(recurse bool, tkh keyhu obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectClientClientApplication(false, tkh) diags.Append(d...) return val @@ -7458,7 +7458,7 @@ func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.Cl obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7468,7 +7468,7 @@ func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.Cl } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7476,12 +7476,12 @@ func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.Cl diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { elemType := attrs["scopes"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7534,7 +7534,7 @@ func tkhToTFObjectClientClientApplication_additionalObjects(recurse bool, tkh ke diags.Append(d...) obj["tile"] = val } - obj["vault_record_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetVaultRecordCount())) + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7563,7 +7563,7 @@ func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClien } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7573,7 +7573,7 @@ func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClien } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7581,12 +7581,12 @@ func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClien diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { elemType := attrs["scopes"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7594,13 +7594,13 @@ func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClien } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) - obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = WithUuidToTF(tkh.GetSharedSecret()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) @@ -7630,7 +7630,7 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7640,7 +7640,7 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7648,12 +7648,12 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { elemType := attrs["scopes"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7661,12 +7661,12 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7686,7 +7686,7 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = WithUuidToTF(tkh.GetSharedSecret()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) @@ -7717,7 +7717,7 @@ func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.Cli } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7727,7 +7727,7 @@ func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.Cli } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7735,9 +7735,9 @@ func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.Cli diags.Append(d...) obj["permissions"] = val } - obj["for_group_uuid"] = WithUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = WithUuidToTF(tkh.GetForSystem()) - obj["value"] = StringerToTF(tkh.GetValue()) + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7759,7 +7759,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectClientOAuth2ClientPermission(false, tkh) diags.Append(d...) return val @@ -7795,7 +7795,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhu } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7805,7 +7805,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhu } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7813,9 +7813,9 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhu diags.Append(d...) obj["permissions"] = val } - obj["for_group_uuid"] = WithUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = WithUuidToTF(tkh.GetForSystem()) - obj["value"] = StringerToTF(tkh.GetValue()) + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) { val, d := tkhToTFObjectClientOAuth2Client(false, tkh.GetClient()) diags.Append(d...) @@ -7842,7 +7842,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClient(false, tkh) diags.Append(d...) return val @@ -7921,7 +7921,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -7931,7 +7931,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -7939,12 +7939,12 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = StringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { elemType := attrs["scopes"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -7952,9 +7952,9 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = TimePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { val, d := tkhToTFObjectClientSaml2Client_attributes(false, tkh.GetAttributes()) diags.Append(d...) @@ -7962,7 +7962,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli } obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) - obj["subject_format"] = StringerToTF(tkh.GetSubjectFormat()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8010,7 +8010,7 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8020,7 +8020,7 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8030,14 +8030,14 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) @@ -8060,7 +8060,7 @@ func tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectDirectoryAccountDirectory(false, tkh) diags.Append(d...) return val @@ -8089,7 +8089,7 @@ func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8099,7 +8099,7 @@ func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel. } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8109,7 +8109,7 @@ func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel. } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -8133,7 +8133,7 @@ func tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhub obj := make(map[string]attr.Value) obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) obj["reason"] = types.StringPointerValue(tkh.GetReason()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8155,7 +8155,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8165,7 +8165,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8173,7 +8173,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel diags.Append(d...) obj["permissions"] = val } - obj["directory_account_directory_summary_type"] = StringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) @@ -8204,7 +8204,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectDirectoryAccountDirectorySummary(false, tkh) diags.Append(d...) return val @@ -8274,7 +8274,7 @@ func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Direc } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8284,7 +8284,7 @@ func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Direc } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8294,16 +8294,16 @@ func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Direc } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8332,7 +8332,7 @@ func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directory } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8342,7 +8342,7 @@ func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directory } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8352,29 +8352,29 @@ func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directory } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) - obj["dialect"] = StringerToTF(tkh.GetDialect()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["dialect"] = stringerToTF(tkh.GetDialect()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["password_recovery"] = StringerToTF(tkh.GetPasswordRecovery()) - obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) - obj["tls"] = StringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8403,7 +8403,7 @@ func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.Di } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8413,7 +8413,7 @@ func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.Di } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8423,14 +8423,14 @@ func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.Di } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) @@ -8460,7 +8460,7 @@ func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directory } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8470,7 +8470,7 @@ func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directory } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8480,14 +8480,14 @@ func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directory } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = StringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = WithUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = WithUuidToTF(tkh.GetHelpdeskGroup()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = StringerToTF(tkh.GetRotatingPassword()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) @@ -8499,7 +8499,7 @@ func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directory obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) - obj["vendor_escaped"] = StringerToTF(tkh.GetVendorEscaped()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8528,7 +8528,7 @@ func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGr } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8538,7 +8538,7 @@ func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGr } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8549,15 +8549,15 @@ func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGr obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) { val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) diags.Append(d...) obj["folder"] = val } - obj["last_used"] = StringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = TimePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = StringerToTF(tkh.GetRights()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) @@ -8580,7 +8580,7 @@ func tkhToTFObjectGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupAccountGroup(false, tkh) diags.Append(d...) return val @@ -8638,7 +8638,7 @@ func tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.Gro obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroup(false, tkh) diags.Append(d...) return val @@ -8675,7 +8675,7 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8685,7 +8685,7 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8704,29 +8704,29 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type } obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) - obj["authorizing_group_auditing_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupAuditing()) - obj["authorizing_group_delegation_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupDelegation()) - obj["authorizing_group_membership_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupMembership()) - obj["authorizing_group_provisioning_uuid"] = WithUuidToTF(tkh.GetAuthorizingGroupProvisioning()) + obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) + obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) + obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) + obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) { elemType := attrs["authorizing_group_types"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) obj["authorizing_group_types"] = val } - obj["classification_uuid"] = WithUuidToTF(tkh.GetClassification()) + obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["extended_access"] = StringerToTF(tkh.GetExtendedAccess()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - obj["nested_under_uuid"] = WithUuidToTF(tkh.GetNestedUnder()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) - obj["vault_recovery"] = StringerToTF(tkh.GetVaultRecovery()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) @@ -8756,7 +8756,7 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8766,7 +8766,7 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8775,18 +8775,18 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco obj["permissions"] = val } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = StringerToTF(tkh.GetValidity()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = StringerToTF(tkh.GetEndDate()) - obj["last_used"] = StringerToTF(tkh.GetLastUsed()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = TimePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = StringerToTF(tkh.GetRights()) - obj["two_factor_status"] = StringerToTF(tkh.GetTwoFactorStatus()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) @@ -8809,7 +8809,7 @@ func tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupAccount(false, tkh) diags.Append(d...) return val @@ -8934,7 +8934,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -8944,7 +8944,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -8954,7 +8954,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita } { elemType := attrs["accounts"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupAuditAccount(false, tkh) diags.Append(d...) return val @@ -8963,14 +8963,14 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita obj["accounts"] = val } obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = TimePointerToTF(tkh.GetCreatedAt()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = TimePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["submitted_at"] = TimePointerToTF(tkh.GetSubmittedAt()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) objVal, d := types.ObjectValue(attrs, obj) @@ -8993,7 +8993,7 @@ func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGrou obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9003,7 +9003,7 @@ func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGrou } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9013,15 +9013,15 @@ func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGrou } obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) - obj["action"] = StringerToTF(tkh.GetAction()) + obj["action"] = stringerToTF(tkh.GetAction()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["end_date"] = StringerToTF(tkh.GetEndDate()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) - obj["last_used"] = StringerToTF(tkh.GetLastUsed()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["rights"] = StringerToTF(tkh.GetRights()) + obj["rights"] = stringerToTF(tkh.GetRights()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) @@ -9044,7 +9044,7 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9054,7 +9054,7 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9064,7 +9064,7 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup } { elemType := attrs["months"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) @@ -9091,7 +9091,7 @@ func tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.G obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupAudit(false, tkh) diags.Append(d...) return val @@ -9142,8 +9142,8 @@ func tkhToTFObjectGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGrou } obj := make(map[string]attr.Value) - obj["audit_due_date"] = StringerToTF(tkh.GetAuditDueDate()) - obj["last_audit_date"] = StringerToTF(tkh.GetLastAuditDate()) + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) @@ -9178,7 +9178,7 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9188,7 +9188,7 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9204,12 +9204,12 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["maximum_audit_interval"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetMaximumAuditInterval())) - obj["minimum_nr_managers"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) { elemType := attrs["required_months"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) @@ -9236,7 +9236,7 @@ func tkhToTFObjectGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.Gro } obj := make(map[string]attr.Value) - obj["nr_groups"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrGroups())) + obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9258,7 +9258,7 @@ func tkhToTFObjectGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupClassification(false, tkh) diags.Append(d...) return val @@ -9287,7 +9287,7 @@ func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.G obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9297,7 +9297,7 @@ func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.G } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9326,7 +9326,7 @@ func tkhToTFObjectGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.G } obj := make(map[string]attr.Value) - obj["classificaton_uuid"] = WithUuidToTF(tkh.GetClassificaton()) + obj["classificaton_uuid"] = withUuidToTF(tkh.GetClassificaton()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9384,7 +9384,7 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9394,7 +9394,7 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9403,10 +9403,10 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien obj["permissions"] = val } obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["client_uuid"] = WithUuidToTF(tkh.GetClient()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9428,7 +9428,7 @@ func tkhToTFObjectGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupClient(false, tkh) diags.Append(d...) return val @@ -9488,7 +9488,7 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9498,7 +9498,7 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9528,7 +9528,7 @@ func tkhToTFObjectGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupFolder(false, tkh) diags.Append(d...) return val @@ -9579,12 +9579,12 @@ func tkhToTFObjectGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoabl } obj := make(map[string]attr.Value) - obj["nr_accounts"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrAccounts())) - obj["nr_accounts_with_vault"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrAccountsWithVault())) - obj["nr_audits"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrAudits())) - obj["nr_clients"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrClients())) - obj["nr_provisioned_systems"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrProvisionedSystems())) - obj["nr_vault_records"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNrVaultRecords())) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9606,7 +9606,7 @@ func tkhToTFObjectGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupG obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroup(false, tkh) diags.Append(d...) return val @@ -9635,7 +9635,7 @@ func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrime obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9645,7 +9645,7 @@ func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrime } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9677,8 +9677,8 @@ func tkhToTFObjectGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -9704,7 +9704,7 @@ func tkhToTFObjectGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroup(false, tkh) diags.Append(d...) return val @@ -9714,7 +9714,7 @@ func tkhToTFObjectGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmod } { elemType := attrs["segments"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectSegmentCount(false, tkh) diags.Append(d...) return val @@ -9851,7 +9851,7 @@ func tkhToTFObjectGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.Gro diags.Append(d...) obj["recent_audits"] = val } - obj["requeststatus"] = StringerToTF(tkh.GetRequeststatus()) + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) { val, d := tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(false, tkh.GetServiceAccounts()) diags.Append(d...) @@ -9894,7 +9894,7 @@ func tkhToTFObjectGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroup obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) { elemType := attrs["classifications"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupGroupClassification(false, tkh) diags.Append(d...) return val @@ -9935,7 +9935,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -9945,7 +9945,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -9954,7 +9954,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv obj["permissions"] = val } obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) @@ -9981,7 +9981,7 @@ func tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectGroupProvisioningGroup(false, tkh) diags.Append(d...) return val @@ -10034,7 +10034,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10044,7 +10044,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10052,11 +10052,11 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) { elemType := attrs["logo"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -10090,7 +10090,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectLaunchpadDisplayedLaunchpadTile(false, tkh) diags.Append(d...) return val @@ -10126,7 +10126,7 @@ func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchpad } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10136,7 +10136,7 @@ func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchpad } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10144,19 +10144,19 @@ func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchpad diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) { elemType := attrs["logo"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["logo"] = val } - obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10178,7 +10178,7 @@ func tkhToTFObjectLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectLaunchpadLaunchpadTile(false, tkh) diags.Append(d...) return val @@ -10207,7 +10207,7 @@ func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.Lau obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10217,7 +10217,7 @@ func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.Lau } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10277,7 +10277,7 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10287,7 +10287,7 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10295,19 +10295,19 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) { elemType := attrs["logo"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["logo"] = val } - obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) obj["title"] = types.StringPointerValue(tkh.GetTitle()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) @@ -10338,7 +10338,7 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10348,7 +10348,7 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10356,19 +10356,19 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) { elemType := attrs["logo"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["logo"] = val } - obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) @@ -10398,7 +10398,7 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10408,7 +10408,7 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10416,19 +10416,19 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = StringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) { elemType := attrs["logo"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["logo"] = val } - obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10448,12 +10448,12 @@ func tkhToTFObjectLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.License } obj := make(map[string]attr.Value) - obj["current_license_status"] = StringerToTF(tkh.GetCurrentLicenseStatus()) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) { elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -10461,30 +10461,30 @@ func tkhToTFObjectLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.License } { elemType := attrs["details"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["details"] = val } - obj["expiration_time"] = TimePointerToTF(tkh.GetExpirationTime()) + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { elemType := attrs["features"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) obj["features"] = val } - obj["issue_time"] = TimePointerToTF(tkh.GetIssueTime()) + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = TimePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetVersion())) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10504,8 +10504,8 @@ func tkhToTFObjectMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerabl } obj := make(map[string]attr.Value) - obj["level"] = StringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = StringerToTF(tkh.GetMarkItemMarkerType()) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { val, d := tkhToTFObjectMarkItemMarker_parameters(false, tkh.GetParameters()) diags.Append(d...) @@ -10551,7 +10551,7 @@ func tkhToTFObjectMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersa obj := make(map[string]attr.Value) { elemType := attrs["markers"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectMarkItemMarker(false, tkh) diags.Append(d...) return val @@ -10588,7 +10588,7 @@ func tkhToTFObjectNotificationCertificateExpiredNotification(recurse bool, tkh k diags.Append(d...) obj["directory"] = val } - obj["expiration"] = TimePointerToTF(tkh.GetExpiration()) + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) { val, d := tkhToTFObjectClientLdapClient(false, tkh.GetLdapClient()) diags.Append(d...) @@ -10599,8 +10599,8 @@ func tkhToTFObjectNotificationCertificateExpiredNotification(recurse bool, tkh k diags.Append(d...) obj["system"] = val } - obj["usage"] = StringerToTF(tkh.GetUsage()) - obj["webhook_uuid"] = WithUuidToTF(tkh.GetWebhook()) + obj["usage"] = stringerToTF(tkh.GetUsage()) + obj["webhook_uuid"] = withUuidToTF(tkh.GetWebhook()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10620,13 +10620,13 @@ func tkhToTFObjectNotificationGroupAuditRequiredNotification(recurse bool, tkh k } obj := make(map[string]attr.Value) - obj["due_date"] = TimePointerToTF(tkh.GetDueDate()) + obj["due_date"] = timePointerToTF(tkh.GetDueDate()) { val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) diags.Append(d...) obj["group"] = val } - obj["notification_group_audit_required_notification_type"] = StringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) + obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10656,7 +10656,7 @@ func tkhToTFObjectNotificationGroupEditRequiredNotification(recurse bool, tkh ke diags.Append(d...) obj["parameters"] = val } - obj["reason"] = StringerToTF(tkh.GetReason()) + obj["reason"] = stringerToTF(tkh.GetReason()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10714,8 +10714,8 @@ func tkhToTFObjectNotificationLicenseStatusNotification(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - obj["active_accounts"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetActiveAccounts())) - obj["license_info_uuid"] = WithUuidToTF(tkh.GetLicenseInfo()) + obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) + obj["license_info_uuid"] = withUuidToTF(tkh.GetLicenseInfo()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10737,7 +10737,7 @@ func tkhToTFObjectNotificationModificationRequestNotification(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["admins"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -10745,7 +10745,7 @@ func tkhToTFObjectNotificationModificationRequestNotification(recurse bool, tkh } { elemType := attrs["groups"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) @@ -10796,7 +10796,7 @@ func tkhToTFObjectNotificationNotifications(recurse bool, tkh keyhubmodel.Notifi obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectNotificationNotification(false, tkh) diags.Append(d...) return val @@ -10823,7 +10823,7 @@ func tkhToTFObjectNotificationOldApiVersionUsageNotification(recurse bool, tkh k } obj := make(map[string]attr.Value) - obj["api_version"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetApiVersion())) + obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) { val, d := tkhToTFObjectClientOAuth2Client(false, tkh.GetClient()) diags.Append(d...) @@ -10850,8 +10850,8 @@ func tkhToTFObjectNotificationProvisionConfigRequiredNotification(recurse bool, obj := make(map[string]attr.Value) { elemType := attrs["systems"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["systems"] = val @@ -10877,8 +10877,8 @@ func tkhToTFObjectNotificationRotatingPasswordRequiredNotification(recurse bool, obj := make(map[string]attr.Value) { elemType := attrs["groups"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["groups"] = val @@ -10902,7 +10902,7 @@ func tkhToTFObjectNotificationUpdateAvailableNotification(recurse bool, tkh keyh } obj := make(map[string]attr.Value) - obj["released_at"] = StringerToTF(tkh.GetReleasedAt()) + obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10955,7 +10955,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -10965,7 +10965,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -10996,7 +10996,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnitLinkableWrapper(recurse b obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit(false, tkh) diags.Append(d...) return val @@ -11056,7 +11056,7 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11066,7 +11066,7 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11076,10 +11076,10 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O } obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["depth"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetDepth())) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["parent_uuid"] = WithUuidToTF(tkh.GetParent()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -11108,7 +11108,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11118,7 +11118,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11127,11 +11127,11 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub obj["permissions"] = val } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = StringerToTF(tkh.GetValidity()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -11153,7 +11153,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccountLinkableWrapper(recurse b obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount(false, tkh) diags.Append(d...) return val @@ -11206,7 +11206,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tk obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectOrganizationOrganizationalUnit(false, tkh) diags.Append(d...) return val @@ -11235,7 +11235,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11245,7 +11245,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubm } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11276,8 +11276,8 @@ func tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bo obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -11339,7 +11339,7 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11349,7 +11349,7 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11359,18 +11359,18 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) @@ -11380,17 +11380,17 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = StringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) objVal, d := types.ObjectValue(attrs, obj) @@ -11431,7 +11431,7 @@ func tkhToTFObjectProvisioningAccountProvisioningStatus(recurse bool, tkh keyhub obj := make(map[string]attr.Value) obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["result"] = StringerToTF(tkh.GetResult()) + obj["result"] = stringerToTF(tkh.GetResult()) { val, d := tkhToTFObjectGroupProvisioningGroup(false, tkh.GetSystem()) diags.Append(d...) @@ -11458,7 +11458,7 @@ func tkhToTFObjectProvisioningAccountProvisioningStatusReport(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["status"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningAccountProvisioningStatus(false, tkh) diags.Append(d...) return val @@ -11488,7 +11488,7 @@ func tkhToTFObjectProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubm obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) - obj["state"] = StringerToTF(tkh.GetState()) + obj["state"] = stringerToTF(tkh.GetState()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -11517,7 +11517,7 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11527,7 +11527,7 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11537,10 +11537,10 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = StringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -11562,7 +11562,7 @@ func tkhToTFObjectProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh) diags.Append(d...) return val @@ -11591,7 +11591,7 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11601,7 +11601,7 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11611,7 +11611,7 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = StringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -11634,7 +11634,7 @@ func tkhToTFObjectProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.P obj := make(map[string]attr.Value) { elemType := attrs["types"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) @@ -11708,8 +11708,8 @@ func tkhToTFObjectProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmo diags.Append(d...) obj["provisioning_duration"] = val } - obj["provisioning_end_time"] = TimePointerToTF(tkh.GetProvisioningEndTime()) - obj["provisioning_permission_end_time"] = TimePointerToTF(tkh.GetProvisioningPermissionEndTime()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) { val, d := tkhToTFObjectProvisioningAccountProvisioningStatusReport(false, tkh.GetStatusReport()) diags.Append(d...) @@ -11735,7 +11735,7 @@ func tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(recur } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNanos())) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) objVal, d := types.ObjectValue(attrs, obj) @@ -11758,7 +11758,7 @@ func tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhu obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh) diags.Append(d...) return val @@ -11795,7 +11795,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11805,7 +11805,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11813,7 +11813,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) @@ -11837,7 +11837,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(recurse boo obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningProvisionNumberSequence(false, tkh) diags.Append(d...) return val @@ -11902,7 +11902,7 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11912,7 +11912,7 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -11922,18 +11922,18 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) @@ -11943,19 +11943,19 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = StringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["sam_account_name_scheme"] = StringerToTF(tkh.GetSamAccountNameScheme()) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -11984,7 +11984,7 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -11994,7 +11994,7 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12003,10 +12003,10 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P obj["permissions"] = val } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = TimePointerToTF(tkh.GetLastActive()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = StringerToTF(tkh.GetValidity()) + obj["validity"] = stringerToTF(tkh.GetValidity()) obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) @@ -12029,7 +12029,7 @@ func tkhToTFObjectProvisioningProvisionedAccountLinkableWrapper(recurse bool, tk obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningProvisionedAccount(false, tkh) diags.Append(d...) return val @@ -12089,7 +12089,7 @@ func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh ke } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12099,7 +12099,7 @@ func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh ke } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12109,20 +12109,20 @@ func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh ke } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) @@ -12152,7 +12152,7 @@ func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tk } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12162,7 +12162,7 @@ func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tk } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12172,22 +12172,22 @@ func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tk } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) @@ -12217,7 +12217,7 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12227,7 +12227,7 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12237,18 +12237,18 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) @@ -12282,7 +12282,7 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12292,7 +12292,7 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12302,18 +12302,18 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { val, d := tkhToTFObjectClientLdapClient(false, tkh.GetClient()) @@ -12348,7 +12348,7 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12358,7 +12358,7 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12368,18 +12368,18 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) @@ -12389,20 +12389,20 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = WithUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetPort())) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = StringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = StringerToTF(tkh.GetHashingScheme()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { val, d := tkhToTFObjectProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) diags.Append(d...) @@ -12436,7 +12436,7 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12446,7 +12446,7 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12456,20 +12456,20 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) @@ -12499,7 +12499,7 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12509,7 +12509,7 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12519,18 +12519,18 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = WithUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = StringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) - obj["owner_uuid"] = WithUuidToTF(tkh.GetOwner()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) objVal, d := types.ObjectValue(attrs, obj) @@ -12553,7 +12553,7 @@ func tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningProvisionedSystem(false, tkh) diags.Append(d...) return val @@ -12582,7 +12582,7 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12592,7 +12592,7 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12602,7 +12602,7 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["provisioning_provisioned_system_primer_type"] = StringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -12625,8 +12625,8 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse boo obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -12659,7 +12659,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12669,7 +12669,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12677,10 +12677,10 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm diags.Append(d...) obj["permissions"] = val } - obj["created_at"] = TimePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetErrors())) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetModifications())) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -12702,7 +12702,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bo obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog(false, tkh) diags.Append(d...) return val @@ -12832,7 +12832,7 @@ func tkhToTFObjectProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.P obj := make(map[string]attr.Value) { elemType := attrs["groups"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectProvisioningGroupProvisioningStatus(false, tkh) diags.Append(d...) return val @@ -12890,7 +12890,7 @@ func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tk } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12900,7 +12900,7 @@ func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tk } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12908,14 +12908,14 @@ func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tk diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -12944,7 +12944,7 @@ func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse b } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -12954,7 +12954,7 @@ func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse b } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -12962,14 +12962,14 @@ func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse b diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -12998,7 +12998,7 @@ func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13008,7 +13008,7 @@ func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13016,14 +13016,14 @@ func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bo diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13067,7 +13067,7 @@ func tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(recur } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNanos())) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) objVal, d := types.ObjectValue(attrs, obj) @@ -13088,7 +13088,7 @@ func tkhToTFObjectRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyh } obj := make(map[string]attr.Value) - obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) objVal, d := types.ObjectValue(attrs, obj) @@ -13137,7 +13137,7 @@ func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Requ } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13147,7 +13147,7 @@ func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Requ } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13155,14 +13155,14 @@ func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["new_admin_uuid"] = WithUuidToTF(tkh.GetNewAdmin()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) @@ -13192,7 +13192,7 @@ func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmode } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13202,7 +13202,7 @@ func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmode } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13210,16 +13210,16 @@ func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = StringerToTF(tkh.GetGroupOnSystemType()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -13249,7 +13249,7 @@ func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13259,7 +13259,7 @@ func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13267,14 +13267,14 @@ func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) @@ -13304,7 +13304,7 @@ func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmod } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13314,7 +13314,7 @@ func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmod } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13322,14 +13322,14 @@ func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) @@ -13359,7 +13359,7 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13369,7 +13369,7 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13377,13 +13377,13 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["subject"] = types.StringPointerValue(tkh.GetSubject()) objVal, d := types.ObjectValue(attrs, obj) @@ -13413,7 +13413,7 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13423,7 +13423,7 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13431,13 +13431,13 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13466,7 +13466,7 @@ func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Reque } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13476,7 +13476,7 @@ func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Reque } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13484,14 +13484,14 @@ func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Reque diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["extend_until"] = TimePointerToTF(tkh.GetExtendUntil()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13520,7 +13520,7 @@ func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13530,7 +13530,7 @@ func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13538,13 +13538,13 @@ func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13573,7 +13573,7 @@ func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.R } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13583,7 +13583,7 @@ func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.R } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13591,14 +13591,14 @@ func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.R diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13627,7 +13627,7 @@ func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13637,7 +13637,7 @@ func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13645,16 +13645,16 @@ func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) - obj["permission_type"] = StringerToTF(tkh.GetPermissionType()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13683,7 +13683,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13693,7 +13693,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13701,13 +13701,13 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) @@ -13742,7 +13742,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyh } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13752,7 +13752,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyh } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13760,13 +13760,13 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyh diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) @@ -13801,7 +13801,7 @@ func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhu } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13811,7 +13811,7 @@ func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhu } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13819,19 +13819,19 @@ func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhu diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } - obj["service_account_uuid"] = WithUuidToTF(tkh.GetServiceAccount()) + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13860,7 +13860,7 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13870,7 +13870,7 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13878,13 +13878,13 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13913,7 +13913,7 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13923,7 +13923,7 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13931,13 +13931,13 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -13966,7 +13966,7 @@ func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.Reque } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -13976,7 +13976,7 @@ func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.Reque } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -13984,13 +13984,13 @@ func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.Reque diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14012,7 +14012,7 @@ func tkhToTFObjectRequestModificationRequestLinkableWrapper(recurse bool, tkh ke obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRequestModificationRequest(false, tkh) diags.Append(d...) return val @@ -14082,7 +14082,7 @@ func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Requ } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14092,7 +14092,7 @@ func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Requ } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14100,13 +14100,13 @@ func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) @@ -14129,17 +14129,17 @@ func tkhToTFObjectRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmode } obj := make(map[string]attr.Value) - obj["cooldown_end"] = TimePointerToTF(tkh.GetCooldownEnd()) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) { elemType := attrs["managers"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh) }) diags.Append(d...) obj["managers"] = val } obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = StringerToTF(tkh.GetResetViaMail()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14168,7 +14168,7 @@ func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14178,7 +14178,7 @@ func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14186,13 +14186,13 @@ func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) @@ -14222,7 +14222,7 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14232,7 +14232,7 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14240,14 +14240,14 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) objVal, d := types.ObjectValue(attrs, obj) @@ -14277,7 +14277,7 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14287,7 +14287,7 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14295,14 +14295,14 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) objVal, d := types.ObjectValue(attrs, obj) @@ -14332,7 +14332,7 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14342,7 +14342,7 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14350,13 +14350,13 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14385,7 +14385,7 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14395,7 +14395,7 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14403,14 +14403,14 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["admin_uuid"] = WithUuidToTF(tkh.GetAdmin()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14439,7 +14439,7 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14449,7 +14449,7 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14457,16 +14457,16 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["authorizing_group_type"] = StringerToTF(tkh.GetAuthorizingGroupType()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = WithUuidToTF(tkh.GetRequestingGroup()) + obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14495,7 +14495,7 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14505,7 +14505,7 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14513,16 +14513,16 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["account_action"] = StringerToTF(tkh.GetAccountAction()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = WithUuidToTF(tkh.GetRequestingGroup()) + obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14551,7 +14551,7 @@ func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14561,7 +14561,7 @@ func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14569,14 +14569,14 @@ func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14605,7 +14605,7 @@ func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh k } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14615,7 +14615,7 @@ func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh k } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14623,14 +14623,14 @@ func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh k diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["application_uuid"] = WithUuidToTF(tkh.GetApplication()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14659,7 +14659,7 @@ func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmod } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14669,7 +14669,7 @@ func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmod } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14677,13 +14677,13 @@ func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14712,7 +14712,7 @@ func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14722,7 +14722,7 @@ func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14730,13 +14730,13 @@ func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) @@ -14770,7 +14770,7 @@ func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14780,7 +14780,7 @@ func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14788,14 +14788,14 @@ func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14824,7 +14824,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14834,7 +14834,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14842,14 +14842,14 @@ func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14878,7 +14878,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(r } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14888,7 +14888,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(r } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14896,14 +14896,14 @@ func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(r diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14932,7 +14932,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14942,7 +14942,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -14950,14 +14950,14 @@ func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -14986,7 +14986,7 @@ func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse boo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -14996,7 +14996,7 @@ func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse boo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15004,14 +15004,14 @@ func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse boo diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["service_account_uuid"] = WithUuidToTF(tkh.GetServiceAccount()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -15040,7 +15040,7 @@ func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15050,7 +15050,7 @@ func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15058,19 +15058,19 @@ func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) - obj["account_to_update_uuid"] = WithUuidToTF(tkh.GetAccountToUpdate()) - obj["current_end_date"] = StringerToTF(tkh.GetCurrentEndDate()) - obj["current_rights"] = StringerToTF(tkh.GetCurrentRights()) - obj["end_date"] = StringerToTF(tkh.GetEndDate()) - obj["rights"] = StringerToTF(tkh.GetRights()) - obj["update_group_membership_type"] = StringerToTF(tkh.GetUpdateGroupMembershipType()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) + obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) + obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -15099,7 +15099,7 @@ func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmo } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15109,7 +15109,7 @@ func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmo } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15117,13 +15117,13 @@ func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["comment"] = types.StringPointerValue(tkh.GetComment()) obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = StringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = StringerToTF(tkh.GetStatus()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) objVal, d := types.ObjectValue(attrs, obj) @@ -15153,7 +15153,7 @@ func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.Ser } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15163,7 +15163,7 @@ func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.Ser } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15173,13 +15173,13 @@ func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.Ser } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["password_uuid"] = WithUuidToTF(tkh.GetPassword()) - obj["password_rotation"] = StringerToTF(tkh.GetPasswordRotation()) - obj["technical_administrator_uuid"] = WithUuidToTF(tkh.GetTechnicalAdministrator()) + obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -15208,7 +15208,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmode } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15218,7 +15218,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmode } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15228,7 +15228,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = StringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -15251,7 +15251,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectServiceaccountServiceAccountGroup(false, tkh) diags.Append(d...) return val @@ -15304,7 +15304,7 @@ func tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectServiceaccountServiceAccount(false, tkh) diags.Append(d...) return val @@ -15333,7 +15333,7 @@ func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15343,7 +15343,7 @@ func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmod } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15353,7 +15353,7 @@ func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmod } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -15377,8 +15377,8 @@ func tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -15546,7 +15546,7 @@ func tkhToTFObjectSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionI obj := make(map[string]attr.Value) { elemType := attrs["contract_versions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { return types.Int64Value(int64(tkh)) }) diags.Append(d...) @@ -15581,7 +15581,7 @@ func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDel } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15591,7 +15591,7 @@ func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDel } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15600,8 +15600,8 @@ func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDel obj["permissions"] = val } obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["record_count"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetRecordCount())) - obj["vault_deleted_vault_holder_type"] = StringerToTF(tkh.GetVaultDeletedVaultHolderType()) + obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) + obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -15623,7 +15623,7 @@ func tkhToTFObjectVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhu obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectVaultDeletedVaultHolder(false, tkh) diags.Append(d...) return val @@ -15681,7 +15681,7 @@ func tkhToTFObjectVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultD obj := make(map[string]attr.Value) obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - obj["target_group_uuid"] = WithUuidToTF(tkh.GetTargetGroup()) + obj["target_group_uuid"] = withUuidToTF(tkh.GetTargetGroup()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -15701,9 +15701,9 @@ func tkhToTFObjectVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVa } obj := make(map[string]attr.Value) - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) - obj["action"] = StringerToTF(tkh.GetAction()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { val, d := tkhToTFObjectVaultMoveVaultRecord_shareDuration(false, tkh.GetShareDuration()) diags.Append(d...) @@ -15728,7 +15728,7 @@ func tkhToTFObjectVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmod } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetNanos())) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) objVal, d := types.ObjectValue(attrs, obj) @@ -15751,7 +15751,7 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15761,7 +15761,7 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15773,7 +15773,7 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type obj["name"] = types.StringPointerValue(tkh.GetName()) { elemType := attrs["records"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectVaultVaultRecord(false, tkh) diags.Append(d...) return val @@ -15828,7 +15828,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15838,7 +15838,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15846,16 +15846,16 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor diags.Append(d...) obj["permissions"] = val } - obj["color"] = StringerToTF(tkh.GetColor()) + obj["color"] = stringerToTF(tkh.GetColor()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = TimePointerToTF(tkh.GetShareEndTime()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = StringerToTF(tkh.GetEndDate()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { elemType := attrs["types"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) @@ -15863,7 +15863,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor } obj["url"] = types.StringPointerValue(tkh.GetUrl()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = StringerToTF(tkh.GetWarningPeriod()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -15885,7 +15885,7 @@ func tkhToTFObjectVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectVaultVaultRecord(false, tkh) diags.Append(d...) return val @@ -15914,7 +15914,7 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -15924,7 +15924,7 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -15932,9 +15932,9 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul diags.Append(d...) obj["permissions"] = val } - obj["color"] = StringerToTF(tkh.GetColor()) + obj["color"] = stringerToTF(tkh.GetColor()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = TimePointerToTF(tkh.GetShareEndTime()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -15957,8 +15957,8 @@ func tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -16007,7 +16007,7 @@ func tkhToTFObjectVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVault obj := make(map[string]attr.Value) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = StringerToTF(tkh.GetVaultVaultRecordShareType()) + obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -16029,7 +16029,7 @@ func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.Vau obj := make(map[string]attr.Value) { elemType := attrs["children"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectVaultVaultRecordShare(false, tkh) diags.Append(d...) return val @@ -16067,7 +16067,7 @@ func tkhToTFObjectVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmod obj["audit"] = val } obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) - obj["parent_uuid"] = WithUuidToTF(tkh.GetParent()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) { val, d := tkhToTFObjectVaultVaultRecordSecrets(false, tkh.GetSecret()) diags.Append(d...) @@ -16112,7 +16112,7 @@ func tkhToTFObjectVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRec } obj := make(map[string]attr.Value) - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) @@ -16153,7 +16153,7 @@ func tkhToTFObjectVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVa } obj := make(map[string]attr.Value) - obj["expires_at"] = TimePointerToTF(tkh.GetExpiresAt()) + obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) objVal, d := types.ObjectValue(attrs, obj) @@ -16183,7 +16183,7 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -16193,7 +16193,7 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -16201,26 +16201,26 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) - obj["authentication_scheme"] = StringerToTF(tkh.GetAuthenticationScheme()) + obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) - obj["client_uuid"] = WithUuidToTF(tkh.GetClient()) - obj["client_certificate_uuid"] = WithUuidToTF(tkh.GetClientCertificate()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) - obj["tls"] = StringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = WithUuidToTF(tkh.GetTrustedCertificate()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) { elemType := attrs["types"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { return types.StringValue(tkh.String()) }) diags.Append(d...) @@ -16257,7 +16257,7 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe } { elemType := attrs["links"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectRestLink(false, tkh) diags.Append(d...) return val @@ -16267,7 +16267,7 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe } { elemType := attrs["permissions"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectAuthPermission(false, tkh) diags.Append(d...) return val @@ -16283,9 +16283,9 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(Int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = TimePointerToTF(tkh.GetTriggerTime()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -16307,7 +16307,7 @@ func tkhToTFObjectWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { val, d := tkhToTFObjectWebhookWebhookDelivery(false, tkh) diags.Append(d...) return val @@ -16360,8 +16360,8 @@ func tkhToTFObjectWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.We obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := SliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { - return WithUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -16411,27 +16411,27 @@ func tkhToTFObjectWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhoo } obj := make(map[string]attr.Value) - obj["account_uuid"] = WithUuidToTF(tkh.GetAccount()) - obj["by_party_uuid"] = WithUuidToTF(tkh.GetByParty()) - obj["certificate_uuid"] = WithUuidToTF(tkh.GetCertificate()) - obj["client_uuid"] = WithUuidToTF(tkh.GetClient()) - obj["directory_uuid"] = WithUuidToTF(tkh.GetDirectory()) - obj["group_uuid"] = WithUuidToTF(tkh.GetGroup()) - obj["group2_uuid"] = WithUuidToTF(tkh.GetGroup2()) - obj["group_classification_uuid"] = WithUuidToTF(tkh.GetGroupClassification()) - obj["modification_request_uuid"] = WithUuidToTF(tkh.GetModificationRequest()) - obj["organizational_unit_uuid"] = WithUuidToTF(tkh.GetOrganizationalUnit()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["by_party_uuid"] = withUuidToTF(tkh.GetByParty()) + obj["certificate_uuid"] = withUuidToTF(tkh.GetCertificate()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["group2_uuid"] = withUuidToTF(tkh.GetGroup2()) + obj["group_classification_uuid"] = withUuidToTF(tkh.GetGroupClassification()) + obj["modification_request_uuid"] = withUuidToTF(tkh.GetModificationRequest()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["security_level"] = StringerToTF(tkh.GetSecurityLevel()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) - obj["service_account_uuid"] = WithUuidToTF(tkh.GetServiceAccount()) - obj["system_uuid"] = WithUuidToTF(tkh.GetSystem()) - obj["timestamp"] = TimePointerToTF(tkh.GetTimestamp()) - obj["vault_record_uuid"] = WithUuidToTF(tkh.GetVaultRecord()) - obj["webhook_uuid"] = WithUuidToTF(tkh.GetWebhook()) - obj["webhook_webhook_push_type"] = StringerToTF(tkh.GetWebhookWebhookPushType()) + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["webhook_uuid"] = withUuidToTF(tkh.GetWebhook()) + obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -16462,14 +16462,14 @@ func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel return objVal, diags } -func fillDataStructFromTFObjectAuditInfo(data *AuditInfoData, obj types.Object) { +func fillDataStructFromTFObjectAuditInfo(data *auditInfoData, obj types.Object) { data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) } -func fillDataStructFromTFObjectErrorReport(data *ErrorReportData, obj types.Object) { +func fillDataStructFromTFObjectErrorReport(data *errorReportData, obj types.Object) { data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) data.Code = obj.Attributes()["code"].(basetypes.Int64Value) @@ -16480,31 +16480,31 @@ func fillDataStructFromTFObjectErrorReport(data *ErrorReportData, obj types.Obje data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) } -func fillDataStructFromTFObjectErrorReport_applicationErrorParameters(data *ErrorReport_applicationErrorParametersData, obj types.Object) { +func fillDataStructFromTFObjectErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersData, obj types.Object) { } -func fillDataStructFromTFObjectGeneratedSecret(data *GeneratedSecretData, obj types.Object) { +func fillDataStructFromTFObjectGeneratedSecret(data *generatedSecretData, obj types.Object) { data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectLinkable(data *LinkableData, obj types.Object) { +func fillDataStructFromTFObjectLinkable(data *linkableData, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) } -func fillDataStructFromTFObjectNonLinkable(data *NonLinkableData, obj types.Object) { +func fillDataStructFromTFObjectNonLinkable(data *nonLinkableData, obj types.Object) { } -func fillDataStructFromTFObjectRestLink(data *RestLinkData, obj types.Object) { +func fillDataStructFromTFObjectRestLink(data *restLinkData, obj types.Object) { data.Href = obj.Attributes()["href"].(basetypes.StringValue) data.ID = obj.Attributes()["id"].(basetypes.Int64Value) data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) } -func fillDataStructFromTFObjectSegmentCount(data *SegmentCountData, obj types.Object) { +func fillDataStructFromTFObjectSegmentCount(data *segmentCountData, obj types.Object) { data.Count = obj.Attributes()["count"].(basetypes.Int64Value) data.Name = obj.Attributes()["name"].(basetypes.StringValue) } @@ -25748,7 +25748,7 @@ func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[str return schemaAttrs } -func SliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { +func sliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { var diags diag.Diagnostics ret := make([]attr.Value, 0, len(vals)) for _, curVal := range vals { @@ -25757,7 +25757,7 @@ func SliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *dia return types.ListValue(elemType, ret) } -func Int32PToInt64P(in *int32) *int64 { +func int32PToInt64P(in *int32) *int64 { if in == nil { return nil } @@ -25765,19 +25765,19 @@ func Int32PToInt64P(in *int32) *int64 { return &ret } -func StringerToTF[T fmt.Stringer](val *T) attr.Value { +func stringerToTF[T fmt.Stringer](val *T) attr.Value { if val == nil { return types.StringNull() } return types.StringValue((*val).String()) } -func TimeToTF(val time.Time) attr.Value { +func timeToTF(val time.Time) attr.Value { ret, _ := val.MarshalText() return types.StringValue(string(ret)) } -func TimePointerToTF(val *time.Time) attr.Value { +func timePointerToTF(val *time.Time) attr.Value { if val == nil { return types.StringNull() } @@ -25785,7 +25785,7 @@ func TimePointerToTF(val *time.Time) attr.Value { return types.StringValue(string(ret)) } -func WithUuidToTF(val interface{ GetUuid() *string }) attr.Value { +func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { if val == nil { return types.StringNull() } From d2ec952dd27f9073792b76742d7481f6c9671fdb Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 29 Aug 2023 14:47:20 +0200 Subject: [PATCH 03/34] Use secret from var file --- .gitignore | 1 + examples/provider-install-verification/main.tf | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index fd3ad8e..cf9e7a4 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ website/vendor # Keep windows files with windows line endings *.winfile eol=crlf +dev.auto.tfvars diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index dc4da6d..aa4c8b2 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -6,10 +6,15 @@ terraform { } } +variable "keyhub_secret" { + type = string + description = "Client secret on KeyHub" +} + provider "keyhub" { issuer = "https://keyhub.topicusonderwijs.nl" clientid = "3a5e82ad-3f0d-4a63-846b-4b3e431f1135" - clientsecret = "P0OERPwK2hHJGS68Op2epiXvcVy4GDpx98huzagI" + clientsecret = var.keyhub_secret } data "keyhub_group" "test" { From 2f57ba02b3b91a8d5d31ab6e6fda4838a2f56c70 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Wed, 30 Aug 2023 14:14:10 +0200 Subject: [PATCH 04/34] Add TF to TKH functions --- go.mod | 64 +- go.sum | 171 +- internal/provider/impl.go | 11535 ++++++++++++++++++++++++++++++++++-- 3 files changed, 11164 insertions(+), 606 deletions(-) diff --git a/go.mod b/go.mod index ee735c7..da55838 100644 --- a/go.mod +++ b/go.mod @@ -3,39 +3,40 @@ module github.com/topicuskeyhub/terraform-provider-keyhub-preview go 1.19 require ( + github.com/google/uuid v1.3.1 github.com/hashicorp/terraform-plugin-docs v0.16.0 - github.com/hashicorp/terraform-plugin-framework v1.3.2 + github.com/hashicorp/terraform-plugin-framework v1.3.5 github.com/hashicorp/terraform-plugin-go v0.18.0 github.com/hashicorp/terraform-plugin-log v0.9.0 - github.com/hashicorp/terraform-plugin-testing v1.3.0 - github.com/topicuskeyhub/sdk-go v0.0.0-20230718084110-056ed14fd2bc + github.com/hashicorp/terraform-plugin-testing v1.4.0 + github.com/microsoft/kiota-abstractions-go v1.2.0 + github.com/topicuskeyhub/sdk-go v0.28.1 ) require ( github.com/Masterminds/goutils v1.1.1 // indirect - github.com/Masterminds/semver/v3 v3.1.1 // indirect - github.com/Masterminds/sprig/v3 v3.2.2 // indirect - github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 // indirect - github.com/agext/levenshtein v1.2.2 // indirect + github.com/Masterminds/semver/v3 v3.2.1 // indirect + github.com/Masterminds/sprig/v3 v3.2.3 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect + github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/cjlapao/common-go v0.0.39 // indirect github.com/cloudflare/circl v1.3.3 // indirect github.com/coreos/go-oidc v2.2.1+incompatible // indirect - github.com/fatih/color v1.13.0 // indirect + github.com/fatih/color v1.15.0 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.5.9 // indirect - github.com/google/uuid v1.3.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.4.10 // indirect + github.com/hashicorp/go-plugin v1.5.0 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/hc-install v0.5.2 // indirect @@ -43,47 +44,46 @@ require ( github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.18.1 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 // indirect - github.com/hashicorp/terraform-registry-address v0.2.1 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0 // indirect + github.com/hashicorp/terraform-registry-address v0.2.2 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect - github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d // indirect - github.com/huandu/xstrings v1.3.2 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect + github.com/huandu/xstrings v1.4.0 // indirect github.com/imdario/mergo v0.3.13 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.16 // indirect - github.com/microsoft/kiota-abstractions-go v1.1.0 // indirect - github.com/microsoft/kiota-http-go v1.0.0 // indirect + github.com/mattn/go-isatty v0.0.19 // indirect + github.com/microsoft/kiota-http-go v1.1.0 // indirect github.com/microsoft/kiota-serialization-json-go v1.0.4 // indirect github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/mitchellh/go-wordwrap v1.0.0 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect - github.com/oklog/run v1.0.0 // indirect + github.com/oklog/run v1.1.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pquerna/cachecontrol v0.2.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect - github.com/spf13/cast v1.5.0 // indirect + github.com/spf13/cast v1.5.1 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect - github.com/zclconf/go-cty v1.13.2 // indirect - go.opentelemetry.io/otel v1.16.0 // indirect - go.opentelemetry.io/otel/metric v1.16.0 // indirect - go.opentelemetry.io/otel/trace v1.16.0 // indirect - golang.org/x/crypto v0.11.0 // indirect + github.com/zclconf/go-cty v1.13.3 // indirect + go.opentelemetry.io/otel v1.17.0 // indirect + go.opentelemetry.io/otel/metric v1.17.0 // indirect + go.opentelemetry.io/otel/trace v1.17.0 // indirect + golang.org/x/crypto v0.12.0 // indirect golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect - golang.org/x/mod v0.11.0 // indirect - golang.org/x/net v0.12.0 // indirect - golang.org/x/oauth2 v0.10.0 // indirect - golang.org/x/sys v0.10.0 // indirect - golang.org/x/text v0.11.0 // indirect + golang.org/x/mod v0.12.0 // indirect + golang.org/x/net v0.14.0 // indirect + golang.org/x/oauth2 v0.11.0 // indirect + golang.org/x/sys v0.11.0 // indirect + golang.org/x/text v0.12.0 // indirect google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect - google.golang.org/grpc v1.56.1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect + google.golang.org/grpc v1.57.0 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index 7e28b78..25ba307 100644 --- a/go.sum +++ b/go.sum @@ -1,16 +1,18 @@ github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= -github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= +github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= -github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8= -github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= +github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= +github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= -github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8 h1:wPbRQzjjwFc0ih8puEVAOFGELsn1zoIIYdxvML7mDxA= -github.com/ProtonMail/go-crypto v0.0.0-20230217124315-7d5c6f04bbb8/go.mod h1:I0gYDMZ6Z5GRU7l58bNFSkPTFN6Yl12dsUlAZ8xy98g= +github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 h1:kkhsdkhsCvIsutKu5zLMgWtgh9YxGCNAw8Ad8hjwfYg= +github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= -github.com/agext/levenshtein v1.2.2 h1:0S/Yg6LYmFJ5stwQeRp6EeOcCbj7xiqQSdNelsXvaqE= -github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= +github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= +github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= @@ -19,10 +21,10 @@ github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= -github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= +github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= +github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0= github.com/cjlapao/common-go v0.0.39 h1:bAAUrj2B9v0kMzbAOhzjSmiyDy+rd56r2sy7oEiQLlA= github.com/cjlapao/common-go v0.0.39/go.mod h1:M3dzazLjTjEtZJbbxoA5ZDiGCiHmpwqW9l4UWaddwOA= -github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I= github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs= github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= github.com/coreos/go-oidc v2.2.1+incompatible h1:mh48q/BqXqgjVHpy2ZY7WnWAbenxRjsz9N1i1YxjHAk= @@ -32,9 +34,10 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= -github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w= github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= -github.com/frankban/quicktest v1.14.3 h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= github.com/go-git/go-git/v5 v5.6.1 h1:q4ZRqQl4pR/ZJHc1L5CFjGA1a10u76aV1iC+nh+bHsk= @@ -55,8 +58,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= -github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= +github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -72,8 +75,8 @@ github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.4.10 h1:xUbmA4jC6Dq163/fWcp8P3JuHilrHHMLNRxzGQJ9hNk= -github.com/hashicorp/go-plugin v1.4.10/go.mod h1:6/1TEzT0eQznvI/gV2CM29DLSkAK/e58mUWKVsPaph0= +github.com/hashicorp/go-plugin v1.5.0 h1:g6Lj3USwF5LaB8HlvCxPjN2X4nFE08ko2BJNVpl7TIE= +github.com/hashicorp/go-plugin v1.5.0/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -91,33 +94,35 @@ github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQH github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= -github.com/hashicorp/terraform-plugin-framework v1.3.2 h1:aQ6GSD0CTnvoALEWvKAkcH/d8jqSE0Qq56NYEhCexUs= -github.com/hashicorp/terraform-plugin-framework v1.3.2/go.mod h1:oimsRAPJOYkZ4kY6xIGfR0PHjpHLDLaknzuptl6AvnY= +github.com/hashicorp/terraform-plugin-framework v1.3.5 h1:FJ6s3CVWVAxlhiF/jhy6hzs4AnPHiflsp9KgzTGl1wo= +github.com/hashicorp/terraform-plugin-framework v1.3.5/go.mod h1:2gGDpWiTI0irr9NSTLFAKlTi6KwGti3AoU19rFqU30o= github.com/hashicorp/terraform-plugin-go v0.18.0 h1:IwTkOS9cOW1ehLd/rG0y+u/TGLK9y6fGoBjXVUquzpE= github.com/hashicorp/terraform-plugin-go v0.18.0/go.mod h1:l7VK+2u5Kf2y+A+742GX0ouLut3gttudmvMgN0PA74Y= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1 h1:G9WAfb8LHeCxu7Ae8nc1agZlQOSCUWsb610iAogBhCs= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.26.1/go.mod h1:xcOSYlRVdPLmDUoqPhO9fiO/YCN/l6MGYeTzGt5jgkQ= -github.com/hashicorp/terraform-plugin-testing v1.3.0 h1:4Pn8fSspPCRUc5zRGPNZYc00VhQmQPEH6y6Pv4e/42M= -github.com/hashicorp/terraform-plugin-testing v1.3.0/go.mod h1:mGOfGFTVIhP9buGPZyDQhmZFIO/Ig8E0Fo694UACr64= -github.com/hashicorp/terraform-registry-address v0.2.1 h1:QuTf6oJ1+WSflJw6WYOHhLgwUiQ0FrROpHPYFtwTYWM= -github.com/hashicorp/terraform-registry-address v0.2.1/go.mod h1:BSE9fIFzp0qWsJUUyGquo4ldV9k2n+psif6NYkBRS3Y= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0 h1:gY4SG34ANc6ZSeWEKC9hDTChY0ZiN+Myon17fSA0Xgc= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0/go.mod h1:deXEw/iJXtJxNV9d1c/OVJrvL7Zh0a++v7rzokW6wVY= +github.com/hashicorp/terraform-plugin-testing v1.4.0 h1:DVIXxw7VHZvnwWVik4HzhpC2yytaJ5FpiHxz5debKmE= +github.com/hashicorp/terraform-plugin-testing v1.4.0/go.mod h1:b7Bha24iGrbZQjT+ZE8m9crck1YjdVOZ8mfGCQ19OxA= +github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJDC6YlgCVbWDtNmmZKtBno= +github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= -github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d h1:kJCB4vdITiW1eC1vq2e6IsrXKrZit1bv/TDYFGMp4BQ= -github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d/go.mod h1:+NfK9FKeTrX5uv1uIXGdwYDTeHna2qgaIlx54MXqjAM= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= -github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw= github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= +github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= -github.com/jhump/protoreflect v1.6.0 h1:h5jfMVslIg6l29nsMs0D8Wj17RDVdNYti0vDN/PZZoE= +github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= @@ -130,12 +135,13 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= -github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/microsoft/kiota-abstractions-go v1.1.0 h1:X1aKlsYCRs/0RSChr/fbq4j/+kxRzbSY5GeWhtHQNYI= -github.com/microsoft/kiota-abstractions-go v1.1.0/go.mod h1:RkxyZ5x87Njik7iVeQY9M2wtrrL1MJZcXiI/BxD/82g= -github.com/microsoft/kiota-http-go v1.0.0 h1:F1hd6gMlLeEgH2CkRB7z13ow7LxMKMWEmms/t0VfS+k= -github.com/microsoft/kiota-http-go v1.0.0/go.mod h1:eujxJliqodotsYepIc6ihhK+vXMMt5Q8YiSNL7+7M7U= +github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/microsoft/kiota-abstractions-go v1.2.0 h1:lUriJgqdCY/QajwWQOgTCQE9Atywfe2NHhgoTCSXTRE= +github.com/microsoft/kiota-abstractions-go v1.2.0/go.mod h1:RkxyZ5x87Njik7iVeQY9M2wtrrL1MJZcXiI/BxD/82g= +github.com/microsoft/kiota-http-go v1.1.0 h1:L5I93EiNtlP/X6YzeTlhjWt7Q1DxzC9CmWSVtX3b0tE= +github.com/microsoft/kiota-http-go v1.1.0/go.mod h1:zESUM6ovki9LEupqziCbxJ+FAYoF0dFDYZVpOkAfSLc= github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ= github.com/microsoft/kiota-serialization-json-go v1.0.4/go.mod h1:rM4+FsAY+9AEpBsBzkFFis+b/LZLlNKKewuLwK9Q6Mg= github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= @@ -145,15 +151,15 @@ github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa1 github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v1.0.0 h1:6GlHJ/LTGMrIJbwgdqdl2eEH8o+Exx/0m8ir9Gns0u4= -github.com/mitchellh/go-wordwrap v1.0.0/go.mod h1:ZXFpozHsX6DPmq2I0TCekCxypsnAUbP2oI0UX1GXzOo= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= -github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= -github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -162,7 +168,7 @@ github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXq github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/pquerna/cachecontrol v0.2.0 h1:vBXSNuE5MYP9IJ5kjsdo8uq+w41jSPgvba2DEnkRx9k= github.com/pquerna/cachecontrol v0.2.0/go.mod h1:NrUG3Z7Rdu85UNR3vm7SOsl1nFIeSiQnrHV5K9mBcUI= -github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= +github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= @@ -171,8 +177,8 @@ github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5g github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= -github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w= -github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU= +github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= +github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -180,8 +186,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/topicuskeyhub/sdk-go v0.0.0-20230718084110-056ed14fd2bc h1:8iYhDYMKsNYewFVgKwVa+kXzyDQnkim+LtwKNSKLFAU= -github.com/topicuskeyhub/sdk-go v0.0.0-20230718084110-056ed14fd2bc/go.mod h1:wuT0Z03lIjUofzN5RiRQgmoOuw/HvgcAoEcr2KjLmW0= +github.com/topicuskeyhub/sdk-go v0.28.1 h1:TXpkypK2KiH/9fnlEd9SFfXR/cK63RnCe6eqVR0Ew8k= +github.com/topicuskeyhub/sdk-go v0.28.1/go.mod h1:nP1C2RvZXfnEPjFy5AfdLJIWaM6IQAyar1pVbgPXsMg= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= @@ -192,32 +198,46 @@ github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= -github.com/zclconf/go-cty v1.13.2 h1:4GvrUxe/QUDYuJKAav4EYqdM47/kZa672LwmXFmEKT0= -github.com/zclconf/go-cty v1.13.2/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -go.opentelemetry.io/otel v1.16.0 h1:Z7GVAX/UkAXPKsy94IU+i6thsQS4nb7LviLpnaNeW8s= -go.opentelemetry.io/otel v1.16.0/go.mod h1:vl0h9NUa1D5s1nv3A5vZOYWn8av4K8Ml6JDeHrT/bx4= -go.opentelemetry.io/otel/metric v1.16.0 h1:RbrpwVG1Hfv85LgnZ7+txXioPDoh6EdbZHo26Q3hqOo= -go.opentelemetry.io/otel/metric v1.16.0/go.mod h1:QE47cpOmkwipPiefDwo2wDzwJrlfxxNYodqc4xnGCo4= -go.opentelemetry.io/otel/trace v1.16.0 h1:8JRpaObFoW0pxuVPapkgH8UhHQj+bJW8jJsCZEu5MQs= -go.opentelemetry.io/otel/trace v1.16.0/go.mod h1:Yt9vYq1SdNz3xdjZZK7wcXv1qv2pwLkqr2QVwea0ef0= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zclconf/go-cty v1.13.3 h1:m+b9q3YDbg6Bec5rr+KGy1MzEVzY/jC2X+YX4yqKtHI= +github.com/zclconf/go-cty v1.13.3/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= +go.opentelemetry.io/otel v1.17.0 h1:MW+phZ6WZ5/uk2nd93ANk/6yJ+dVrvNWUjGhnnFU5jM= +go.opentelemetry.io/otel v1.17.0/go.mod h1:I2vmBGtFaODIVMBSTPVDlJSzBDNf93k60E6Ft0nyjo0= +go.opentelemetry.io/otel/metric v1.17.0 h1:iG6LGVz5Gh+IuO0jmgvpTB6YVrCGngi8QGm+pMd8Pdc= +go.opentelemetry.io/otel/metric v1.17.0/go.mod h1:h4skoxdZI17AxwITdmdZjjYJQH5nzijUUjm+wtPph5o= +go.opentelemetry.io/otel/trace v1.17.0 h1:/SWhSRHmDPOImIAetP1QAeMnZYiQXrTy4fMMYOdSKWQ= +go.opentelemetry.io/otel/trace v1.17.0/go.mod h1:I/4vKTgFclIsXRVucpH25X0mpFSczM7aHeaz0ZBLWjY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.11.0 h1:6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA= -golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= +golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= +golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= +golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= -golang.org/x/mod v0.11.0 h1:bUO06HqtnRcc/7l71XBe4WcqTZ+3AH1J59zWDDwLKgU= -golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= +golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= -golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= -golang.org/x/oauth2 v0.10.0 h1:zHCpF2Khkwy4mMB4bv0U37YtJdTGW8jI0glAApi0Kh8= -golang.org/x/oauth2 v0.10.0/go.mod h1:kTpgurOux7LqtuxjuyZa4Gj2gdezIt/jQtGnNFfypQI= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= +golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -226,26 +246,43 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= -golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4= -golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= +golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= +golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 h1:KpwkzHKEF7B9Zxg18WzOa7djJ+Ha5DzthMyZYQfEn2A= -google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1/go.mod h1:nKE/iIaLqn2bQwXBg8f1g2Ylh6r5MN5CmZvuzZCgsCU= -google.golang.org/grpc v1.56.1 h1:z0dNfjIl0VpaZ9iSVjA6daGatAYwPGstTjt5vkRMFkQ= -google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= +google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= diff --git a/internal/provider/impl.go b/internal/provider/impl.go index abecdf5..622447d 100644 --- a/internal/provider/impl.go +++ b/internal/provider/impl.go @@ -1,15 +1,33 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code package provider import ( + "context" "fmt" "time" + "github.com/google/uuid" "github.com/hashicorp/terraform-plugin-framework/attr" dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/microsoft/kiota-abstractions-go/serialization" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubaccount "github.com/topicuskeyhub/sdk-go/account" + keyhubcertificate "github.com/topicuskeyhub/sdk-go/certificate" + keyhubclient "github.com/topicuskeyhub/sdk-go/client" + keyhubdirectory "github.com/topicuskeyhub/sdk-go/directory" + keyhubgroup "github.com/topicuskeyhub/sdk-go/group" + keyhubgroupclassification "github.com/topicuskeyhub/sdk-go/groupclassification" keyhubmodel "github.com/topicuskeyhub/sdk-go/models" + keyhuborganizationalunit "github.com/topicuskeyhub/sdk-go/organizationalunit" + keyhubserviceaccount "github.com/topicuskeyhub/sdk-go/serviceaccount" + keyhubsystem "github.com/topicuskeyhub/sdk-go/system" + keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" + keyhubwebhook "github.com/topicuskeyhub/sdk-go/webhook" ) var auditInfoAttrTypes = objectAttrsTypeAuditInfo(false) @@ -1422,8 +1440,8 @@ var notificationLicenseStatusNotificationAttrTypes = objectAttrsTypeNotification var notificationLicenseStatusNotificationAttrTypesRecurse = objectAttrsTypeNotificationLicenseStatusNotification(true) type notificationLicenseStatusNotificationData struct { - ActiveAccounts types.Int64 `tfsdk:"active_accounts"` - LicenseInfoUUID types.String `tfsdk:"license_info_uuid"` + ActiveAccounts types.Int64 `tfsdk:"active_accounts"` + LicenseInfo types.Object `tfsdk:"license_info"` } var notificationModificationRequestNotificationAttrTypes = objectAttrsTypeNotificationModificationRequestNotification(false) @@ -3228,27 +3246,27 @@ var webhookWebhookPushAttrTypes = objectAttrsTypeWebhookWebhookPush(false) var webhookWebhookPushAttrTypesRecurse = objectAttrsTypeWebhookWebhookPush(true) type webhookWebhookPushData struct { - AccountUUID types.String `tfsdk:"account_uuid"` - ByPartyUUID types.String `tfsdk:"by_party_uuid"` - CertificateUUID types.String `tfsdk:"certificate_uuid"` - ClientUUID types.String `tfsdk:"client_uuid"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - Group2UUID types.String `tfsdk:"group2_uuid"` - GroupClassificationUUID types.String `tfsdk:"group_classification_uuid"` - ModificationRequestUUID types.String `tfsdk:"modification_request_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - SecurityLevel types.String `tfsdk:"security_level"` - Seq types.Int64 `tfsdk:"seq"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` - SystemUUID types.String `tfsdk:"system_uuid"` - Timestamp types.String `tfsdk:"timestamp"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - WebhookUUID types.String `tfsdk:"webhook_uuid"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` + Account types.Object `tfsdk:"account"` + ByParty types.Object `tfsdk:"by_party"` + Certificate types.Object `tfsdk:"certificate"` + Client types.Object `tfsdk:"client"` + Directory types.Object `tfsdk:"directory"` + Group types.Object `tfsdk:"group"` + Group2 types.Object `tfsdk:"group2"` + GroupClassification types.Object `tfsdk:"group_classification"` + ModificationRequest types.Object `tfsdk:"modification_request"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + SecurityLevel types.String `tfsdk:"security_level"` + Seq types.Int64 `tfsdk:"seq"` + ServiceAccount types.Object `tfsdk:"service_account"` + System types.Object `tfsdk:"system"` + Timestamp types.String `tfsdk:"timestamp"` + VaultRecord types.Object `tfsdk:"vault_record"` + Webhook types.Object `tfsdk:"webhook"` + WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` } var webhookWebhook_additionalObjectsAttrTypes = objectAttrsTypeWebhookWebhook_additionalObjects(false) @@ -4485,7 +4503,7 @@ func objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(recurse bo func objectAttrsTypeNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["active_accounts"] = types.Int64Type - objectAttrs["license_info_uuid"] = types.StringType + objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeLicenseKeyHubLicenseInfo(recurse)} return objectAttrs } func objectAttrsTypeNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { @@ -6128,26 +6146,26 @@ func objectAttrsTypeWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { } func objectAttrsTypeWebhookWebhookPush(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account_uuid"] = types.StringType - objectAttrs["by_party_uuid"] = types.StringType - objectAttrs["certificate_uuid"] = types.StringType - objectAttrs["client_uuid"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["group2_uuid"] = types.StringType - objectAttrs["group_classification_uuid"] = types.StringType - objectAttrs["modification_request_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} objectAttrs["parameter1"] = types.StringType objectAttrs["parameter2"] = types.StringType objectAttrs["parameter3"] = types.StringType objectAttrs["security_level"] = types.StringType objectAttrs["seq"] = types.Int64Type - objectAttrs["service_account_uuid"] = types.StringType - objectAttrs["system_uuid"] = types.StringType + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} objectAttrs["timestamp"] = types.StringType - objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["webhook_uuid"] = types.StringType + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} objectAttrs["webhook_webhook_push_type"] = types.StringType return objectAttrs } @@ -6195,7 +6213,7 @@ func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (ty obj := make(map[string]attr.Value) obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) { - val, d := tkhToTFObjectErrorReport_applicationErrorParameters(false, tkh.GetApplicationErrorParameters()) + val, d := tkhToTFObjectErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) diags.Append(d...) obj["application_error_parameters"] = val } @@ -6282,7 +6300,7 @@ func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Ob { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6292,7 +6310,7 @@ func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Ob { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -6391,7 +6409,7 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6401,7 +6419,7 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -6449,7 +6467,7 @@ func tkhToTFObjectAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel. { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuditAuditRecord(false, tkh) + val, d := tkhToTFObjectAuditAuditRecord(recurse, tkh) diags.Append(d...) return val }) @@ -6476,7 +6494,7 @@ func tkhToTFObjectAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -6509,7 +6527,7 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6519,7 +6537,7 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -6629,7 +6647,7 @@ func tkhToTFObjectAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthA { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthAccount(false, tkh) + val, d := tkhToTFObjectAuthAccount(recurse, tkh) diags.Append(d...) return val }) @@ -6658,7 +6676,7 @@ func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPri { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6668,7 +6686,7 @@ func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPri { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -6778,32 +6796,32 @@ func tkhToTFObjectAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.Au obj := make(map[string]attr.Value) obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectGroupAccountGroupLinkableWrapper(false, tkh.GetGroups()) + val, d := tkhToTFObjectGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) obj["groups"] = val } { - val, d := tkhToTFObjectAuthAccountRecoveryStatus(false, tkh.GetPendingRecoveryRequests()) + val, d := tkhToTFObjectAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) diags.Append(d...) obj["pending_recovery_requests"] = val } { - val, d := tkhToTFObjectAuthAccountSettings(false, tkh.GetSettings()) + val, d := tkhToTFObjectAuthAccountSettings(recurse, tkh.GetSettings()) diags.Append(d...) obj["settings"] = val } { - val, d := tkhToTFObjectAuthStoredAccountAttributes(false, tkh.GetStoredAttributes()) + val, d := tkhToTFObjectAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) diags.Append(d...) obj["stored_attributes"] = val } { - val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) diags.Append(d...) obj["vault"] = val } @@ -6827,17 +6845,17 @@ func tkhToTFObjectAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccou obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuthAccountsAuditStats_directoryStats(false, tkh.GetDirectoryStats()) + val, d := tkhToTFObjectAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) diags.Append(d...) obj["directory_stats"] = val } { - val, d := tkhToTFObjectAuthAccountsAuditStats_twoFAStats(false, tkh.GetTwoFAStats()) + val, d := tkhToTFObjectAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) diags.Append(d...) obj["two_f_a_stats"] = val } { - val, d := tkhToTFObjectAuthAccountsAuditStats_validityStats(false, tkh.GetValidityStats()) + val, d := tkhToTFObjectAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) diags.Append(d...) obj["validity_stats"] = val } @@ -6927,7 +6945,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6937,7 +6955,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7005,7 +7023,7 @@ func tkhToTFObjectAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmod { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthInternalAccount(false, tkh) + val, d := tkhToTFObjectAuthInternalAccount(recurse, tkh) diags.Append(d...) return val }) @@ -7052,7 +7070,7 @@ func tkhToTFObjectAuthInternalAccount_additionalObjects(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -7077,7 +7095,7 @@ func tkhToTFObjectAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMove obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDirectoryInternalDirectory(false, tkh.GetInternalDirectory()) + val, d := tkhToTFObjectDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) diags.Append(d...) obj["internal_directory"] = val } @@ -7161,7 +7179,7 @@ func tkhToTFObjectAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.Auth { elemType := attrs["attributes"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthStoredAccountAttribute(false, tkh) + val, d := tkhToTFObjectAuthStoredAccountAttribute(recurse, tkh) diags.Append(d...) return val }) @@ -7197,7 +7215,7 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7207,7 +7225,7 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7260,7 +7278,7 @@ func tkhToTFObjectCertificateCertificateLinkableWrapper(recurse bool, tkh keyhub { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectCertificateCertificate(false, tkh) + val, d := tkhToTFObjectCertificateCertificate(recurse, tkh) diags.Append(d...) return val }) @@ -7289,7 +7307,7 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7299,7 +7317,7 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7342,7 +7360,7 @@ func tkhToTFObjectCertificateCertificate_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -7375,7 +7393,7 @@ func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientCl { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7385,7 +7403,7 @@ func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientCl { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7430,7 +7448,7 @@ func tkhToTFObjectClientClientApplicationLinkableWrapper(recurse bool, tkh keyhu { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectClientClientApplication(false, tkh) + val, d := tkhToTFObjectClientClientApplication(recurse, tkh) diags.Append(d...) return val }) @@ -7459,7 +7477,7 @@ func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.Cl { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7469,7 +7487,7 @@ func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.Cl { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7509,28 +7527,28 @@ func tkhToTFObjectClientClientApplication_additionalObjects(recurse bool, tkh ke obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) { - val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(false, tkh.GetGroupclients()) + val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) diags.Append(d...) obj["groupclients"] = val } { - val, d := tkhToTFObjectGroupGroupLinkableWrapper(false, tkh.GetGroups()) + val, d := tkhToTFObjectGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) obj["groups"] = val } { - val, d := tkhToTFObjectGeneratedSecret(false, tkh.GetSecret()) + val, d := tkhToTFObjectGeneratedSecret(recurse, tkh.GetSecret()) diags.Append(d...) obj["secret"] = val } { - val, d := tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(false, tkh.GetTile()) + val, d := tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) obj["tile"] = val } @@ -7564,7 +7582,7 @@ func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClien { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7574,7 +7592,7 @@ func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClien { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7631,7 +7649,7 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7641,7 +7659,7 @@ func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2C { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7718,7 +7736,7 @@ func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.Cli { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7728,7 +7746,7 @@ func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.Cli { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7760,7 +7778,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectClientOAuth2ClientPermission(false, tkh) + val, d := tkhToTFObjectClientOAuth2ClientPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7796,7 +7814,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhu { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7806,7 +7824,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhu { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -7843,7 +7861,7 @@ func tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClient(false, tkh) + val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse, tkh) diags.Append(d...) return val }) @@ -7870,7 +7888,7 @@ func tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(recurse bool, t obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -7922,7 +7940,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7932,7 +7950,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8011,7 +8029,7 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8021,7 +8039,7 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8061,7 +8079,7 @@ func tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh key { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDirectoryAccountDirectory(false, tkh) + val, d := tkhToTFObjectDirectoryAccountDirectory(recurse, tkh) diags.Append(d...) return val }) @@ -8090,7 +8108,7 @@ func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel. { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8100,7 +8118,7 @@ func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel. { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8156,7 +8174,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8166,7 +8184,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8178,7 +8196,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(false, tkh.GetStatus()) + val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) diags.Append(d...) obj["status"] = val } @@ -8205,7 +8223,7 @@ func tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDirectoryAccountDirectorySummary(false, tkh) + val, d := tkhToTFObjectDirectoryAccountDirectorySummary(recurse, tkh) diags.Append(d...) return val }) @@ -8232,17 +8250,17 @@ func tkhToTFObjectDirectoryAccountDirectory_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectMarkItemMarkers(false, tkh.GetMarkers()) + val, d := tkhToTFObjectMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) obj["markers"] = val } { - val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(false, tkh.GetStatus()) + val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) diags.Append(d...) obj["status"] = val } @@ -8275,7 +8293,7 @@ func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Direc { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8285,7 +8303,7 @@ func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Direc { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8333,7 +8351,7 @@ func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directory { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8343,7 +8361,7 @@ func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directory { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8404,7 +8422,7 @@ func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.Di { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8414,7 +8432,7 @@ func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.Di { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8461,7 +8479,7 @@ func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directory { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8471,7 +8489,7 @@ func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directory { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8529,7 +8547,7 @@ func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGr { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8539,7 +8557,7 @@ func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGr { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8581,7 +8599,7 @@ func tkhToTFObjectGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupAccountGroup(false, tkh) + val, d := tkhToTFObjectGroupAccountGroup(recurse, tkh) diags.Append(d...) return val }) @@ -8608,12 +8626,12 @@ func tkhToTFObjectGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) diags.Append(d...) obj["vault"] = val } @@ -8639,7 +8657,7 @@ func tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.Gro { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroup(false, tkh) + val, d := tkhToTFObjectGroupGroup(recurse, tkh) diags.Append(d...) return val }) @@ -8676,7 +8694,7 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8686,7 +8704,7 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8757,7 +8775,7 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8767,7 +8785,7 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8810,7 +8828,7 @@ func tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupAccount(false, tkh) + val, d := tkhToTFObjectGroupGroupAccount(recurse, tkh) diags.Append(d...) return val }) @@ -8857,7 +8875,7 @@ func tkhToTFObjectGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGro obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) + val, d := tkhToTFObjectGroupGroupFolder(recurse, tkh.GetFolder()) diags.Append(d...) obj["folder"] = val } @@ -8882,7 +8900,7 @@ func tkhToTFObjectGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -8935,7 +8953,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8945,7 +8963,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -8994,7 +9012,7 @@ func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGrou { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9004,7 +9022,7 @@ func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGrou { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9045,7 +9063,7 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9055,7 +9073,7 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9092,7 +9110,7 @@ func tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.G { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupAudit(false, tkh) + val, d := tkhToTFObjectGroupGroupAudit(recurse, tkh) diags.Append(d...) return val }) @@ -9119,7 +9137,7 @@ func tkhToTFObjectGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmode obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -9179,7 +9197,7 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9189,7 +9207,7 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9259,7 +9277,7 @@ func tkhToTFObjectGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyh { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupClassification(false, tkh) + val, d := tkhToTFObjectGroupGroupClassification(recurse, tkh) diags.Append(d...) return val }) @@ -9288,7 +9306,7 @@ func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.G { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9298,7 +9316,7 @@ func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.G { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9347,12 +9365,12 @@ func tkhToTFObjectGroupGroupClassification_additionalObjects(recurse bool, tkh k obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectGroupGroupClassificationInfo(false, tkh.GetInfo()) + val, d := tkhToTFObjectGroupGroupClassificationInfo(recurse, tkh.GetInfo()) diags.Append(d...) obj["info"] = val } @@ -9385,7 +9403,7 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9395,7 +9413,7 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9429,7 +9447,7 @@ func tkhToTFObjectGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel. { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupClient(false, tkh) + val, d := tkhToTFObjectGroupGroupClient(recurse, tkh) diags.Append(d...) return val }) @@ -9456,7 +9474,7 @@ func tkhToTFObjectGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -9489,7 +9507,7 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9499,7 +9517,7 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9529,7 +9547,7 @@ func tkhToTFObjectGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel. { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupFolder(false, tkh) + val, d := tkhToTFObjectGroupGroupFolder(recurse, tkh) diags.Append(d...) return val }) @@ -9556,7 +9574,7 @@ func tkhToTFObjectGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -9607,7 +9625,7 @@ func tkhToTFObjectGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupG { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroup(false, tkh) + val, d := tkhToTFObjectGroupGroup(recurse, tkh) diags.Append(d...) return val }) @@ -9636,7 +9654,7 @@ func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrime { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9646,7 +9664,7 @@ func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrime { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9705,7 +9723,7 @@ func tkhToTFObjectGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmod { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroup(false, tkh) + val, d := tkhToTFObjectGroupGroup(recurse, tkh) diags.Append(d...) return val }) @@ -9715,7 +9733,7 @@ func tkhToTFObjectGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmod { elemType := attrs["segments"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectSegmentCount(false, tkh) + val, d := tkhToTFObjectSegmentCount(recurse, tkh) diags.Append(d...) return val }) @@ -9742,133 +9760,133 @@ func tkhToTFObjectGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.Gro obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(false, tkh.GetAccounts()) + val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) diags.Append(d...) obj["accounts"] = val } { - val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(false, tkh.GetAdministeredClients()) + val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) obj["administered_clients"] = val } { - val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(false, tkh.GetAdministeredSystems()) + val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) obj["administered_systems"] = val } { - val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(false, tkh.GetAdmins()) + val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) diags.Append(d...) obj["admins"] = val } { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectGroupAuthorizedGroupsWrapper(false, tkh.GetAuthorizedGroups()) + val, d := tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) diags.Append(d...) obj["authorized_groups"] = val } { - val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(false, tkh.GetClientPermissions()) + val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) diags.Append(d...) obj["client_permissions"] = val } { - val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(false, tkh.GetClients()) + val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) diags.Append(d...) obj["clients"] = val } { - val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(false, tkh.GetContentAdministeredSystems()) + val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) diags.Append(d...) obj["content_administered_systems"] = val } { - val, d := tkhToTFObjectGroupGroupAuditingInfo(false, tkh.GetGroupauditinginfo()) + val, d := tkhToTFObjectGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) diags.Append(d...) obj["groupauditinginfo"] = val } { - val, d := tkhToTFObjectGroupGroupInfo(false, tkh.GetGroupinfo()) + val, d := tkhToTFObjectGroupGroupInfo(recurse, tkh.GetGroupinfo()) diags.Append(d...) obj["groupinfo"] = val } { - val, d := tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(false, tkh.GetHelpdesk()) + val, d := tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) diags.Append(d...) obj["helpdesk"] = val } { - val, d := tkhToTFObjectMarkItemMarkers(false, tkh.GetMarkers()) + val, d := tkhToTFObjectMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) obj["markers"] = val } { - val, d := tkhToTFObjectGroupGroupAccount(false, tkh.GetMyaccount()) + val, d := tkhToTFObjectGroupGroupAccount(recurse, tkh.GetMyaccount()) diags.Append(d...) obj["myaccount"] = val } { - val, d := tkhToTFObjectGroupGroupAccount(false, tkh.GetMydelegatedaccount()) + val, d := tkhToTFObjectGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) diags.Append(d...) obj["mydelegatedaccount"] = val } { - val, d := tkhToTFObjectGroupGroupPrimerLinkableWrapper(false, tkh.GetNestedGroups()) + val, d := tkhToTFObjectGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) diags.Append(d...) obj["nested_groups"] = val } { - val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(false, tkh.GetOwnedClients()) + val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) diags.Append(d...) obj["owned_clients"] = val } { - val, d := tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(false, tkh.GetOwnedDirectories()) + val, d := tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) diags.Append(d...) obj["owned_directories"] = val } { - val, d := tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(false, tkh.GetOwnedGroupsOnSystem()) + val, d := tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) diags.Append(d...) obj["owned_groups_on_system"] = val } { - val, d := tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(false, tkh.GetOwnedOrganizationalUnits()) + val, d := tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) diags.Append(d...) obj["owned_organizational_units"] = val } { - val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(false, tkh.GetOwnedSystems()) + val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) diags.Append(d...) obj["owned_systems"] = val } { - val, d := tkhToTFObjectGroupGroupAuditLinkableWrapper(false, tkh.GetRecentAudits()) + val, d := tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) diags.Append(d...) obj["recent_audits"] = val } obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) { - val, d := tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(false, tkh.GetServiceAccounts()) + val, d := tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) obj["service_accounts"] = val } { - val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(false, tkh.GetSystems()) + val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) obj["systems"] = val } { - val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) diags.Append(d...) obj["vault"] = val } { - val, d := tkhToTFObjectWebhookWebhookLinkableWrapper(false, tkh.GetWebhooks()) + val, d := tkhToTFObjectWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) diags.Append(d...) obj["webhooks"] = val } @@ -9895,7 +9913,7 @@ func tkhToTFObjectGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroup { elemType := attrs["classifications"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupClassification(false, tkh) + val, d := tkhToTFObjectGroupGroupClassification(recurse, tkh) diags.Append(d...) return val }) @@ -9936,7 +9954,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9946,7 +9964,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9982,7 +10000,7 @@ func tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhub { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupProvisioningGroup(false, tkh) + val, d := tkhToTFObjectGroupProvisioningGroup(recurse, tkh) diags.Append(d...) return val }) @@ -10009,7 +10027,7 @@ func tkhToTFObjectGroupProvisioningGroup_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -10035,7 +10053,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10045,7 +10063,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10063,7 +10081,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. obj["logo"] = val } { - val, d := tkhToTFObjectLaunchpadLaunchpadTilePrimer(false, tkh.GetTile()) + val, d := tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) diags.Append(d...) obj["tile"] = val } @@ -10091,7 +10109,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectLaunchpadDisplayedLaunchpadTile(false, tkh) + val, d := tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse, tkh) diags.Append(d...) return val }) @@ -10127,7 +10145,7 @@ func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchpad { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10137,7 +10155,7 @@ func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchpad { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10179,7 +10197,7 @@ func tkhToTFObjectLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhub { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectLaunchpadLaunchpadTile(false, tkh) + val, d := tkhToTFObjectLaunchpadLaunchpadTile(recurse, tkh) diags.Append(d...) return val }) @@ -10208,7 +10226,7 @@ func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.Lau { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10218,7 +10236,7 @@ func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.Lau { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10245,7 +10263,7 @@ func tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -10278,7 +10296,7 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10288,7 +10306,7 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10339,7 +10357,7 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10349,7 +10367,7 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10399,7 +10417,7 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10409,7 +10427,7 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10507,7 +10525,7 @@ func tkhToTFObjectMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerabl obj["level"] = stringerToTF(tkh.GetLevel()) obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - val, d := tkhToTFObjectMarkItemMarker_parameters(false, tkh.GetParameters()) + val, d := tkhToTFObjectMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) obj["parameters"] = val } @@ -10552,7 +10570,7 @@ func tkhToTFObjectMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersa { elemType := attrs["markers"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectMarkItemMarker(false, tkh) + val, d := tkhToTFObjectMarkItemMarker(recurse, tkh) diags.Append(d...) return val }) @@ -10579,23 +10597,23 @@ func tkhToTFObjectNotificationCertificateExpiredNotification(recurse bool, tkh k obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectCertificateCertificate(false, tkh.GetCertificate()) + val, d := tkhToTFObjectCertificateCertificate(recurse, tkh.GetCertificate()) diags.Append(d...) obj["certificate"] = val } { - val, d := tkhToTFObjectDirectoryLDAPDirectory(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) diags.Append(d...) obj["directory"] = val } obj["expiration"] = timePointerToTF(tkh.GetExpiration()) { - val, d := tkhToTFObjectClientLdapClient(false, tkh.GetLdapClient()) + val, d := tkhToTFObjectClientLdapClient(recurse, tkh.GetLdapClient()) diags.Append(d...) obj["ldap_client"] = val } { - val, d := tkhToTFObjectProvisioningProvisionedSystem(false, tkh.GetSystem()) + val, d := tkhToTFObjectProvisioningProvisionedSystem(recurse, tkh.GetSystem()) diags.Append(d...) obj["system"] = val } @@ -10622,7 +10640,7 @@ func tkhToTFObjectNotificationGroupAuditRequiredNotification(recurse bool, tkh k obj := make(map[string]attr.Value) obj["due_date"] = timePointerToTF(tkh.GetDueDate()) { - val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) + val, d := tkhToTFObjectGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) obj["group"] = val } @@ -10647,12 +10665,12 @@ func tkhToTFObjectNotificationGroupEditRequiredNotification(recurse bool, tkh ke obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) + val, d := tkhToTFObjectGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) obj["group"] = val } { - val, d := tkhToTFObjectNotificationGroupEditRequiredNotification_parameters(false, tkh.GetParameters()) + val, d := tkhToTFObjectNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) diags.Append(d...) obj["parameters"] = val } @@ -10715,7 +10733,11 @@ func tkhToTFObjectNotificationLicenseStatusNotification(recurse bool, tkh keyhub obj := make(map[string]attr.Value) obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) - obj["license_info_uuid"] = withUuidToTF(tkh.GetLicenseInfo()) + { + val, d := tkhToTFObjectLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) + diags.Append(d...) + obj["license_info"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10752,7 +10774,7 @@ func tkhToTFObjectNotificationModificationRequestNotification(recurse bool, tkh obj["groups"] = val } { - val, d := tkhToTFObjectRequestModificationRequest(false, tkh.GetRequest()) + val, d := tkhToTFObjectRequestModificationRequest(recurse, tkh.GetRequest()) diags.Append(d...) obj["request"] = val } @@ -10797,7 +10819,7 @@ func tkhToTFObjectNotificationNotifications(recurse bool, tkh keyhubmodel.Notifi { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectNotificationNotification(false, tkh) + val, d := tkhToTFObjectNotificationNotification(recurse, tkh) diags.Append(d...) return val }) @@ -10825,7 +10847,7 @@ func tkhToTFObjectNotificationOldApiVersionUsageNotification(recurse bool, tkh k obj := make(map[string]attr.Value) obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) { - val, d := tkhToTFObjectClientOAuth2Client(false, tkh.GetClient()) + val, d := tkhToTFObjectClientOAuth2Client(recurse, tkh.GetClient()) diags.Append(d...) obj["client"] = val } @@ -10923,7 +10945,7 @@ func tkhToTFObjectNotificationVaultRecordExpiredNotification(recurse bool, tkh k obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectVaultVaultRecord(false, tkh.GetRecord()) + val, d := tkhToTFObjectVaultVaultRecord(recurse, tkh.GetRecord()) diags.Append(d...) obj["record"] = val } @@ -10956,7 +10978,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10966,7 +10988,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -10997,7 +11019,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnitLinkableWrapper(recurse b { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit(false, tkh) + val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse, tkh) diags.Append(d...) return val }) @@ -11024,7 +11046,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(recurs obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -11057,7 +11079,7 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11067,7 +11089,7 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11109,7 +11131,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11119,7 +11141,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11154,7 +11176,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccountLinkableWrapper(recurse b { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount(false, tkh) + val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse, tkh) diags.Append(d...) return val }) @@ -11181,7 +11203,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(recurs obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -11207,7 +11229,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tk { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectOrganizationOrganizationalUnit(false, tkh) + val, d := tkhToTFObjectOrganizationOrganizationalUnit(recurse, tkh) diags.Append(d...) return val }) @@ -11236,7 +11258,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11246,7 +11268,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11302,12 +11324,12 @@ func tkhToTFObjectOrganizationOrganizationalUnit_additionalObjects(recurse bool, obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(false, tkh.GetCreateAsParentOf()) + val, d := tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) diags.Append(d...) obj["create_as_parent_of"] = val } @@ -11340,7 +11362,7 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11350,7 +11372,7 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11433,7 +11455,7 @@ func tkhToTFObjectProvisioningAccountProvisioningStatus(recurse bool, tkh keyhub obj["description"] = types.StringPointerValue(tkh.GetDescription()) obj["result"] = stringerToTF(tkh.GetResult()) { - val, d := tkhToTFObjectGroupProvisioningGroup(false, tkh.GetSystem()) + val, d := tkhToTFObjectGroupProvisioningGroup(recurse, tkh.GetSystem()) diags.Append(d...) obj["system"] = val } @@ -11459,7 +11481,7 @@ func tkhToTFObjectProvisioningAccountProvisioningStatusReport(recurse bool, tkh { elemType := attrs["status"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningAccountProvisioningStatus(false, tkh) + val, d := tkhToTFObjectProvisioningAccountProvisioningStatus(recurse, tkh) diags.Append(d...) return val }) @@ -11518,7 +11540,7 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11528,7 +11550,7 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11563,7 +11585,7 @@ func tkhToTFObjectProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh key { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh) + val, d := tkhToTFObjectProvisioningGroupOnSystem(recurse, tkh) diags.Append(d...) return val }) @@ -11592,7 +11614,7 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11602,7 +11624,7 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11660,17 +11682,17 @@ func tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(false, tkh.GetProvgroups()) + val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) diags.Append(d...) obj["provgroups"] = val } { - val, d := tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(false, tkh.GetServiceAccounts()) + val, d := tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) obj["service_accounts"] = val } @@ -11694,24 +11716,24 @@ func tkhToTFObjectProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) + val, d := tkhToTFObjectGroupGroupFolder(recurse, tkh.GetFolder()) diags.Append(d...) obj["folder"] = val } { - val, d := tkhToTFObjectGroupGroup(false, tkh.GetGroup()) + val, d := tkhToTFObjectGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) obj["group"] = val } { - val, d := tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(false, tkh.GetProvisioningDuration()) + val, d := tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) diags.Append(d...) obj["provisioning_duration"] = val } obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) { - val, d := tkhToTFObjectProvisioningAccountProvisioningStatusReport(false, tkh.GetStatusReport()) + val, d := tkhToTFObjectProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) diags.Append(d...) obj["status_report"] = val } @@ -11759,7 +11781,7 @@ func tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhu { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh) + val, d := tkhToTFObjectProvisioningGroupOnSystem(recurse, tkh) diags.Append(d...) return val }) @@ -11796,7 +11818,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11806,7 +11828,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11838,7 +11860,7 @@ func tkhToTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(recurse boo { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionNumberSequence(false, tkh) + val, d := tkhToTFObjectProvisioningProvisionNumberSequence(recurse, tkh) diags.Append(d...) return val }) @@ -11865,12 +11887,12 @@ func tkhToTFObjectProvisioningProvisionNumberSequence_additionalObjects(recurse obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(false, tkh.GetSystems()) + val, d := tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) obj["systems"] = val } @@ -11903,7 +11925,7 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11913,7 +11935,7 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11985,7 +12007,7 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11995,7 +12017,7 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12030,7 +12052,7 @@ func tkhToTFObjectProvisioningProvisionedAccountLinkableWrapper(recurse bool, tk { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionedAccount(false, tkh) + val, d := tkhToTFObjectProvisioningProvisionedAccount(recurse, tkh) diags.Append(d...) return val }) @@ -12057,7 +12079,7 @@ func tkhToTFObjectProvisioningProvisionedAccount_additionalObjects(recurse bool, obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -12090,7 +12112,7 @@ func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh ke { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12100,7 +12122,7 @@ func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh ke { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12153,7 +12175,7 @@ func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tk { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12163,7 +12185,7 @@ func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tk { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12218,7 +12240,7 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12228,7 +12250,7 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12283,7 +12305,7 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12293,7 +12315,7 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12349,7 +12371,7 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12359,7 +12381,7 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12437,7 +12459,7 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12447,7 +12469,7 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12500,7 +12522,7 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12510,7 +12532,7 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12554,7 +12576,7 @@ func tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionedSystem(false, tkh) + val, d := tkhToTFObjectProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) return val }) @@ -12583,7 +12605,7 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12593,7 +12615,7 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12660,7 +12682,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12670,7 +12692,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12703,7 +12725,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bo { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog(false, tkh) + val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse, tkh) diags.Append(d...) return val }) @@ -12730,7 +12752,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(recurse obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -12754,38 +12776,38 @@ func tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(recurse bool, obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectProvisioningProvisionedAccount(false, tkh.GetAccount()) + val, d := tkhToTFObjectProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) obj["account"] = val } { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(false, tkh.GetIssuedPermissions()) + val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) obj["issued_permissions"] = val } obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := tkhToTFObjectProvisioningProvisioningManagementPermissions(false, tkh.GetManagementPermissions()) + val, d := tkhToTFObjectProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) obj["management_permissions"] = val } { - val, d := tkhToTFObjectMarkItemMarkers(false, tkh.GetMarkers()) + val, d := tkhToTFObjectMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) obj["markers"] = val } { - val, d := tkhToTFObjectProvisioningCircuitBreakerStatistics(false, tkh.GetStatistics()) + val, d := tkhToTFObjectProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) obj["statistics"] = val } { - val, d := tkhToTFObjectProvisioningGroupOnSystemTypes(false, tkh.GetSupportedGroupTypes()) + val, d := tkhToTFObjectProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) diags.Append(d...) obj["supported_group_types"] = val } @@ -12833,7 +12855,7 @@ func tkhToTFObjectProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.P { elemType := attrs["groups"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningGroupProvisioningStatus(false, tkh) + val, d := tkhToTFObjectProvisioningGroupProvisioningStatus(recurse, tkh) diags.Append(d...) return val }) @@ -12891,7 +12913,7 @@ func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tk { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12901,7 +12923,7 @@ func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tk { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12945,7 +12967,7 @@ func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse b { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12955,7 +12977,7 @@ func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse b { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -12999,7 +13021,7 @@ func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13009,7 +13031,7 @@ func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13044,7 +13066,7 @@ func tkhToTFObjectRequestAcceptGrantAccessRequestParameters(recurse bool, tkh ke obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(false, tkh.GetAccessDuration()) + val, d := tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) diags.Append(d...) obj["access_duration"] = val } @@ -13138,7 +13160,7 @@ func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Requ { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13148,7 +13170,7 @@ func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Requ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13193,7 +13215,7 @@ func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmode { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13203,7 +13225,7 @@ func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmode { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13250,7 +13272,7 @@ func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13260,7 +13282,7 @@ func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13305,7 +13327,7 @@ func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmod { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13315,7 +13337,7 @@ func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmod { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13360,7 +13382,7 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13370,7 +13392,7 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13414,7 +13436,7 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13424,7 +13446,7 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13467,7 +13489,7 @@ func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Reque { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13477,7 +13499,7 @@ func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Reque { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13521,7 +13543,7 @@ func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13531,7 +13553,7 @@ func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13574,7 +13596,7 @@ func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.R { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13584,7 +13606,7 @@ func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.R { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13628,7 +13650,7 @@ func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13638,7 +13660,7 @@ func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13684,7 +13706,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13694,7 +13716,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13743,7 +13765,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyh { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13753,7 +13775,7 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyh { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13802,7 +13824,7 @@ func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhu { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13812,7 +13834,7 @@ func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhu { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13861,7 +13883,7 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13871,7 +13893,7 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13914,7 +13936,7 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13924,7 +13946,7 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -13967,7 +13989,7 @@ func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.Reque { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13977,7 +13999,7 @@ func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.Reque { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14013,7 +14035,7 @@ func tkhToTFObjectRequestModificationRequestLinkableWrapper(recurse bool, tkh ke { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRequestModificationRequest(false, tkh) + val, d := tkhToTFObjectRequestModificationRequest(recurse, tkh) diags.Append(d...) return val }) @@ -14040,17 +14062,17 @@ func tkhToTFObjectRequestModificationRequest_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRequestAcceptModificationRequestParameters(false, tkh.GetAcceptParams()) + val, d := tkhToTFObjectRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) diags.Append(d...) obj["accept_params"] = val } { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectRequestPasswordResetRequestStatus(false, tkh.GetResetStatus()) + val, d := tkhToTFObjectRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) diags.Append(d...) obj["reset_status"] = val } @@ -14083,7 +14105,7 @@ func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Requ { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14093,7 +14115,7 @@ func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Requ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14169,7 +14191,7 @@ func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14179,7 +14201,7 @@ func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14223,7 +14245,7 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14233,7 +14255,7 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14278,7 +14300,7 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14288,7 +14310,7 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14333,7 +14355,7 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14343,7 +14365,7 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14386,7 +14408,7 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14396,7 +14418,7 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14440,7 +14462,7 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14450,7 +14472,7 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14496,7 +14518,7 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14506,7 +14528,7 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14552,7 +14574,7 @@ func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14562,7 +14584,7 @@ func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14606,7 +14628,7 @@ func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh k { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14616,7 +14638,7 @@ func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh k { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14660,7 +14682,7 @@ func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmod { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14670,7 +14692,7 @@ func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmod { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14713,7 +14735,7 @@ func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14723,7 +14745,7 @@ func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14771,7 +14793,7 @@ func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14781,7 +14803,7 @@ func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14825,7 +14847,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14835,7 +14857,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14879,7 +14901,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(r { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14889,7 +14911,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(r { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14933,7 +14955,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14943,7 +14965,7 @@ func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -14987,7 +15009,7 @@ func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse boo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14997,7 +15019,7 @@ func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse boo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15041,7 +15063,7 @@ func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15051,7 +15073,7 @@ func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15100,7 +15122,7 @@ func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15110,7 +15132,7 @@ func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15154,7 +15176,7 @@ func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.Ser { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15164,7 +15186,7 @@ func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.Ser { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15209,7 +15231,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmode { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15219,7 +15241,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmode { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15252,7 +15274,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectServiceaccountServiceAccountGroup(false, tkh) + val, d := tkhToTFObjectServiceaccountServiceAccountGroup(recurse, tkh) diags.Append(d...) return val }) @@ -15279,7 +15301,7 @@ func tkhToTFObjectServiceaccountServiceAccountGroup_additionalObjects(recurse bo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -15305,7 +15327,7 @@ func tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectServiceaccountServiceAccount(false, tkh) + val, d := tkhToTFObjectServiceaccountServiceAccount(recurse, tkh) diags.Append(d...) return val }) @@ -15334,7 +15356,7 @@ func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmod { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15344,7 +15366,7 @@ func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmod { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15423,17 +15445,17 @@ func tkhToTFObjectServiceaccountServiceAccount_additionalObjects(recurse bool, t obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(false, tkh.GetGroups()) + val, d := tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) obj["groups"] = val } { - val, d := tkhToTFObjectGeneratedSecret(false, tkh.GetSecret()) + val, d := tkhToTFObjectGeneratedSecret(recurse, tkh.GetSecret()) diags.Append(d...) obj["secret"] = val } @@ -15458,12 +15480,12 @@ func tkhToTFObjectServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyh obj := make(map[string]attr.Value) obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) { - val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false, tkh.GetPasswordSchemeEnabledStats()) + val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) diags.Append(d...) obj["password_scheme_enabled_stats"] = val } { - val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(false, tkh.GetSystemStats()) + val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) diags.Append(d...) obj["system_stats"] = val } @@ -15582,7 +15604,7 @@ func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDel { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15592,7 +15614,7 @@ func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDel { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15624,7 +15646,7 @@ func tkhToTFObjectVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhu { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultDeletedVaultHolder(false, tkh) + val, d := tkhToTFObjectVaultDeletedVaultHolder(recurse, tkh) diags.Append(d...) return val }) @@ -15651,12 +15673,12 @@ func tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh ke obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectVaultVault(false, tkh.GetVault()) + val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) diags.Append(d...) obj["vault"] = val } @@ -15705,7 +15727,7 @@ func tkhToTFObjectVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVa obj["action"] = stringerToTF(tkh.GetAction()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { - val, d := tkhToTFObjectVaultMoveVaultRecord_shareDuration(false, tkh.GetShareDuration()) + val, d := tkhToTFObjectVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) diags.Append(d...) obj["share_duration"] = val } @@ -15752,7 +15774,7 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15762,7 +15784,7 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15774,7 +15796,7 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type { elemType := attrs["records"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultVaultRecord(false, tkh) + val, d := tkhToTFObjectVaultVaultRecord(recurse, tkh) diags.Append(d...) return val }) @@ -15829,7 +15851,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15839,7 +15861,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -15886,7 +15908,7 @@ func tkhToTFObjectVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel. { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultVaultRecord(false, tkh) + val, d := tkhToTFObjectVaultVaultRecord(recurse, tkh) diags.Append(d...) return val }) @@ -15915,7 +15937,7 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15925,7 +15947,7 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -16030,7 +16052,7 @@ func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.Vau { elemType := attrs["children"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultVaultRecordShare(false, tkh) + val, d := tkhToTFObjectVaultVaultRecordShare(recurse, tkh) diags.Append(d...) return val }) @@ -16038,7 +16060,7 @@ func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.Vau obj["children"] = val } { - val, d := tkhToTFObjectVaultVaultRecordShare(false, tkh.GetParent()) + val, d := tkhToTFObjectVaultVaultRecordShare(recurse, tkh.GetParent()) diags.Append(d...) obj["parent"] = val } @@ -16062,34 +16084,34 @@ func tkhToTFObjectVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) { - val, d := tkhToTFObjectVaultVaultRecordSecrets(false, tkh.GetSecret()) + val, d := tkhToTFObjectVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) obj["secret"] = val } { - val, d := tkhToTFObjectVaultVaultRecordShareSummary(false, tkh.GetShareSummary()) + val, d := tkhToTFObjectVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) diags.Append(d...) obj["share_summary"] = val } { - val, d := tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(false, tkh.GetShares()) + val, d := tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) diags.Append(d...) obj["shares"] = val } { - val, d := tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(false, tkh.GetTile()) + val, d := tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) obj["tile"] = val } { - val, d := tkhToTFObjectVaultVaultHolder(false, tkh.GetVaultholder()) + val, d := tkhToTFObjectVaultVaultHolder(recurse, tkh.GetVaultholder()) diags.Append(d...) obj["vaultholder"] = val } @@ -16184,7 +16206,7 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -16194,7 +16216,7 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -16258,7 +16280,7 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(false, tkh) + val, d := tkhToTFObjectRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -16268,7 +16290,7 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -16308,7 +16330,7 @@ func tkhToTFObjectWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhub { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectWebhookWebhookDelivery(false, tkh) + val, d := tkhToTFObjectWebhookWebhookDelivery(recurse, tkh) diags.Append(d...) return val }) @@ -16335,7 +16357,7 @@ func tkhToTFObjectWebhookWebhookDelivery_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -16387,7 +16409,7 @@ func tkhToTFObjectWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWe obj := make(map[string]attr.Value) obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectLinkable(false, tkh.GetObject()) + val, d := tkhToTFObjectLinkable(recurse, tkh.GetObject()) diags.Append(d...) obj["object"] = val } @@ -16411,26 +16433,82 @@ func tkhToTFObjectWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhoo } obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["by_party_uuid"] = withUuidToTF(tkh.GetByParty()) - obj["certificate_uuid"] = withUuidToTF(tkh.GetCertificate()) - obj["client_uuid"] = withUuidToTF(tkh.GetClient()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["group2_uuid"] = withUuidToTF(tkh.GetGroup2()) - obj["group_classification_uuid"] = withUuidToTF(tkh.GetGroupClassification()) - obj["modification_request_uuid"] = withUuidToTF(tkh.GetModificationRequest()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetByParty()) + diags.Append(d...) + obj["by_party"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) + diags.Append(d...) + obj["group2"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) + diags.Append(d...) + obj["group_classification"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) + diags.Append(d...) + obj["modification_request"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - obj["webhook_uuid"] = withUuidToTF(tkh.GetWebhook()) + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + { + val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val + } obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) @@ -16452,7 +16530,7 @@ func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(false, tkh.GetAudit()) + val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -16462,55 +16540,10248 @@ func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel return objVal, diags } -func fillDataStructFromTFObjectAuditInfo(data *auditInfoData, obj types.Object) { - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) -} +func tfObjectToTKHAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } -func fillDataStructFromTFObjectErrorReport(data *errorReportData, obj types.Object) { - data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) - data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) - data.Code = obj.Attributes()["code"].(basetypes.Int64Value) - data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) - data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) - data.Message = obj.Attributes()["message"].(basetypes.StringValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) + tkh := keyhubmodel.NewAuditInfo() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags } -func fillDataStructFromTFObjectErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersData, obj types.Object) { -} +func tfObjectToTKHErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } -func fillDataStructFromTFObjectGeneratedSecret(data *generatedSecretData, obj types.Object) { - data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) - data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) - data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) + tkh := keyhubmodel.NewErrorReport() + objAttrs := objVal.Attributes() + tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplicationErrorParameters(val) + } + tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetErrorDetails(val) + } + tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetStacktrace(val) + } + return tkh, diags } -func fillDataStructFromTFObjectLinkable(data *linkableData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +func tfObjectToTKHErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + return tkh, diags } -func fillDataStructFromTFObjectNonLinkable(data *nonLinkableData, obj types.Object) { +func tfObjectToTKHGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGeneratedSecret() + objAttrs := objVal.Attributes() + tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags } -func fillDataStructFromTFObjectRestLink(data *restLinkData, obj types.Object) { - data.Href = obj.Attributes()["href"].(basetypes.StringValue) - data.ID = obj.Attributes()["id"].(basetypes.Int64Value) - data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +func tfObjectToTKHLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLinkable() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags } -func fillDataStructFromTFObjectSegmentCount(data *segmentCountData, obj types.Object) { - data.Count = obj.Attributes()["count"].(basetypes.Int64Value) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) +func tfObjectToTKHNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNonLinkable() + return tkh, diags } -func fillDataStructFromTFObjectAuditAuditRecord(data *auditAuditRecordData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) +func tfObjectToTKHRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRestLink() + objAttrs := objVal.Attributes() + tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSegmentCount() + objAttrs := objVal.Attributes() + tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuditAuditRecord() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetAuditAuditRecordType(val) + } + { + val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDateTime(val) + } + tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + return tkh, diags +} + +func tfObjectToTKHAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { + tkh, d := tfObjectToTKHAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountBulkUpdate() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { + return val.(keyhubmodel.AuthAccountBulkUpdateAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { + return val.(basetypes.Int64Value).ValueInt64() + }) + diags.Append(d...) + tkh.SetSelectedAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountChangeLocale() + objAttrs := objVal.Attributes() + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { + tkh, d := tfObjectToTKHAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + objAttrs := objVal.Attributes() + tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountSettings() + objAttrs := objVal.Attributes() + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDefaultOrganizationalUnit(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return val.(keyhubmodel.AuthPasswordMode) }) + diags.Append(d...) + tkh.SetPasswordMode(val) + } + tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorAuthentication(val) + } + tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return val.(keyhubmodel.VaultAccountVaultStatus) }) + diags.Append(d...) + tkh.SetVaultStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountStatus() + objAttrs := objVal.Attributes() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccount_additionalObjects() + objAttrs := objVal.Attributes() + tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPendingRecoveryRequests(val) + } + { + val, d := tfObjectToTKHAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSettings(val) + } + { + val, d := tfObjectToTKHAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStoredAttributes(val) + } + { + val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectoryStats(val) + } + { + val, d := tfObjectToTKHAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTwoFAStats(val) + } + { + val, d := tfObjectToTKHAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetValidityStats(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + return tkh, diags +} + +func tfObjectToTKHAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + return tkh, diags +} + +func tfObjectToTKHAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + return tkh, diags +} + +func tfObjectToTKHAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return val.(keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { + tkh, d := tfObjectToTKHAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return val.(keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthInternalAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthMoveInternalAccount() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInternalDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthPermission() + objAttrs := objVal.Attributes() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetInstances(val) + } + { + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return val.(keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetOperations(val) + } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthStoredAccountAttribute() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthStoredAccountAttributes() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { + tkh, d := tfObjectToTKHAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAttributes(val) + } + return tkh, diags +} + +func tfObjectToTKHCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificate() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return val.(keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetKeyData(val) + } + return tkh, diags +} + +func tfObjectToTKHCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { + tkh, d := tfObjectToTKHCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificatePrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return val.(keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplication() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { + tkh, d := tfObjectToTKHClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplicationPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupclients(val) + } + { + val, d := tfObjectToTKHGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientLdapClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2Client() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + { + val, d := tfObjectToTKHClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermission() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + return tkh, diags +} + +func tfObjectToTKHClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { + tkh, d := tfObjectToTKHClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + { + val, d := tfObjectToTKHClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { + tkh, d := tfObjectToTKHClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientSaml2Client() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfObjectToTKHClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return val.(keyhubmodel.ClientSubjectFormat) }) + diags.Append(d...) + tkh.SetSubjectFormat(val) + } + return tkh, diags +} + +func tfObjectToTKHClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientSaml2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { + tkh, d := tfObjectToTKHDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + objAttrs := objVal.Attributes() + tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { + return val.(keyhubmodel.DirectoryAccountDirectoryStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectorySummaryType(val) + } + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { + tkh, d := tfObjectToTKHDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryInternalDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + return tkh, diags +} + +func tfObjectToTKHDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + { + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return val.(keyhubmodel.DirectoryLDAPDialect) }) + diags.Append(d...) + tkh.SetDialect(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return val.(keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) + diags.Append(d...) + tkh.SetPasswordRecovery(val) + } + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + return tkh, diags +} + +func tfObjectToTKHDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryOIDCDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return val.(keyhubmodel.DirectoryOIDCVendor) }) + diags.Append(d...) + tkh.SetVendorEscaped(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { + tkh, d := tfObjectToTKHGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuditConfig(val) + } + tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupAuditing(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupDelegation(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupMembership(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupProvisioning(val) + } + { + val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return val.(keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAuthorizingGroupTypes(val) + } + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClassification(val) + } + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { return val.(keyhubmodel.GroupGroupExtendedAccess) }) + diags.Append(d...) + tkh.SetExtendedAccess(val) + } + tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNestedUnder(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { + return val.(keyhubmodel.GroupVaultRecoveryAvailability) + }) + diags.Append(d...) + tkh.SetVaultRecovery(val) + } + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { + tkh, d := tfObjectToTKHGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountNesting() + objAttrs := objVal.Attributes() + tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountStatus() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAdminMail() + objAttrs := objVal.Attributes() + tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAudit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return val.(keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditAccount() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return val.(keyhubmodel.AuditAuditAccountAction) }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditConfig() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMonths(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { + tkh, d := tfObjectToTKHGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditingInfo() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetAuditDueDate(val) + } + { + val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastAuditDate(val) + } + tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassification() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRequiredMonths(val) + } + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationInfo() + objAttrs := objVal.Attributes() + tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + objAttrs := objVal.Attributes() + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClassificaton(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { + tkh, d := tfObjectToTKHGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolder() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { + tkh, d := tfObjectToTKHGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupInfo() + objAttrs := objVal.Attributes() + tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + { + val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { + tkh, d := tfObjectToTKHSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSegments(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccounts(val) + } + { + val, d := tfObjectToTKHClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredClients(val) + } + { + val, d := tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredSystems(val) + } + { + val, d := tfObjectToTKHGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizedGroups(val) + } + { + val, d := tfObjectToTKHClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientPermissions(val) + } + { + val, d := tfObjectToTKHGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClients(val) + } + { + val, d := tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministeredSystems(val) + } + { + val, d := tfObjectToTKHGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupauditinginfo(val) + } + { + val, d := tfObjectToTKHGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupinfo(val) + } + { + val, d := tfObjectToTKHDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdesk(val) + } + { + val, d := tfObjectToTKHMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMyaccount(val) + } + { + val, d := tfObjectToTKHGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMydelegatedaccount(val) + } + { + val, d := tfObjectToTKHGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedGroups(val) + } + { + val, d := tfObjectToTKHClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedClients(val) + } + { + val, d := tfObjectToTKHDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedDirectories(val) + } + { + val, d := tfObjectToTKHProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedGroupsOnSystem(val) + } + { + val, d := tfObjectToTKHOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedOrganizationalUnits(val) + } + { + val, d := tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedSystems(val) + } + { + val, d := tfObjectToTKHGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecentAudits(val) + } + { + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return val.(keyhubmodel.GroupGroupRequestStatus) }) + diags.Append(d...) + tkh.SetRequeststatus(val) + } + { + val, d := tfObjectToTKHServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + { + val, d := tfObjectToTKHGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + { + val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + { + val, d := tfObjectToTKHWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhooks(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupsAuditStats() + objAttrs := objVal.Attributes() + tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetClassifications(val) + } + tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { + tkh, d := tfObjectToTKHGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { + tkh, d := tfObjectToTKHLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { + tkh, d := tfObjectToTKHLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return val.(keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return val.(keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarker() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return val.(keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return val.(keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarkers() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + { + val, d := tfObjectToTKHClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLdapClient(val) + } + { + val, d := tfObjectToTKHProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { + return val.(keyhubmodel.NotificationCertificateUsage) + }) + diags.Append(d...) + tkh.SetUsage(val) + } + { + val, d := findWebhookWebhookByUUID(ctx, objAttrs["webhook_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetWebhook(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDueDate(val) + } + { + val, d := tfObjectToTKHGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { + return val.(keyhubmodel.AuditAuditRequiredSourceType) + }) + diags.Append(d...) + tkh.SetNotificationGroupAuditRequiredNotificationType(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + { + val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { + return val.(keyhubmodel.GroupGroupEditRequiredReason) + }) + diags.Append(d...) + tkh.SetReason(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + return tkh, diags +} + +func tfObjectToTKHNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + return tkh, diags +} + +func tfObjectToTKHNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + objAttrs := objVal.Attributes() + tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLicenseInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationModificationRequestNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequest(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationNotification() + return tkh, diags +} + +func tfObjectToTKHNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationNotifications() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { + tkh, d := tfObjectToTKHNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + objAttrs := objVal.Attributes() + tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetReleasedAt(val) + } + return tkh, diags +} + +func tfObjectToTKHNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { + tkh, d := tfObjectToTKHOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { + tkh, d := tfObjectToTKHOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { + tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCreateAsParentOf(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + return tkh, diags +} + +func tfObjectToTKHProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + objAttrs := objVal.Attributes() + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { + return val.(keyhubmodel.ProvisioningAccountProvisioningResult) + }) + diags.Append(d...) + tkh.SetResult(val) + } + { + val, d := tfObjectToTKHGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { + tkh, d := tfObjectToTKHProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + objAttrs := objVal.Attributes() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return val.(keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystem() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvgroups(val) + } + { + val, d := tfObjectToTKHServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := tfObjectToTKHGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvisioningDuration(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningPermissionEndTime(val) + } + { + val, d := tfObjectToTKHProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatusReport(val) + } + tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { + tkh, d := tfObjectToTKHProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAD() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return val.(keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return val.(keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) + diags.Append(d...) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystem() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetIssuedPermissions(val) + } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetManagementPermissions(val) + } + { + val, d := tfObjectToTKHMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatistics(val) + } + { + val, d := tfObjectToTKHProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() + objAttrs := objVal.Attributes() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisioningStatus() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningTokenPassword() + objAttrs := objVal.Attributes() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccessDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() + return tkh, diags +} + +func tfObjectToTKHRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNewAdmin(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetGroupOnSystemType(val) + } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestDisable2FARequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestExtendAccessRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExtendUntil(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantAccessRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantApplicationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestJoinGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestJoinVaultRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAcceptParams(val) + } + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetResetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestPasswordResetRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCooldownEnd(val) + } + { + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetManagers(val) + } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return val.(keyhubmodel.RequestPasswordResetEmailType) + }) + diags.Append(d...) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestReviewAuditRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRevokeAdminRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAdmin(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return val.(keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + tkh.SetAuthorizingGroupType(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return val.(keyhubmodel.RequestGroupNestAccountAction) + }) + diags.Append(d...) + tkh.SetAccountAction(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccountToUpdate(val) + } + { + val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetCurrentEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetCurrentRights(val) + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { + return val.(keyhubmodel.RequestUpdateGroupMembershipType) + }) + diags.Append(d...) + tkh.SetUpdateGroupMembershipType(val) + } + return tkh, diags +} + +func tfObjectToTKHRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["password_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetPassword(val) + } + { + val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { + return val.(keyhubmodel.ServiceaccountPasswordRotationScheme) + }) + diags.Append(d...) + tkh.SetPasswordRotation(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { + tkh, d := tfObjectToTKHServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { + tkh, d := tfObjectToTKHServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + objAttrs := objVal.Attributes() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + objAttrs := objVal.Attributes() + tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordSchemeEnabledStats(val) + } + { + val, d := tfObjectToTKHServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystemStats(val) + } + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + return tkh, diags +} + +func tfObjectToTKHServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + return tkh, diags +} + +func tfObjectToTKHSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSimpleStringValue() + objAttrs := objVal.Attributes() + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSimpleVersionInfo() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { + return int32(val.(basetypes.Int64Value).ValueInt64()) + }) + diags.Append(d...) + tkh.SetContractVersions(val) + } + tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolder() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultDeletedVaultHolderType(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { + tkh, d := tfObjectToTKHVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + objAttrs := objVal.Attributes() + tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["target_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTargetGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultMoveVaultRecord() + objAttrs := objVal.Attributes() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { + return val.(keyhubmodel.VaultMoveVaultRecordAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVault() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRecords(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultHolder() + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecord() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return val.(keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return val.(keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { + tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordSecrets() + objAttrs := objVal.Attributes() + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordShare() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultVaultRecordShareType(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { + tkh, d := tfObjectToTKHVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetChildren(val) + } + { + val, d := tfObjectToTKHVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetParent(val) + } + { + val, d := tfObjectToTKHVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareSummary(val) + } + { + val, d := tfObjectToTKHVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShares(val) + } + { + val, d := tfObjectToTKHLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + { + val, d := tfObjectToTKHVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultholder(val) + } + return tkh, diags +} + +func tfObjectToTKHVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecovery() + objAttrs := objVal.Attributes() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultUnlock() + objAttrs := objVal.Attributes() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultUnlockResponse() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiresAt(val) + } + tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhook() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { + return val.(keyhubmodel.WebhookWebhookAuthenticationScheme) + }) + diags.Append(d...) + tkh.SetAuthenticationScheme(val) + } + tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDelivery() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + return tkh, diags +} + +func tfObjectToTKHWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { + tkh, d := tfObjectToTKHWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { + tkh, d := findWebhookWebhookByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookNameUuid() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetObject(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookPush() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetByParty(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup2(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupClassification(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetModificationRequest(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTimestamp(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + { + val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + { + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetWebhookWebhookPushType(val) + } + return tkh, diags +} + +func tfObjectToTKHWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func fillDataStructFromTFObjectAuditInfo(data *auditInfoData, obj types.Object) { + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectErrorReport(data *errorReportData, obj types.Object) { + data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) + data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) + data.Code = obj.Attributes()["code"].(basetypes.Int64Value) + data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) + data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) + data.Message = obj.Attributes()["message"].(basetypes.StringValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersData, obj types.Object) { +} + +func fillDataStructFromTFObjectGeneratedSecret(data *generatedSecretData, obj types.Object) { + data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) + data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) + data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectLinkable(data *linkableData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectNonLinkable(data *nonLinkableData, obj types.Object) { +} + +func fillDataStructFromTFObjectRestLink(data *restLinkData, obj types.Object) { + data.Href = obj.Attributes()["href"].(basetypes.StringValue) + data.ID = obj.Attributes()["id"].(basetypes.Int64Value) + data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectSegmentCount(data *segmentCountData, obj types.Object) { + data.Count = obj.Attributes()["count"].(basetypes.Int64Value) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectAuditAuditRecord(data *auditAuditRecordData, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) @@ -17516,7 +27787,7 @@ func fillDataStructFromTFObjectNotificationInvalidSignaturesDetectedNotification func fillDataStructFromTFObjectNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationData, obj types.Object) { data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) - data.LicenseInfoUUID = obj.Attributes()["license_info_uuid"].(basetypes.StringValue) + data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectNotificationModificationRequestNotification(data *notificationModificationRequestNotificationData, obj types.Object) { @@ -18898,26 +29169,26 @@ func fillDataStructFromTFObjectWebhookWebhookNameUuid(data *webhookWebhookNameUu } func fillDataStructFromTFObjectWebhookWebhookPush(data *webhookWebhookPushData, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.ByPartyUUID = obj.Attributes()["by_party_uuid"].(basetypes.StringValue) - data.CertificateUUID = obj.Attributes()["certificate_uuid"].(basetypes.StringValue) - data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.Group2UUID = obj.Attributes()["group2_uuid"].(basetypes.StringValue) - data.GroupClassificationUUID = obj.Attributes()["group_classification_uuid"].(basetypes.StringValue) - data.ModificationRequestUUID = obj.Attributes()["modification_request_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) + data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) + data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) } @@ -21808,8 +32079,9 @@ func dataSourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) ma schemaAttrs["active_accounts"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["license_info_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["license_info"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), + Computed: true, } return schemaAttrs } @@ -25674,35 +35946,45 @@ func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dssche } func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["by_party_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["by_party"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["client_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["group2_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group2"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["group_classification_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group_classification"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["modification_request_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } schemaAttrs["parameter1"] = dsschema.StringAttribute{ Computed: true, @@ -25719,20 +36001,24 @@ func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.A schemaAttrs["seq"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } schemaAttrs["timestamp"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } - schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, } schemaAttrs["webhook_webhook_push_type"] = dsschema.StringAttribute{ Computed: true, @@ -25757,6 +36043,16 @@ func sliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *dia return types.ListValue(elemType, ret) } +func tfToSlice[T interface{}](val basetypes.ListValue, toValue func(attr.Value, *diag.Diagnostics) T) ([]T, diag.Diagnostics) { + var diags diag.Diagnostics + vals := val.Elements() + ret := make([]T, 0, len(vals)) + for _, curVal := range vals { + ret = append(ret, toValue(curVal, &diags)) + } + return ret, diags +} + func int32PToInt64P(in *int32) *int64 { if in == nil { return nil @@ -25765,6 +36061,14 @@ func int32PToInt64P(in *int32) *int64 { return &ret } +func int64PToInt32P(in *int64) *int32 { + if in == nil { + return nil + } + ret := int32(*in) + return &ret +} + func stringerToTF[T fmt.Stringer](val *T) attr.Value { if val == nil { return types.StringNull() @@ -25785,9 +36089,226 @@ func timePointerToTF(val *time.Time) attr.Value { return types.StringValue(string(ret)) } +func tfToTime(val basetypes.StringValue) (time.Time, diag.Diagnostics) { + var diags diag.Diagnostics + parsed, err := time.Parse(time.RFC3339, val.ValueString()) + if err != nil { + diags.AddError("Conversion error", fmt.Sprintf("Unable to parse time: %s", err)) + } + return parsed, diags +} + +func tfToTimePointer(val basetypes.StringValue) (*time.Time, diag.Diagnostics) { + if val.IsNull() { + return nil, diag.Diagnostics{} + } + parsed, diags := tfToTime(val) + return &parsed, diags +} + func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { if val == nil { return types.StringNull() } return types.StringPointerValue(val.GetUuid()) } + +func parsePointer[T interface{}](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { + if val.IsNull() { + return nil, diag.Diagnostics{} + } + parsed, diags := parse(val, parser) + return &parsed, diags +} + +func parsePointer2[T interface{}](val basetypes.StringValue, parser func(string) (*T, error)) (*T, diag.Diagnostics) { + if val.IsNull() { + return nil, diag.Diagnostics{} + } + parsed, diags := parse(val, parser) + return parsed, diags +} + +func parse[T interface{}](val basetypes.StringValue, parser func(string) (T, error)) (T, diag.Diagnostics) { + var diags diag.Diagnostics + parsed, err := parser(val.ValueString()) + if err != nil { + diags.AddError("Conversion error", fmt.Sprintf("Unable to parse %s: %s", val.ValueString(), err)) + } + return parsed, diags +} + +func parseCastPointer[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (*T, diag.Diagnostics) { + if val.IsNull() { + return nil, diag.Diagnostics{} + } + parsed, diags := parseCast(val, parser, caster) + return &parsed, diags +} + +func parseCast[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (T, diag.Diagnostics) { + parsed, diags := parse(val, parser) + var ret T + if diags.HasError() { + return ret, diags + } + return caster(parsed), diags +} + +func findFirst[T keyhubmodel.Linkableable](wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { + var diags diag.Diagnostics + var noVal T + if err != nil { + diags.AddError("Client Error", fmt.Sprintf("Unable to read %s, got error: %s", name, err)) + return noVal, diags + } + if len(wrapper.GetItems()) == 0 { + diags.AddError("Client Error", fmt.Sprintf("Unable to find %s with UUID %s", name, *uuid)) + return noVal, diags + } + return wrapper.GetItems()[0], nil + +} + +func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.GroupGroupable](wrapper, "group", uuid, err) +} + +func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Directory().Get(ctx, &keyhubdirectory.DirectoryRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubdirectory.DirectoryRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.DirectoryAccountDirectoryable](wrapper, "directory", uuid, err) +} + +func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Organizationalunit().Get(ctx, &keyhuborganizationalunit.OrganizationalunitRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhuborganizationalunit.OrganizationalunitRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.OrganizationOrganizationalUnitable](wrapper, "organizational unit", uuid, err) +} + +func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Certificate().Get(ctx, &keyhubcertificate.CertificateRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubcertificate.CertificateRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.CertificateCertificateable](wrapper, "certificate", uuid, err) +} + +func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.System().Get(ctx, &keyhubsystem.SystemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubsystem.SystemRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.ProvisioningProvisionedSystemable](wrapper, "provisioned system", uuid, err) +} + +func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Groupclassification().Get(ctx, &keyhubgroupclassification.GroupclassificationRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubgroupclassification.GroupclassificationRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.GroupGroupClassificationable](wrapper, "group classification", uuid, err) +} + +func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Client().Get(ctx, &keyhubclient.ClientRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubclient.ClientRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) +} + +func findWebhookWebhookByUUID(ctx context.Context, uuid *string) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Webhook().Get(ctx, &keyhubwebhook.WebhookRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubwebhook.WebhookRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.WebhookWebhookable](wrapper, "webhook", uuid, err) +} + +func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Account().Get(ctx, &keyhubaccount.AccountRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubaccount.AccountRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.AuthAccountable](wrapper, "account", uuid, err) +} + +func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Serviceaccount().Get(ctx, &keyhubserviceaccount.ServiceaccountRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubserviceaccount.ServiceaccountRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.ServiceaccountServiceAccountable](wrapper, "service account", uuid, err) +} + +func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) + wrapper, err := client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.VaultVaultRecordable](wrapper, "vault record", uuid, err) +} From 235e1ebea9508ff05776ea52ea7abcedb2a231bb Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 8 Sep 2023 14:22:16 +0200 Subject: [PATCH 05/34] Work in progress on generation --- .../provider-install-verification/main.tf | 31 +- internal/provider/group_data_source.go | 3 - internal/provider/group_resource.go | 233 +- internal/provider/impl.go | 10301 ++++++++++++++-- 4 files changed, 9358 insertions(+), 1210 deletions(-) diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index aa4c8b2..a02d9ee 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -11,16 +11,35 @@ variable "keyhub_secret" { description = "Client secret on KeyHub" } +variable "keyhub_secret_local" { + type = string + description = "Client secret on KeyHub" +} + provider "keyhub" { - issuer = "https://keyhub.topicusonderwijs.nl" - clientid = "3a5e82ad-3f0d-4a63-846b-4b3e431f1135" - clientsecret = var.keyhub_secret +# issuer = "https://keyhub.topicusonderwijs.nl" +# clientid = "3a5e82ad-3f0d-4a63-846b-4b3e431f1135" + issuer = "https://keyhub.localhost:8443" + clientid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" + clientsecret = var.keyhub_secret_local } data "keyhub_group" "test" { - uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" +# uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" + uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" +} + +resource "keyhub_group" "terra" { + name = "Terraform" + additional_objects = { + admins = { + items = [{ + + }] + } + } } -output "testgroup" { - value = data.keyhub_group.test +output "terragroup" { + value = resource.keyhub_group.terra } diff --git a/internal/provider/group_data_source.go b/internal/provider/group_data_source.go index ab76b26..2cb0940 100644 --- a/internal/provider/group_data_source.go +++ b/internal/provider/group_data_source.go @@ -63,10 +63,7 @@ func (d *groupDataSource) Configure(ctx context.Context, req datasource.Configur func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { var data groupGroupData - - // Read Terraform configuration data into the model resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { return } diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index c88c39e..6cc2c88 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -6,19 +6,14 @@ package provider import ( "context" "fmt" - "strconv" - "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/resource" "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" + keyhubgroup "github.com/topicuskeyhub/sdk-go/group" keyhubmodel "github.com/topicuskeyhub/sdk-go/models" ) @@ -38,106 +33,14 @@ type groupResource struct { client *keyhub.KeyHubClient } -// groupResourceModel describes the resource data model. -type groupResourceModel struct { - ID types.Int64 `tfsdk:"id"` - UUID types.String `tfsdk:"uuid"` - Name types.String `tfsdk:"name"` - Description types.String `tfsdk:"description"` - ExtendedAccess types.String `tfsdk:"extended_access"` - VaultRecovery types.String `tfsdk:"vault_recovery"` - AuditMonths types.List `tfsdk:"audit_months"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - RecordTrail types.Bool `tfsdk:"record_trail"` - PrivateGroup types.Bool `tfsdk:"private_group"` - HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` - ApplicationAdministration types.Bool `tfsdk:"application_administration"` - Auditor types.Bool `tfsdk:"auditor"` - SingleManaged types.Bool `tfsdk:"single_managed"` - ProvisioningAuthGroupUUID types.String `tfsdk:"provisioning_auth_groupuuid"` - MembershipAuthGroupUUID types.String `tfsdk:"membership_auth_groupuuid"` - AuditingAuthGroupUUID types.String `tfsdk:"auditing_auth_groupuuid"` - NestedUnderGroupUUID types.String `tfsdk:"nested_under_groupuuid"` -} - func (r *groupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { resp.TypeName = req.ProviderTypeName + "_group" } func (r *groupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - // This description is used by the documentation generator and the language server. - MarkdownDescription: "Example resource", - - Attributes: map[string]schema.Attribute{ - "id": schema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{ - int64planmodifier.UseStateForUnknown(), - }, - }, - "uuid": schema.StringAttribute{ - Computed: true, - }, - "name": schema.StringAttribute{ - Required: true, - }, - "description": schema.StringAttribute{ - Optional: true, - }, - "extended_access": schema.StringAttribute{ - Computed: true, - Default: stringdefault.StaticString("NOT_ALLOWED"), - }, - "vault_recovery": schema.StringAttribute{ - Computed: true, - Default: stringdefault.StaticString("FULL"), - }, - "audit_months": schema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - }, - "rotating_password_required": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "record_trail": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "private_group": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "hide_audit_trail": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "application_administration": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "auditor": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "single_managed": schema.BoolAttribute{ - Computed: true, - Default: booldefault.StaticBool(false), - }, - "provisioning_auth_groupuuid": schema.StringAttribute{ - Computed: true, - }, - "membership_auth_groupuuid": schema.StringAttribute{ - Computed: true, - }, - "auditing_auth_groupuuid": schema.StringAttribute{ - Computed: true, - }, - "nested_under_groupuuid": schema.StringAttribute{ - Computed: true, - }, - }, + MarkdownDescription: "Group resource", + Attributes: resourceSchemaAttrsGroupGroup(true), } } @@ -162,48 +65,24 @@ func (r *groupResource) Configure(ctx context.Context, req resource.ConfigureReq } func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data *groupResourceModel + var data groupGroupData resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return } - newgroup := keyhubmodel.NewGroupGroup() - newgroup.SetName(data.Name.ValueStringPointer()) - newgroup.SetDescription(data.Description.ValueStringPointer()) - extendedaccessstr := data.ExtendedAccess.ValueString() - if extendedaccessstr != "" { - extendedaccess, err := keyhubmodel.ParseGroupGroupExtendedAccess(extendedaccessstr) - if err != nil { - resp.Diagnostics.AddError("Conversion error", fmt.Sprintf("Cannot convert %s to GroupGroupExtendedAccess: %s", extendedaccessstr, err)) - return - } - newgroup.SetExtendedAccess(extendedaccess.(*keyhubmodel.GroupGroupExtendedAccess)) + obj, diags := types.ObjectValueFrom(ctx, groupGroupAttrTypesRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return } - vaultrecoverystr := data.VaultRecovery.ValueString() - if vaultrecoverystr != "" { - vaultrecovery, err := keyhubmodel.ParseGroupVaultRecoveryAvailability(vaultrecoverystr) - if err != nil { - resp.Diagnostics.AddError("Conversion error", fmt.Sprintf("Cannot convert %s to GroupVaultRecoveryAvailability: %s", vaultrecoverystr, err)) - return - } - newgroup.SetVaultRecovery(vaultrecovery.(*keyhubmodel.GroupVaultRecoveryAvailability)) + newgroup, diags := tfObjectToTKHGroupGroup(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return } - // newgroup.SetAuditMonths(data.AuditMonths.ValueStringPointer()) - newgroup.SetRotatingPasswordRequired(data.RotatingPasswordRequired.ValueBoolPointer()) - newgroup.SetRecordTrail(data.RecordTrail.ValueBoolPointer()) - newgroup.SetPrivateGroup(data.PrivateGroup.ValueBoolPointer()) - newgroup.SetHideAuditTrail(data.HideAuditTrail.ValueBoolPointer()) - newgroup.SetApplicationAdministration(data.ApplicationAdministration.ValueBoolPointer()) - newgroup.SetAuditor(data.Auditor.ValueBoolPointer()) - newgroup.SetSingleManaged(data.SingleManaged.ValueBoolPointer()) - // newgroup.SetAuthorizingGroupProvisioning(data.ProvisioningAuthGroupUUID.ValueStringPointer()) - // newgroup.SetAuthorizingGroupMembership(data.MembershipAuthGroupUUID.ValueStringPointer()) - // newgroup.SetAuthorizingGroupAuditing(data.AuditingAuthGroupUUID.ValueStringPointer()) - // newgroup.SetNestedUnder(data.NestedUnderGroupUUID.ValueStringPointer()) - ctx = tflog.SetField(ctx, "keyhub_group_name", data.Name.ValueString()) tflog.Debug(ctx, "Creating Topicus KeyHub group") wrapper := keyhubmodel.NewGroupGroupLinkableWrapper() @@ -215,39 +94,54 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, } group := createdwrapper.GetItems()[0] - fillGroupModelFromResponse(ctx, data, group) + tfGroup, diags := tkhToTFObjectGroupGroup(true, group) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectGroupGroup(&data, tfGroup) tflog.Trace(ctx, "Created a new Topicus KeyHub group") resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data groupResourceModel + var data groupGroupData resp.Diagnostics.Append(req.State.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return } - ctx = tflog.SetField(ctx, "keyhub_group_id", data.ID.ValueInt64()) - tflog.Debug(ctx, "Reading Topicus KeyHub group by ID") - - group, err := r.client.Group().ByGroupid(strconv.FormatInt(data.ID.ValueInt64(), 10)).Get(ctx, nil) + ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) + tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") + groups, err := r.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ + Uuid: []string{data.UUID.ValueString()}, + }, + }) if err != nil { resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to read group, got error: %s", err)) return } - fillGroupModelFromResponse(ctx, &data, group) + if len(groups.GetItems()) == 0 { + resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to find group with UUID %s", data.UUID.ValueString())) + return + } + group := groups.GetItems()[0] + tfGroup, diags := tkhToTFObjectGroupGroup(true, group) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectGroupGroup(&data, tfGroup) - tflog.Trace(ctx, "Read a group from Topicus KeyHub") + // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data *groupResourceModel - - // Read Terraform plan data into the model + var data groupGroupData resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { return } @@ -265,11 +159,8 @@ func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, } func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data *groupResourceModel - - // Read Terraform prior state data into the model + var data groupGroupData resp.Diagnostics.Append(req.State.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { return } @@ -286,47 +177,3 @@ func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, func (r *groupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp) } - -func fillGroupModelFromResponse(ctx context.Context, data *groupResourceModel, group keyhubmodel.GroupGroupable) { - data.ID = types.Int64PointerValue(group.GetLinks()[0].GetId()) - data.UUID = types.StringPointerValue(group.GetUuid()) - data.Name = types.StringPointerValue(group.GetName()) - data.Description = types.StringPointerValue(group.GetDescription()) - data.ExtendedAccess = types.StringValue(group.GetExtendedAccess().String()) - data.AuditMonths, _ = types.ListValueFrom(ctx, types.StringType, toMonthsString(group.GetAuditConfig().GetMonths())) - data.RotatingPasswordRequired = types.BoolPointerValue(group.GetRotatingPasswordRequired()) - data.RecordTrail = types.BoolPointerValue(group.GetRecordTrail()) - data.PrivateGroup = types.BoolPointerValue(group.GetPrivateGroup()) - data.HideAuditTrail = types.BoolPointerValue(group.GetHideAuditTrail()) - data.ApplicationAdministration = types.BoolPointerValue(group.GetApplicationAdministration()) - data.Auditor = types.BoolPointerValue(group.GetAuditor()) - data.SingleManaged = types.BoolPointerValue(group.GetSingleManaged()) - if group.GetAuthorizingGroupProvisioning() == nil { - data.ProvisioningAuthGroupUUID = types.StringNull() - } else { - data.ProvisioningAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupProvisioning().GetUuid()) - } - if group.GetAuthorizingGroupMembership() == nil { - data.MembershipAuthGroupUUID = types.StringNull() - } else { - data.MembershipAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupMembership().GetUuid()) - } - if group.GetAuthorizingGroupAuditing() == nil { - data.AuditingAuthGroupUUID = types.StringNull() - } else { - data.AuditingAuthGroupUUID = types.StringPointerValue(group.GetAuthorizingGroupAuditing().GetUuid()) - } - if group.GetNestedUnder() == nil { - data.NestedUnderGroupUUID = types.StringNull() - } else { - data.NestedUnderGroupUUID = types.StringPointerValue(group.GetNestedUnder().GetUuid()) - } -} - -func toMonthsString[T fmt.Stringer](months []T) []attr.Value { - ret := make([]attr.Value, len(months)) - for _, month := range months { - ret = append(ret, types.StringValue(month.String())) - } - return ret -} diff --git a/internal/provider/impl.go b/internal/provider/impl.go index 622447d..98acef0 100644 --- a/internal/provider/impl.go +++ b/internal/provider/impl.go @@ -12,6 +12,14 @@ import ( "github.com/hashicorp/terraform-plugin-framework/attr" dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" "github.com/hashicorp/terraform-plugin-framework/diag" + rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" "github.com/microsoft/kiota-abstractions-go/serialization" @@ -847,33 +855,33 @@ var groupGroupAttrTypes = objectAttrsTypeGroupGroup(false) var groupGroupAttrTypesRecurse = objectAttrsTypeGroupGroup(true) type groupGroupData struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationAdministration types.Bool `tfsdk:"application_administration"` - AuditConfig types.Object `tfsdk:"audit_config"` - AuditRequested types.Bool `tfsdk:"audit_requested"` - Auditor types.Bool `tfsdk:"auditor"` - AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` - AuthorizingGroupDelegationUUID types.String `tfsdk:"authorizing_group_delegation_uuid"` - AuthorizingGroupMembershipUUID types.String `tfsdk:"authorizing_group_membership_uuid"` - AuthorizingGroupProvisioningUUID types.String `tfsdk:"authorizing_group_provisioning_uuid"` - AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` - ClassificationUUID types.String `tfsdk:"classification_uuid"` - Description types.String `tfsdk:"description"` - ExtendedAccess types.String `tfsdk:"extended_access"` - HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` - NestedUnderUUID types.String `tfsdk:"nested_under_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - PrivateGroup types.Bool `tfsdk:"private_group"` - RecordTrail types.Bool `tfsdk:"record_trail"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - SingleManaged types.Bool `tfsdk:"single_managed"` - VaultRecovery types.String `tfsdk:"vault_recovery"` - VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationAdministration types.Bool `tfsdk:"application_administration"` + AuditConfig types.Object `tfsdk:"audit_config"` + AuditRequested types.Bool `tfsdk:"audit_requested"` + Auditor types.Bool `tfsdk:"auditor"` + AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` + AuthorizingGroupDelegation types.Object `tfsdk:"authorizing_group_delegation"` + AuthorizingGroupMembership types.Object `tfsdk:"authorizing_group_membership"` + AuthorizingGroupProvisioning types.Object `tfsdk:"authorizing_group_provisioning"` + AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` + Classification types.Object `tfsdk:"classification"` + Description types.String `tfsdk:"description"` + ExtendedAccess types.String `tfsdk:"extended_access"` + HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` + NestedUnder types.Object `tfsdk:"nested_under"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + PrivateGroup types.Bool `tfsdk:"private_group"` + RecordTrail types.Bool `tfsdk:"record_trail"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + SingleManaged types.Bool `tfsdk:"single_managed"` + VaultRecovery types.String `tfsdk:"vault_recovery"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` } var groupGroupAccountAttrTypes = objectAttrsTypeGroupGroupAccount(false) @@ -1082,8 +1090,8 @@ type groupGroupClientData struct { Permissions types.List `tfsdk:"permissions"` ActivationRequired types.Bool `tfsdk:"activation_required"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - ClientUUID types.String `tfsdk:"client_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` + Client types.Object `tfsdk:"client"` + Group types.Object `tfsdk:"group"` OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` } @@ -1225,7 +1233,7 @@ type groupProvisioningGroupData struct { Permissions types.List `tfsdk:"permissions"` ActivationRequired types.Bool `tfsdk:"activation_required"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - GroupUUID types.String `tfsdk:"group_uuid"` + Group types.Object `tfsdk:"group"` GroupOnSystem types.Object `tfsdk:"group_on_system"` } @@ -1611,13 +1619,13 @@ type provisioningAbstractProvisionedLDAPData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -1789,13 +1797,13 @@ type provisioningProvisionedADData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -1859,13 +1867,13 @@ type provisioningProvisionedAzureOIDCDirectoryData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -1885,13 +1893,13 @@ type provisioningProvisionedAzureSyncLDAPDirectoryData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -1913,13 +1921,13 @@ type provisioningProvisionedAzureTenantData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -1941,13 +1949,13 @@ type provisioningProvisionedInternalLDAPData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -1966,13 +1974,13 @@ type provisioningProvisionedLDAPData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -2009,13 +2017,13 @@ type provisioningProvisionedLDAPDirectoryData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -2035,13 +2043,13 @@ type provisioningProvisionedSystemData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` @@ -2066,6 +2074,7 @@ type provisioningProvisionedSystemPrimerData struct { Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` } @@ -4006,16 +4015,16 @@ func objectAttrsTypeGroupGroup(recurse bool) map[string]attr.Type { objectAttrs["audit_requested"] = types.BoolType objectAttrs["auditor"] = types.BoolType objectAttrs["authorizing_group_auditing_uuid"] = types.StringType - objectAttrs["authorizing_group_delegation_uuid"] = types.StringType - objectAttrs["authorizing_group_membership_uuid"] = types.StringType - objectAttrs["authorizing_group_provisioning_uuid"] = types.StringType + objectAttrs["authorizing_group_delegation"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} + objectAttrs["authorizing_group_membership"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} + objectAttrs["authorizing_group_provisioning"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} - objectAttrs["classification_uuid"] = types.StringType + objectAttrs["classification"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassificationPrimer(false)} objectAttrs["description"] = types.StringType objectAttrs["extended_access"] = types.StringType objectAttrs["hide_audit_trail"] = types.BoolType - objectAttrs["nested_under_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["nested_under"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitPrimer(false)} objectAttrs["private_group"] = types.BoolType objectAttrs["record_trail"] = types.BoolType objectAttrs["rotating_password_required"] = types.BoolType @@ -4200,8 +4209,8 @@ func objectAttrsTypeGroupGroupClient(recurse bool) map[string]attr.Type { objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["activation_required"] = types.BoolType - objectAttrs["client_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType return objectAttrs @@ -4321,7 +4330,7 @@ func objectAttrsTypeGroupProvisioningGroup(recurse bool) map[string]attr.Type { objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} return objectAttrs } @@ -4642,12 +4651,12 @@ func objectAttrsTypeProvisioningAbstractProvisionedLDAP(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -4794,12 +4803,12 @@ func objectAttrsTypeProvisioningProvisionedAD(recurse bool) map[string]attr.Type objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -4860,12 +4869,12 @@ func objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[ objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -4886,12 +4895,12 @@ func objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -4914,12 +4923,12 @@ func objectAttrsTypeProvisioningProvisionedAzureTenant(recurse bool) map[string] objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -4942,12 +4951,12 @@ func objectAttrsTypeProvisioningProvisionedInternalLDAP(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -4967,12 +4976,12 @@ func objectAttrsTypeProvisioningProvisionedLDAP(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -5010,12 +5019,12 @@ func objectAttrsTypeProvisioningProvisionedLDAPDirectory(recurse bool) map[strin objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -5036,12 +5045,12 @@ func objectAttrsTypeProvisioningProvisionedSystem(recurse bool) map[string]attr. objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType objectAttrs["external_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["self_service_existing_groups"] = types.BoolType objectAttrs["self_service_new_groups"] = types.BoolType @@ -5062,6 +5071,7 @@ func objectAttrsTypeProvisioningProvisionedSystemPrimer(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs @@ -8723,9 +8733,21 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) - obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) - obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) - obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) + { + val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) + diags.Append(d...) + obj["authorizing_group_delegation"] = val + } + { + val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) + diags.Append(d...) + obj["authorizing_group_membership"] = val + } + { + val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) + diags.Append(d...) + obj["authorizing_group_provisioning"] = val + } { elemType := attrs["authorizing_group_types"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { @@ -8734,12 +8756,24 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type diags.Append(d...) obj["authorizing_group_types"] = val } - obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) + { + val, d := tkhToTFObjectGroupGroupClassificationPrimer(false, tkh.GetClassification()) + diags.Append(d...) + obj["classification"] = val + } obj["description"] = types.StringPointerValue(tkh.GetDescription()) obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + { + val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetNestedUnder()) + diags.Append(d...) + obj["nested_under"] = val + } + { + val, d := tkhToTFObjectOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) @@ -9421,8 +9455,16 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien obj["permissions"] = val } obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["client_uuid"] = withUuidToTF(tkh.GetClient()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + { + val, d := tkhToTFObjectClientClientApplicationPrimer(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) @@ -9972,7 +10014,11 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv obj["permissions"] = val } obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + { + val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } { val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) @@ -11381,12 +11427,12 @@ func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmo } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -11944,12 +11990,12 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12131,12 +12177,12 @@ func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh ke } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12194,12 +12240,12 @@ func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tk } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12259,12 +12305,12 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12324,12 +12370,12 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12390,12 +12436,12 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12478,12 +12524,12 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12541,12 +12587,12 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) @@ -12624,6 +12670,7 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -18953,17 +19000,17 @@ func tfObjectToTKHGroupGroup(ctx context.Context, recurse bool, objVal types.Obj tkh.SetAuthorizingGroupAuditing(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_delegation"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAuthorizingGroupDelegation(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_membership"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAuthorizingGroupMembership(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_provisioning"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAuthorizingGroupProvisioning(val) } @@ -18979,7 +19026,7 @@ func tfObjectToTKHGroupGroup(ctx context.Context, recurse bool, objVal types.Obj tkh.SetAuthorizingGroupTypes(val) } { - val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupClassificationPrimer(ctx, false, objAttrs["classification"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClassification(val) } @@ -18991,12 +19038,12 @@ func tfObjectToTKHGroupGroup(ctx context.Context, recurse bool, objVal types.Obj } tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["nested_under"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetNestedUnder(val) } { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetOrganizationalUnit(val) } @@ -19602,12 +19649,12 @@ func tfObjectToTKHGroupGroupClient(ctx context.Context, recurse bool, objVal typ } tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClient(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroup(val) } @@ -20058,7 +20105,7 @@ func tfObjectToTKHGroupProvisioningGroup(ctx context.Context, recurse bool, objV } tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroup(val) } @@ -21259,6 +21306,11 @@ func tfObjectToTKHProvisioningAbstractProvisionedLDAP(ctx context.Context, recur } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -21278,11 +21330,6 @@ func tfObjectToTKHProvisioningAbstractProvisionedLDAP(ctx context.Context, recur diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -21766,6 +21813,11 @@ func tfObjectToTKHProvisioningProvisionedAD(ctx context.Context, recurse bool, o } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -21785,11 +21837,6 @@ func tfObjectToTKHProvisioningProvisionedAD(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -21972,6 +22019,11 @@ func tfObjectToTKHProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -21991,11 +22043,6 @@ func tfObjectToTKHProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22055,6 +22102,11 @@ func tfObjectToTKHProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Cont } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -22074,11 +22126,6 @@ func tfObjectToTKHProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Cont diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22140,6 +22187,11 @@ func tfObjectToTKHProvisioningProvisionedAzureTenant(ctx context.Context, recurs } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -22159,11 +22211,6 @@ func tfObjectToTKHProvisioningProvisionedAzureTenant(ctx context.Context, recurs diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22221,6 +22268,11 @@ func tfObjectToTKHProvisioningProvisionedInternalLDAP(ctx context.Context, recur } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -22240,11 +22292,6 @@ func tfObjectToTKHProvisioningProvisionedInternalLDAP(ctx context.Context, recur diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22303,6 +22350,11 @@ func tfObjectToTKHProvisioningProvisionedLDAP(ctx context.Context, recurse bool, } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -22322,11 +22374,6 @@ func tfObjectToTKHProvisioningProvisionedLDAP(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22429,6 +22476,11 @@ func tfObjectToTKHProvisioningProvisionedLDAPDirectory(ctx context.Context, recu } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -22448,11 +22500,6 @@ func tfObjectToTKHProvisioningProvisionedLDAPDirectory(ctx context.Context, recu diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22512,6 +22559,11 @@ func tfObjectToTKHProvisioningProvisionedSystem(ctx context.Context, recurse boo } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -22531,11 +22583,6 @@ func tfObjectToTKHProvisioningProvisionedSystem(ctx context.Context, recurse boo diags.Append(d...) tkh.SetExternalUuid(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -22602,6 +22649,11 @@ func tfObjectToTKHProvisioningProvisionedSystemPrimer(ctx context.Context, recur } tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return val.(keyhubmodel.ProvisioningProvisionedSystemType) @@ -27363,16 +27415,16 @@ func fillDataStructFromTFObjectGroupGroup(data *groupGroupData, obj types.Object data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) data.AuthorizingGroupAuditingUUID = obj.Attributes()["authorizing_group_auditing_uuid"].(basetypes.StringValue) - data.AuthorizingGroupDelegationUUID = obj.Attributes()["authorizing_group_delegation_uuid"].(basetypes.StringValue) - data.AuthorizingGroupMembershipUUID = obj.Attributes()["authorizing_group_membership_uuid"].(basetypes.StringValue) - data.AuthorizingGroupProvisioningUUID = obj.Attributes()["authorizing_group_provisioning_uuid"].(basetypes.StringValue) + data.AuthorizingGroupDelegation = obj.Attributes()["authorizing_group_delegation"].(basetypes.ObjectValue) + data.AuthorizingGroupMembership = obj.Attributes()["authorizing_group_membership"].(basetypes.ObjectValue) + data.AuthorizingGroupProvisioning = obj.Attributes()["authorizing_group_provisioning"].(basetypes.ObjectValue) data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) - data.ClassificationUUID = obj.Attributes()["classification_uuid"].(basetypes.StringValue) + data.Classification = obj.Attributes()["classification"].(basetypes.ObjectValue) data.Description = obj.Attributes()["description"].(basetypes.StringValue) data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) - data.NestedUnderUUID = obj.Attributes()["nested_under_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.NestedUnder = obj.Attributes()["nested_under"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) @@ -27530,8 +27582,8 @@ func fillDataStructFromTFObjectGroupGroupClient(data *groupGroupClientData, obj data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) } @@ -27634,7 +27686,7 @@ func fillDataStructFromTFObjectGroupProvisioningGroup(data *groupProvisioningGro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } @@ -27897,13 +27949,13 @@ func fillDataStructFromTFObjectProvisioningAbstractProvisionedLDAP(data *provisi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28027,13 +28079,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedAD(data *provisioningProvi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28085,13 +28137,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedAzureOIDCDirectory(data *p data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28108,13 +28160,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(dat data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28133,13 +28185,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedAzureTenant(data *provisio data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28158,13 +28210,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedInternalLDAP(data *provisi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28180,13 +28232,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedLDAP(data *provisioningPro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28220,13 +28272,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedLDAPDirectory(data *provis data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28243,13 +28295,13 @@ func fillDataStructFromTFObjectProvisioningProvisionedSystem(data *provisioningP data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) @@ -28268,6 +28320,7 @@ func fillDataStructFromTFObjectProvisioningProvisionedSystemPrimer(data *provisi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -29262,13 +29315,17 @@ func dataSourceSchemaAttrsGeneratedSecret(recurse bool) map[string]dsschema.Attr } func dataSourceSchemaAttrsLinkable(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } return schemaAttrs } @@ -29310,13 +29367,17 @@ func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Att Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ Computed: true, @@ -29379,9 +29440,11 @@ func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuditAuditRecord(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuditAuditRecord(recurse), + }, + Computed: true, } return schemaAttrs } @@ -29401,13 +29464,17 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -29425,9 +29492,11 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}, - Computed: true, + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -29505,21 +29574,27 @@ func dataSourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]dssch } func dataSourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthAccount(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -29678,13 +29753,17 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -29702,9 +29781,11 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}, - Computed: true, + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -29782,9 +29863,11 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. } func dataSourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthInternalAccount(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthInternalAccount(recurse), + }, + Computed: true, } return schemaAttrs } @@ -29844,9 +29927,11 @@ func dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]ds } func dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["attributes"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthStoredAccountAttribute(recurse)}, - Computed: true, + schemaAttrs["attributes"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse), + }, + Computed: true, } return schemaAttrs } @@ -29858,13 +29943,17 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["alias"] = dsschema.StringAttribute{ Computed: true, @@ -29903,21 +29992,27 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche } func dataSourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["alias"] = dsschema.StringAttribute{ Computed: true, @@ -29966,13 +30061,17 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -30007,21 +30106,27 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch } func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsClientClientApplication(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -30083,13 +30188,17 @@ func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Att Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -30145,13 +30254,17 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -30182,9 +30295,11 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}, - Computed: true, + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), @@ -30230,13 +30345,17 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["for_group_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -30251,9 +30370,11 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] } func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse), + }, + Computed: true, } return schemaAttrs } @@ -30265,13 +30386,17 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) m Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["for_group_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -30290,9 +30415,11 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) m } func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClient(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), + }, + Computed: true, } return schemaAttrs } @@ -30316,13 +30443,17 @@ func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.At Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -30380,13 +30511,17 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ Computed: true, @@ -30426,21 +30561,27 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ Computed: true, @@ -30475,13 +30616,17 @@ func dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) ma } func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["directory_account_directory_summary_type"] = dsschema.StringAttribute{ Computed: true, @@ -30506,9 +30651,11 @@ func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[str } func dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectorySummary(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), + }, + Computed: true, } return schemaAttrs } @@ -30536,13 +30683,17 @@ func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]ds Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ Computed: true, @@ -30591,13 +30742,17 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ Computed: true, @@ -30685,13 +30840,17 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ Computed: true, @@ -30737,13 +30896,17 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ Computed: true, @@ -30822,13 +30985,17 @@ func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.At Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, @@ -30863,9 +31030,11 @@ func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.At } func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroup(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), + }, + Computed: true, } return schemaAttrs } @@ -30883,9 +31052,11 @@ func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[ } func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, } schemaAttrs["group_count"] = dsschema.Int64Attribute{ Computed: true, @@ -30900,13 +31071,17 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, @@ -30934,21 +31109,25 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["authorizing_group_auditing_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["authorizing_group_delegation_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["authorizing_group_delegation"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["authorizing_group_membership_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["authorizing_group_membership"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["authorizing_group_provisioning_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["authorizing_group_provisioning"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["authorizing_group_types"] = dsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["classification_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["classification"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(false), + Computed: true, } schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, @@ -30959,11 +31138,13 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["hide_audit_trail"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["nested_under_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["nested_under"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["private_group"] = dsschema.BoolAttribute{ Computed: true, @@ -30993,13 +31174,17 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -31048,9 +31233,11 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At } func dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31095,17 +31282,23 @@ func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attr Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } - schemaAttrs["accounts"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditAccount(false)}, - Computed: true, + schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -31141,13 +31334,17 @@ func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attr } func dataSourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -31189,13 +31386,17 @@ func dataSourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]dssche } func dataSourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["months"] = dsschema.ListAttribute{ ElementType: types.StringType, @@ -31205,9 +31406,11 @@ func dataSourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]dsschem } func dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAudit(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31255,13 +31458,17 @@ func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dssc Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -31318,21 +31525,27 @@ func dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string] } func dataSourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -31370,22 +31583,28 @@ func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Att Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["client_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -31397,9 +31616,11 @@ func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClient(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupClient(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31419,13 +31640,17 @@ func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Att Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -31434,9 +31659,11 @@ func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31472,21 +31699,27 @@ func dataSourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]dsschema.Attri } func dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, @@ -31510,13 +31743,17 @@ func dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[stri } func dataSourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, } - schemaAttrs["segments"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeSegmentCount(recurse)}, - Computed: true, + schemaAttrs["segments"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsSegmentCount(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31636,9 +31873,11 @@ func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschem schemaAttrs["audited_groups"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["classifications"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}, - Computed: true, + schemaAttrs["classifications"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), + }, + Computed: true, } schemaAttrs["overdue_audit_groups"] = dsschema.Int64Attribute{ Computed: true, @@ -31665,19 +31904,24 @@ func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dssche Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), @@ -31687,9 +31931,11 @@ func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dssche } func dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31703,13 +31949,17 @@ func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) } func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -31735,9 +31985,11 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri } func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadDisplayedLaunchpadTile(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31749,13 +32001,17 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["application_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -31780,21 +32036,27 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche } func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31814,13 +32076,17 @@ func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string] Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["application_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -31857,13 +32123,17 @@ func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["application_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -31897,13 +32167,17 @@ func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[st Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["application_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -32002,9 +32276,11 @@ func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dss } func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["markers"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarker(recurse)}, - Computed: true, + schemaAttrs["markers"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32107,9 +32383,11 @@ func dataSourceSchemaAttrsNotificationNotification(recurse bool) map[string]dssc } func dataSourceSchemaAttrsNotificationNotifications(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeNotificationNotification(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsNotificationNotification(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32163,13 +32441,17 @@ func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) ma Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -32182,9 +32464,11 @@ func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) ma } func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationAccountOrganizationalUnit(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32204,13 +32488,17 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[strin Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -32241,13 +32529,17 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) ma Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -32272,9 +32564,11 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) ma } func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitAccount(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32288,21 +32582,27 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObject } func dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnit(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -32341,13 +32641,17 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -32355,6 +32659,9 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -32371,9 +32678,6 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -32466,9 +32770,11 @@ func dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) ma } func dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["status"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAccountProvisioningStatus(recurse)}, - Computed: true, + schemaAttrs["status"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32496,13 +32802,17 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -32526,21 +32836,27 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss } func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -32621,9 +32937,11 @@ func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDurati } func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Computed: true, } schemaAttrs["unlinked_count"] = dsschema.Int64Attribute{ Computed: true, @@ -32638,13 +32956,17 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, @@ -32659,9 +32981,11 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[ } func dataSourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32685,13 +33009,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -32699,6 +33027,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -32715,9 +33046,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -32801,13 +33129,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[strin Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -32832,9 +33164,11 @@ func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[strin } func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32854,13 +33188,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -32868,6 +33206,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -32884,9 +33225,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -32924,13 +33262,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -32938,6 +33280,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -32954,9 +33299,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -33000,13 +33342,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -33014,6 +33360,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -33030,9 +33379,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -33076,13 +33422,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -33090,6 +33440,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -33106,9 +33459,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -33144,13 +33494,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -33158,6 +33512,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -33174,9 +33531,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -33267,13 +33621,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -33281,6 +33639,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -33297,9 +33658,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -33337,13 +33695,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -33351,6 +33713,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -33367,9 +33732,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -33395,21 +33757,27 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string } func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -33417,6 +33785,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, } @@ -33442,13 +33813,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["created_at"] = dsschema.StringAttribute{ Computed: true, @@ -33466,9 +33841,11 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map } func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemSyncLog(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), + }, + Computed: true, } return schemaAttrs } @@ -33530,9 +33907,11 @@ func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse } func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupProvisioningStatus(recurse)}, - Computed: true, + schemaAttrs["groups"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), + }, + Computed: true, } schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ Computed: true, @@ -33557,13 +33936,17 @@ func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33599,13 +33982,17 @@ func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(r Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33641,13 +34028,17 @@ func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(re Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33715,13 +34106,17 @@ func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]d Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33760,13 +34155,17 @@ func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[st Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33811,13 +34210,17 @@ func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33856,13 +34259,17 @@ func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[s Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33901,13 +34308,17 @@ func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dssc Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33943,13 +34354,17 @@ func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bo Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -33982,13 +34397,17 @@ func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]ds Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34024,13 +34443,17 @@ func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34063,13 +34486,17 @@ func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[strin Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34105,13 +34532,17 @@ func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34153,13 +34584,17 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[str Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34199,13 +34634,17 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34245,13 +34684,17 @@ func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) m Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34291,13 +34734,17 @@ func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dssch Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34330,13 +34777,17 @@ func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dssch Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34369,13 +34820,17 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34402,9 +34857,11 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds } func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + }, + Computed: true, } return schemaAttrs } @@ -34432,13 +34889,17 @@ func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]d Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34497,13 +34958,17 @@ func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34539,13 +35004,17 @@ func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) m Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34584,13 +35053,17 @@ func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) ma Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34629,13 +35102,17 @@ func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34668,13 +35145,17 @@ func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dss Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34710,13 +35191,17 @@ func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34758,13 +35243,17 @@ func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[strin Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34806,13 +35295,17 @@ func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurs Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34848,13 +35341,17 @@ func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse boo Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34890,13 +35387,17 @@ func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[s Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34929,13 +35430,17 @@ func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse b Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -34972,56 +35477,64 @@ func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recu Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, - } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, - } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, } @@ -35056,13 +35569,17 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationR Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -35098,13 +35615,17 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recur Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -35140,13 +35661,17 @@ func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(rec Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -35182,13 +35707,17 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -35239,13 +35768,17 @@ func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[ Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -35281,13 +35814,17 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -35327,13 +35864,17 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[st Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, @@ -35351,9 +35892,11 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[st } func dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroup(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse), + }, + Computed: true, } return schemaAttrs } @@ -35367,21 +35910,27 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(re } func dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccount(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -35481,13 +36030,17 @@ func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dssch Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, @@ -35502,9 +36055,11 @@ func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dssch } func dataSourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultDeletedVaultHolder(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse), + }, + Computed: true, } return schemaAttrs } @@ -35562,13 +36117,17 @@ func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[s } func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["access_available"] = dsschema.BoolAttribute{ Computed: true, @@ -35576,9 +36135,11 @@ func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["records"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}, - Computed: true, + schemaAttrs["records"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + }, + Computed: true, } return schemaAttrs } @@ -35594,13 +36155,17 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["color"] = dsschema.StringAttribute{ Computed: true, @@ -35641,21 +36206,27 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["color"] = dsschema.StringAttribute{ Computed: true, @@ -35711,9 +36282,11 @@ func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschem } func dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["children"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShare(recurse)}, - Computed: true, + schemaAttrs["children"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), + }, + Computed: true, } schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), @@ -35790,13 +36363,17 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Computed: true, @@ -35873,13 +36450,17 @@ func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dssche Computed: true, } } - schemaAttrs["links"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}, - Computed: true, + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - schemaAttrs["permissions"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}, - Computed: true, + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), @@ -35907,9 +36488,11 @@ func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dssche } func dataSourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookDelivery(recurse)}, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery(recurse), + }, + Computed: true, } return schemaAttrs } @@ -36033,8 +36616,7710 @@ func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[str } return schemaAttrs } +func resourceSchemaAttrsAuditInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_modified_by"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["application_error"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_error_parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), + Optional: true, + } + schemaAttrs["code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["error_details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["exception"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["message"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["stacktrace"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsGeneratedSecret(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["generated_secret"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["old_secret"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["regenerate"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["href"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["id"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["rel"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["type_escaped"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditAuditRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["date_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_account"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_certificate"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_client"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_directory"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group2"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group_classification"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_organizational_unit"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_service_account"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_system"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_vault_record"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_webhook"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter2"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter3"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["performed_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["security_level"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuditAuditRecord(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["email"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["locale"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["action"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["exclusive_selection"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["selected_accounts"] = rsschema.ListAttribute{ + ElementType: types.Int64Type, + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["locale"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["pending2_f_a_recovery_request"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["pending_password_recovery_request"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["in_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["in_multiple_organizational_units"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["key_hub_admin"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["multiple_organizational_units_exist"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["password_mode"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["two_factor_authentication"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["use_token_password"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["decline_recovery_requests"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["license_role"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["two_factor_authentication_enabled"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["active_login"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["pending_recovery_requests"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), + Optional: true, + } + schemaAttrs["settings"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), + Optional: true, + } + schemaAttrs["stored_attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), + Optional: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["directory_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), + Optional: true, + } + schemaAttrs["two_f_a_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), + Optional: true, + } + schemaAttrs["validity_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["email"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["locale"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["activation_code"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["first_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["last_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["telephone"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthInternalAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["status"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(recurse), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["full"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["instances"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["operations"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["type_escaped"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["attributes"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthStoredAccountAttribute(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsCertificateCertificate_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["alias"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsCertificateCertificate(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["alias"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientClientApplication(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["groupclients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + Optional: true, + } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + Optional: true, + } + schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(false), + Optional: true, + } + schemaAttrs["callback_u_r_i"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["confidential"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["debug_mode"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["initiate_login_u_r_i"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["resource_u_r_is"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["use_client_credentials"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientSaml2Client_attributes(false), + Optional: true, + } + schemaAttrs["metadata"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["metadata_url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["subject_format"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Optional: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Optional: true, + } + schemaAttrs["status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["dialect"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["password_recovery"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["search_bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_filter"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["acr_values"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["issuer"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["logout_url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + Optional: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, + } + schemaAttrs["group_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["application_administration"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), + Optional: true, + } + schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["auditor"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_delegation"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + Optional: true, + } + schemaAttrs["authorizing_group_membership"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + Optional: true, + } + schemaAttrs["authorizing_group_provisioning"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + Optional: true, + } + schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["classification"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassificationPrimer(false), + Optional: true, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["extended_access"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NOT_ALLOWED"), + } + schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["nested_under"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + Optional: true, + } + schemaAttrs["organizational_unit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Optional: true, + } + schemaAttrs["private_group"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["record_trail"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["single_managed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("FULL"), + } + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["connected"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + Optional: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["body"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["submitted_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_valid"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["action"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["months"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAudit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit_due_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_audit_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_disabled_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_disabled_managers"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_expired_vault_records"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_managers"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_vault_records_with_end_date"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassification_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["authorizing_group_auditing_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authorizing_group_delegation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authorizing_group_membership_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authorizing_group_provisioning_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["default_classification"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["maximum_audit_interval"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["minimum_nr_managers"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(1), + } + schemaAttrs["record_trail_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["required_months"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nr_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["info"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClient_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClient(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_accounts_with_vault"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_audits"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_clients"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_provisioned_systems"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_vault_records"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, + } + schemaAttrs["segments"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsSegmentCount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accounts"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["administered_clients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["administered_systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["admins"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["authorized_groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + Optional: true, + } + schemaAttrs["client_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["clients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["content_administered_systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["groupauditinginfo"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), + Optional: true, + } + schemaAttrs["groupinfo"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), + Optional: true, + } + schemaAttrs["helpdesk"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Optional: true, + } + schemaAttrs["myaccount"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + Optional: true, + } + schemaAttrs["mydelegatedaccount"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + Optional: true, + } + schemaAttrs["nested_groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["owned_clients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["owned_directories"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["owned_groups_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + Optional: true, + } + schemaAttrs["owned_organizational_units"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["owned_systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["recent_audits"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["requeststatus"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Optional: true, + } + schemaAttrs["webhooks"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audited_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["classifications"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), + }, + Optional: true, + } + schemaAttrs["overdue_audit_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["overdue_vault_policies"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["unaudited_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["valid_vault_policies"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["vaults_without_policies"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + Optional: true, + } + schemaAttrs["title"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["title"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["current_license_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_contact"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_domains"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["features"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["issue_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["license_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["not_before_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["version"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["level"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["markers"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsMarkItemMarker(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsCertificateCertificate(recurse), + Optional: true, + } + schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(recurse), + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + Optional: true, + } + schemaAttrs["system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + Optional: true, + } + schemaAttrs["usage"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["due_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + Optional: true, + } + schemaAttrs["notification_group_audit_required_notification_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + Optional: true, + } + schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), + Optional: true, + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["active_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["license_info"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["admins"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["groups"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsNotificationNotifications(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsNotificationNotification(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["api_version"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["systems"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["groups"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["released_at"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["record"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["depth"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["create_as_parent_of"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["object_classes"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["result"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["status"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["number_of_failed_calls"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["number_of_not_permitted_calls"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["number_of_successful_calls"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["state"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["provgroups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + Optional: true, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + Optional: true, + } + schemaAttrs["provisioning_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), + Optional: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_permission_end_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status_report"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), + Optional: true, + } + schemaAttrs["visible_on_dashboard"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["seconds"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Optional: true, + } + schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["next_u_i_d"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(2000), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["object_classes"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["idp_domain"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["object_classes"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["gid"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["errors"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["log"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["modifications"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + Optional: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["login_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + Optional: true, + } + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Optional: true, + } + schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Optional: true, + } + schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["groups"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), + }, + Optional: true, + } + schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["password"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["seconds"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["make_manager"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["private_key"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["subject"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["extend_until"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["permission_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + Optional: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["managers"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_action"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["current_end_date"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["current_rights"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["update_group_membership_type"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["password_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["password_rotation"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["disabled_count"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["password_scheme_enabled_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), + Optional: true, + } + schemaAttrs["system_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsSimpleStringValue(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["value"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["contract_versions"] = rsschema.ListAttribute{ + ElementType: types.Int64Type, + Optional: true, + } + schemaAttrs["key_hub_version"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["record_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["vault_deleted_vault_holder_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultDeletedVaultHolder(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["private_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["action"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MOVE"), + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["seconds"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["access_available"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["records"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["file"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["totp"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["write_totp"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["vault_vault_record_share_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["children"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), + }, + Optional: true, + } + schemaAttrs["parent"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), + Optional: true, + } + schemaAttrs["share_summary"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordShareSummary(recurse), + Optional: true, + } + schemaAttrs["shares"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), + Optional: true, + } + schemaAttrs["vaultholder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultHolder(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["private_key"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["password"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["expires_at"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["session_password"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhook_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["all_types"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authentication_scheme"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["basic_auth_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["basic_auth_username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bearer_token"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["custom_header_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["custom_header_value"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("SECURE"), + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookPush(false), + Optional: true, + } + schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["request_headers"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["response"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["time"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["trigger_time"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["object"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLinkable(recurse), + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["by_party"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["group2"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["group_classification"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["organizational_unit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["parameter1"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameter2"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameter3"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["security_level"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["seq"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["timestamp"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["vault_record"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["webhook_webhook_push_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Optional: true, + } + return schemaAttrs +} -func sliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { +func sliceToTF[T any](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { var diags diag.Diagnostics ret := make([]attr.Value, 0, len(vals)) for _, curVal := range vals { @@ -36043,7 +44328,7 @@ func sliceToTF[T interface{}](elemType attr.Type, vals []T, toValue func(T, *dia return types.ListValue(elemType, ret) } -func tfToSlice[T interface{}](val basetypes.ListValue, toValue func(attr.Value, *diag.Diagnostics) T) ([]T, diag.Diagnostics) { +func tfToSlice[T any](val basetypes.ListValue, toValue func(attr.Value, *diag.Diagnostics) T) ([]T, diag.Diagnostics) { var diags diag.Diagnostics vals := val.Elements() ret := make([]T, 0, len(vals)) @@ -36113,7 +44398,7 @@ func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { return types.StringPointerValue(val.GetUuid()) } -func parsePointer[T interface{}](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { +func parsePointer[T any](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { if val.IsNull() { return nil, diag.Diagnostics{} } @@ -36121,7 +44406,7 @@ func parsePointer[T interface{}](val basetypes.StringValue, parser func(string) return &parsed, diags } -func parsePointer2[T interface{}](val basetypes.StringValue, parser func(string) (*T, error)) (*T, diag.Diagnostics) { +func parsePointer2[T any](val basetypes.StringValue, parser func(string) (*T, error)) (*T, diag.Diagnostics) { if val.IsNull() { return nil, diag.Diagnostics{} } @@ -36129,7 +44414,7 @@ func parsePointer2[T interface{}](val basetypes.StringValue, parser func(string) return parsed, diags } -func parse[T interface{}](val basetypes.StringValue, parser func(string) (T, error)) (T, diag.Diagnostics) { +func parse[T any](val basetypes.StringValue, parser func(string) (T, error)) (T, diag.Diagnostics) { var diags diag.Diagnostics parsed, err := parser(val.ValueString()) if err != nil { From 1801046612dcbd2e3f885d576998ab586e696ad8 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 8 Sep 2023 17:11:30 +0200 Subject: [PATCH 06/34] Split resources and data sources --- internal/provider/group_data_source.go | 6 +- internal/provider/group_resource.go | 20 +- internal/provider/impl.go | 59420 +++++++++++++++++------ 3 files changed, 45132 insertions(+), 14314 deletions(-) diff --git a/internal/provider/group_data_source.go b/internal/provider/group_data_source.go index 2cb0940..20c98d4 100644 --- a/internal/provider/group_data_source.go +++ b/internal/provider/group_data_source.go @@ -62,7 +62,7 @@ func (d *groupDataSource) Configure(ctx context.Context, req datasource.Configur } func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { - var data groupGroupData + var data groupGroupDataDS resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return @@ -84,12 +84,12 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } group := groups.GetItems()[0] - tfGroup, diags := tkhToTFObjectGroupGroup(true, group) + tfGroup, diags := tkhToTFObjectDSGroupGroup(true, group) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - fillDataStructFromTFObjectGroupGroup(&data, tfGroup) + fillDataStructFromTFObjectDSGroupGroup(&data, tfGroup) // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index 6cc2c88..b743c9c 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -65,19 +65,19 @@ func (r *groupResource) Configure(ctx context.Context, req resource.ConfigureReq } func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data groupGroupData + var data groupGroupDataRS resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return } - obj, diags := types.ObjectValueFrom(ctx, groupGroupAttrTypesRecurse, data) + obj, diags := types.ObjectValueFrom(ctx, groupGroupAttrTypesRSRecurse, data) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - newgroup, diags := tfObjectToTKHGroupGroup(ctx, true, obj) + newgroup, diags := tfObjectToTKHRSGroupGroup(ctx, true, obj) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return @@ -94,19 +94,19 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, } group := createdwrapper.GetItems()[0] - tfGroup, diags := tkhToTFObjectGroupGroup(true, group) + tfGroup, diags := tkhToTFObjectRSGroupGroup(true, group) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - fillDataStructFromTFObjectGroupGroup(&data, tfGroup) + fillDataStructFromTFObjectRSGroupGroup(&data, tfGroup) tflog.Trace(ctx, "Created a new Topicus KeyHub group") resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data groupGroupData + var data groupGroupDataRS resp.Diagnostics.Append(req.State.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return @@ -128,19 +128,19 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp return } group := groups.GetItems()[0] - tfGroup, diags := tkhToTFObjectGroupGroup(true, group) + tfGroup, diags := tkhToTFObjectRSGroupGroup(true, group) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - fillDataStructFromTFObjectGroupGroup(&data, tfGroup) + fillDataStructFromTFObjectRSGroupGroup(&data, tfGroup) // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data groupGroupData + var data groupGroupDataRS resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return @@ -159,7 +159,7 @@ func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, } func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data groupGroupData + var data groupGroupDataRS resp.Diagnostics.Append(req.State.Get(ctx, &data)...) if resp.Diagnostics.HasError() { return diff --git a/internal/provider/impl.go b/internal/provider/impl.go index 98acef0..100dda5 100644 --- a/internal/provider/impl.go +++ b/internal/provider/impl.go @@ -35,23 +35,46 @@ import ( keyhubserviceaccount "github.com/topicuskeyhub/sdk-go/serviceaccount" keyhubsystem "github.com/topicuskeyhub/sdk-go/system" keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" - keyhubwebhook "github.com/topicuskeyhub/sdk-go/webhook" ) -var auditInfoAttrTypes = objectAttrsTypeAuditInfo(false) -var auditInfoAttrTypesRecurse = objectAttrsTypeAuditInfo(true) +var auditInfoAttrTypesRS = objectAttrsTypeRSAuditInfo(false) +var auditInfoAttrTypesRSRecurse = objectAttrsTypeRSAuditInfo(true) -type auditInfoData struct { +type auditInfoDataRS struct { CreatedAt types.String `tfsdk:"created_at"` CreatedBy types.String `tfsdk:"created_by"` LastModifiedAt types.String `tfsdk:"last_modified_at"` LastModifiedBy types.String `tfsdk:"last_modified_by"` } -var errorReportAttrTypes = objectAttrsTypeErrorReport(false) -var errorReportAttrTypesRecurse = objectAttrsTypeErrorReport(true) +var auditInfoAttrTypesDS = objectAttrsTypeDSAuditInfo(false) +var auditInfoAttrTypesDSRecurse = objectAttrsTypeDSAuditInfo(true) -type errorReportData struct { +type auditInfoDataDS struct { + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LastModifiedBy types.String `tfsdk:"last_modified_by"` +} + +var errorReportAttrTypesRS = objectAttrsTypeRSErrorReport(false) +var errorReportAttrTypesRSRecurse = objectAttrsTypeRSErrorReport(true) + +type errorReportDataRS struct { + ApplicationError types.String `tfsdk:"application_error"` + ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` + Code types.Int64 `tfsdk:"code"` + ErrorDetails types.List `tfsdk:"error_details"` + Exception types.String `tfsdk:"exception"` + Message types.String `tfsdk:"message"` + Reason types.String `tfsdk:"reason"` + Stacktrace types.List `tfsdk:"stacktrace"` +} + +var errorReportAttrTypesDS = objectAttrsTypeDSErrorReport(false) +var errorReportAttrTypesDSRecurse = objectAttrsTypeDSErrorReport(true) + +type errorReportDataDS struct { ApplicationError types.String `tfsdk:"application_error"` ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` Code types.Int64 `tfsdk:"code"` @@ -62,57 +85,132 @@ type errorReportData struct { Stacktrace types.List `tfsdk:"stacktrace"` } -var errorReport_applicationErrorParametersAttrTypes = objectAttrsTypeErrorReport_applicationErrorParameters(false) -var errorReport_applicationErrorParametersAttrTypesRecurse = objectAttrsTypeErrorReport_applicationErrorParameters(true) +var errorReport_applicationErrorParametersAttrTypesRS = objectAttrsTypeRSErrorReport_applicationErrorParameters(false) +var errorReport_applicationErrorParametersAttrTypesRSRecurse = objectAttrsTypeRSErrorReport_applicationErrorParameters(true) + +type errorReport_applicationErrorParametersDataRS struct { +} + +var errorReport_applicationErrorParametersAttrTypesDS = objectAttrsTypeDSErrorReport_applicationErrorParameters(false) +var errorReport_applicationErrorParametersAttrTypesDSRecurse = objectAttrsTypeDSErrorReport_applicationErrorParameters(true) + +type errorReport_applicationErrorParametersDataDS struct { +} + +var generatedSecretAttrTypesRS = objectAttrsTypeRSGeneratedSecret(false) +var generatedSecretAttrTypesRSRecurse = objectAttrsTypeRSGeneratedSecret(true) -type errorReport_applicationErrorParametersData struct { +type generatedSecretDataRS struct { + GeneratedSecret types.String `tfsdk:"generated_secret"` + OldSecret types.String `tfsdk:"old_secret"` + Regenerate types.Bool `tfsdk:"regenerate"` } -var generatedSecretAttrTypes = objectAttrsTypeGeneratedSecret(false) -var generatedSecretAttrTypesRecurse = objectAttrsTypeGeneratedSecret(true) +var generatedSecretAttrTypesDS = objectAttrsTypeDSGeneratedSecret(false) +var generatedSecretAttrTypesDSRecurse = objectAttrsTypeDSGeneratedSecret(true) -type generatedSecretData struct { +type generatedSecretDataDS struct { GeneratedSecret types.String `tfsdk:"generated_secret"` OldSecret types.String `tfsdk:"old_secret"` Regenerate types.Bool `tfsdk:"regenerate"` } -var linkableAttrTypes = objectAttrsTypeLinkable(false) -var linkableAttrTypesRecurse = objectAttrsTypeLinkable(true) +var linkableAttrTypesRS = objectAttrsTypeRSLinkable(false) +var linkableAttrTypesRSRecurse = objectAttrsTypeRSLinkable(true) + +type linkableDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var linkableAttrTypesDS = objectAttrsTypeDSLinkable(false) +var linkableAttrTypesDSRecurse = objectAttrsTypeDSLinkable(true) -type linkableData struct { +type linkableDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` } -var nonLinkableAttrTypes = objectAttrsTypeNonLinkable(false) -var nonLinkableAttrTypesRecurse = objectAttrsTypeNonLinkable(true) +var nonLinkableAttrTypesRS = objectAttrsTypeRSNonLinkable(false) +var nonLinkableAttrTypesRSRecurse = objectAttrsTypeRSNonLinkable(true) -type nonLinkableData struct { +type nonLinkableDataRS struct { } -var restLinkAttrTypes = objectAttrsTypeRestLink(false) -var restLinkAttrTypesRecurse = objectAttrsTypeRestLink(true) +var nonLinkableAttrTypesDS = objectAttrsTypeDSNonLinkable(false) +var nonLinkableAttrTypesDSRecurse = objectAttrsTypeDSNonLinkable(true) -type restLinkData struct { +type nonLinkableDataDS struct { +} + +var restLinkAttrTypesRS = objectAttrsTypeRSRestLink(false) +var restLinkAttrTypesRSRecurse = objectAttrsTypeRSRestLink(true) + +type restLinkDataRS struct { + Href types.String `tfsdk:"href"` + ID types.Int64 `tfsdk:"id"` + Rel types.String `tfsdk:"rel"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var restLinkAttrTypesDS = objectAttrsTypeDSRestLink(false) +var restLinkAttrTypesDSRecurse = objectAttrsTypeDSRestLink(true) + +type restLinkDataDS struct { Href types.String `tfsdk:"href"` ID types.Int64 `tfsdk:"id"` Rel types.String `tfsdk:"rel"` TypeEscaped types.String `tfsdk:"type_escaped"` } -var segmentCountAttrTypes = objectAttrsTypeSegmentCount(false) -var segmentCountAttrTypesRecurse = objectAttrsTypeSegmentCount(true) +var segmentCountAttrTypesRS = objectAttrsTypeRSSegmentCount(false) +var segmentCountAttrTypesRSRecurse = objectAttrsTypeRSSegmentCount(true) + +type segmentCountDataRS struct { + Count types.Int64 `tfsdk:"count"` + Name types.String `tfsdk:"name"` +} + +var segmentCountAttrTypesDS = objectAttrsTypeDSSegmentCount(false) +var segmentCountAttrTypesDSRecurse = objectAttrsTypeDSSegmentCount(true) -type segmentCountData struct { +type segmentCountDataDS struct { Count types.Int64 `tfsdk:"count"` Name types.String `tfsdk:"name"` } -var auditAuditRecordAttrTypes = objectAttrsTypeAuditAuditRecord(false) -var auditAuditRecordAttrTypesRecurse = objectAttrsTypeAuditAuditRecord(true) +var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) +var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) + +type auditAuditRecordDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + DateTime types.String `tfsdk:"date_time"` + OnAccount types.String `tfsdk:"on_account"` + OnCertificate types.String `tfsdk:"on_certificate"` + OnClient types.String `tfsdk:"on_client"` + OnDirectory types.String `tfsdk:"on_directory"` + OnGroup types.String `tfsdk:"on_group"` + OnGroup2 types.String `tfsdk:"on_group2"` + OnGroupClassification types.String `tfsdk:"on_group_classification"` + OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` + OnServiceAccount types.String `tfsdk:"on_service_account"` + OnSystem types.String `tfsdk:"on_system"` + OnVaultRecord types.String `tfsdk:"on_vault_record"` + OnWebhook types.String `tfsdk:"on_webhook"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + PerformedBy types.String `tfsdk:"performed_by"` + SecurityLevel types.String `tfsdk:"security_level"` +} + +var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) +var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) -type auditAuditRecordData struct { +type auditAuditRecordDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -137,24 +235,38 @@ type auditAuditRecordData struct { SecurityLevel types.String `tfsdk:"security_level"` } -var auditAuditRecordLinkableWrapperAttrTypes = objectAttrsTypeAuditAuditRecordLinkableWrapper(false) -var auditAuditRecordLinkableWrapperAttrTypesRecurse = objectAttrsTypeAuditAuditRecordLinkableWrapper(true) +var auditAuditRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(false) +var auditAuditRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(true) -type auditAuditRecordLinkableWrapperData struct { +type auditAuditRecordLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var auditAuditRecord_additionalObjectsAttrTypes = objectAttrsTypeAuditAuditRecord_additionalObjects(false) -var auditAuditRecord_additionalObjectsAttrTypesRecurse = objectAttrsTypeAuditAuditRecord_additionalObjects(true) +var auditAuditRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(false) +var auditAuditRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(true) + +type auditAuditRecordLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var auditAuditRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuditAuditRecord_additionalObjects(false) +var auditAuditRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord_additionalObjects(true) + +type auditAuditRecord_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var auditAuditRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuditAuditRecord_additionalObjects(false) +var auditAuditRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord_additionalObjects(true) -type auditAuditRecord_additionalObjectsData struct { +type auditAuditRecord_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var authAccountAttrTypes = objectAttrsTypeAuthAccount(false) -var authAccountAttrTypesRecurse = objectAttrsTypeAuthAccount(true) +var authAccountAttrTypesRS = objectAttrsTypeRSAuthAccount(false) +var authAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount(true) -type authAccountData struct { +type authAccountDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -183,33 +295,101 @@ type authAccountData struct { ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` } -var authAccountBulkUpdateAttrTypes = objectAttrsTypeAuthAccountBulkUpdate(false) -var authAccountBulkUpdateAttrTypesRecurse = objectAttrsTypeAuthAccountBulkUpdate(true) +var authAccountAttrTypesDS = objectAttrsTypeDSAuthAccount(false) +var authAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount(true) + +type authAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + Directory types.Object `tfsdk:"directory"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` +} + +var authAccountBulkUpdateAttrTypesRS = objectAttrsTypeRSAuthAccountBulkUpdate(false) +var authAccountBulkUpdateAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountBulkUpdate(true) + +type authAccountBulkUpdateDataRS struct { + Action types.String `tfsdk:"action"` + ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` + SelectedAccounts types.List `tfsdk:"selected_accounts"` +} + +var authAccountBulkUpdateAttrTypesDS = objectAttrsTypeDSAuthAccountBulkUpdate(false) +var authAccountBulkUpdateAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountBulkUpdate(true) -type authAccountBulkUpdateData struct { +type authAccountBulkUpdateDataDS struct { Action types.String `tfsdk:"action"` ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` SelectedAccounts types.List `tfsdk:"selected_accounts"` } -var authAccountChangeLocaleAttrTypes = objectAttrsTypeAuthAccountChangeLocale(false) -var authAccountChangeLocaleAttrTypesRecurse = objectAttrsTypeAuthAccountChangeLocale(true) +var authAccountChangeLocaleAttrTypesRS = objectAttrsTypeRSAuthAccountChangeLocale(false) +var authAccountChangeLocaleAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountChangeLocale(true) + +type authAccountChangeLocaleDataRS struct { + Locale types.String `tfsdk:"locale"` +} + +var authAccountChangeLocaleAttrTypesDS = objectAttrsTypeDSAuthAccountChangeLocale(false) +var authAccountChangeLocaleAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountChangeLocale(true) -type authAccountChangeLocaleData struct { +type authAccountChangeLocaleDataDS struct { Locale types.String `tfsdk:"locale"` } -var authAccountLinkableWrapperAttrTypes = objectAttrsTypeAuthAccountLinkableWrapper(false) -var authAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeAuthAccountLinkableWrapper(true) +var authAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthAccountLinkableWrapper(false) +var authAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountLinkableWrapper(true) + +type authAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var authAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthAccountLinkableWrapper(false) +var authAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountLinkableWrapper(true) -type authAccountLinkableWrapperData struct { +type authAccountLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var authAccountPrimerAttrTypes = objectAttrsTypeAuthAccountPrimer(false) -var authAccountPrimerAttrTypesRecurse = objectAttrsTypeAuthAccountPrimer(true) +var authAccountPrimerAttrTypesRS = objectAttrsTypeRSAuthAccountPrimer(false) +var authAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountPrimer(true) + +type authAccountPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` +} + +var authAccountPrimerAttrTypesDS = objectAttrsTypeDSAuthAccountPrimer(false) +var authAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountPrimer(true) -type authAccountPrimerData struct { +type authAccountPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -219,18 +399,26 @@ type authAccountPrimerData struct { Validity types.String `tfsdk:"validity"` } -var authAccountRecoveryStatusAttrTypes = objectAttrsTypeAuthAccountRecoveryStatus(false) -var authAccountRecoveryStatusAttrTypesRecurse = objectAttrsTypeAuthAccountRecoveryStatus(true) +var authAccountRecoveryStatusAttrTypesRS = objectAttrsTypeRSAuthAccountRecoveryStatus(false) +var authAccountRecoveryStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountRecoveryStatus(true) + +type authAccountRecoveryStatusDataRS struct { + Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` + PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` +} + +var authAccountRecoveryStatusAttrTypesDS = objectAttrsTypeDSAuthAccountRecoveryStatus(false) +var authAccountRecoveryStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountRecoveryStatus(true) -type authAccountRecoveryStatusData struct { +type authAccountRecoveryStatusDataDS struct { Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` } -var authAccountSettingsAttrTypes = objectAttrsTypeAuthAccountSettings(false) -var authAccountSettingsAttrTypesRecurse = objectAttrsTypeAuthAccountSettings(true) +var authAccountSettingsAttrTypesRS = objectAttrsTypeRSAuthAccountSettings(false) +var authAccountSettingsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountSettings(true) -type authAccountSettingsData struct { +type authAccountSettingsDataRS struct { DefaultOrganizationalUnitUUID types.String `tfsdk:"default_organizational_unit_uuid"` DirectoryName types.String `tfsdk:"directory_name"` DirectoryType types.String `tfsdk:"directory_type"` @@ -245,10 +433,40 @@ type authAccountSettingsData struct { VaultStatus types.String `tfsdk:"vault_status"` } -var authAccountStatusAttrTypes = objectAttrsTypeAuthAccountStatus(false) -var authAccountStatusAttrTypesRecurse = objectAttrsTypeAuthAccountStatus(true) +var authAccountSettingsAttrTypesDS = objectAttrsTypeDSAuthAccountSettings(false) +var authAccountSettingsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountSettings(true) + +type authAccountSettingsDataDS struct { + DefaultOrganizationalUnit types.Object `tfsdk:"default_organizational_unit"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryType types.String `tfsdk:"directory_type"` + InGroups types.Bool `tfsdk:"in_groups"` + InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` + KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` + MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` + PasswordMode types.String `tfsdk:"password_mode"` + SshPublicKey types.String `tfsdk:"ssh_public_key"` + TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` + UseTokenPassword types.Bool `tfsdk:"use_token_password"` + VaultStatus types.String `tfsdk:"vault_status"` +} + +var authAccountStatusAttrTypesRS = objectAttrsTypeRSAuthAccountStatus(false) +var authAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountStatus(true) + +type authAccountStatusDataRS struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` + LicenseRole types.String `tfsdk:"license_role"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` +} + +var authAccountStatusAttrTypesDS = objectAttrsTypeDSAuthAccountStatus(false) +var authAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountStatus(true) -type authAccountStatusData struct { +type authAccountStatusDataDS struct { AccountEnabled types.Bool `tfsdk:"account_enabled"` CanRequestGroups types.Bool `tfsdk:"can_request_groups"` DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` @@ -257,10 +475,10 @@ type authAccountStatusData struct { TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` } -var authAccount_additionalObjectsAttrTypes = objectAttrsTypeAuthAccount_additionalObjects(false) -var authAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeAuthAccount_additionalObjects(true) +var authAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuthAccount_additionalObjects(false) +var authAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount_additionalObjects(true) -type authAccount_additionalObjectsData struct { +type authAccount_additionalObjectsDataRS struct { ActiveLogin types.Bool `tfsdk:"active_login"` Audit types.Object `tfsdk:"audit"` Groups types.Object `tfsdk:"groups"` @@ -270,37 +488,77 @@ type authAccount_additionalObjectsData struct { Vault types.Object `tfsdk:"vault"` } -var authAccountsAuditStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats(false) -var authAccountsAuditStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats(true) +var authAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuthAccount_additionalObjects(false) +var authAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount_additionalObjects(true) -type authAccountsAuditStatsData struct { +type authAccount_additionalObjectsDataDS struct { + ActiveLogin types.Bool `tfsdk:"active_login"` + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` + Settings types.Object `tfsdk:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes"` + Vault types.Object `tfsdk:"vault"` +} + +var authAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats(false) +var authAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats(true) + +type authAccountsAuditStatsDataRS struct { + DirectoryStats types.Object `tfsdk:"directory_stats"` + TwoFAStats types.Object `tfsdk:"two_f_a_stats"` + ValidityStats types.Object `tfsdk:"validity_stats"` +} + +var authAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats(false) +var authAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats(true) + +type authAccountsAuditStatsDataDS struct { DirectoryStats types.Object `tfsdk:"directory_stats"` TwoFAStats types.Object `tfsdk:"two_f_a_stats"` ValidityStats types.Object `tfsdk:"validity_stats"` } -var authAccountsAuditStats_directoryStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats_directoryStats(false) -var authAccountsAuditStats_directoryStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats_directoryStats(true) +var authAccountsAuditStats_directoryStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(false) +var authAccountsAuditStats_directoryStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(true) -type authAccountsAuditStats_directoryStatsData struct { +type authAccountsAuditStats_directoryStatsDataRS struct { } -var authAccountsAuditStats_twoFAStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats_twoFAStats(false) -var authAccountsAuditStats_twoFAStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats_twoFAStats(true) +var authAccountsAuditStats_directoryStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(false) +var authAccountsAuditStats_directoryStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(true) -type authAccountsAuditStats_twoFAStatsData struct { +type authAccountsAuditStats_directoryStatsDataDS struct { } -var authAccountsAuditStats_validityStatsAttrTypes = objectAttrsTypeAuthAccountsAuditStats_validityStats(false) -var authAccountsAuditStats_validityStatsAttrTypesRecurse = objectAttrsTypeAuthAccountsAuditStats_validityStats(true) +var authAccountsAuditStats_twoFAStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(false) +var authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(true) -type authAccountsAuditStats_validityStatsData struct { +type authAccountsAuditStats_twoFAStatsDataRS struct { } -var authInternalAccountAttrTypes = objectAttrsTypeAuthInternalAccount(false) -var authInternalAccountAttrTypesRecurse = objectAttrsTypeAuthInternalAccount(true) +var authAccountsAuditStats_twoFAStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(false) +var authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(true) -type authInternalAccountData struct { +type authAccountsAuditStats_twoFAStatsDataDS struct { +} + +var authAccountsAuditStats_validityStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(false) +var authAccountsAuditStats_validityStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(true) + +type authAccountsAuditStats_validityStatsDataRS struct { +} + +var authAccountsAuditStats_validityStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(false) +var authAccountsAuditStats_validityStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(true) + +type authAccountsAuditStats_validityStatsDataDS struct { +} + +var authInternalAccountAttrTypesRS = objectAttrsTypeRSAuthInternalAccount(false) +var authInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount(true) + +type authInternalAccountDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -336,64 +594,176 @@ type authInternalAccountData struct { Telephone types.String `tfsdk:"telephone"` } -var authInternalAccountLinkableWrapperAttrTypes = objectAttrsTypeAuthInternalAccountLinkableWrapper(false) -var authInternalAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeAuthInternalAccountLinkableWrapper(true) +var authInternalAccountAttrTypesDS = objectAttrsTypeDSAuthInternalAccount(false) +var authInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccount(true) + +type authInternalAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + Directory types.Object `tfsdk:"directory"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var authInternalAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(false) +var authInternalAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(true) + +type authInternalAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var authInternalAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(false) +var authInternalAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(true) -type authInternalAccountLinkableWrapperData struct { +type authInternalAccountLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var authInternalAccountStatusObjectAttrTypes = objectAttrsTypeAuthInternalAccountStatusObject(false) -var authInternalAccountStatusObjectAttrTypesRecurse = objectAttrsTypeAuthInternalAccountStatusObject(true) +var authInternalAccountStatusObjectAttrTypesRS = objectAttrsTypeRSAuthInternalAccountStatusObject(false) +var authInternalAccountStatusObjectAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountStatusObject(true) -type authInternalAccountStatusObjectData struct { +type authInternalAccountStatusObjectDataRS struct { Status types.String `tfsdk:"status"` } -var authInternalAccount_additionalObjectsAttrTypes = objectAttrsTypeAuthInternalAccount_additionalObjects(false) -var authInternalAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeAuthInternalAccount_additionalObjects(true) +var authInternalAccountStatusObjectAttrTypesDS = objectAttrsTypeDSAuthInternalAccountStatusObject(false) +var authInternalAccountStatusObjectAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountStatusObject(true) -type authInternalAccount_additionalObjectsData struct { +type authInternalAccountStatusObjectDataDS struct { + Status types.String `tfsdk:"status"` +} + +var authInternalAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuthInternalAccount_additionalObjects(false) +var authInternalAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount_additionalObjects(true) + +type authInternalAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Reason types.String `tfsdk:"reason"` +} + +var authInternalAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuthInternalAccount_additionalObjects(false) +var authInternalAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccount_additionalObjects(true) + +type authInternalAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Reason types.String `tfsdk:"reason"` } -var authMoveInternalAccountAttrTypes = objectAttrsTypeAuthMoveInternalAccount(false) -var authMoveInternalAccountAttrTypesRecurse = objectAttrsTypeAuthMoveInternalAccount(true) +var authMoveInternalAccountAttrTypesRS = objectAttrsTypeRSAuthMoveInternalAccount(false) +var authMoveInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthMoveInternalAccount(true) + +type authMoveInternalAccountDataRS struct { + InternalDirectory types.Object `tfsdk:"internal_directory"` +} + +var authMoveInternalAccountAttrTypesDS = objectAttrsTypeDSAuthMoveInternalAccount(false) +var authMoveInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthMoveInternalAccount(true) -type authMoveInternalAccountData struct { +type authMoveInternalAccountDataDS struct { InternalDirectory types.Object `tfsdk:"internal_directory"` } -var authPermissionAttrTypes = objectAttrsTypeAuthPermission(false) -var authPermissionAttrTypesRecurse = objectAttrsTypeAuthPermission(true) +var authPermissionAttrTypesRS = objectAttrsTypeRSAuthPermission(false) +var authPermissionAttrTypesRSRecurse = objectAttrsTypeRSAuthPermission(true) + +type authPermissionDataRS struct { + Full types.String `tfsdk:"full"` + Instances types.List `tfsdk:"instances"` + Operations types.List `tfsdk:"operations"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var authPermissionAttrTypesDS = objectAttrsTypeDSAuthPermission(false) +var authPermissionAttrTypesDSRecurse = objectAttrsTypeDSAuthPermission(true) -type authPermissionData struct { +type authPermissionDataDS struct { Full types.String `tfsdk:"full"` Instances types.List `tfsdk:"instances"` Operations types.List `tfsdk:"operations"` TypeEscaped types.String `tfsdk:"type_escaped"` } -var authStoredAccountAttributeAttrTypes = objectAttrsTypeAuthStoredAccountAttribute(false) -var authStoredAccountAttributeAttrTypesRecurse = objectAttrsTypeAuthStoredAccountAttribute(true) +var authStoredAccountAttributeAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttribute(false) +var authStoredAccountAttributeAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttribute(true) + +type authStoredAccountAttributeDataRS struct { + Name types.String `tfsdk:"name"` + Value types.String `tfsdk:"value"` +} + +var authStoredAccountAttributeAttrTypesDS = objectAttrsTypeDSAuthStoredAccountAttribute(false) +var authStoredAccountAttributeAttrTypesDSRecurse = objectAttrsTypeDSAuthStoredAccountAttribute(true) -type authStoredAccountAttributeData struct { +type authStoredAccountAttributeDataDS struct { Name types.String `tfsdk:"name"` Value types.String `tfsdk:"value"` } -var authStoredAccountAttributesAttrTypes = objectAttrsTypeAuthStoredAccountAttributes(false) -var authStoredAccountAttributesAttrTypesRecurse = objectAttrsTypeAuthStoredAccountAttributes(true) +var authStoredAccountAttributesAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttributes(false) +var authStoredAccountAttributesAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttributes(true) + +type authStoredAccountAttributesDataRS struct { + Attributes types.List `tfsdk:"attributes"` +} + +var authStoredAccountAttributesAttrTypesDS = objectAttrsTypeDSAuthStoredAccountAttributes(false) +var authStoredAccountAttributesAttrTypesDSRecurse = objectAttrsTypeDSAuthStoredAccountAttributes(true) -type authStoredAccountAttributesData struct { +type authStoredAccountAttributesDataDS struct { Attributes types.List `tfsdk:"attributes"` } -var certificateCertificateAttrTypes = objectAttrsTypeCertificateCertificate(false) -var certificateCertificateAttrTypesRecurse = objectAttrsTypeCertificateCertificate(true) +var certificateCertificateAttrTypesRS = objectAttrsTypeRSCertificateCertificate(false) +var certificateCertificateAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate(true) + +type certificateCertificateDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + KeyData types.List `tfsdk:"key_data"` +} + +var certificateCertificateAttrTypesDS = objectAttrsTypeDSCertificateCertificate(false) +var certificateCertificateAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificate(true) -type certificateCertificateData struct { +type certificateCertificateDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` @@ -409,17 +779,41 @@ type certificateCertificateData struct { KeyData types.List `tfsdk:"key_data"` } -var certificateCertificateLinkableWrapperAttrTypes = objectAttrsTypeCertificateCertificateLinkableWrapper(false) -var certificateCertificateLinkableWrapperAttrTypesRecurse = objectAttrsTypeCertificateCertificateLinkableWrapper(true) +var certificateCertificateLinkableWrapperAttrTypesRS = objectAttrsTypeRSCertificateCertificateLinkableWrapper(false) +var certificateCertificateLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificateLinkableWrapper(true) + +type certificateCertificateLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var certificateCertificateLinkableWrapperAttrTypesDS = objectAttrsTypeDSCertificateCertificateLinkableWrapper(false) +var certificateCertificateLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificateLinkableWrapper(true) -type certificateCertificateLinkableWrapperData struct { +type certificateCertificateLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var certificateCertificatePrimerAttrTypes = objectAttrsTypeCertificateCertificatePrimer(false) -var certificateCertificatePrimerAttrTypesRecurse = objectAttrsTypeCertificateCertificatePrimer(true) +var certificateCertificatePrimerAttrTypesRS = objectAttrsTypeRSCertificateCertificatePrimer(false) +var certificateCertificatePrimerAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificatePrimer(true) + +type certificateCertificatePrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` +} + +var certificateCertificatePrimerAttrTypesDS = objectAttrsTypeDSCertificateCertificatePrimer(false) +var certificateCertificatePrimerAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificatePrimer(true) -type certificateCertificatePrimerData struct { +type certificateCertificatePrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` @@ -433,17 +827,24 @@ type certificateCertificatePrimerData struct { UUID types.String `tfsdk:"uuid"` } -var certificateCertificate_additionalObjectsAttrTypes = objectAttrsTypeCertificateCertificate_additionalObjects(false) -var certificateCertificate_additionalObjectsAttrTypesRecurse = objectAttrsTypeCertificateCertificate_additionalObjects(true) +var certificateCertificate_additionalObjectsAttrTypesRS = objectAttrsTypeRSCertificateCertificate_additionalObjects(false) +var certificateCertificate_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate_additionalObjects(true) + +type certificateCertificate_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var certificateCertificate_additionalObjectsAttrTypesDS = objectAttrsTypeDSCertificateCertificate_additionalObjects(false) +var certificateCertificate_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificate_additionalObjects(true) -type certificateCertificate_additionalObjectsData struct { +type certificateCertificate_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var clientClientApplicationAttrTypes = objectAttrsTypeClientClientApplication(false) -var clientClientApplicationAttrTypesRecurse = objectAttrsTypeClientClientApplication(true) +var clientClientApplicationAttrTypesRS = objectAttrsTypeRSClientClientApplication(false) +var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication(true) -type clientClientApplicationData struct { +type clientClientApplicationDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` @@ -458,17 +859,56 @@ type clientClientApplicationData struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` } -var clientClientApplicationLinkableWrapperAttrTypes = objectAttrsTypeClientClientApplicationLinkableWrapper(false) -var clientClientApplicationLinkableWrapperAttrTypesRecurse = objectAttrsTypeClientClientApplicationLinkableWrapper(true) +var clientClientApplicationAttrTypesDS = objectAttrsTypeDSClientClientApplication(false) +var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication(true) + +type clientClientApplicationDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` +} + +var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) +var clientClientApplicationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplicationLinkableWrapper(true) -type clientClientApplicationLinkableWrapperData struct { +type clientClientApplicationLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var clientClientApplicationPrimerAttrTypes = objectAttrsTypeClientClientApplicationPrimer(false) -var clientClientApplicationPrimerAttrTypesRecurse = objectAttrsTypeClientClientApplicationPrimer(true) +var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) +var clientClientApplicationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplicationLinkableWrapper(true) -type clientClientApplicationPrimerData struct { +type clientClientApplicationLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var clientClientApplicationPrimerAttrTypesRS = objectAttrsTypeRSClientClientApplicationPrimer(false) +var clientClientApplicationPrimerAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplicationPrimer(true) + +type clientClientApplicationPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` +} + +var clientClientApplicationPrimerAttrTypesDS = objectAttrsTypeDSClientClientApplicationPrimer(false) +var clientClientApplicationPrimerAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplicationPrimer(true) + +type clientClientApplicationPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` @@ -479,10 +919,23 @@ type clientClientApplicationPrimerData struct { UUID types.String `tfsdk:"uuid"` } -var clientClientApplication_additionalObjectsAttrTypes = objectAttrsTypeClientClientApplication_additionalObjects(false) -var clientClientApplication_additionalObjectsAttrTypesRecurse = objectAttrsTypeClientClientApplication_additionalObjects(true) +var clientClientApplication_additionalObjectsAttrTypesRS = objectAttrsTypeRSClientClientApplication_additionalObjects(false) +var clientClientApplication_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication_additionalObjects(true) + +type clientClientApplication_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + Groupclients types.Object `tfsdk:"groupclients"` + Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` + Tile types.Object `tfsdk:"tile"` + VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` +} + +var clientClientApplication_additionalObjectsAttrTypesDS = objectAttrsTypeDSClientClientApplication_additionalObjects(false) +var clientClientApplication_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication_additionalObjects(true) -type clientClientApplication_additionalObjectsData struct { +type clientClientApplication_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` DeleteTile types.Bool `tfsdk:"delete_tile"` Groupclients types.Object `tfsdk:"groupclients"` @@ -492,10 +945,10 @@ type clientClientApplication_additionalObjectsData struct { VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` } -var clientLdapClientAttrTypes = objectAttrsTypeClientLdapClient(false) -var clientLdapClientAttrTypesRecurse = objectAttrsTypeClientLdapClient(true) +var clientLdapClientAttrTypesRS = objectAttrsTypeRSClientLdapClient(false) +var clientLdapClientAttrTypesRSRecurse = objectAttrsTypeRSClientLdapClient(true) -type clientLdapClientData struct { +type clientLdapClientDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` @@ -515,10 +968,33 @@ type clientLdapClientData struct { UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` } -var clientOAuth2ClientAttrTypes = objectAttrsTypeClientOAuth2Client(false) -var clientOAuth2ClientAttrTypesRecurse = objectAttrsTypeClientOAuth2Client(true) +var clientLdapClientAttrTypesDS = objectAttrsTypeDSClientLdapClient(false) +var clientLdapClientAttrTypesDSRecurse = objectAttrsTypeDSClientLdapClient(true) + +type clientLdapClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + BindDn types.String `tfsdk:"bind_dn"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` +} + +var clientOAuth2ClientAttrTypesRS = objectAttrsTypeRSClientOAuth2Client(false) +var clientOAuth2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client(true) -type clientOAuth2ClientData struct { +type clientOAuth2ClientDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` @@ -545,10 +1021,40 @@ type clientOAuth2ClientData struct { UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` } -var clientOAuth2ClientPermissionAttrTypes = objectAttrsTypeClientOAuth2ClientPermission(false) -var clientOAuth2ClientPermissionAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermission(true) +var clientOAuth2ClientAttrTypesDS = objectAttrsTypeDSClientOAuth2Client(false) +var clientOAuth2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client(true) + +type clientOAuth2ClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_u_r_i"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` + ResourceURIs types.String `tfsdk:"resource_u_r_is"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` +} + +var clientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission(false) +var clientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission(true) -type clientOAuth2ClientPermissionData struct { +type clientOAuth2ClientPermissionDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -557,17 +1063,36 @@ type clientOAuth2ClientPermissionData struct { Value types.String `tfsdk:"value"` } -var clientOAuth2ClientPermissionLinkableWrapperAttrTypes = objectAttrsTypeClientOAuth2ClientPermissionLinkableWrapper(false) -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermissionLinkableWrapper(true) +var clientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission(false) +var clientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission(true) + +type clientOAuth2ClientPermissionDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` +} + +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(false) +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(true) -type clientOAuth2ClientPermissionLinkableWrapperData struct { +type clientOAuth2ClientPermissionLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var clientOAuth2ClientPermissionWithClientAttrTypes = objectAttrsTypeClientOAuth2ClientPermissionWithClient(false) -var clientOAuth2ClientPermissionWithClientAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermissionWithClient(true) +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(false) +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(true) -type clientOAuth2ClientPermissionWithClientData struct { +type clientOAuth2ClientPermissionLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermissionWithClientAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(false) +var clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(true) + +type clientOAuth2ClientPermissionWithClientDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -577,30 +1102,63 @@ type clientOAuth2ClientPermissionWithClientData struct { Client types.Object `tfsdk:"client"` } -var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypes = objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(false) -var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(true) +var clientOAuth2ClientPermissionWithClientAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(false) +var clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(true) + +type clientOAuth2ClientPermissionWithClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` + Client types.Object `tfsdk:"client"` +} + +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(true) + +type clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(true) -type clientOAuth2ClientPermissionWithClientLinkableWrapperData struct { +type clientOAuth2ClientPermissionWithClientLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var clientOAuth2ClientPermission_additionalObjectsAttrTypes = objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(false) -var clientOAuth2ClientPermission_additionalObjectsAttrTypesRecurse = objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(true) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(true) -type clientOAuth2ClientPermission_additionalObjectsData struct { +type clientOAuth2ClientPermission_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } -var clientOAuth2Client_attributesAttrTypes = objectAttrsTypeClientOAuth2Client_attributes(false) -var clientOAuth2Client_attributesAttrTypesRecurse = objectAttrsTypeClientOAuth2Client_attributes(true) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(true) -type clientOAuth2Client_attributesData struct { +type clientOAuth2ClientPermission_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientOAuth2Client_attributesAttrTypesRS = objectAttrsTypeRSClientOAuth2Client_attributes(false) +var clientOAuth2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client_attributes(true) + +type clientOAuth2Client_attributesDataRS struct { } -var clientSaml2ClientAttrTypes = objectAttrsTypeClientSaml2Client(false) -var clientSaml2ClientAttrTypesRecurse = objectAttrsTypeClientSaml2Client(true) +var clientOAuth2Client_attributesAttrTypesDS = objectAttrsTypeDSClientOAuth2Client_attributes(false) +var clientOAuth2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client_attributes(true) -type clientSaml2ClientData struct { +type clientOAuth2Client_attributesDataDS struct { +} + +var clientSaml2ClientAttrTypesRS = objectAttrsTypeRSClientSaml2Client(false) +var clientSaml2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client(true) + +type clientSaml2ClientDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` @@ -619,16 +1177,44 @@ type clientSaml2ClientData struct { SubjectFormat types.String `tfsdk:"subject_format"` } -var clientSaml2Client_attributesAttrTypes = objectAttrsTypeClientSaml2Client_attributes(false) -var clientSaml2Client_attributesAttrTypesRecurse = objectAttrsTypeClientSaml2Client_attributes(true) +var clientSaml2ClientAttrTypesDS = objectAttrsTypeDSClientSaml2Client(false) +var clientSaml2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client(true) + +type clientSaml2ClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` +} + +var clientSaml2Client_attributesAttrTypesRS = objectAttrsTypeRSClientSaml2Client_attributes(false) +var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client_attributes(true) -type clientSaml2Client_attributesData struct { +type clientSaml2Client_attributesDataRS struct { } -var directoryAccountDirectoryAttrTypes = objectAttrsTypeDirectoryAccountDirectory(false) -var directoryAccountDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectory(true) +var clientSaml2Client_attributesAttrTypesDS = objectAttrsTypeDSClientSaml2Client_attributes(false) +var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client_attributes(true) -type directoryAccountDirectoryData struct { +type clientSaml2Client_attributesDataDS struct { +} + +var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) +var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) + +type directoryAccountDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` @@ -645,17 +1231,57 @@ type directoryAccountDirectoryData struct { UsernameCustomizable types.Bool `tfsdk:"username_customizable"` } -var directoryAccountDirectoryLinkableWrapperAttrTypes = objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(false) -var directoryAccountDirectoryLinkableWrapperAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(true) +var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) +var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) + +type directoryAccountDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) +var directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(true) + +type directoryAccountDirectoryLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) +var directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(true) -type directoryAccountDirectoryLinkableWrapperData struct { +type directoryAccountDirectoryLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var directoryAccountDirectoryPrimerAttrTypes = objectAttrsTypeDirectoryAccountDirectoryPrimer(false) -var directoryAccountDirectoryPrimerAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectoryPrimer(true) +var directoryAccountDirectoryPrimerAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryPrimer(false) +var directoryAccountDirectoryPrimerAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryPrimer(true) + +type directoryAccountDirectoryPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var directoryAccountDirectoryPrimerAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false) +var directoryAccountDirectoryPrimerAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryPrimer(true) -type directoryAccountDirectoryPrimerData struct { +type directoryAccountDirectoryPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` @@ -665,19 +1291,42 @@ type directoryAccountDirectoryPrimerData struct { UUID types.String `tfsdk:"uuid"` } -var directoryAccountDirectoryStatusReportAttrTypes = objectAttrsTypeDirectoryAccountDirectoryStatusReport(false) -var directoryAccountDirectoryStatusReportAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectoryStatusReport(true) +var directoryAccountDirectoryStatusReportAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(false) +var directoryAccountDirectoryStatusReportAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(true) -type directoryAccountDirectoryStatusReportData struct { +type directoryAccountDirectoryStatusReportDataRS struct { Accounts types.Int64 `tfsdk:"accounts"` Reason types.String `tfsdk:"reason"` Status types.String `tfsdk:"status"` } -var directoryAccountDirectorySummaryAttrTypes = objectAttrsTypeDirectoryAccountDirectorySummary(false) -var directoryAccountDirectorySummaryAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectorySummary(true) +var directoryAccountDirectoryStatusReportAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(false) +var directoryAccountDirectoryStatusReportAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(true) -type directoryAccountDirectorySummaryData struct { +type directoryAccountDirectoryStatusReportDataDS struct { + Accounts types.Int64 `tfsdk:"accounts"` + Reason types.String `tfsdk:"reason"` + Status types.String `tfsdk:"status"` +} + +var directoryAccountDirectorySummaryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectorySummary(false) +var directoryAccountDirectorySummaryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectorySummary(true) + +type directoryAccountDirectorySummaryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Name types.String `tfsdk:"name"` + Status types.Object `tfsdk:"status"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectorySummaryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectorySummary(false) +var directoryAccountDirectorySummaryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectorySummary(true) + +type directoryAccountDirectorySummaryDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` @@ -688,26 +1337,42 @@ type directoryAccountDirectorySummaryData struct { UsernameCustomizable types.Bool `tfsdk:"username_customizable"` } -var directoryAccountDirectorySummaryLinkableWrapperAttrTypes = objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(false) -var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(true) +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(false) +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(true) + +type directoryAccountDirectorySummaryLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(false) +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(true) -type directoryAccountDirectorySummaryLinkableWrapperData struct { +type directoryAccountDirectorySummaryLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var directoryAccountDirectory_additionalObjectsAttrTypes = objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false) -var directoryAccountDirectory_additionalObjectsAttrTypesRecurse = objectAttrsTypeDirectoryAccountDirectory_additionalObjects(true) +var directoryAccountDirectory_additionalObjectsAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false) +var directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(true) + +type directoryAccountDirectory_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Markers types.Object `tfsdk:"markers"` + Status types.Object `tfsdk:"status"` +} + +var directoryAccountDirectory_additionalObjectsAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false) +var directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(true) -type directoryAccountDirectory_additionalObjectsData struct { +type directoryAccountDirectory_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Markers types.Object `tfsdk:"markers"` Status types.Object `tfsdk:"status"` } -var directoryInternalDirectoryAttrTypes = objectAttrsTypeDirectoryInternalDirectory(false) -var directoryInternalDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryInternalDirectory(true) +var directoryInternalDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryInternalDirectory(false) +var directoryInternalDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryInternalDirectory(true) -type directoryInternalDirectoryData struct { +type directoryInternalDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` @@ -725,10 +1390,31 @@ type directoryInternalDirectoryData struct { OwnerUUID types.String `tfsdk:"owner_uuid"` } -var directoryLDAPDirectoryAttrTypes = objectAttrsTypeDirectoryLDAPDirectory(false) -var directoryLDAPDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryLDAPDirectory(true) +var directoryInternalDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryInternalDirectory(false) +var directoryInternalDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryInternalDirectory(true) + +type directoryInternalDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + Owner types.Object `tfsdk:"owner"` +} + +var directoryLDAPDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryLDAPDirectory(false) +var directoryLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryLDAPDirectory(true) -type directoryLDAPDirectoryData struct { +type directoryLDAPDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` @@ -759,10 +1445,10 @@ type directoryLDAPDirectoryData struct { TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` } -var directoryMaintenanceDirectoryAttrTypes = objectAttrsTypeDirectoryMaintenanceDirectory(false) -var directoryMaintenanceDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryMaintenanceDirectory(true) +var directoryLDAPDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryLDAPDirectory(false) +var directoryLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryLDAPDirectory(true) -type directoryMaintenanceDirectoryData struct { +type directoryLDAPDirectoryDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` @@ -771,18 +1457,32 @@ type directoryMaintenanceDirectoryData struct { Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_d_n"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_d_n"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` } -var directoryOIDCDirectoryAttrTypes = objectAttrsTypeDirectoryOIDCDirectory(false) -var directoryOIDCDirectoryAttrTypesRecurse = objectAttrsTypeDirectoryOIDCDirectory(true) +var directoryMaintenanceDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryMaintenanceDirectory(false) +var directoryMaintenanceDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryMaintenanceDirectory(true) -type directoryOIDCDirectoryData struct { +type directoryMaintenanceDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` @@ -797,23 +1497,112 @@ type directoryOIDCDirectoryData struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` +} + +var directoryMaintenanceDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryMaintenanceDirectory(false) +var directoryMaintenanceDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryMaintenanceDirectory(true) + +type directoryMaintenanceDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryOIDCDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryOIDCDirectory(false) +var directoryOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryOIDCDirectory(true) + +type directoryOIDCDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` +} + +var directoryOIDCDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryOIDCDirectory(false) +var directoryOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryOIDCDirectory(true) + +type directoryOIDCDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` SendLoginHint types.Bool `tfsdk:"send_login_hint"` VendorEscaped types.String `tfsdk:"vendor_escaped"` } -var groupAccountGroupAttrTypes = objectAttrsTypeGroupAccountGroup(false) -var groupAccountGroupAttrTypesRecurse = objectAttrsTypeGroupAccountGroup(true) +var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) +var groupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup(true) + +type groupAccountGroupDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupAccountGroupAttrTypesDS = objectAttrsTypeDSGroupAccountGroup(false) +var groupAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroup(true) -type groupAccountGroupData struct { +type groupAccountGroupDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Admin types.Bool `tfsdk:"admin"` @@ -828,33 +1617,89 @@ type groupAccountGroupData struct { VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` } -var groupAccountGroupLinkableWrapperAttrTypes = objectAttrsTypeGroupAccountGroupLinkableWrapper(false) -var groupAccountGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupAccountGroupLinkableWrapper(true) +var groupAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(false) +var groupAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(true) + +type groupAccountGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false) +var groupAccountGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(true) -type groupAccountGroupLinkableWrapperData struct { +type groupAccountGroupLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupAccountGroup_additionalObjectsAttrTypes = objectAttrsTypeGroupAccountGroup_additionalObjects(false) -var groupAccountGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupAccountGroup_additionalObjects(true) +var groupAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupAccountGroup_additionalObjects(false) +var groupAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup_additionalObjects(true) + +type groupAccountGroup_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var groupAccountGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupAccountGroup_additionalObjects(false) +var groupAccountGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroup_additionalObjects(true) -type groupAccountGroup_additionalObjectsData struct { +type groupAccountGroup_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Vault types.Object `tfsdk:"vault"` } -var groupAuthorizedGroupsWrapperAttrTypes = objectAttrsTypeGroupAuthorizedGroupsWrapper(false) -var groupAuthorizedGroupsWrapperAttrTypesRecurse = objectAttrsTypeGroupAuthorizedGroupsWrapper(true) +var groupAuthorizedGroupsWrapperAttrTypesRS = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(false) +var groupAuthorizedGroupsWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(true) + +type groupAuthorizedGroupsWrapperDataRS struct { + Items types.List `tfsdk:"items"` + GroupCount types.Int64 `tfsdk:"group_count"` +} + +var groupAuthorizedGroupsWrapperAttrTypesDS = objectAttrsTypeDSGroupAuthorizedGroupsWrapper(false) +var groupAuthorizedGroupsWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupAuthorizedGroupsWrapper(true) -type groupAuthorizedGroupsWrapperData struct { +type groupAuthorizedGroupsWrapperDataDS struct { Items types.List `tfsdk:"items"` GroupCount types.Int64 `tfsdk:"group_count"` } -var groupGroupAttrTypes = objectAttrsTypeGroupGroup(false) -var groupGroupAttrTypesRecurse = objectAttrsTypeGroupGroup(true) +var groupGroupAttrTypesRS = objectAttrsTypeRSGroupGroup(false) +var groupGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup(true) -type groupGroupData struct { +type groupGroupDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationAdministration types.Bool `tfsdk:"application_administration"` + AuditConfig types.Object `tfsdk:"audit_config"` + AuditRequested types.Bool `tfsdk:"audit_requested"` + Auditor types.Bool `tfsdk:"auditor"` + AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` + AuthorizingGroupDelegationUUID types.String `tfsdk:"authorizing_group_delegation_uuid"` + AuthorizingGroupMembershipUUID types.String `tfsdk:"authorizing_group_membership_uuid"` + AuthorizingGroupProvisioningUUID types.String `tfsdk:"authorizing_group_provisioning_uuid"` + AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` + ClassificationUUID types.String `tfsdk:"classification_uuid"` + Description types.String `tfsdk:"description"` + ExtendedAccess types.String `tfsdk:"extended_access"` + HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` + NestedUnderUUID types.String `tfsdk:"nested_under_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + PrivateGroup types.Bool `tfsdk:"private_group"` + RecordTrail types.Bool `tfsdk:"record_trail"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + SingleManaged types.Bool `tfsdk:"single_managed"` + VaultRecovery types.String `tfsdk:"vault_recovery"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupAttrTypesDS = objectAttrsTypeDSGroupGroup(false) +var groupGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup(true) + +type groupGroupDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Admin types.Bool `tfsdk:"admin"` @@ -865,7 +1710,7 @@ type groupGroupData struct { AuditConfig types.Object `tfsdk:"audit_config"` AuditRequested types.Bool `tfsdk:"audit_requested"` Auditor types.Bool `tfsdk:"auditor"` - AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` + AuthorizingGroupAuditing types.Object `tfsdk:"authorizing_group_auditing"` AuthorizingGroupDelegation types.Object `tfsdk:"authorizing_group_delegation"` AuthorizingGroupMembership types.Object `tfsdk:"authorizing_group_membership"` AuthorizingGroupProvisioning types.Object `tfsdk:"authorizing_group_provisioning"` @@ -884,10 +1729,10 @@ type groupGroupData struct { VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` } -var groupGroupAccountAttrTypes = objectAttrsTypeGroupGroupAccount(false) -var groupGroupAccountAttrTypesRecurse = objectAttrsTypeGroupGroupAccount(true) +var groupGroupAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAccount(false) +var groupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount(true) -type groupGroupAccountData struct { +type groupGroupAccountDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -907,46 +1752,125 @@ type groupGroupAccountData struct { VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` } -var groupGroupAccountLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupAccountLinkableWrapper(false) -var groupGroupAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupAccountLinkableWrapper(true) +var groupGroupAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAccount(false) +var groupGroupAccountAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount(true) + +type groupGroupAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(false) +var groupGroupAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(true) -type groupGroupAccountLinkableWrapperData struct { +type groupGroupAccountLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var groupGroupAccountNestingAttrTypes = objectAttrsTypeGroupGroupAccountNesting(false) -var groupGroupAccountNestingAttrTypesRecurse = objectAttrsTypeGroupGroupAccountNesting(true) +var groupGroupAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(false) +var groupGroupAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(true) + +type groupGroupAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAccountNestingAttrTypesRS = objectAttrsTypeRSGroupGroupAccountNesting(false) +var groupGroupAccountNestingAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountNesting(true) + +type groupGroupAccountNestingDataRS struct { + Connected types.Bool `tfsdk:"connected"` +} + +var groupGroupAccountNestingAttrTypesDS = objectAttrsTypeDSGroupGroupAccountNesting(false) +var groupGroupAccountNestingAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountNesting(true) -type groupGroupAccountNestingData struct { +type groupGroupAccountNestingDataDS struct { Connected types.Bool `tfsdk:"connected"` } -var groupGroupAccountStatusAttrTypes = objectAttrsTypeGroupGroupAccountStatus(false) -var groupGroupAccountStatusAttrTypesRecurse = objectAttrsTypeGroupGroupAccountStatus(true) +var groupGroupAccountStatusAttrTypesRS = objectAttrsTypeRSGroupGroupAccountStatus(false) +var groupGroupAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountStatus(true) -type groupGroupAccountStatusData struct { +type groupGroupAccountStatusDataRS struct { Folder types.Object `tfsdk:"folder"` VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` } -var groupGroupAccount_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupAccount_additionalObjects(false) -var groupGroupAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupAccount_additionalObjects(true) +var groupGroupAccountStatusAttrTypesDS = objectAttrsTypeDSGroupGroupAccountStatus(false) +var groupGroupAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountStatus(true) -type groupGroupAccount_additionalObjectsData struct { +type groupGroupAccountStatusDataDS struct { + Folder types.Object `tfsdk:"folder"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAccount_additionalObjects(false) +var groupGroupAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount_additionalObjects(true) + +type groupGroupAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAccount_additionalObjects(false) +var groupGroupAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount_additionalObjects(true) + +type groupGroupAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupAdminMailAttrTypes = objectAttrsTypeGroupGroupAdminMail(false) -var groupGroupAdminMailAttrTypesRecurse = objectAttrsTypeGroupGroupAdminMail(true) +var groupGroupAdminMailAttrTypesRS = objectAttrsTypeRSGroupGroupAdminMail(false) +var groupGroupAdminMailAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAdminMail(true) + +type groupGroupAdminMailDataRS struct { + Body types.String `tfsdk:"body"` +} + +var groupGroupAdminMailAttrTypesDS = objectAttrsTypeDSGroupGroupAdminMail(false) +var groupGroupAdminMailAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAdminMail(true) -type groupGroupAdminMailData struct { +type groupGroupAdminMailDataDS struct { Body types.String `tfsdk:"body"` } -var groupGroupAuditAttrTypes = objectAttrsTypeGroupGroupAudit(false) -var groupGroupAuditAttrTypesRecurse = objectAttrsTypeGroupGroupAudit(true) +var groupGroupAuditAttrTypesRS = objectAttrsTypeRSGroupGroupAudit(false) +var groupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit(true) + +type groupGroupAuditDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var groupGroupAuditAttrTypesDS = objectAttrsTypeDSGroupGroupAudit(false) +var groupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit(true) -type groupGroupAuditData struct { +type groupGroupAuditDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Accounts types.List `tfsdk:"accounts"` @@ -963,10 +1887,30 @@ type groupGroupAuditData struct { SubmittedBy types.String `tfsdk:"submitted_by"` } -var groupGroupAuditAccountAttrTypes = objectAttrsTypeGroupGroupAuditAccount(false) -var groupGroupAuditAccountAttrTypesRecurse = objectAttrsTypeGroupGroupAuditAccount(true) +var groupGroupAuditAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAuditAccount(false) +var groupGroupAuditAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditAccount(true) + +type groupGroupAuditAccountDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AccountValid types.Bool `tfsdk:"account_valid"` + Action types.String `tfsdk:"action"` + Comment types.String `tfsdk:"comment"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + DisplayName types.String `tfsdk:"display_name"` + EndDate types.String `tfsdk:"end_date"` + LastActive types.String `tfsdk:"last_active"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + Rights types.String `tfsdk:"rights"` + Username types.String `tfsdk:"username"` +} + +var groupGroupAuditAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAuditAccount(false) +var groupGroupAuditAccountAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditAccount(true) -type groupGroupAuditAccountData struct { +type groupGroupAuditAccountDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -983,33 +1927,70 @@ type groupGroupAuditAccountData struct { Username types.String `tfsdk:"username"` } -var groupGroupAuditConfigAttrTypes = objectAttrsTypeGroupGroupAuditConfig(false) -var groupGroupAuditConfigAttrTypesRecurse = objectAttrsTypeGroupGroupAuditConfig(true) +var groupGroupAuditConfigAttrTypesRS = objectAttrsTypeRSGroupGroupAuditConfig(false) +var groupGroupAuditConfigAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditConfig(true) + +type groupGroupAuditConfigDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Months types.List `tfsdk:"months"` +} + +var groupGroupAuditConfigAttrTypesDS = objectAttrsTypeDSGroupGroupAuditConfig(false) +var groupGroupAuditConfigAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditConfig(true) -type groupGroupAuditConfigData struct { +type groupGroupAuditConfigDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Months types.List `tfsdk:"months"` } -var groupGroupAuditLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupAuditLinkableWrapper(false) -var groupGroupAuditLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupAuditLinkableWrapper(true) +var groupGroupAuditLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(false) +var groupGroupAuditLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(true) + +type groupGroupAuditLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAuditLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(false) +var groupGroupAuditLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(true) -type groupGroupAuditLinkableWrapperData struct { +type groupGroupAuditLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupAudit_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupAudit_additionalObjects(false) -var groupGroupAudit_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupAudit_additionalObjects(true) +var groupGroupAudit_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAudit_additionalObjects(false) +var groupGroupAudit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit_additionalObjects(true) + +type groupGroupAudit_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAudit_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAudit_additionalObjects(false) +var groupGroupAudit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit_additionalObjects(true) -type groupGroupAudit_additionalObjectsData struct { +type groupGroupAudit_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupAuditingInfoAttrTypes = objectAttrsTypeGroupGroupAuditingInfo(false) -var groupGroupAuditingInfoAttrTypesRecurse = objectAttrsTypeGroupGroupAuditingInfo(true) +var groupGroupAuditingInfoAttrTypesRS = objectAttrsTypeRSGroupGroupAuditingInfo(false) +var groupGroupAuditingInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditingInfo(true) + +type groupGroupAuditingInfoDataRS struct { + AuditDueDate types.String `tfsdk:"audit_due_date"` + LastAuditDate types.String `tfsdk:"last_audit_date"` + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrDisabledAccounts types.Int64 `tfsdk:"nr_disabled_accounts"` + NrDisabledManagers types.Int64 `tfsdk:"nr_disabled_managers"` + NrExpiredVaultRecords types.Int64 `tfsdk:"nr_expired_vault_records"` + NrManagers types.Int64 `tfsdk:"nr_managers"` + NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` +} + +var groupGroupAuditingInfoAttrTypesDS = objectAttrsTypeDSGroupGroupAuditingInfo(false) +var groupGroupAuditingInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditingInfo(true) -type groupGroupAuditingInfoData struct { +type groupGroupAuditingInfoDataDS struct { AuditDueDate types.String `tfsdk:"audit_due_date"` LastAuditDate types.String `tfsdk:"last_audit_date"` NrAccounts types.Int64 `tfsdk:"nr_accounts"` @@ -1020,10 +2001,33 @@ type groupGroupAuditingInfoData struct { NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` } -var groupGroupClassificationAttrTypes = objectAttrsTypeGroupGroupClassification(false) -var groupGroupClassificationAttrTypesRecurse = objectAttrsTypeGroupGroupClassification(true) +var groupGroupClassificationAttrTypesRS = objectAttrsTypeRSGroupGroupClassification(false) +var groupGroupClassificationAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification(true) + +type groupGroupClassificationDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` + AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` + AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` + AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` + DefaultClassification types.Bool `tfsdk:"default_classification"` + Description types.String `tfsdk:"description"` + MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` + MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` + RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` + RequiredMonths types.List `tfsdk:"required_months"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupClassificationAttrTypesDS = objectAttrsTypeDSGroupGroupClassification(false) +var groupGroupClassificationAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification(true) -type groupGroupClassificationData struct { +type groupGroupClassificationDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` @@ -1043,101 +2047,204 @@ type groupGroupClassificationData struct { VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` } -var groupGroupClassificationInfoAttrTypes = objectAttrsTypeGroupGroupClassificationInfo(false) -var groupGroupClassificationInfoAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationInfo(true) +var groupGroupClassificationInfoAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationInfo(false) +var groupGroupClassificationInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationInfo(true) + +type groupGroupClassificationInfoDataRS struct { + NrGroups types.Int64 `tfsdk:"nr_groups"` +} + +var groupGroupClassificationInfoAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationInfo(false) +var groupGroupClassificationInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationInfo(true) -type groupGroupClassificationInfoData struct { +type groupGroupClassificationInfoDataDS struct { NrGroups types.Int64 `tfsdk:"nr_groups"` } -var groupGroupClassificationLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupClassificationLinkableWrapper(false) -var groupGroupClassificationLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationLinkableWrapper(true) +var groupGroupClassificationLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(false) +var groupGroupClassificationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(true) -type groupGroupClassificationLinkableWrapperData struct { +type groupGroupClassificationLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var groupGroupClassificationPrimerAttrTypes = objectAttrsTypeGroupGroupClassificationPrimer(false) -var groupGroupClassificationPrimerAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationPrimer(true) +var groupGroupClassificationLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(false) +var groupGroupClassificationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(true) -type groupGroupClassificationPrimerData struct { +type groupGroupClassificationLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClassificationPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationPrimer(false) +var groupGroupClassificationPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationPrimer(true) + +type groupGroupClassificationPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupClassificationPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationPrimer(false) +var groupGroupClassificationPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationPrimer(true) + +type groupGroupClassificationPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` } -var groupGroupClassificationUpdateAttrTypes = objectAttrsTypeGroupGroupClassificationUpdate(false) -var groupGroupClassificationUpdateAttrTypesRecurse = objectAttrsTypeGroupGroupClassificationUpdate(true) +var groupGroupClassificationUpdateAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationUpdate(false) +var groupGroupClassificationUpdateAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationUpdate(true) -type groupGroupClassificationUpdateData struct { +type groupGroupClassificationUpdateDataRS struct { ClassificatonUUID types.String `tfsdk:"classificaton_uuid"` } -var groupGroupClassification_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupClassification_additionalObjects(false) -var groupGroupClassification_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupClassification_additionalObjects(true) +var groupGroupClassificationUpdateAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationUpdate(false) +var groupGroupClassificationUpdateAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationUpdate(true) + +type groupGroupClassificationUpdateDataDS struct { + Classificaton types.Object `tfsdk:"classificaton"` +} + +var groupGroupClassification_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClassification_additionalObjects(false) +var groupGroupClassification_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification_additionalObjects(true) + +type groupGroupClassification_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Info types.Object `tfsdk:"info"` +} + +var groupGroupClassification_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClassification_additionalObjects(false) +var groupGroupClassification_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification_additionalObjects(true) -type groupGroupClassification_additionalObjectsData struct { +type groupGroupClassification_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Info types.Object `tfsdk:"info"` } -var groupGroupClientAttrTypes = objectAttrsTypeGroupGroupClient(false) -var groupGroupClientAttrTypesRecurse = objectAttrsTypeGroupGroupClient(true) +var groupGroupClientAttrTypesRS = objectAttrsTypeRSGroupGroupClient(false) +var groupGroupClientAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient(true) -type groupGroupClientData struct { +type groupGroupClientDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ActivationRequired types.Bool `tfsdk:"activation_required"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - Client types.Object `tfsdk:"client"` - Group types.Object `tfsdk:"group"` + ClientUUID types.String `tfsdk:"client_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` } -var groupGroupClientLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupClientLinkableWrapper(false) -var groupGroupClientLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupClientLinkableWrapper(true) +var groupGroupClientAttrTypesDS = objectAttrsTypeDSGroupGroupClient(false) +var groupGroupClientAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient(true) + +type groupGroupClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Client types.Object `tfsdk:"client"` + Group types.Object `tfsdk:"group"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` +} + +var groupGroupClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClientLinkableWrapper(false) +var groupGroupClientLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClientLinkableWrapper(true) + +type groupGroupClientLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClientLinkableWrapper(false) +var groupGroupClientLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClientLinkableWrapper(true) -type groupGroupClientLinkableWrapperData struct { +type groupGroupClientLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupClient_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupClient_additionalObjects(false) -var groupGroupClient_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupClient_additionalObjects(true) +var groupGroupClient_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClient_additionalObjects(false) +var groupGroupClient_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient_additionalObjects(true) + +type groupGroupClient_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupClient_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClient_additionalObjects(false) +var groupGroupClient_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient_additionalObjects(true) -type groupGroupClient_additionalObjectsData struct { +type groupGroupClient_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupFolderAttrTypes = objectAttrsTypeGroupGroupFolder(false) -var groupGroupFolderAttrTypesRecurse = objectAttrsTypeGroupGroupFolder(true) +var groupGroupFolderAttrTypesRS = objectAttrsTypeRSGroupGroupFolder(false) +var groupGroupFolderAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder(true) + +type groupGroupFolderDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` +} + +var groupGroupFolderAttrTypesDS = objectAttrsTypeDSGroupGroupFolder(false) +var groupGroupFolderAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder(true) -type groupGroupFolderData struct { +type groupGroupFolderDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Name types.String `tfsdk:"name"` } -var groupGroupFolderLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupFolderLinkableWrapper(false) -var groupGroupFolderLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupFolderLinkableWrapper(true) +var groupGroupFolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(false) +var groupGroupFolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(true) + +type groupGroupFolderLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupFolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(false) +var groupGroupFolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(true) -type groupGroupFolderLinkableWrapperData struct { +type groupGroupFolderLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupFolder_additionalObjectsAttrTypes = objectAttrsTypeGroupGroupFolder_additionalObjects(false) -var groupGroupFolder_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroupFolder_additionalObjects(true) +var groupGroupFolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupFolder_additionalObjects(false) +var groupGroupFolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder_additionalObjects(true) -type groupGroupFolder_additionalObjectsData struct { +type groupGroupFolder_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupInfoAttrTypes = objectAttrsTypeGroupGroupInfo(false) -var groupGroupInfoAttrTypesRecurse = objectAttrsTypeGroupGroupInfo(true) +var groupGroupFolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupFolder_additionalObjects(false) +var groupGroupFolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder_additionalObjects(true) -type groupGroupInfoData struct { +type groupGroupFolder_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupInfoAttrTypesRS = objectAttrsTypeRSGroupGroupInfo(false) +var groupGroupInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupInfo(true) + +type groupGroupInfoDataRS struct { + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` + NrAudits types.Int64 `tfsdk:"nr_audits"` + NrClients types.Int64 `tfsdk:"nr_clients"` + NrProvisionedSystems types.Int64 `tfsdk:"nr_provisioned_systems"` + NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` +} + +var groupGroupInfoAttrTypesDS = objectAttrsTypeDSGroupGroupInfo(false) +var groupGroupInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupInfo(true) + +type groupGroupInfoDataDS struct { NrAccounts types.Int64 `tfsdk:"nr_accounts"` NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` NrAudits types.Int64 `tfsdk:"nr_audits"` @@ -1146,17 +2253,35 @@ type groupGroupInfoData struct { NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` } -var groupGroupLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupLinkableWrapper(false) -var groupGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupLinkableWrapper(true) +var groupGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupLinkableWrapper(false) +var groupGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupLinkableWrapper(true) + +type groupGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupLinkableWrapper(false) +var groupGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupLinkableWrapper(true) -type groupGroupLinkableWrapperData struct { +type groupGroupLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupPrimerAttrTypes = objectAttrsTypeGroupGroupPrimer(false) -var groupGroupPrimerAttrTypesRecurse = objectAttrsTypeGroupGroupPrimer(true) +var groupGroupPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupPrimer(false) +var groupGroupPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupPrimer(true) + +type groupGroupPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupPrimer(false) +var groupGroupPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupPrimer(true) -type groupGroupPrimerData struct { +type groupGroupPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Admin types.Bool `tfsdk:"admin"` @@ -1164,25 +2289,73 @@ type groupGroupPrimerData struct { UUID types.String `tfsdk:"uuid"` } -var groupGroupPrimerLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupPrimerLinkableWrapper(false) -var groupGroupPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupPrimerLinkableWrapper(true) +var groupGroupPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(false) +var groupGroupPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(true) + +type groupGroupPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(false) +var groupGroupPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(true) -type groupGroupPrimerLinkableWrapperData struct { +type groupGroupPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupSegmentedLinkableWrapperAttrTypes = objectAttrsTypeGroupGroupSegmentedLinkableWrapper(false) -var groupGroupSegmentedLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupGroupSegmentedLinkableWrapper(true) +var groupGroupSegmentedLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(false) +var groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(true) + +type groupGroupSegmentedLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` + Segments types.List `tfsdk:"segments"` +} + +var groupGroupSegmentedLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(false) +var groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(true) -type groupGroupSegmentedLinkableWrapperData struct { +type groupGroupSegmentedLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` Segments types.List `tfsdk:"segments"` } -var groupGroup_additionalObjectsAttrTypes = objectAttrsTypeGroupGroup_additionalObjects(false) -var groupGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupGroup_additionalObjects(true) +var groupGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroup_additionalObjects(false) +var groupGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup_additionalObjects(true) + +type groupGroup_additionalObjectsDataRS struct { + Accounts types.Object `tfsdk:"accounts"` + AdministeredClients types.Object `tfsdk:"administered_clients"` + AdministeredSystems types.Object `tfsdk:"administered_systems"` + Admins types.Object `tfsdk:"admins"` + Audit types.Object `tfsdk:"audit"` + AuthorizedGroups types.Object `tfsdk:"authorized_groups"` + ClientPermissions types.Object `tfsdk:"client_permissions"` + Clients types.Object `tfsdk:"clients"` + ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` + Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` + Groupinfo types.Object `tfsdk:"groupinfo"` + Helpdesk types.Object `tfsdk:"helpdesk"` + Markers types.Object `tfsdk:"markers"` + Myaccount types.Object `tfsdk:"myaccount"` + Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` + NestedGroups types.Object `tfsdk:"nested_groups"` + OwnedClients types.Object `tfsdk:"owned_clients"` + OwnedDirectories types.Object `tfsdk:"owned_directories"` + OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` + OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` + OwnedSystems types.Object `tfsdk:"owned_systems"` + RecentAudits types.Object `tfsdk:"recent_audits"` + Requeststatus types.String `tfsdk:"requeststatus"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` + Systems types.Object `tfsdk:"systems"` + Vault types.Object `tfsdk:"vault"` + Webhooks types.Object `tfsdk:"webhooks"` +} + +var groupGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroup_additionalObjects(false) +var groupGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup_additionalObjects(true) -type groupGroup_additionalObjectsData struct { +type groupGroup_additionalObjectsDataDS struct { Accounts types.Object `tfsdk:"accounts"` AdministeredClients types.Object `tfsdk:"administered_clients"` AdministeredSystems types.Object `tfsdk:"administered_systems"` @@ -1212,10 +2385,10 @@ type groupGroup_additionalObjectsData struct { Webhooks types.Object `tfsdk:"webhooks"` } -var groupGroupsAuditStatsAttrTypes = objectAttrsTypeGroupGroupsAuditStats(false) -var groupGroupsAuditStatsAttrTypesRecurse = objectAttrsTypeGroupGroupsAuditStats(true) +var groupGroupsAuditStatsAttrTypesRS = objectAttrsTypeRSGroupGroupsAuditStats(false) +var groupGroupsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupsAuditStats(true) -type groupGroupsAuditStatsData struct { +type groupGroupsAuditStatsDataRS struct { AuditedGroups types.Int64 `tfsdk:"audited_groups"` Classifications types.List `tfsdk:"classifications"` OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` @@ -1225,10 +2398,35 @@ type groupGroupsAuditStatsData struct { VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` } -var groupProvisioningGroupAttrTypes = objectAttrsTypeGroupProvisioningGroup(false) -var groupProvisioningGroupAttrTypesRecurse = objectAttrsTypeGroupProvisioningGroup(true) +var groupGroupsAuditStatsAttrTypesDS = objectAttrsTypeDSGroupGroupsAuditStats(false) +var groupGroupsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupsAuditStats(true) + +type groupGroupsAuditStatsDataDS struct { + AuditedGroups types.Int64 `tfsdk:"audited_groups"` + Classifications types.List `tfsdk:"classifications"` + OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` + OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` + UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` + ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` + VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` +} + +var groupProvisioningGroupAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup(false) +var groupProvisioningGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup(true) + +type groupProvisioningGroupDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + GroupUUID types.String `tfsdk:"group_uuid"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var groupProvisioningGroupAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup(false) +var groupProvisioningGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup(true) -type groupProvisioningGroupData struct { +type groupProvisioningGroupDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ActivationRequired types.Bool `tfsdk:"activation_required"` @@ -1237,24 +2435,38 @@ type groupProvisioningGroupData struct { GroupOnSystem types.Object `tfsdk:"group_on_system"` } -var groupProvisioningGroupLinkableWrapperAttrTypes = objectAttrsTypeGroupProvisioningGroupLinkableWrapper(false) -var groupProvisioningGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeGroupProvisioningGroupLinkableWrapper(true) +var groupProvisioningGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false) +var groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(true) + +type groupProvisioningGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupProvisioningGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false) +var groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(true) -type groupProvisioningGroupLinkableWrapperData struct { +type groupProvisioningGroupLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupProvisioningGroup_additionalObjectsAttrTypes = objectAttrsTypeGroupProvisioningGroup_additionalObjects(false) -var groupProvisioningGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeGroupProvisioningGroup_additionalObjects(true) +var groupProvisioningGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false) +var groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(true) + +type groupProvisioningGroup_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupProvisioningGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false) +var groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(true) -type groupProvisioningGroup_additionalObjectsData struct { +type groupProvisioningGroup_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var launchpadDisplayedLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadDisplayedLaunchpadTile(false) -var launchpadDisplayedLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadDisplayedLaunchpadTile(true) +var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) +var launchpadDisplayedLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(true) -type launchpadDisplayedLaunchpadTileData struct { +type launchpadDisplayedLaunchpadTileDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` GroupUUID types.String `tfsdk:"group_uuid"` @@ -1265,17 +2477,38 @@ type launchpadDisplayedLaunchpadTileData struct { Uri types.String `tfsdk:"uri"` } -var launchpadDisplayedLaunchpadTilesAttrTypes = objectAttrsTypeLaunchpadDisplayedLaunchpadTiles(false) -var launchpadDisplayedLaunchpadTilesAttrTypesRecurse = objectAttrsTypeLaunchpadDisplayedLaunchpadTiles(true) +var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) +var launchpadDisplayedLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(true) + +type launchpadDisplayedLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + Logo types.List `tfsdk:"logo"` + Tile types.Object `tfsdk:"tile"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadDisplayedLaunchpadTilesAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(false) +var launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(true) + +type launchpadDisplayedLaunchpadTilesDataRS struct { + Items types.List `tfsdk:"items"` +} + +var launchpadDisplayedLaunchpadTilesAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(false) +var launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(true) -type launchpadDisplayedLaunchpadTilesData struct { +type launchpadDisplayedLaunchpadTilesDataDS struct { Items types.List `tfsdk:"items"` } -var launchpadLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadLaunchpadTile(false) -var launchpadLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTile(true) +var launchpadLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile(false) +var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile(true) -type launchpadLaunchpadTileData struct { +type launchpadLaunchpadTileDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1287,32 +2520,69 @@ type launchpadLaunchpadTileData struct { VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` } -var launchpadLaunchpadTileLinkableWrapperAttrTypes = objectAttrsTypeLaunchpadLaunchpadTileLinkableWrapper(false) -var launchpadLaunchpadTileLinkableWrapperAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTileLinkableWrapper(true) +var launchpadLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile(false) +var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile(true) + +type launchpadLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` +} + +var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) +var launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(true) + +type launchpadLaunchpadTileLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) +var launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(true) -type launchpadLaunchpadTileLinkableWrapperData struct { +type launchpadLaunchpadTileLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var launchpadLaunchpadTilePrimerAttrTypes = objectAttrsTypeLaunchpadLaunchpadTilePrimer(false) -var launchpadLaunchpadTilePrimerAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTilePrimer(true) +var launchpadLaunchpadTilePrimerAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(false) +var launchpadLaunchpadTilePrimerAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(true) + +type launchpadLaunchpadTilePrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var launchpadLaunchpadTilePrimerAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(false) +var launchpadLaunchpadTilePrimerAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(true) -type launchpadLaunchpadTilePrimerData struct { +type launchpadLaunchpadTilePrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` } -var launchpadLaunchpadTile_additionalObjectsAttrTypes = objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false) -var launchpadLaunchpadTile_additionalObjectsAttrTypesRecurse = objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(true) +var launchpadLaunchpadTile_additionalObjectsAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false) +var launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(true) + +type launchpadLaunchpadTile_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadLaunchpadTile_additionalObjectsAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false) +var launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(true) -type launchpadLaunchpadTile_additionalObjectsData struct { +type launchpadLaunchpadTile_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var launchpadManualLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadManualLaunchpadTile(false) -var launchpadManualLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadManualLaunchpadTile(true) +var launchpadManualLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadManualLaunchpadTile(false) +var launchpadManualLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadManualLaunchpadTile(true) -type launchpadManualLaunchpadTileData struct { +type launchpadManualLaunchpadTileDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1326,10 +2596,27 @@ type launchpadManualLaunchpadTileData struct { Uri types.String `tfsdk:"uri"` } -var launchpadSsoApplicationLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(false) -var launchpadSsoApplicationLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(true) +var launchpadManualLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadManualLaunchpadTile(false) +var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadManualLaunchpadTile(true) + +type launchpadManualLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) +var launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(true) -type launchpadSsoApplicationLaunchpadTileData struct { +type launchpadSsoApplicationLaunchpadTileDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1342,10 +2629,26 @@ type launchpadSsoApplicationLaunchpadTileData struct { Uri types.String `tfsdk:"uri"` } -var launchpadVaultRecordLaunchpadTileAttrTypes = objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(false) -var launchpadVaultRecordLaunchpadTileAttrTypesRecurse = objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(true) +var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) +var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(true) + +type launchpadSsoApplicationLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadVaultRecordLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false) +var launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(true) -type launchpadVaultRecordLaunchpadTileData struct { +type launchpadVaultRecordLaunchpadTileDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1357,10 +2660,47 @@ type launchpadVaultRecordLaunchpadTileData struct { VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` } -var licenseKeyHubLicenseInfoAttrTypes = objectAttrsTypeLicenseKeyHubLicenseInfo(false) -var licenseKeyHubLicenseInfoAttrTypesRecurse = objectAttrsTypeLicenseKeyHubLicenseInfo(true) +var launchpadVaultRecordLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false) +var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(true) + +type launchpadVaultRecordLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` +} + +var licenseKeyHubLicenseInfoAttrTypesRS = objectAttrsTypeRSLicenseKeyHubLicenseInfo(false) +var licenseKeyHubLicenseInfoAttrTypesRSRecurse = objectAttrsTypeRSLicenseKeyHubLicenseInfo(true) + +type licenseKeyHubLicenseInfoDataRS struct { + CurrentLicenseStatus types.String `tfsdk:"current_license_status"` + CustomerCompany types.String `tfsdk:"customer_company"` + CustomerContact types.String `tfsdk:"customer_contact"` + CustomerDomains types.List `tfsdk:"customer_domains"` + Details types.List `tfsdk:"details"` + ExpirationTime types.String `tfsdk:"expiration_time"` + Features types.List `tfsdk:"features"` + IssueTime types.String `tfsdk:"issue_time"` + KeyHubDomain types.String `tfsdk:"key_hub_domain"` + LicenseKey types.String `tfsdk:"license_key"` + NotBeforeTime types.String `tfsdk:"not_before_time"` + UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` + UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` + UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` + UUID types.String `tfsdk:"uuid"` + Version types.Int64 `tfsdk:"version"` +} + +var licenseKeyHubLicenseInfoAttrTypesDS = objectAttrsTypeDSLicenseKeyHubLicenseInfo(false) +var licenseKeyHubLicenseInfoAttrTypesDSRecurse = objectAttrsTypeDSLicenseKeyHubLicenseInfo(true) -type licenseKeyHubLicenseInfoData struct { +type licenseKeyHubLicenseInfoDataDS struct { CurrentLicenseStatus types.String `tfsdk:"current_license_status"` CustomerCompany types.String `tfsdk:"customer_company"` CustomerContact types.String `tfsdk:"customer_contact"` @@ -1379,166 +2719,322 @@ type licenseKeyHubLicenseInfoData struct { Version types.Int64 `tfsdk:"version"` } -var markItemMarkerAttrTypes = objectAttrsTypeMarkItemMarker(false) -var markItemMarkerAttrTypesRecurse = objectAttrsTypeMarkItemMarker(true) +var markItemMarkerAttrTypesRS = objectAttrsTypeRSMarkItemMarker(false) +var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) + +type markItemMarkerDataRS struct { + Level types.String `tfsdk:"level"` + MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + Parameters types.Object `tfsdk:"parameters"` +} + +var markItemMarkerAttrTypesDS = objectAttrsTypeDSMarkItemMarker(false) +var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) -type markItemMarkerData struct { +type markItemMarkerDataDS struct { Level types.String `tfsdk:"level"` MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` Parameters types.Object `tfsdk:"parameters"` } -var markItemMarker_parametersAttrTypes = objectAttrsTypeMarkItemMarker_parameters(false) -var markItemMarker_parametersAttrTypesRecurse = objectAttrsTypeMarkItemMarker_parameters(true) +var markItemMarker_parametersAttrTypesRS = objectAttrsTypeRSMarkItemMarker_parameters(false) +var markItemMarker_parametersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker_parameters(true) + +type markItemMarker_parametersDataRS struct { +} + +var markItemMarker_parametersAttrTypesDS = objectAttrsTypeDSMarkItemMarker_parameters(false) +var markItemMarker_parametersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker_parameters(true) -type markItemMarker_parametersData struct { +type markItemMarker_parametersDataDS struct { +} + +var markItemMarkersAttrTypesRS = objectAttrsTypeRSMarkItemMarkers(false) +var markItemMarkersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarkers(true) + +type markItemMarkersDataRS struct { + Markers types.List `tfsdk:"markers"` } -var markItemMarkersAttrTypes = objectAttrsTypeMarkItemMarkers(false) -var markItemMarkersAttrTypesRecurse = objectAttrsTypeMarkItemMarkers(true) +var markItemMarkersAttrTypesDS = objectAttrsTypeDSMarkItemMarkers(false) +var markItemMarkersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarkers(true) -type markItemMarkersData struct { +type markItemMarkersDataDS struct { Markers types.List `tfsdk:"markers"` } -var notificationCertificateExpiredNotificationAttrTypes = objectAttrsTypeNotificationCertificateExpiredNotification(false) -var notificationCertificateExpiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationCertificateExpiredNotification(true) +var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) +var notificationCertificateExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationCertificateExpiredNotification(true) -type notificationCertificateExpiredNotificationData struct { +type notificationCertificateExpiredNotificationDataRS struct { Certificate types.Object `tfsdk:"certificate"` Directory types.Object `tfsdk:"directory"` Expiration types.String `tfsdk:"expiration"` LdapClient types.Object `tfsdk:"ldap_client"` System types.Object `tfsdk:"system"` Usage types.String `tfsdk:"usage"` - WebhookUUID types.String `tfsdk:"webhook_uuid"` + Webhook types.Object `tfsdk:"webhook"` } -var notificationGroupAuditRequiredNotificationAttrTypes = objectAttrsTypeNotificationGroupAuditRequiredNotification(false) -var notificationGroupAuditRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationGroupAuditRequiredNotification(true) +var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) +var notificationCertificateExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationCertificateExpiredNotification(true) -type notificationGroupAuditRequiredNotificationData struct { +type notificationCertificateExpiredNotificationDataDS struct { + Certificate types.Object `tfsdk:"certificate"` + Directory types.Object `tfsdk:"directory"` + Expiration types.String `tfsdk:"expiration"` + LdapClient types.Object `tfsdk:"ldap_client"` + System types.Object `tfsdk:"system"` + Usage types.String `tfsdk:"usage"` + Webhook types.Object `tfsdk:"webhook"` +} + +var notificationGroupAuditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(false) +var notificationGroupAuditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(true) + +type notificationGroupAuditRequiredNotificationDataRS struct { + DueDate types.String `tfsdk:"due_date"` + Group types.Object `tfsdk:"group"` + NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` +} + +var notificationGroupAuditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(false) +var notificationGroupAuditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(true) + +type notificationGroupAuditRequiredNotificationDataDS struct { DueDate types.String `tfsdk:"due_date"` Group types.Object `tfsdk:"group"` NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` } -var notificationGroupEditRequiredNotificationAttrTypes = objectAttrsTypeNotificationGroupEditRequiredNotification(false) -var notificationGroupEditRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationGroupEditRequiredNotification(true) +var notificationGroupEditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification(false) +var notificationGroupEditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification(true) -type notificationGroupEditRequiredNotificationData struct { +type notificationGroupEditRequiredNotificationDataRS struct { Group types.Object `tfsdk:"group"` Parameters types.Object `tfsdk:"parameters"` Reason types.String `tfsdk:"reason"` } -var notificationGroupEditRequiredNotification_parametersAttrTypes = objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(false) -var notificationGroupEditRequiredNotification_parametersAttrTypesRecurse = objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(true) +var notificationGroupEditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification(false) +var notificationGroupEditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification(true) -type notificationGroupEditRequiredNotification_parametersData struct { +type notificationGroupEditRequiredNotificationDataDS struct { + Group types.Object `tfsdk:"group"` + Parameters types.Object `tfsdk:"parameters"` + Reason types.String `tfsdk:"reason"` } -var notificationInvalidSignaturesDetectedNotificationAttrTypes = objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(false) -var notificationInvalidSignaturesDetectedNotificationAttrTypesRecurse = objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(true) +var notificationGroupEditRequiredNotification_parametersAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(false) +var notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(true) -type notificationInvalidSignaturesDetectedNotificationData struct { +type notificationGroupEditRequiredNotification_parametersDataRS struct { } -var notificationLicenseStatusNotificationAttrTypes = objectAttrsTypeNotificationLicenseStatusNotification(false) -var notificationLicenseStatusNotificationAttrTypesRecurse = objectAttrsTypeNotificationLicenseStatusNotification(true) +var notificationGroupEditRequiredNotification_parametersAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(false) +var notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(true) -type notificationLicenseStatusNotificationData struct { - ActiveAccounts types.Int64 `tfsdk:"active_accounts"` - LicenseInfo types.Object `tfsdk:"license_info"` +type notificationGroupEditRequiredNotification_parametersDataDS struct { } -var notificationModificationRequestNotificationAttrTypes = objectAttrsTypeNotificationModificationRequestNotification(false) -var notificationModificationRequestNotificationAttrTypesRecurse = objectAttrsTypeNotificationModificationRequestNotification(true) +var notificationInvalidSignaturesDetectedNotificationAttrTypesRS = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(false) +var notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(true) -type notificationModificationRequestNotificationData struct { - Admins types.List `tfsdk:"admins"` - Groups types.List `tfsdk:"groups"` - Request types.Object `tfsdk:"request"` +type notificationInvalidSignaturesDetectedNotificationDataRS struct { } -var notificationNotificationAttrTypes = objectAttrsTypeNotificationNotification(false) -var notificationNotificationAttrTypesRecurse = objectAttrsTypeNotificationNotification(true) +var notificationInvalidSignaturesDetectedNotificationAttrTypesDS = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(false) +var notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(true) -type notificationNotificationData struct { +type notificationInvalidSignaturesDetectedNotificationDataDS struct { } -var notificationNotificationsAttrTypes = objectAttrsTypeNotificationNotifications(false) -var notificationNotificationsAttrTypesRecurse = objectAttrsTypeNotificationNotifications(true) +var notificationLicenseStatusNotificationAttrTypesRS = objectAttrsTypeRSNotificationLicenseStatusNotification(false) +var notificationLicenseStatusNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationLicenseStatusNotification(true) -type notificationNotificationsData struct { - Items types.List `tfsdk:"items"` +type notificationLicenseStatusNotificationDataRS struct { + ActiveAccounts types.Int64 `tfsdk:"active_accounts"` + LicenseInfo types.Object `tfsdk:"license_info"` } -var notificationOldApiVersionUsageNotificationAttrTypes = objectAttrsTypeNotificationOldApiVersionUsageNotification(false) -var notificationOldApiVersionUsageNotificationAttrTypesRecurse = objectAttrsTypeNotificationOldApiVersionUsageNotification(true) +var notificationLicenseStatusNotificationAttrTypesDS = objectAttrsTypeDSNotificationLicenseStatusNotification(false) +var notificationLicenseStatusNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationLicenseStatusNotification(true) -type notificationOldApiVersionUsageNotificationData struct { - ApiVersion types.Int64 `tfsdk:"api_version"` - Client types.Object `tfsdk:"client"` +type notificationLicenseStatusNotificationDataDS struct { + ActiveAccounts types.Int64 `tfsdk:"active_accounts"` + LicenseInfo types.Object `tfsdk:"license_info"` } -var notificationProvisionConfigRequiredNotificationAttrTypes = objectAttrsTypeNotificationProvisionConfigRequiredNotification(false) -var notificationProvisionConfigRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationProvisionConfigRequiredNotification(true) +var notificationModificationRequestNotificationAttrTypesRS = objectAttrsTypeRSNotificationModificationRequestNotification(false) +var notificationModificationRequestNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationModificationRequestNotification(true) -type notificationProvisionConfigRequiredNotificationData struct { - Systems types.List `tfsdk:"systems"` +type notificationModificationRequestNotificationDataRS struct { + Admins types.List `tfsdk:"admins"` + Groups types.List `tfsdk:"groups"` + Request types.Object `tfsdk:"request"` } -var notificationRotatingPasswordRequiredNotificationAttrTypes = objectAttrsTypeNotificationRotatingPasswordRequiredNotification(false) -var notificationRotatingPasswordRequiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationRotatingPasswordRequiredNotification(true) +var notificationModificationRequestNotificationAttrTypesDS = objectAttrsTypeDSNotificationModificationRequestNotification(false) +var notificationModificationRequestNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationModificationRequestNotification(true) -type notificationRotatingPasswordRequiredNotificationData struct { - Groups types.List `tfsdk:"groups"` +type notificationModificationRequestNotificationDataDS struct { + Admins types.List `tfsdk:"admins"` + Groups types.List `tfsdk:"groups"` + Request types.Object `tfsdk:"request"` } -var notificationUpdateAvailableNotificationAttrTypes = objectAttrsTypeNotificationUpdateAvailableNotification(false) -var notificationUpdateAvailableNotificationAttrTypesRecurse = objectAttrsTypeNotificationUpdateAvailableNotification(true) +var notificationNotificationAttrTypesRS = objectAttrsTypeRSNotificationNotification(false) +var notificationNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotification(true) -type notificationUpdateAvailableNotificationData struct { - ReleasedAt types.String `tfsdk:"released_at"` +type notificationNotificationDataRS struct { } -var notificationVaultRecordExpiredNotificationAttrTypes = objectAttrsTypeNotificationVaultRecordExpiredNotification(false) -var notificationVaultRecordExpiredNotificationAttrTypesRecurse = objectAttrsTypeNotificationVaultRecordExpiredNotification(true) +var notificationNotificationAttrTypesDS = objectAttrsTypeDSNotificationNotification(false) +var notificationNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotification(true) -type notificationVaultRecordExpiredNotificationData struct { - Record types.Object `tfsdk:"record"` +type notificationNotificationDataDS struct { } -var organizationAccountOrganizationalUnitAttrTypes = objectAttrsTypeOrganizationAccountOrganizationalUnit(false) -var organizationAccountOrganizationalUnitAttrTypesRecurse = objectAttrsTypeOrganizationAccountOrganizationalUnit(true) +var notificationNotificationsAttrTypesRS = objectAttrsTypeRSNotificationNotifications(false) +var notificationNotificationsAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotifications(true) -type organizationAccountOrganizationalUnitData struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` +type notificationNotificationsDataRS struct { + Items types.List `tfsdk:"items"` } -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypes = objectAttrsTypeOrganizationAccountOrganizationalUnitLinkableWrapper(false) -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationAccountOrganizationalUnitLinkableWrapper(true) +var notificationNotificationsAttrTypesDS = objectAttrsTypeDSNotificationNotifications(false) +var notificationNotificationsAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotifications(true) -type organizationAccountOrganizationalUnitLinkableWrapperData struct { +type notificationNotificationsDataDS struct { Items types.List `tfsdk:"items"` } -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypes = objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(false) -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRecurse = objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(true) +var notificationOldApiVersionUsageNotificationAttrTypesRS = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(false) +var notificationOldApiVersionUsageNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(true) -type organizationAccountOrganizationalUnit_additionalObjectsData struct { - Audit types.Object `tfsdk:"audit"` -} +type notificationOldApiVersionUsageNotificationDataRS struct { + ApiVersion types.Int64 `tfsdk:"api_version"` + Client types.Object `tfsdk:"client"` +} + +var notificationOldApiVersionUsageNotificationAttrTypesDS = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(false) +var notificationOldApiVersionUsageNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(true) + +type notificationOldApiVersionUsageNotificationDataDS struct { + ApiVersion types.Int64 `tfsdk:"api_version"` + Client types.Object `tfsdk:"client"` +} + +var notificationProvisionConfigRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(false) +var notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(true) + +type notificationProvisionConfigRequiredNotificationDataRS struct { + Systems types.List `tfsdk:"systems"` +} + +var notificationProvisionConfigRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(false) +var notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(true) + +type notificationProvisionConfigRequiredNotificationDataDS struct { + Systems types.List `tfsdk:"systems"` +} + +var notificationRotatingPasswordRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(false) +var notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(true) + +type notificationRotatingPasswordRequiredNotificationDataRS struct { + Groups types.List `tfsdk:"groups"` +} + +var notificationRotatingPasswordRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(false) +var notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(true) + +type notificationRotatingPasswordRequiredNotificationDataDS struct { + Groups types.List `tfsdk:"groups"` +} + +var notificationUpdateAvailableNotificationAttrTypesRS = objectAttrsTypeRSNotificationUpdateAvailableNotification(false) +var notificationUpdateAvailableNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationUpdateAvailableNotification(true) + +type notificationUpdateAvailableNotificationDataRS struct { + ReleasedAt types.String `tfsdk:"released_at"` +} + +var notificationUpdateAvailableNotificationAttrTypesDS = objectAttrsTypeDSNotificationUpdateAvailableNotification(false) +var notificationUpdateAvailableNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationUpdateAvailableNotification(true) + +type notificationUpdateAvailableNotificationDataDS struct { + ReleasedAt types.String `tfsdk:"released_at"` +} + +var notificationVaultRecordExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(false) +var notificationVaultRecordExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(true) + +type notificationVaultRecordExpiredNotificationDataRS struct { + Record types.Object `tfsdk:"record"` +} + +var notificationVaultRecordExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(false) +var notificationVaultRecordExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(true) + +type notificationVaultRecordExpiredNotificationDataDS struct { + Record types.Object `tfsdk:"record"` +} + +var organizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(false) +var organizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(true) + +type organizationAccountOrganizationalUnitDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var organizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(false) +var organizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(true) + +type organizationAccountOrganizationalUnitDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(false) +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(true) + +type organizationAccountOrganizationalUnitLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(false) +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(true) + +type organizationAccountOrganizationalUnitLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} -var organizationOrganizationalUnitAttrTypes = objectAttrsTypeOrganizationOrganizationalUnit(false) -var organizationOrganizationalUnitAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnit(true) +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false) +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(true) -type organizationOrganizationalUnitData struct { +type organizationAccountOrganizationalUnit_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false) +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(true) + +type organizationAccountOrganizationalUnit_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit(true) + +type organizationOrganizationalUnitDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` @@ -1550,10 +3046,25 @@ type organizationOrganizationalUnitData struct { ParentUUID types.String `tfsdk:"parent_uuid"` } -var organizationOrganizationalUnitAccountAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitAccount(false) -var organizationOrganizationalUnitAccountAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitAccount(true) +var organizationOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit(true) + +type organizationOrganizationalUnitDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Depth types.Int64 `tfsdk:"depth"` + Description types.String `tfsdk:"description"` + Owner types.Object `tfsdk:"owner"` + Parent types.Object `tfsdk:"parent"` +} + +var organizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(false) +var organizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(true) -type organizationOrganizationalUnitAccountData struct { +type organizationOrganizationalUnitAccountDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -1565,56 +3076,117 @@ type organizationOrganizationalUnitAccountData struct { DirectoryUUID types.String `tfsdk:"directory_uuid"` } -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitAccountLinkableWrapper(false) -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitAccountLinkableWrapper(true) +var organizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(false) +var organizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(true) + +type organizationOrganizationalUnitAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` +} + +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(false) +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(true) + +type organizationOrganizationalUnitAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(false) +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(true) -type organizationOrganizationalUnitAccountLinkableWrapperData struct { +type organizationOrganizationalUnitAccountLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(false) -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(true) +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false) +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(true) + +type organizationOrganizationalUnitAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false) +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(true) -type organizationOrganizationalUnitAccount_additionalObjectsData struct { +type organizationOrganizationalUnitAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var organizationOrganizationalUnitLinkableWrapperAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(false) -var organizationOrganizationalUnitLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(true) +var organizationOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(false) +var organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(true) + +type organizationOrganizationalUnitLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(false) +var organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(true) -type organizationOrganizationalUnitLinkableWrapperData struct { +type organizationOrganizationalUnitLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var organizationOrganizationalUnitPrimerAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitPrimer(false) -var organizationOrganizationalUnitPrimerAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitPrimer(true) +var organizationOrganizationalUnitPrimerAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(false) +var organizationOrganizationalUnitPrimerAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(true) + +type organizationOrganizationalUnitPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var organizationOrganizationalUnitPrimerAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false) +var organizationOrganizationalUnitPrimerAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(true) -type organizationOrganizationalUnitPrimerData struct { +type organizationOrganizationalUnitPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` } -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypes = objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(false) -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(true) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) -type organizationOrganizationalUnitPrimerLinkableWrapperData struct { +type organizationOrganizationalUnitPrimerLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var organizationOrganizationalUnit_additionalObjectsAttrTypes = objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(false) -var organizationOrganizationalUnit_additionalObjectsAttrTypesRecurse = objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(true) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) -type organizationOrganizationalUnit_additionalObjectsData struct { +type organizationOrganizationalUnitPrimerLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false) +var organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(true) + +type organizationOrganizationalUnit_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` +} + +var organizationOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false) +var organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(true) + +type organizationOrganizationalUnit_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` } -var provisioningAbstractProvisionedLDAPAttrTypes = objectAttrsTypeProvisioningAbstractProvisionedLDAP(false) -var provisioningAbstractProvisionedLDAPAttrTypesRecurse = objectAttrsTypeProvisioningAbstractProvisionedLDAP(true) +var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false) +var provisioningAbstractProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(true) -type provisioningAbstractProvisionedLDAPData struct { +type provisioningAbstractProvisionedLDAPDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -1651,42 +3223,114 @@ type provisioningAbstractProvisionedLDAPData struct { UserDN types.String `tfsdk:"user_d_n"` } -var provisioningAbstractProvisionedLDAP_attributesAttrTypes = objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false) -var provisioningAbstractProvisionedLDAP_attributesAttrTypesRecurse = objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(true) +var provisioningAbstractProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false) +var provisioningAbstractProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(true) + +type provisioningAbstractProvisionedLDAPDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_d_n"` +} + +var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) +var provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(true) + +type provisioningAbstractProvisionedLDAP_attributesDataRS struct { +} + +var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) +var provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(true) + +type provisioningAbstractProvisionedLDAP_attributesDataDS struct { +} + +var provisioningAccountProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatus(false) +var provisioningAccountProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatus(true) -type provisioningAbstractProvisionedLDAP_attributesData struct { +type provisioningAccountProvisioningStatusDataRS struct { + Description types.String `tfsdk:"description"` + Result types.String `tfsdk:"result"` + System types.Object `tfsdk:"system"` } -var provisioningAccountProvisioningStatusAttrTypes = objectAttrsTypeProvisioningAccountProvisioningStatus(false) -var provisioningAccountProvisioningStatusAttrTypesRecurse = objectAttrsTypeProvisioningAccountProvisioningStatus(true) +var provisioningAccountProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatus(false) +var provisioningAccountProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatus(true) -type provisioningAccountProvisioningStatusData struct { +type provisioningAccountProvisioningStatusDataDS struct { Description types.String `tfsdk:"description"` Result types.String `tfsdk:"result"` System types.Object `tfsdk:"system"` } -var provisioningAccountProvisioningStatusReportAttrTypes = objectAttrsTypeProvisioningAccountProvisioningStatusReport(false) -var provisioningAccountProvisioningStatusReportAttrTypesRecurse = objectAttrsTypeProvisioningAccountProvisioningStatusReport(true) +var provisioningAccountProvisioningStatusReportAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(false) +var provisioningAccountProvisioningStatusReportAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(true) -type provisioningAccountProvisioningStatusReportData struct { +type provisioningAccountProvisioningStatusReportDataRS struct { Status types.List `tfsdk:"status"` } -var provisioningCircuitBreakerStatisticsAttrTypes = objectAttrsTypeProvisioningCircuitBreakerStatistics(false) -var provisioningCircuitBreakerStatisticsAttrTypesRecurse = objectAttrsTypeProvisioningCircuitBreakerStatistics(true) +var provisioningAccountProvisioningStatusReportAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(false) +var provisioningAccountProvisioningStatusReportAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(true) -type provisioningCircuitBreakerStatisticsData struct { +type provisioningAccountProvisioningStatusReportDataDS struct { + Status types.List `tfsdk:"status"` +} + +var provisioningCircuitBreakerStatisticsAttrTypesRS = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false) +var provisioningCircuitBreakerStatisticsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(true) + +type provisioningCircuitBreakerStatisticsDataRS struct { + NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` + NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` + NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` + State types.String `tfsdk:"state"` +} + +var provisioningCircuitBreakerStatisticsAttrTypesDS = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false) +var provisioningCircuitBreakerStatisticsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(true) + +type provisioningCircuitBreakerStatisticsDataDS struct { NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` State types.String `tfsdk:"state"` } -var provisioningGroupOnSystemAttrTypes = objectAttrsTypeProvisioningGroupOnSystem(false) -var provisioningGroupOnSystemAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystem(true) +var provisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystem(false) +var provisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystem(true) -type provisioningGroupOnSystemData struct { +type provisioningGroupOnSystemDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -1698,17 +3342,51 @@ type provisioningGroupOnSystemData struct { SystemUUID types.String `tfsdk:"system_uuid"` } -var provisioningGroupOnSystemLinkableWrapperAttrTypes = objectAttrsTypeProvisioningGroupOnSystemLinkableWrapper(false) -var provisioningGroupOnSystemLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystemLinkableWrapper(true) +var provisioningGroupOnSystemAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystem(false) +var provisioningGroupOnSystemAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystem(true) + +type provisioningGroupOnSystemDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Owner types.Object `tfsdk:"owner"` + System types.Object `tfsdk:"system"` +} + +var provisioningGroupOnSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(false) +var provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(true) + +type provisioningGroupOnSystemLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningGroupOnSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(false) +var provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(true) -type provisioningGroupOnSystemLinkableWrapperData struct { +type provisioningGroupOnSystemLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningGroupOnSystemPrimerAttrTypes = objectAttrsTypeProvisioningGroupOnSystemPrimer(false) -var provisioningGroupOnSystemPrimerAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystemPrimer(true) +var provisioningGroupOnSystemPrimerAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemPrimer(false) +var provisioningGroupOnSystemPrimerAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemPrimer(true) + +type provisioningGroupOnSystemPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` +} + +var provisioningGroupOnSystemPrimerAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemPrimer(false) +var provisioningGroupOnSystemPrimerAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemPrimer(true) -type provisioningGroupOnSystemPrimerData struct { +type provisioningGroupOnSystemPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -1717,26 +3395,55 @@ type provisioningGroupOnSystemPrimerData struct { ShortNameInSystem types.String `tfsdk:"short_name_in_system"` } -var provisioningGroupOnSystemTypesAttrTypes = objectAttrsTypeProvisioningGroupOnSystemTypes(false) -var provisioningGroupOnSystemTypesAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystemTypes(true) +var provisioningGroupOnSystemTypesAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemTypes(false) +var provisioningGroupOnSystemTypesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemTypes(true) + +type provisioningGroupOnSystemTypesDataRS struct { + Types types.List `tfsdk:"types"` +} + +var provisioningGroupOnSystemTypesAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemTypes(false) +var provisioningGroupOnSystemTypesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemTypes(true) -type provisioningGroupOnSystemTypesData struct { +type provisioningGroupOnSystemTypesDataDS struct { Types types.List `tfsdk:"types"` } -var provisioningGroupOnSystem_additionalObjectsAttrTypes = objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(false) -var provisioningGroupOnSystem_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(true) +var provisioningGroupOnSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false) +var provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(true) + +type provisioningGroupOnSystem_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Provgroups types.Object `tfsdk:"provgroups"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` +} + +var provisioningGroupOnSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false) +var provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(true) -type provisioningGroupOnSystem_additionalObjectsData struct { +type provisioningGroupOnSystem_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Provgroups types.Object `tfsdk:"provgroups"` ServiceAccounts types.Object `tfsdk:"service_accounts"` } -var provisioningGroupProvisioningStatusAttrTypes = objectAttrsTypeProvisioningGroupProvisioningStatus(false) -var provisioningGroupProvisioningStatusAttrTypesRecurse = objectAttrsTypeProvisioningGroupProvisioningStatus(true) +var provisioningGroupProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus(false) +var provisioningGroupProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus(true) + +type provisioningGroupProvisioningStatusDataRS struct { + Folder types.Object `tfsdk:"folder"` + Group types.Object `tfsdk:"group"` + ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` + StatusReport types.Object `tfsdk:"status_report"` + VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` +} + +var provisioningGroupProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus(false) +var provisioningGroupProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus(true) -type provisioningGroupProvisioningStatusData struct { +type provisioningGroupProvisioningStatusDataDS struct { Folder types.Object `tfsdk:"folder"` Group types.Object `tfsdk:"group"` ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` @@ -1746,26 +3453,42 @@ type provisioningGroupProvisioningStatusData struct { VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` } -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypes = objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(false) -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRecurse = objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(true) +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(false) +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(true) + +type provisioningGroupProvisioningStatus_provisioningDurationDataRS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(false) +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(true) -type provisioningGroupProvisioningStatus_provisioningDurationData struct { +type provisioningGroupProvisioningStatus_provisioningDurationDataDS struct { Nanos types.Int64 `tfsdk:"nanos"` Seconds types.Int64 `tfsdk:"seconds"` } -var provisioningOwnedGroupOnSystemsWrapperAttrTypes = objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(false) -var provisioningOwnedGroupOnSystemsWrapperAttrTypesRecurse = objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(true) +var provisioningOwnedGroupOnSystemsWrapperAttrTypesRS = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(false) +var provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(true) + +type provisioningOwnedGroupOnSystemsWrapperDataRS struct { + Items types.List `tfsdk:"items"` + UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` +} + +var provisioningOwnedGroupOnSystemsWrapperAttrTypesDS = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(false) +var provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(true) -type provisioningOwnedGroupOnSystemsWrapperData struct { +type provisioningOwnedGroupOnSystemsWrapperDataDS struct { Items types.List `tfsdk:"items"` UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` } -var provisioningProvisionNumberSequenceAttrTypes = objectAttrsTypeProvisioningProvisionNumberSequence(false) -var provisioningProvisionNumberSequenceAttrTypesRecurse = objectAttrsTypeProvisioningProvisionNumberSequence(true) +var provisioningProvisionNumberSequenceAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence(false) +var provisioningProvisionNumberSequenceAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence(true) -type provisioningProvisionNumberSequenceData struct { +type provisioningProvisionNumberSequenceDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountCount types.Int64 `tfsdk:"account_count"` @@ -1774,25 +3497,52 @@ type provisioningProvisionNumberSequenceData struct { NextUID types.Int64 `tfsdk:"next_u_i_d"` } -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionNumberSequenceLinkableWrapper(false) -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionNumberSequenceLinkableWrapper(true) +var provisioningProvisionNumberSequenceAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence(false) +var provisioningProvisionNumberSequenceAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence(true) -type provisioningProvisionNumberSequenceLinkableWrapperData struct { +type provisioningProvisionNumberSequenceDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + NextUID types.Int64 `tfsdk:"next_u_i_d"` +} + +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(false) +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(true) + +type provisioningProvisionNumberSequenceLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(false) +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(true) + +type provisioningProvisionNumberSequenceLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionNumberSequence_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(false) -var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(true) +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false) +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(true) + +type provisioningProvisionNumberSequence_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Systems types.Object `tfsdk:"systems"` +} + +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false) +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(true) -type provisioningProvisionNumberSequence_additionalObjectsData struct { +type provisioningProvisionNumberSequence_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Systems types.Object `tfsdk:"systems"` } -var provisioningProvisionedADAttrTypes = objectAttrsTypeProvisioningProvisionedAD(false) -var provisioningProvisionedADAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAD(true) +var provisioningProvisionedADAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAD(false) +var provisioningProvisionedADAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAD(true) -type provisioningProvisionedADData struct { +type provisioningProvisionedADDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -1830,10 +3580,66 @@ type provisioningProvisionedADData struct { SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } -var provisioningProvisionedAccountAttrTypes = objectAttrsTypeProvisioningProvisionedAccount(false) -var provisioningProvisionedAccountAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAccount(true) +var provisioningProvisionedADAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAD(false) +var provisioningProvisionedADAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAD(true) + +type provisioningProvisionedADDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_d_n"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` +} + +var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount(false) +var provisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount(true) + +type provisioningProvisionedAccountDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Uid types.Int64 `tfsdk:"uid"` +} + +var provisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount(false) +var provisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount(true) -type provisioningProvisionedAccountData struct { +type provisioningProvisionedAccountDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -1845,24 +3651,38 @@ type provisioningProvisionedAccountData struct { Uid types.Int64 `tfsdk:"uid"` } -var provisioningProvisionedAccountLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedAccountLinkableWrapper(false) -var provisioningProvisionedAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAccountLinkableWrapper(true) +var provisioningProvisionedAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(false) +var provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(true) + +type provisioningProvisionedAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(false) +var provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(true) -type provisioningProvisionedAccountLinkableWrapperData struct { +type provisioningProvisionedAccountLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionedAccount_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(false) -var provisioningProvisionedAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(true) +var provisioningProvisionedAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false) +var provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(true) + +type provisioningProvisionedAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false) +var provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(true) -type provisioningProvisionedAccount_additionalObjectsData struct { +type provisioningProvisionedAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var provisioningProvisionedAzureOIDCDirectoryAttrTypes = objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(false) -var provisioningProvisionedAzureOIDCDirectoryAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(true) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(true) -type provisioningProvisionedAzureOIDCDirectoryData struct { +type provisioningProvisionedAzureOIDCDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -1885,10 +3705,36 @@ type provisioningProvisionedAzureOIDCDirectoryData struct { Tenant types.String `tfsdk:"tenant"` } -var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypes = objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(false) -var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(true) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(true) + +type provisioningProvisionedAzureOIDCDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false) +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(true) -type provisioningProvisionedAzureSyncLDAPDirectoryData struct { +type provisioningProvisionedAzureSyncLDAPDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -1913,10 +3759,38 @@ type provisioningProvisionedAzureSyncLDAPDirectoryData struct { Tenant types.String `tfsdk:"tenant"` } -var provisioningProvisionedAzureTenantAttrTypes = objectAttrsTypeProvisioningProvisionedAzureTenant(false) -var provisioningProvisionedAzureTenantAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedAzureTenant(true) +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false) +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(true) + +type provisioningProvisionedAzureSyncLDAPDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureTenantAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureTenant(false) +var provisioningProvisionedAzureTenantAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureTenant(true) -type provisioningProvisionedAzureTenantData struct { +type provisioningProvisionedAzureTenantDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -1941,10 +3815,38 @@ type provisioningProvisionedAzureTenantData struct { Tenant types.String `tfsdk:"tenant"` } -var provisioningProvisionedInternalLDAPAttrTypes = objectAttrsTypeProvisioningProvisionedInternalLDAP(false) -var provisioningProvisionedInternalLDAPAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedInternalLDAP(true) +var provisioningProvisionedAzureTenantAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureTenant(false) +var provisioningProvisionedAzureTenantAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureTenant(true) + +type provisioningProvisionedAzureTenantDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedInternalLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false) +var provisioningProvisionedInternalLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(true) -type provisioningProvisionedInternalLDAPData struct { +type provisioningProvisionedInternalLDAPDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -1966,10 +3868,35 @@ type provisioningProvisionedInternalLDAPData struct { Client types.Object `tfsdk:"client"` } -var provisioningProvisionedLDAPAttrTypes = objectAttrsTypeProvisioningProvisionedLDAP(false) -var provisioningProvisionedLDAPAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedLDAP(true) +var provisioningProvisionedInternalLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false) +var provisioningProvisionedInternalLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(true) -type provisioningProvisionedLDAPData struct { +type provisioningProvisionedInternalLDAPDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Client types.Object `tfsdk:"client"` +} + +var provisioningProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAP(false) +var provisioningProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAP(true) + +type provisioningProvisionedLDAPDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -2009,10 +3936,53 @@ type provisioningProvisionedLDAPData struct { Numbering types.Object `tfsdk:"numbering"` } -var provisioningProvisionedLDAPDirectoryAttrTypes = objectAttrsTypeProvisioningProvisionedLDAPDirectory(false) -var provisioningProvisionedLDAPDirectoryAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedLDAPDirectory(true) +var provisioningProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAP(false) +var provisioningProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAP(true) + +type provisioningProvisionedLDAPDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_d_n"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` +} + +var provisioningProvisionedLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false) +var provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(true) -type provisioningProvisionedLDAPDirectoryData struct { +type provisioningProvisionedLDAPDirectoryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -2035,10 +4005,36 @@ type provisioningProvisionedLDAPDirectoryData struct { GroupDN types.String `tfsdk:"group_d_n"` } -var provisioningProvisionedSystemAttrTypes = objectAttrsTypeProvisioningProvisionedSystem(false) -var provisioningProvisionedSystemAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystem(true) +var provisioningProvisionedLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false) +var provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(true) + +type provisioningProvisionedLDAPDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Directory types.Object `tfsdk:"directory"` + GroupDN types.String `tfsdk:"group_d_n"` +} + +var provisioningProvisionedSystemAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem(false) +var provisioningProvisionedSystemAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem(true) -type provisioningProvisionedSystemData struct { +type provisioningProvisionedSystemDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -2059,17 +4055,48 @@ type provisioningProvisionedSystemData struct { UsernamePrefix types.String `tfsdk:"username_prefix"` } -var provisioningProvisionedSystemLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(false) -var provisioningProvisionedSystemLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(true) +var provisioningProvisionedSystemAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem(false) +var provisioningProvisionedSystemAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem(true) + +type provisioningProvisionedSystemDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` +} + +var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) +var provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(true) + +type provisioningProvisionedSystemLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) +var provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(true) -type provisioningProvisionedSystemLinkableWrapperData struct { +type provisioningProvisionedSystemLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionedSystemPrimerAttrTypes = objectAttrsTypeProvisioningProvisionedSystemPrimer(false) -var provisioningProvisionedSystemPrimerAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemPrimer(true) +var provisioningProvisionedSystemPrimerAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemPrimer(false) +var provisioningProvisionedSystemPrimerAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemPrimer(true) -type provisioningProvisionedSystemPrimerData struct { +type provisioningProvisionedSystemPrimerDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -2079,17 +4106,50 @@ type provisioningProvisionedSystemPrimerData struct { UUID types.String `tfsdk:"uuid"` } -var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(false) -var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(true) +var provisioningProvisionedSystemPrimerAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false) +var provisioningProvisionedSystemPrimerAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemPrimer(true) + +type provisioningProvisionedSystemPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` +} + +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(false) +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(true) + +type provisioningProvisionedSystemPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(false) +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(true) -type provisioningProvisionedSystemPrimerLinkableWrapperData struct { +type provisioningProvisionedSystemPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionedSystemSyncLogAttrTypes = objectAttrsTypeProvisioningProvisionedSystemSyncLog(false) -var provisioningProvisionedSystemSyncLogAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemSyncLog(true) +var provisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(false) +var provisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(true) + +type provisioningProvisionedSystemSyncLogDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var provisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(false) +var provisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(true) -type provisioningProvisionedSystemSyncLogData struct { +type provisioningProvisionedSystemSyncLogDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -2099,24 +4159,52 @@ type provisioningProvisionedSystemSyncLogData struct { Modifications types.Int64 `tfsdk:"modifications"` } -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypes = objectAttrsTypeProvisioningProvisionedSystemSyncLogLinkableWrapper(false) -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemSyncLogLinkableWrapper(true) +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) + +type provisioningProvisionedSystemSyncLogLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) -type provisioningProvisionedSystemSyncLogLinkableWrapperData struct { +type provisioningProvisionedSystemSyncLogLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(false) -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(true) +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false) +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(true) + +type provisioningProvisionedSystemSyncLog_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false) +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(true) -type provisioningProvisionedSystemSyncLog_additionalObjectsData struct { +type provisioningProvisionedSystemSyncLog_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var provisioningProvisionedSystem_additionalObjectsAttrTypes = objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false) -var provisioningProvisionedSystem_additionalObjectsAttrTypesRecurse = objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(true) +var provisioningProvisionedSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false) +var provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(true) + +type provisioningProvisionedSystem_additionalObjectsDataRS struct { + Account types.Object `tfsdk:"account"` + Audit types.Object `tfsdk:"audit"` + IssuedPermissions types.Object `tfsdk:"issued_permissions"` + LoginName types.String `tfsdk:"login_name"` + ManagementPermissions types.Object `tfsdk:"management_permissions"` + Markers types.Object `tfsdk:"markers"` + Statistics types.Object `tfsdk:"statistics"` + SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` +} + +var provisioningProvisionedSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false) +var provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(true) -type provisioningProvisionedSystem_additionalObjectsData struct { +type provisioningProvisionedSystem_additionalObjectsDataDS struct { Account types.Object `tfsdk:"account"` Audit types.Object `tfsdk:"audit"` IssuedPermissions types.Object `tfsdk:"issued_permissions"` @@ -2127,35 +4215,60 @@ type provisioningProvisionedSystem_additionalObjectsData struct { SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` } -var provisioningProvisioningManagementPermissionsAttrTypes = objectAttrsTypeProvisioningProvisioningManagementPermissions(false) -var provisioningProvisioningManagementPermissionsAttrTypesRecurse = objectAttrsTypeProvisioningProvisioningManagementPermissions(true) +var provisioningProvisioningManagementPermissionsAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningManagementPermissions(false) +var provisioningProvisioningManagementPermissionsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningManagementPermissions(true) + +type provisioningProvisioningManagementPermissionsDataRS struct { + CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` + CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` + ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` +} + +var provisioningProvisioningManagementPermissionsAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningManagementPermissions(false) +var provisioningProvisioningManagementPermissionsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningManagementPermissions(true) -type provisioningProvisioningManagementPermissionsData struct { +type provisioningProvisioningManagementPermissionsDataDS struct { CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` } -var provisioningProvisioningStatusAttrTypes = objectAttrsTypeProvisioningProvisioningStatus(false) -var provisioningProvisioningStatusAttrTypesRecurse = objectAttrsTypeProvisioningProvisioningStatus(true) +var provisioningProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningStatus(false) +var provisioningProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningStatus(true) + +type provisioningProvisioningStatusDataRS struct { + Groups types.List `tfsdk:"groups"` + IgnoreErrors types.Bool `tfsdk:"ignore_errors"` + RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` +} + +var provisioningProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningStatus(false) +var provisioningProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningStatus(true) -type provisioningProvisioningStatusData struct { +type provisioningProvisioningStatusDataDS struct { Groups types.List `tfsdk:"groups"` IgnoreErrors types.Bool `tfsdk:"ignore_errors"` RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` } -var provisioningTokenPasswordAttrTypes = objectAttrsTypeProvisioningTokenPassword(false) -var provisioningTokenPasswordAttrTypesRecurse = objectAttrsTypeProvisioningTokenPassword(true) +var provisioningTokenPasswordAttrTypesRS = objectAttrsTypeRSProvisioningTokenPassword(false) +var provisioningTokenPasswordAttrTypesRSRecurse = objectAttrsTypeRSProvisioningTokenPassword(true) -type provisioningTokenPasswordData struct { +type provisioningTokenPasswordDataRS struct { Password types.String `tfsdk:"password"` } -var requestAbstractApplicationModificationRequestAttrTypes = objectAttrsTypeRequestAbstractApplicationModificationRequest(false) -var requestAbstractApplicationModificationRequestAttrTypesRecurse = objectAttrsTypeRequestAbstractApplicationModificationRequest(true) +var provisioningTokenPasswordAttrTypesDS = objectAttrsTypeDSProvisioningTokenPassword(false) +var provisioningTokenPasswordAttrTypesDSRecurse = objectAttrsTypeDSProvisioningTokenPassword(true) -type requestAbstractApplicationModificationRequestData struct { +type provisioningTokenPasswordDataDS struct { + Password types.String `tfsdk:"password"` +} + +var requestAbstractApplicationModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false) +var requestAbstractApplicationModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(true) + +type requestAbstractApplicationModificationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2169,27 +4282,27 @@ type requestAbstractApplicationModificationRequestData struct { ApplicationUUID types.String `tfsdk:"application_uuid"` } -var requestAbstractOrganizationalUnitModificationRequestAttrTypes = objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(false) -var requestAbstractOrganizationalUnitModificationRequestAttrTypesRecurse = objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(true) +var requestAbstractApplicationModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false) +var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(true) -type requestAbstractOrganizationalUnitModificationRequestData struct { +type requestAbstractApplicationModificationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` + Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` + Group types.Object `tfsdk:"group"` MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + Application types.Object `tfsdk:"application"` } -var requestAbstractProvisionedSystemModificationRequestAttrTypes = objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(false) -var requestAbstractProvisionedSystemModificationRequestAttrTypesRecurse = objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(true) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(true) -type requestAbstractProvisionedSystemModificationRequestData struct { +type requestAbstractOrganizationalUnitModificationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2200,42 +4313,122 @@ type requestAbstractProvisionedSystemModificationRequestData struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestAcceptGrantAccessRequestParametersAttrTypes = objectAttrsTypeRequestAcceptGrantAccessRequestParameters(false) -var requestAcceptGrantAccessRequestParametersAttrTypesRecurse = objectAttrsTypeRequestAcceptGrantAccessRequestParameters(true) - -type requestAcceptGrantAccessRequestParametersData struct { - AccessDuration types.Object `tfsdk:"access_duration"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` } -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypes = objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(false) -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRecurse = objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(true) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(true) -type requestAcceptGrantAccessRequestParameters_accessDurationData struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} +type requestAbstractOrganizationalUnitModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` +} + +var requestAbstractProvisionedSystemModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false) +var requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(true) + +type requestAbstractProvisionedSystemModificationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestAbstractProvisionedSystemModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false) +var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(true) + +type requestAbstractProvisionedSystemModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestAcceptGrantAccessRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(false) +var requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(true) + +type requestAcceptGrantAccessRequestParametersDataRS struct { + AccessDuration types.Object `tfsdk:"access_duration"` +} + +var requestAcceptGrantAccessRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(false) +var requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(true) + +type requestAcceptGrantAccessRequestParametersDataDS struct { + AccessDuration types.Object `tfsdk:"access_duration"` +} + +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(false) +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(true) + +type requestAcceptGrantAccessRequestParameters_accessDurationDataRS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(false) +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(true) -var requestAcceptJoinGroupRequestParametersAttrTypes = objectAttrsTypeRequestAcceptJoinGroupRequestParameters(false) -var requestAcceptJoinGroupRequestParametersAttrTypesRecurse = objectAttrsTypeRequestAcceptJoinGroupRequestParameters(true) +type requestAcceptGrantAccessRequestParameters_accessDurationDataDS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var requestAcceptJoinGroupRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(false) +var requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(true) + +type requestAcceptJoinGroupRequestParametersDataRS struct { + EndDate types.String `tfsdk:"end_date"` + MakeManager types.Bool `tfsdk:"make_manager"` +} -type requestAcceptJoinGroupRequestParametersData struct { +var requestAcceptJoinGroupRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(false) +var requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(true) + +type requestAcceptJoinGroupRequestParametersDataDS struct { EndDate types.String `tfsdk:"end_date"` MakeManager types.Bool `tfsdk:"make_manager"` } -var requestAcceptModificationRequestParametersAttrTypes = objectAttrsTypeRequestAcceptModificationRequestParameters(false) -var requestAcceptModificationRequestParametersAttrTypesRecurse = objectAttrsTypeRequestAcceptModificationRequestParameters(true) +var requestAcceptModificationRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptModificationRequestParameters(false) +var requestAcceptModificationRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptModificationRequestParameters(true) + +type requestAcceptModificationRequestParametersDataRS struct { +} + +var requestAcceptModificationRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptModificationRequestParameters(false) +var requestAcceptModificationRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptModificationRequestParameters(true) -type requestAcceptModificationRequestParametersData struct { +type requestAcceptModificationRequestParametersDataDS struct { } -var requestAddGroupAdminRequestAttrTypes = objectAttrsTypeRequestAddGroupAdminRequest(false) -var requestAddGroupAdminRequestAttrTypesRecurse = objectAttrsTypeRequestAddGroupAdminRequest(true) +var requestAddGroupAdminRequestAttrTypesRS = objectAttrsTypeRSRequestAddGroupAdminRequest(false) +var requestAddGroupAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAddGroupAdminRequest(true) -type requestAddGroupAdminRequestData struct { +type requestAddGroupAdminRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2250,10 +4443,28 @@ type requestAddGroupAdminRequestData struct { PrivateKey types.String `tfsdk:"private_key"` } -var requestCreateGroupOnSystemRequestAttrTypes = objectAttrsTypeRequestCreateGroupOnSystemRequest(false) -var requestCreateGroupOnSystemRequestAttrTypesRecurse = objectAttrsTypeRequestCreateGroupOnSystemRequest(true) +var requestAddGroupAdminRequestAttrTypesDS = objectAttrsTypeDSRequestAddGroupAdminRequest(false) +var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddGroupAdminRequest(true) + +type requestAddGroupAdminRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewAdmin types.Object `tfsdk:"new_admin"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var requestCreateGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false) +var requestCreateGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(true) -type requestCreateGroupOnSystemRequestData struct { +type requestCreateGroupOnSystemRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2270,10 +4481,30 @@ type requestCreateGroupOnSystemRequestData struct { NameInSystem types.String `tfsdk:"name_in_system"` } -var requestCreateGroupRequestAttrTypes = objectAttrsTypeRequestCreateGroupRequest(false) -var requestCreateGroupRequestAttrTypesRecurse = objectAttrsTypeRequestCreateGroupRequest(true) +var requestCreateGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false) +var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(true) + +type requestCreateGroupOnSystemRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` +} + +var requestCreateGroupRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupRequest(false) +var requestCreateGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupRequest(true) -type requestCreateGroupRequestData struct { +type requestCreateGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2288,10 +4519,28 @@ type requestCreateGroupRequestData struct { GroupName types.String `tfsdk:"group_name"` } -var requestCreateServiceAccountRequestAttrTypes = objectAttrsTypeRequestCreateServiceAccountRequest(false) -var requestCreateServiceAccountRequestAttrTypesRecurse = objectAttrsTypeRequestCreateServiceAccountRequest(true) +var requestCreateGroupRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupRequest(false) +var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupRequest(true) + +type requestCreateGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestCreateServiceAccountRequestAttrTypesRS = objectAttrsTypeRSRequestCreateServiceAccountRequest(false) +var requestCreateServiceAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateServiceAccountRequest(true) -type requestCreateServiceAccountRequestData struct { +type requestCreateServiceAccountRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2306,10 +4555,28 @@ type requestCreateServiceAccountRequestData struct { Username types.String `tfsdk:"username"` } -var requestDisable2FARequestAttrTypes = objectAttrsTypeRequestDisable2FARequest(false) -var requestDisable2FARequestAttrTypesRecurse = objectAttrsTypeRequestDisable2FARequest(true) +var requestCreateServiceAccountRequestAttrTypesDS = objectAttrsTypeDSRequestCreateServiceAccountRequest(false) +var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateServiceAccountRequest(true) + +type requestCreateServiceAccountRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` + Username types.String `tfsdk:"username"` +} + +var requestDisable2FARequestAttrTypesRS = objectAttrsTypeRSRequestDisable2FARequest(false) +var requestDisable2FARequestAttrTypesRSRecurse = objectAttrsTypeRSRequestDisable2FARequest(true) -type requestDisable2FARequestData struct { +type requestDisable2FARequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2323,10 +4590,27 @@ type requestDisable2FARequestData struct { Subject types.String `tfsdk:"subject"` } -var requestEnableTechnicalAdministrationRequestAttrTypes = objectAttrsTypeRequestEnableTechnicalAdministrationRequest(false) -var requestEnableTechnicalAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestEnableTechnicalAdministrationRequest(true) +var requestDisable2FARequestAttrTypesDS = objectAttrsTypeDSRequestDisable2FARequest(false) +var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable2FARequest(true) + +type requestDisable2FARequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Subject types.String `tfsdk:"subject"` +} + +var requestEnableTechnicalAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false) +var requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(true) -type requestEnableTechnicalAdministrationRequestData struct { +type requestEnableTechnicalAdministrationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2339,10 +4623,26 @@ type requestEnableTechnicalAdministrationRequestData struct { Status types.String `tfsdk:"status"` } -var requestExtendAccessRequestAttrTypes = objectAttrsTypeRequestExtendAccessRequest(false) -var requestExtendAccessRequestAttrTypesRecurse = objectAttrsTypeRequestExtendAccessRequest(true) +var requestEnableTechnicalAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false) +var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(true) + +type requestEnableTechnicalAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestExtendAccessRequestAttrTypesRS = objectAttrsTypeRSRequestExtendAccessRequest(false) +var requestExtendAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestExtendAccessRequest(true) -type requestExtendAccessRequestData struct { +type requestExtendAccessRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2356,10 +4656,27 @@ type requestExtendAccessRequestData struct { ExtendUntil types.String `tfsdk:"extend_until"` } -var requestGrantAccessRequestAttrTypes = objectAttrsTypeRequestGrantAccessRequest(false) -var requestGrantAccessRequestAttrTypesRecurse = objectAttrsTypeRequestGrantAccessRequest(true) +var requestExtendAccessRequestAttrTypesDS = objectAttrsTypeDSRequestExtendAccessRequest(false) +var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExtendAccessRequest(true) + +type requestExtendAccessRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ExtendUntil types.String `tfsdk:"extend_until"` +} + +var requestGrantAccessRequestAttrTypesRS = objectAttrsTypeRSRequestGrantAccessRequest(false) +var requestGrantAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantAccessRequest(true) -type requestGrantAccessRequestData struct { +type requestGrantAccessRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2372,10 +4689,26 @@ type requestGrantAccessRequestData struct { Status types.String `tfsdk:"status"` } -var requestGrantApplicationRequestAttrTypes = objectAttrsTypeRequestGrantApplicationRequest(false) -var requestGrantApplicationRequestAttrTypesRecurse = objectAttrsTypeRequestGrantApplicationRequest(true) +var requestGrantAccessRequestAttrTypesDS = objectAttrsTypeDSRequestGrantAccessRequest(false) +var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantAccessRequest(true) + +type requestGrantAccessRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestGrantApplicationRequestAttrTypesRS = objectAttrsTypeRSRequestGrantApplicationRequest(false) +var requestGrantApplicationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantApplicationRequest(true) -type requestGrantApplicationRequestData struct { +type requestGrantApplicationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2389,10 +4722,27 @@ type requestGrantApplicationRequestData struct { ApplicationUUID types.String `tfsdk:"application_uuid"` } -var requestGrantClientPermissionRequestAttrTypes = objectAttrsTypeRequestGrantClientPermissionRequest(false) -var requestGrantClientPermissionRequestAttrTypesRecurse = objectAttrsTypeRequestGrantClientPermissionRequest(true) +var requestGrantApplicationRequestAttrTypesDS = objectAttrsTypeDSRequestGrantApplicationRequest(false) +var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantApplicationRequest(true) + +type requestGrantApplicationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestGrantClientPermissionRequestAttrTypesRS = objectAttrsTypeRSRequestGrantClientPermissionRequest(false) +var requestGrantClientPermissionRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantClientPermissionRequest(true) -type requestGrantClientPermissionRequestData struct { +type requestGrantClientPermissionRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2408,10 +4758,29 @@ type requestGrantClientPermissionRequestData struct { SystemUUID types.String `tfsdk:"system_uuid"` } -var requestGrantGroupOnSystemRequestAttrTypes = objectAttrsTypeRequestGrantGroupOnSystemRequest(false) -var requestGrantGroupOnSystemRequestAttrTypesRecurse = objectAttrsTypeRequestGrantGroupOnSystemRequest(true) +var requestGrantClientPermissionRequestAttrTypesDS = objectAttrsTypeDSRequestGrantClientPermissionRequest(false) +var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantClientPermissionRequest(true) + +type requestGrantClientPermissionRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` + PermissionType types.String `tfsdk:"permission_type"` + System types.Object `tfsdk:"system"` +} + +var requestGrantGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false) +var requestGrantGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(true) -type requestGrantGroupOnSystemRequestData struct { +type requestGrantGroupOnSystemRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2426,10 +4795,28 @@ type requestGrantGroupOnSystemRequestData struct { GroupOnSystem types.Object `tfsdk:"group_on_system"` } -var requestGrantGroupOnSystemRequestRequestAttrTypes = objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(false) -var requestGrantGroupOnSystemRequestRequestAttrTypesRecurse = objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(true) +var requestGrantGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false) +var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(true) + +type requestGrantGroupOnSystemRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantGroupOnSystemRequestRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false) +var requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(true) -type requestGrantGroupOnSystemRequestRequestData struct { +type requestGrantGroupOnSystemRequestRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2444,10 +4831,28 @@ type requestGrantGroupOnSystemRequestRequestData struct { GroupOnSystem types.Object `tfsdk:"group_on_system"` } -var requestGrantServiceAccountGroupRequestAttrTypes = objectAttrsTypeRequestGrantServiceAccountGroupRequest(false) -var requestGrantServiceAccountGroupRequestAttrTypesRecurse = objectAttrsTypeRequestGrantServiceAccountGroupRequest(true) +var requestGrantGroupOnSystemRequestRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false) +var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(true) -type requestGrantServiceAccountGroupRequestData struct { +type requestGrantGroupOnSystemRequestRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantServiceAccountGroupRequestAttrTypesRS = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false) +var requestGrantServiceAccountGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(true) + +type requestGrantServiceAccountGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2462,10 +4867,28 @@ type requestGrantServiceAccountGroupRequestData struct { ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` } -var requestJoinGroupRequestAttrTypes = objectAttrsTypeRequestJoinGroupRequest(false) -var requestJoinGroupRequestAttrTypesRecurse = objectAttrsTypeRequestJoinGroupRequest(true) +var requestGrantServiceAccountGroupRequestAttrTypesDS = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false) +var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(true) + +type requestGrantServiceAccountGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccount types.Object `tfsdk:"service_account"` +} + +var requestJoinGroupRequestAttrTypesRS = objectAttrsTypeRSRequestJoinGroupRequest(false) +var requestJoinGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinGroupRequest(true) -type requestJoinGroupRequestData struct { +type requestJoinGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2478,10 +4901,26 @@ type requestJoinGroupRequestData struct { Status types.String `tfsdk:"status"` } -var requestJoinVaultRequestAttrTypes = objectAttrsTypeRequestJoinVaultRequest(false) -var requestJoinVaultRequestAttrTypesRecurse = objectAttrsTypeRequestJoinVaultRequest(true) +var requestJoinGroupRequestAttrTypesDS = objectAttrsTypeDSRequestJoinGroupRequest(false) +var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGroupRequest(true) + +type requestJoinGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestJoinVaultRequestAttrTypesRS = objectAttrsTypeRSRequestJoinVaultRequest(false) +var requestJoinVaultRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinVaultRequest(true) -type requestJoinVaultRequestData struct { +type requestJoinVaultRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2494,10 +4933,26 @@ type requestJoinVaultRequestData struct { Status types.String `tfsdk:"status"` } -var requestModificationRequestAttrTypes = objectAttrsTypeRequestModificationRequest(false) -var requestModificationRequestAttrTypesRecurse = objectAttrsTypeRequestModificationRequest(true) +var requestJoinVaultRequestAttrTypesDS = objectAttrsTypeDSRequestJoinVaultRequest(false) +var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaultRequest(true) + +type requestJoinVaultRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestAttrTypesRS = objectAttrsTypeRSRequestModificationRequest(false) +var requestModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest(true) -type requestModificationRequestData struct { +type requestModificationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2510,26 +4965,58 @@ type requestModificationRequestData struct { Status types.String `tfsdk:"status"` } -var requestModificationRequestLinkableWrapperAttrTypes = objectAttrsTypeRequestModificationRequestLinkableWrapper(false) -var requestModificationRequestLinkableWrapperAttrTypesRecurse = objectAttrsTypeRequestModificationRequestLinkableWrapper(true) +var requestModificationRequestAttrTypesDS = objectAttrsTypeDSRequestModificationRequest(false) +var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest(true) + +type requestModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) +var requestModificationRequestLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(true) + +type requestModificationRequestLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) +var requestModificationRequestLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(true) -type requestModificationRequestLinkableWrapperData struct { +type requestModificationRequestLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var requestModificationRequest_additionalObjectsAttrTypes = objectAttrsTypeRequestModificationRequest_additionalObjects(false) -var requestModificationRequest_additionalObjectsAttrTypesRecurse = objectAttrsTypeRequestModificationRequest_additionalObjects(true) +var requestModificationRequest_additionalObjectsAttrTypesRS = objectAttrsTypeRSRequestModificationRequest_additionalObjects(false) +var requestModificationRequest_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest_additionalObjects(true) + +type requestModificationRequest_additionalObjectsDataRS struct { + AcceptParams types.Object `tfsdk:"accept_params"` + Audit types.Object `tfsdk:"audit"` + ResetStatus types.Object `tfsdk:"reset_status"` +} + +var requestModificationRequest_additionalObjectsAttrTypesDS = objectAttrsTypeDSRequestModificationRequest_additionalObjects(false) +var requestModificationRequest_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest_additionalObjects(true) -type requestModificationRequest_additionalObjectsData struct { +type requestModificationRequest_additionalObjectsDataDS struct { AcceptParams types.Object `tfsdk:"accept_params"` Audit types.Object `tfsdk:"audit"` ResetStatus types.Object `tfsdk:"reset_status"` } -var requestPasswordResetRequestAttrTypes = objectAttrsTypeRequestPasswordResetRequest(false) -var requestPasswordResetRequestAttrTypesRecurse = objectAttrsTypeRequestPasswordResetRequest(true) +var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequest(false) +var requestPasswordResetRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequest(true) -type requestPasswordResetRequestData struct { +type requestPasswordResetRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2545,20 +5032,49 @@ type requestPasswordResetRequestData struct { UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` } -var requestPasswordResetRequestStatusAttrTypes = objectAttrsTypeRequestPasswordResetRequestStatus(false) -var requestPasswordResetRequestStatusAttrTypesRecurse = objectAttrsTypeRequestPasswordResetRequestStatus(true) +var requestPasswordResetRequestAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequest(false) +var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequest(true) + +type requestPasswordResetRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` + NewVaultPassword types.String `tfsdk:"new_vault_password"` + UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` +} + +var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) +var requestPasswordResetRequestStatusAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequestStatus(true) + +type requestPasswordResetRequestStatusDataRS struct { + CooldownEnd types.String `tfsdk:"cooldown_end"` + Managers types.List `tfsdk:"managers"` + NrAccepted types.Int64 `tfsdk:"nr_accepted"` + ResetViaMail types.String `tfsdk:"reset_via_mail"` +} + +var requestPasswordResetRequestStatusAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequestStatus(false) +var requestPasswordResetRequestStatusAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequestStatus(true) -type requestPasswordResetRequestStatusData struct { +type requestPasswordResetRequestStatusDataDS struct { CooldownEnd types.String `tfsdk:"cooldown_end"` Managers types.List `tfsdk:"managers"` NrAccepted types.Int64 `tfsdk:"nr_accepted"` ResetViaMail types.String `tfsdk:"reset_via_mail"` } -var requestRemoveGroupRequestAttrTypes = objectAttrsTypeRequestRemoveGroupRequest(false) -var requestRemoveGroupRequestAttrTypesRecurse = objectAttrsTypeRequestRemoveGroupRequest(true) +var requestRemoveGroupRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveGroupRequest(false) +var requestRemoveGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveGroupRequest(true) -type requestRemoveGroupRequestData struct { +type requestRemoveGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2572,10 +5088,27 @@ type requestRemoveGroupRequestData struct { GroupName types.String `tfsdk:"group_name"` } -var requestRemoveOrganizationalUnitRequestAttrTypes = objectAttrsTypeRequestRemoveOrganizationalUnitRequest(false) -var requestRemoveOrganizationalUnitRequestAttrTypesRecurse = objectAttrsTypeRequestRemoveOrganizationalUnitRequest(true) +var requestRemoveGroupRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveGroupRequest(false) +var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveGroupRequest(true) + +type requestRemoveGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestRemoveOrganizationalUnitRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false) +var requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(true) -type requestRemoveOrganizationalUnitRequestData struct { +type requestRemoveOrganizationalUnitRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2590,10 +5123,28 @@ type requestRemoveOrganizationalUnitRequestData struct { OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` } -var requestRemoveProvisionedSystemRequestAttrTypes = objectAttrsTypeRequestRemoveProvisionedSystemRequest(false) -var requestRemoveProvisionedSystemRequestAttrTypesRecurse = objectAttrsTypeRequestRemoveProvisionedSystemRequest(true) +var requestRemoveOrganizationalUnitRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false) +var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(true) + +type requestRemoveOrganizationalUnitRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` +} + +var requestRemoveProvisionedSystemRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false) +var requestRemoveProvisionedSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(true) -type requestRemoveProvisionedSystemRequestData struct { +type requestRemoveProvisionedSystemRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2608,10 +5159,28 @@ type requestRemoveProvisionedSystemRequestData struct { SystemName types.String `tfsdk:"system_name"` } -var requestReviewAuditRequestAttrTypes = objectAttrsTypeRequestReviewAuditRequest(false) -var requestReviewAuditRequestAttrTypesRecurse = objectAttrsTypeRequestReviewAuditRequest(true) +var requestRemoveProvisionedSystemRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false) +var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(true) + +type requestRemoveProvisionedSystemRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` + SystemName types.String `tfsdk:"system_name"` +} + +var requestReviewAuditRequestAttrTypesRS = objectAttrsTypeRSRequestReviewAuditRequest(false) +var requestReviewAuditRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestReviewAuditRequest(true) -type requestReviewAuditRequestData struct { +type requestReviewAuditRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2624,10 +5193,26 @@ type requestReviewAuditRequestData struct { Status types.String `tfsdk:"status"` } -var requestRevokeAdminRequestAttrTypes = objectAttrsTypeRequestRevokeAdminRequest(false) -var requestRevokeAdminRequestAttrTypesRecurse = objectAttrsTypeRequestRevokeAdminRequest(true) +var requestReviewAuditRequestAttrTypesDS = objectAttrsTypeDSRequestReviewAuditRequest(false) +var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReviewAuditRequest(true) + +type requestReviewAuditRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestRevokeAdminRequestAttrTypesRS = objectAttrsTypeRSRequestRevokeAdminRequest(false) +var requestRevokeAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRevokeAdminRequest(true) -type requestRevokeAdminRequestData struct { +type requestRevokeAdminRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2641,10 +5226,27 @@ type requestRevokeAdminRequestData struct { AdminUUID types.String `tfsdk:"admin_uuid"` } -var requestSetupAuthorizingGroupRequestAttrTypes = objectAttrsTypeRequestSetupAuthorizingGroupRequest(false) -var requestSetupAuthorizingGroupRequestAttrTypesRecurse = objectAttrsTypeRequestSetupAuthorizingGroupRequest(true) +var requestRevokeAdminRequestAttrTypesDS = objectAttrsTypeDSRequestRevokeAdminRequest(false) +var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevokeAdminRequest(true) + +type requestRevokeAdminRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Admin types.Object `tfsdk:"admin"` +} + +var requestSetupAuthorizingGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false) +var requestSetupAuthorizingGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(true) -type requestSetupAuthorizingGroupRequestData struct { +type requestSetupAuthorizingGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2660,10 +5262,29 @@ type requestSetupAuthorizingGroupRequestData struct { RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` } -var requestSetupNestedGroupRequestAttrTypes = objectAttrsTypeRequestSetupNestedGroupRequest(false) -var requestSetupNestedGroupRequestAttrTypesRecurse = objectAttrsTypeRequestSetupNestedGroupRequest(true) +var requestSetupAuthorizingGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false) +var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(true) + +type requestSetupAuthorizingGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` +} + +var requestSetupNestedGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupNestedGroupRequest(false) +var requestSetupNestedGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupNestedGroupRequest(true) -type requestSetupNestedGroupRequestData struct { +type requestSetupNestedGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2679,10 +5300,29 @@ type requestSetupNestedGroupRequestData struct { RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` } -var requestTransferApplicationAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferApplicationAdministrationRequest(false) -var requestTransferApplicationAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferApplicationAdministrationRequest(true) +var requestSetupNestedGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupNestedGroupRequest(false) +var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupNestedGroupRequest(true) -type requestTransferApplicationAdministrationRequestData struct { +type requestSetupNestedGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` +} + +var requestTransferApplicationAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false) +var requestTransferApplicationAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(true) + +type requestTransferApplicationAdministrationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2696,10 +5336,27 @@ type requestTransferApplicationAdministrationRequestData struct { ApplicationUUID types.String `tfsdk:"application_uuid"` } -var requestTransferApplicationOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferApplicationOwnershipRequest(false) -var requestTransferApplicationOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferApplicationOwnershipRequest(true) +var requestTransferApplicationAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false) +var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(true) + +type requestTransferApplicationAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestTransferApplicationOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false) +var requestTransferApplicationOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(true) -type requestTransferApplicationOwnershipRequestData struct { +type requestTransferApplicationOwnershipRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2713,10 +5370,27 @@ type requestTransferApplicationOwnershipRequestData struct { ApplicationUUID types.String `tfsdk:"application_uuid"` } -var requestTransferAuditorGroupRequestAttrTypes = objectAttrsTypeRequestTransferAuditorGroupRequest(false) -var requestTransferAuditorGroupRequestAttrTypesRecurse = objectAttrsTypeRequestTransferAuditorGroupRequest(true) +var requestTransferApplicationOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false) +var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(true) + +type requestTransferApplicationOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestTransferAuditorGroupRequestAttrTypesRS = objectAttrsTypeRSRequestTransferAuditorGroupRequest(false) +var requestTransferAuditorGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferAuditorGroupRequest(true) -type requestTransferAuditorGroupRequestData struct { +type requestTransferAuditorGroupRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2729,10 +5403,26 @@ type requestTransferAuditorGroupRequestData struct { Status types.String `tfsdk:"status"` } -var requestTransferGroupOnSystemOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(false) -var requestTransferGroupOnSystemOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(true) +var requestTransferAuditorGroupRequestAttrTypesDS = objectAttrsTypeDSRequestTransferAuditorGroupRequest(false) +var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferAuditorGroupRequest(true) + +type requestTransferAuditorGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestTransferGroupOnSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false) +var requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(true) -type requestTransferGroupOnSystemOwnershipRequestData struct { +type requestTransferGroupOnSystemOwnershipRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2746,10 +5436,27 @@ type requestTransferGroupOnSystemOwnershipRequestData struct { GroupOnSystem types.Object `tfsdk:"group_on_system"` } -var requestTransferOrganizationalUnitOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferOrganizationalUnitOwnershipRequest(false) -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferOrganizationalUnitOwnershipRequest(true) +var requestTransferGroupOnSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false) +var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(true) + +type requestTransferGroupOnSystemOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false) +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(true) -type requestTransferOrganizationalUnitOwnershipRequestData struct { +type requestTransferOrganizationalUnitOwnershipRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2763,10 +5470,27 @@ type requestTransferOrganizationalUnitOwnershipRequestData struct { OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` } -var requestTransferProvisionedSystemAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(false) -var requestTransferProvisionedSystemAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(true) +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false) +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(true) + +type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` +} + +var requestTransferProvisionedSystemAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false) +var requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(true) -type requestTransferProvisionedSystemAdministrationRequestData struct { +type requestTransferProvisionedSystemAdministrationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2780,10 +5504,27 @@ type requestTransferProvisionedSystemAdministrationRequestData struct { SystemUUID types.String `tfsdk:"system_uuid"` } -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferProvisionedSystemContentAdministrationRequest(false) -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferProvisionedSystemContentAdministrationRequest(true) +var requestTransferProvisionedSystemAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false) +var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(true) + +type requestTransferProvisionedSystemAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false) +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(true) -type requestTransferProvisionedSystemContentAdministrationRequestData struct { +type requestTransferProvisionedSystemContentAdministrationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2797,10 +5538,27 @@ type requestTransferProvisionedSystemContentAdministrationRequestData struct { SystemUUID types.String `tfsdk:"system_uuid"` } -var requestTransferProvisionedSystemOwnershipRequestAttrTypes = objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(false) -var requestTransferProvisionedSystemOwnershipRequestAttrTypesRecurse = objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(true) +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false) +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(true) -type requestTransferProvisionedSystemOwnershipRequestData struct { +type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestTransferProvisionedSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false) +var requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(true) + +type requestTransferProvisionedSystemOwnershipRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2814,10 +5572,27 @@ type requestTransferProvisionedSystemOwnershipRequestData struct { SystemUUID types.String `tfsdk:"system_uuid"` } -var requestTransferServiceAccountAdministrationRequestAttrTypes = objectAttrsTypeRequestTransferServiceAccountAdministrationRequest(false) -var requestTransferServiceAccountAdministrationRequestAttrTypesRecurse = objectAttrsTypeRequestTransferServiceAccountAdministrationRequest(true) +var requestTransferProvisionedSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false) +var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(true) + +type requestTransferProvisionedSystemOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestTransferServiceAccountAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false) +var requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(true) -type requestTransferServiceAccountAdministrationRequestData struct { +type requestTransferServiceAccountAdministrationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2831,10 +5606,27 @@ type requestTransferServiceAccountAdministrationRequestData struct { ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` } -var requestUpdateGroupMembershipRequestAttrTypes = objectAttrsTypeRequestUpdateGroupMembershipRequest(false) -var requestUpdateGroupMembershipRequestAttrTypesRecurse = objectAttrsTypeRequestUpdateGroupMembershipRequest(true) +var requestTransferServiceAccountAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false) +var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(true) + +type requestTransferServiceAccountAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ServiceAccount types.Object `tfsdk:"service_account"` +} + +var requestUpdateGroupMembershipRequestAttrTypesRS = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false) +var requestUpdateGroupMembershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(true) -type requestUpdateGroupMembershipRequestData struct { +type requestUpdateGroupMembershipRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2853,10 +5645,32 @@ type requestUpdateGroupMembershipRequestData struct { UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` } -var requestVerifyInternalAccountRequestAttrTypes = objectAttrsTypeRequestVerifyInternalAccountRequest(false) -var requestVerifyInternalAccountRequestAttrTypesRecurse = objectAttrsTypeRequestVerifyInternalAccountRequest(true) +var requestUpdateGroupMembershipRequestAttrTypesDS = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false) +var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(true) + +type requestUpdateGroupMembershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountToUpdate types.Object `tfsdk:"account_to_update"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` +} + +var requestVerifyInternalAccountRequestAttrTypesRS = objectAttrsTypeRSRequestVerifyInternalAccountRequest(false) +var requestVerifyInternalAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestVerifyInternalAccountRequest(true) -type requestVerifyInternalAccountRequestData struct { +type requestVerifyInternalAccountRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -2870,10 +5684,27 @@ type requestVerifyInternalAccountRequestData struct { InternalAccountName types.String `tfsdk:"internal_account_name"` } -var serviceaccountServiceAccountAttrTypes = objectAttrsTypeServiceaccountServiceAccount(false) -var serviceaccountServiceAccountAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccount(true) +var requestVerifyInternalAccountRequestAttrTypesDS = objectAttrsTypeDSRequestVerifyInternalAccountRequest(false) +var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestVerifyInternalAccountRequest(true) + +type requestVerifyInternalAccountRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + InternalAccountName types.String `tfsdk:"internal_account_name"` +} + +var serviceaccountServiceAccountAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount(false) +var serviceaccountServiceAccountAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount(true) -type serviceaccountServiceAccountData struct { +type serviceaccountServiceAccountDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -2888,10 +5719,28 @@ type serviceaccountServiceAccountData struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` } -var serviceaccountServiceAccountGroupAttrTypes = objectAttrsTypeServiceaccountServiceAccountGroup(false) -var serviceaccountServiceAccountGroupAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountGroup(true) +var serviceaccountServiceAccountAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount(false) +var serviceaccountServiceAccountAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount(true) + +type serviceaccountServiceAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + System types.Object `tfsdk:"system"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Description types.String `tfsdk:"description"` + Password types.Object `tfsdk:"password"` + PasswordRotation types.String `tfsdk:"password_rotation"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` +} + +var serviceaccountServiceAccountGroupAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroup(false) +var serviceaccountServiceAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroup(true) -type serviceaccountServiceAccountGroupData struct { +type serviceaccountServiceAccountGroupDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` @@ -2901,31 +5750,65 @@ type serviceaccountServiceAccountGroupData struct { AdditionalObjects types.Object `tfsdk:"additional_objects"` } -var serviceaccountServiceAccountGroupLinkableWrapperAttrTypes = objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(false) -var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(true) +var serviceaccountServiceAccountGroupAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroup(false) +var serviceaccountServiceAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroup(true) -type serviceaccountServiceAccountGroupLinkableWrapperData struct { - Items types.List `tfsdk:"items"` +type serviceaccountServiceAccountGroupDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` } -var serviceaccountServiceAccountGroup_additionalObjectsAttrTypes = objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(false) -var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(true) +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(false) +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(true) -type serviceaccountServiceAccountGroup_additionalObjectsData struct { +type serviceaccountServiceAccountGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(false) +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(true) + +type serviceaccountServiceAccountGroupLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false) +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(true) + +type serviceaccountServiceAccountGroup_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } -var serviceaccountServiceAccountLinkableWrapperAttrTypes = objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(false) -var serviceaccountServiceAccountLinkableWrapperAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(true) +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false) +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(true) + +type serviceaccountServiceAccountGroup_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var serviceaccountServiceAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(false) +var serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(true) + +type serviceaccountServiceAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(false) +var serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(true) -type serviceaccountServiceAccountLinkableWrapperData struct { +type serviceaccountServiceAccountLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var serviceaccountServiceAccountPrimerAttrTypes = objectAttrsTypeServiceaccountServiceAccountPrimer(false) -var serviceaccountServiceAccountPrimerAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountPrimer(true) +var serviceaccountServiceAccountPrimerAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountPrimer(false) +var serviceaccountServiceAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountPrimer(true) -type serviceaccountServiceAccountPrimerData struct { +type serviceaccountServiceAccountPrimerDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Active types.Bool `tfsdk:"active"` @@ -2935,69 +5818,153 @@ type serviceaccountServiceAccountPrimerData struct { UUID types.String `tfsdk:"uuid"` } -var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypes = objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(false) -var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(true) +var serviceaccountServiceAccountPrimerAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountPrimer(false) +var serviceaccountServiceAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountPrimer(true) -type serviceaccountServiceAccountPrimerLinkableWrapperData struct { +type serviceaccountServiceAccountPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + System types.Object `tfsdk:"system"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` +} + +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false) +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(true) + +type serviceaccountServiceAccountPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false) +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(true) + +type serviceaccountServiceAccountPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var serviceaccountServiceAccountStatusAttrTypes = objectAttrsTypeServiceaccountServiceAccountStatus(false) -var serviceaccountServiceAccountStatusAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountStatus(true) +var serviceaccountServiceAccountStatusAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountStatus(false) +var serviceaccountServiceAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountStatus(true) + +type serviceaccountServiceAccountStatusDataRS struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` +} + +var serviceaccountServiceAccountStatusAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountStatus(false) +var serviceaccountServiceAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountStatus(true) -type serviceaccountServiceAccountStatusData struct { +type serviceaccountServiceAccountStatusDataDS struct { AccountEnabled types.Bool `tfsdk:"account_enabled"` } -var serviceaccountServiceAccount_additionalObjectsAttrTypes = objectAttrsTypeServiceaccountServiceAccount_additionalObjects(false) -var serviceaccountServiceAccount_additionalObjectsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccount_additionalObjects(true) +var serviceaccountServiceAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false) +var serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(true) + +type serviceaccountServiceAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` +} + +var serviceaccountServiceAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false) +var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(true) -type serviceaccountServiceAccount_additionalObjectsData struct { +type serviceaccountServiceAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Groups types.Object `tfsdk:"groups"` Secret types.Object `tfsdk:"secret"` } -var serviceaccountServiceAccountsAuditStatsAttrTypes = objectAttrsTypeServiceaccountServiceAccountsAuditStats(false) -var serviceaccountServiceAccountsAuditStatsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountsAuditStats(true) +var serviceaccountServiceAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(false) +var serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(true) -type serviceaccountServiceAccountsAuditStatsData struct { +type serviceaccountServiceAccountsAuditStatsDataRS struct { DisabledCount types.Int64 `tfsdk:"disabled_count"` PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` SystemStats types.Object `tfsdk:"system_stats"` } -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypes = objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) +var serviceaccountServiceAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(false) +var serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(true) + +type serviceaccountServiceAccountsAuditStatsDataDS struct { + DisabledCount types.Int64 `tfsdk:"disabled_count"` + PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` + SystemStats types.Object `tfsdk:"system_stats"` +} + +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) + +type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS struct { +} + +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) + +type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS struct { +} + +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(false) +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(true) -type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsData struct { +type serviceaccountServiceAccountsAuditStats_systemStatsDataRS struct { } -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypes = objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(false) -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRecurse = objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(true) +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(false) +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(true) -type serviceaccountServiceAccountsAuditStats_systemStatsData struct { +type serviceaccountServiceAccountsAuditStats_systemStatsDataDS struct { +} + +var simpleStringValueAttrTypesRS = objectAttrsTypeRSSimpleStringValue(false) +var simpleStringValueAttrTypesRSRecurse = objectAttrsTypeRSSimpleStringValue(true) + +type simpleStringValueDataRS struct { + Value types.String `tfsdk:"value"` } -var simpleStringValueAttrTypes = objectAttrsTypeSimpleStringValue(false) -var simpleStringValueAttrTypesRecurse = objectAttrsTypeSimpleStringValue(true) +var simpleStringValueAttrTypesDS = objectAttrsTypeDSSimpleStringValue(false) +var simpleStringValueAttrTypesDSRecurse = objectAttrsTypeDSSimpleStringValue(true) -type simpleStringValueData struct { +type simpleStringValueDataDS struct { Value types.String `tfsdk:"value"` } -var simpleVersionInfoAttrTypes = objectAttrsTypeSimpleVersionInfo(false) -var simpleVersionInfoAttrTypesRecurse = objectAttrsTypeSimpleVersionInfo(true) +var simpleVersionInfoAttrTypesRS = objectAttrsTypeRSSimpleVersionInfo(false) +var simpleVersionInfoAttrTypesRSRecurse = objectAttrsTypeRSSimpleVersionInfo(true) -type simpleVersionInfoData struct { +type simpleVersionInfoDataRS struct { ContractVersions types.List `tfsdk:"contract_versions"` KeyHubVersion types.String `tfsdk:"key_hub_version"` } -var vaultDeletedVaultHolderAttrTypes = objectAttrsTypeVaultDeletedVaultHolder(false) -var vaultDeletedVaultHolderAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultHolder(true) +var simpleVersionInfoAttrTypesDS = objectAttrsTypeDSSimpleVersionInfo(false) +var simpleVersionInfoAttrTypesDSRecurse = objectAttrsTypeDSSimpleVersionInfo(true) + +type simpleVersionInfoDataDS struct { + ContractVersions types.List `tfsdk:"contract_versions"` + KeyHubVersion types.String `tfsdk:"key_hub_version"` +} + +var vaultDeletedVaultHolderAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder(false) +var vaultDeletedVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder(true) + +type vaultDeletedVaultHolderDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + RecordCount types.Int64 `tfsdk:"record_count"` + VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` +} + +var vaultDeletedVaultHolderAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder(false) +var vaultDeletedVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder(true) -type vaultDeletedVaultHolderData struct { +type vaultDeletedVaultHolderDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -3006,52 +5973,105 @@ type vaultDeletedVaultHolderData struct { VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` } -var vaultDeletedVaultHolderLinkableWrapperAttrTypes = objectAttrsTypeVaultDeletedVaultHolderLinkableWrapper(false) -var vaultDeletedVaultHolderLinkableWrapperAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultHolderLinkableWrapper(true) +var vaultDeletedVaultHolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(false) +var vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(true) + +type vaultDeletedVaultHolderLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var vaultDeletedVaultHolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(false) +var vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(true) -type vaultDeletedVaultHolderLinkableWrapperData struct { +type vaultDeletedVaultHolderLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var vaultDeletedVaultHolder_additionalObjectsAttrTypes = objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(false) -var vaultDeletedVaultHolder_additionalObjectsAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(true) +var vaultDeletedVaultHolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false) +var vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(true) + +type vaultDeletedVaultHolder_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var vaultDeletedVaultHolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false) +var vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(true) -type vaultDeletedVaultHolder_additionalObjectsData struct { +type vaultDeletedVaultHolder_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Vault types.Object `tfsdk:"vault"` } -var vaultDeletedVaultRecoveryAttrTypes = objectAttrsTypeVaultDeletedVaultRecovery(false) -var vaultDeletedVaultRecoveryAttrTypesRecurse = objectAttrsTypeVaultDeletedVaultRecovery(true) +var vaultDeletedVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultRecovery(false) +var vaultDeletedVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultRecovery(true) -type vaultDeletedVaultRecoveryData struct { +type vaultDeletedVaultRecoveryDataRS struct { Prefix types.String `tfsdk:"prefix"` PrivateKey types.String `tfsdk:"private_key"` TargetGroupUUID types.String `tfsdk:"target_group_uuid"` } -var vaultMoveVaultRecordAttrTypes = objectAttrsTypeVaultMoveVaultRecord(false) -var vaultMoveVaultRecordAttrTypesRecurse = objectAttrsTypeVaultMoveVaultRecord(true) +var vaultDeletedVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultRecovery(false) +var vaultDeletedVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultRecovery(true) + +type vaultDeletedVaultRecoveryDataDS struct { + Prefix types.String `tfsdk:"prefix"` + PrivateKey types.String `tfsdk:"private_key"` + TargetGroup types.Object `tfsdk:"target_group"` +} + +var vaultMoveVaultRecordAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord(false) +var vaultMoveVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord(true) -type vaultMoveVaultRecordData struct { +type vaultMoveVaultRecordDataRS struct { AccountUUID types.String `tfsdk:"account_uuid"` Action types.String `tfsdk:"action"` GroupUUID types.String `tfsdk:"group_uuid"` ShareDuration types.Object `tfsdk:"share_duration"` } -var vaultMoveVaultRecord_shareDurationAttrTypes = objectAttrsTypeVaultMoveVaultRecord_shareDuration(false) -var vaultMoveVaultRecord_shareDurationAttrTypesRecurse = objectAttrsTypeVaultMoveVaultRecord_shareDuration(true) +var vaultMoveVaultRecordAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord(false) +var vaultMoveVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord(true) + +type vaultMoveVaultRecordDataDS struct { + Account types.Object `tfsdk:"account"` + Action types.String `tfsdk:"action"` + Group types.Object `tfsdk:"group"` + ShareDuration types.Object `tfsdk:"share_duration"` +} + +var vaultMoveVaultRecord_shareDurationAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(false) +var vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(true) -type vaultMoveVaultRecord_shareDurationData struct { +type vaultMoveVaultRecord_shareDurationDataRS struct { Nanos types.Int64 `tfsdk:"nanos"` Seconds types.Int64 `tfsdk:"seconds"` } -var vaultVaultAttrTypes = objectAttrsTypeVaultVault(false) -var vaultVaultAttrTypesRecurse = objectAttrsTypeVaultVault(true) +var vaultMoveVaultRecord_shareDurationAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(false) +var vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(true) + +type vaultMoveVaultRecord_shareDurationDataDS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var vaultVaultAttrTypesRS = objectAttrsTypeRSVaultVault(false) +var vaultVaultAttrTypesRSRecurse = objectAttrsTypeRSVaultVault(true) + +type vaultVaultDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccessAvailable types.Bool `tfsdk:"access_available"` + Name types.String `tfsdk:"name"` + Records types.List `tfsdk:"records"` +} + +var vaultVaultAttrTypesDS = objectAttrsTypeDSVaultVault(false) +var vaultVaultAttrTypesDSRecurse = objectAttrsTypeDSVaultVault(true) -type vaultVaultData struct { +type vaultVaultDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccessAvailable types.Bool `tfsdk:"access_available"` @@ -3059,16 +6079,42 @@ type vaultVaultData struct { Records types.List `tfsdk:"records"` } -var vaultVaultHolderAttrTypes = objectAttrsTypeVaultVaultHolder(false) -var vaultVaultHolderAttrTypesRecurse = objectAttrsTypeVaultVaultHolder(true) +var vaultVaultHolderAttrTypesRS = objectAttrsTypeRSVaultVaultHolder(false) +var vaultVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultHolder(true) + +type vaultVaultHolderDataRS struct { +} + +var vaultVaultHolderAttrTypesDS = objectAttrsTypeDSVaultVaultHolder(false) +var vaultVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultHolder(true) -type vaultVaultHolderData struct { +type vaultVaultHolderDataDS struct { +} + +var vaultVaultRecordAttrTypesRS = objectAttrsTypeRSVaultVaultRecord(false) +var vaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord(true) + +type vaultVaultRecordDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } -var vaultVaultRecordAttrTypes = objectAttrsTypeVaultVaultRecord(false) -var vaultVaultRecordAttrTypesRecurse = objectAttrsTypeVaultVaultRecord(true) +var vaultVaultRecordAttrTypesDS = objectAttrsTypeDSVaultVaultRecord(false) +var vaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord(true) -type vaultVaultRecordData struct { +type vaultVaultRecordDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Color types.String `tfsdk:"color"` @@ -3085,17 +6131,36 @@ type vaultVaultRecordData struct { WarningPeriod types.String `tfsdk:"warning_period"` } -var vaultVaultRecordLinkableWrapperAttrTypes = objectAttrsTypeVaultVaultRecordLinkableWrapper(false) -var vaultVaultRecordLinkableWrapperAttrTypesRecurse = objectAttrsTypeVaultVaultRecordLinkableWrapper(true) +var vaultVaultRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(false) +var vaultVaultRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(true) + +type vaultVaultRecordLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(false) +var vaultVaultRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(true) -type vaultVaultRecordLinkableWrapperData struct { +type vaultVaultRecordLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var vaultVaultRecordPrimerAttrTypes = objectAttrsTypeVaultVaultRecordPrimer(false) -var vaultVaultRecordPrimerAttrTypesRecurse = objectAttrsTypeVaultVaultRecordPrimer(true) +var vaultVaultRecordPrimerAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimer(false) +var vaultVaultRecordPrimerAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimer(true) + +type vaultVaultRecordPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` +} + +var vaultVaultRecordPrimerAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimer(false) +var vaultVaultRecordPrimerAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimer(true) -type vaultVaultRecordPrimerData struct { +type vaultVaultRecordPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Color types.String `tfsdk:"color"` @@ -3104,17 +6169,35 @@ type vaultVaultRecordPrimerData struct { UUID types.String `tfsdk:"uuid"` } -var vaultVaultRecordPrimerLinkableWrapperAttrTypes = objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(false) -var vaultVaultRecordPrimerLinkableWrapperAttrTypesRecurse = objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(true) +var vaultVaultRecordPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false) +var vaultVaultRecordPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(true) + +type vaultVaultRecordPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false) +var vaultVaultRecordPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(true) -type vaultVaultRecordPrimerLinkableWrapperData struct { +type vaultVaultRecordPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var vaultVaultRecordSecretsAttrTypes = objectAttrsTypeVaultVaultRecordSecrets(false) -var vaultVaultRecordSecretsAttrTypesRecurse = objectAttrsTypeVaultVaultRecordSecrets(true) +var vaultVaultRecordSecretsAttrTypesRS = objectAttrsTypeRSVaultVaultRecordSecrets(false) +var vaultVaultRecordSecretsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordSecrets(true) + +type vaultVaultRecordSecretsDataRS struct { + Comment types.String `tfsdk:"comment"` + File types.String `tfsdk:"file"` + Password types.String `tfsdk:"password"` + Totp types.String `tfsdk:"totp"` + WriteTotp types.Bool `tfsdk:"write_totp"` +} + +var vaultVaultRecordSecretsAttrTypesDS = objectAttrsTypeDSVaultVaultRecordSecrets(false) +var vaultVaultRecordSecretsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordSecrets(true) -type vaultVaultRecordSecretsData struct { +type vaultVaultRecordSecretsDataDS struct { Comment types.String `tfsdk:"comment"` File types.String `tfsdk:"file"` Password types.String `tfsdk:"password"` @@ -3122,26 +6205,42 @@ type vaultVaultRecordSecretsData struct { WriteTotp types.Bool `tfsdk:"write_totp"` } -var vaultVaultRecordShareAttrTypes = objectAttrsTypeVaultVaultRecordShare(false) -var vaultVaultRecordShareAttrTypesRecurse = objectAttrsTypeVaultVaultRecordShare(true) +var vaultVaultRecordShareAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShare(false) +var vaultVaultRecordShareAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordShare(true) + +type vaultVaultRecordShareDataRS struct { + Name types.String `tfsdk:"name"` + VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` +} + +var vaultVaultRecordShareAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShare(false) +var vaultVaultRecordShareAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordShare(true) -type vaultVaultRecordShareData struct { +type vaultVaultRecordShareDataDS struct { Name types.String `tfsdk:"name"` VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` } -var vaultVaultRecordShareSummaryAttrTypes = objectAttrsTypeVaultVaultRecordShareSummary(false) -var vaultVaultRecordShareSummaryAttrTypesRecurse = objectAttrsTypeVaultVaultRecordShareSummary(true) +var vaultVaultRecordShareSummaryAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShareSummary(false) +var vaultVaultRecordShareSummaryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordShareSummary(true) + +type vaultVaultRecordShareSummaryDataRS struct { + Children types.List `tfsdk:"children"` + Parent types.Object `tfsdk:"parent"` +} + +var vaultVaultRecordShareSummaryAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShareSummary(false) +var vaultVaultRecordShareSummaryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordShareSummary(true) -type vaultVaultRecordShareSummaryData struct { +type vaultVaultRecordShareSummaryDataDS struct { Children types.List `tfsdk:"children"` Parent types.Object `tfsdk:"parent"` } -var vaultVaultRecord_additionalObjectsAttrTypes = objectAttrsTypeVaultVaultRecord_additionalObjects(false) -var vaultVaultRecord_additionalObjectsAttrTypesRecurse = objectAttrsTypeVaultVaultRecord_additionalObjects(true) +var vaultVaultRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultVaultRecord_additionalObjects(false) +var vaultVaultRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord_additionalObjects(true) -type vaultVaultRecord_additionalObjectsData struct { +type vaultVaultRecord_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` DeleteTile types.Bool `tfsdk:"delete_tile"` ParentUUID types.String `tfsdk:"parent_uuid"` @@ -3152,33 +6251,70 @@ type vaultVaultRecord_additionalObjectsData struct { Vaultholder types.Object `tfsdk:"vaultholder"` } -var vaultVaultRecoveryAttrTypes = objectAttrsTypeVaultVaultRecovery(false) -var vaultVaultRecoveryAttrTypesRecurse = objectAttrsTypeVaultVaultRecovery(true) +var vaultVaultRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultVaultRecord_additionalObjects(false) +var vaultVaultRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord_additionalObjects(true) + +type vaultVaultRecord_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + Parent types.Object `tfsdk:"parent"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` +} + +var vaultVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultVaultRecovery(false) +var vaultVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecovery(true) -type vaultVaultRecoveryData struct { +type vaultVaultRecoveryDataRS struct { AccountUUID types.String `tfsdk:"account_uuid"` PrivateKey types.String `tfsdk:"private_key"` } -var vaultVaultUnlockAttrTypes = objectAttrsTypeVaultVaultUnlock(false) -var vaultVaultUnlockAttrTypesRecurse = objectAttrsTypeVaultVaultUnlock(true) +var vaultVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultVaultRecovery(false) +var vaultVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecovery(true) + +type vaultVaultRecoveryDataDS struct { + Account types.Object `tfsdk:"account"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var vaultVaultUnlockAttrTypesRS = objectAttrsTypeRSVaultVaultUnlock(false) +var vaultVaultUnlockAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlock(true) + +type vaultVaultUnlockDataRS struct { + Password types.String `tfsdk:"password"` +} + +var vaultVaultUnlockAttrTypesDS = objectAttrsTypeDSVaultVaultUnlock(false) +var vaultVaultUnlockAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlock(true) -type vaultVaultUnlockData struct { +type vaultVaultUnlockDataDS struct { Password types.String `tfsdk:"password"` } -var vaultVaultUnlockResponseAttrTypes = objectAttrsTypeVaultVaultUnlockResponse(false) -var vaultVaultUnlockResponseAttrTypesRecurse = objectAttrsTypeVaultVaultUnlockResponse(true) +var vaultVaultUnlockResponseAttrTypesRS = objectAttrsTypeRSVaultVaultUnlockResponse(false) +var vaultVaultUnlockResponseAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlockResponse(true) + +type vaultVaultUnlockResponseDataRS struct { + ExpiresAt types.String `tfsdk:"expires_at"` + SessionPassword types.String `tfsdk:"session_password"` +} + +var vaultVaultUnlockResponseAttrTypesDS = objectAttrsTypeDSVaultVaultUnlockResponse(false) +var vaultVaultUnlockResponseAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlockResponse(true) -type vaultVaultUnlockResponseData struct { +type vaultVaultUnlockResponseDataDS struct { ExpiresAt types.String `tfsdk:"expires_at"` SessionPassword types.String `tfsdk:"session_password"` } -var webhookWebhookAttrTypes = objectAttrsTypeWebhookWebhook(false) -var webhookWebhookAttrTypesRecurse = objectAttrsTypeWebhookWebhook(true) +var webhookWebhookAttrTypesRS = objectAttrsTypeRSWebhookWebhook(false) +var webhookWebhookAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook(true) -type webhookWebhookData struct { +type webhookWebhookDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` @@ -3205,10 +6341,56 @@ type webhookWebhookData struct { VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` } -var webhookWebhookDeliveryAttrTypes = objectAttrsTypeWebhookWebhookDelivery(false) -var webhookWebhookDeliveryAttrTypesRecurse = objectAttrsTypeWebhookWebhookDelivery(true) +var webhookWebhookAttrTypesDS = objectAttrsTypeDSWebhookWebhook(false) +var webhookWebhookAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook(true) + +type webhookWebhookDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AllTypes types.Bool `tfsdk:"all_types"` + AuthenticationScheme types.String `tfsdk:"authentication_scheme"` + BasicAuthPassword types.String `tfsdk:"basic_auth_password"` + BasicAuthUsername types.String `tfsdk:"basic_auth_username"` + BearerToken types.String `tfsdk:"bearer_token"` + Client types.Object `tfsdk:"client"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + CustomHeaderName types.String `tfsdk:"custom_header_name"` + CustomHeaderValue types.String `tfsdk:"custom_header_value"` + Directory types.Object `tfsdk:"directory"` + Group types.Object `tfsdk:"group"` + Name types.String `tfsdk:"name"` + System types.Object `tfsdk:"system"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + UUID types.String `tfsdk:"uuid"` + VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` +} + +var webhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery(false) +var webhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery(true) + +type webhookWebhookDeliveryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + +var webhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery(false) +var webhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery(true) -type webhookWebhookDeliveryData struct { +type webhookWebhookDeliveryDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -3221,40 +6403,97 @@ type webhookWebhookDeliveryData struct { TriggerTime types.String `tfsdk:"trigger_time"` } -var webhookWebhookDeliveryLinkableWrapperAttrTypes = objectAttrsTypeWebhookWebhookDeliveryLinkableWrapper(false) -var webhookWebhookDeliveryLinkableWrapperAttrTypesRecurse = objectAttrsTypeWebhookWebhookDeliveryLinkableWrapper(true) +var webhookWebhookDeliveryLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(false) +var webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(true) + +type webhookWebhookDeliveryLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookDeliveryLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(false) +var webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(true) -type webhookWebhookDeliveryLinkableWrapperData struct { +type webhookWebhookDeliveryLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var webhookWebhookDelivery_additionalObjectsAttrTypes = objectAttrsTypeWebhookWebhookDelivery_additionalObjects(false) -var webhookWebhookDelivery_additionalObjectsAttrTypesRecurse = objectAttrsTypeWebhookWebhookDelivery_additionalObjects(true) +var webhookWebhookDelivery_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false) +var webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(true) + +type webhookWebhookDelivery_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var webhookWebhookDelivery_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false) +var webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(true) -type webhookWebhookDelivery_additionalObjectsData struct { +type webhookWebhookDelivery_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var webhookWebhookLinkableWrapperAttrTypes = objectAttrsTypeWebhookWebhookLinkableWrapper(false) -var webhookWebhookLinkableWrapperAttrTypesRecurse = objectAttrsTypeWebhookWebhookLinkableWrapper(true) +var webhookWebhookLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookLinkableWrapper(false) +var webhookWebhookLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookLinkableWrapper(true) + +type webhookWebhookLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookLinkableWrapper(false) +var webhookWebhookLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookLinkableWrapper(true) -type webhookWebhookLinkableWrapperData struct { +type webhookWebhookLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var webhookWebhookNameUuidAttrTypes = objectAttrsTypeWebhookWebhookNameUuid(false) -var webhookWebhookNameUuidAttrTypesRecurse = objectAttrsTypeWebhookWebhookNameUuid(true) +var webhookWebhookNameUuidAttrTypesRS = objectAttrsTypeRSWebhookWebhookNameUuid(false) +var webhookWebhookNameUuidAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookNameUuid(true) + +type webhookWebhookNameUuidDataRS struct { + Name types.String `tfsdk:"name"` + Object types.Object `tfsdk:"object"` + UUID types.String `tfsdk:"uuid"` +} + +var webhookWebhookNameUuidAttrTypesDS = objectAttrsTypeDSWebhookWebhookNameUuid(false) +var webhookWebhookNameUuidAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookNameUuid(true) -type webhookWebhookNameUuidData struct { +type webhookWebhookNameUuidDataDS struct { Name types.String `tfsdk:"name"` Object types.Object `tfsdk:"object"` UUID types.String `tfsdk:"uuid"` } -var webhookWebhookPushAttrTypes = objectAttrsTypeWebhookWebhookPush(false) -var webhookWebhookPushAttrTypesRecurse = objectAttrsTypeWebhookWebhookPush(true) +var webhookWebhookPushAttrTypesRS = objectAttrsTypeRSWebhookWebhookPush(false) +var webhookWebhookPushAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookPush(true) + +type webhookWebhookPushDataRS struct { + Account types.Object `tfsdk:"account"` + ByParty types.Object `tfsdk:"by_party"` + Certificate types.Object `tfsdk:"certificate"` + Client types.Object `tfsdk:"client"` + Directory types.Object `tfsdk:"directory"` + Group types.Object `tfsdk:"group"` + Group2 types.Object `tfsdk:"group2"` + GroupClassification types.Object `tfsdk:"group_classification"` + ModificationRequest types.Object `tfsdk:"modification_request"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + SecurityLevel types.String `tfsdk:"security_level"` + Seq types.Int64 `tfsdk:"seq"` + ServiceAccount types.Object `tfsdk:"service_account"` + System types.Object `tfsdk:"system"` + Timestamp types.String `tfsdk:"timestamp"` + VaultRecord types.Object `tfsdk:"vault_record"` + Webhook types.Object `tfsdk:"webhook"` + WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` +} + +var webhookWebhookPushAttrTypesDS = objectAttrsTypeDSWebhookWebhookPush(false) +var webhookWebhookPushAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookPush(true) -type webhookWebhookPushData struct { +type webhookWebhookPushDataDS struct { Account types.Object `tfsdk:"account"` ByParty types.Object `tfsdk:"by_party"` Certificate types.Object `tfsdk:"certificate"` @@ -3278,14 +6517,21 @@ type webhookWebhookPushData struct { WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` } -var webhookWebhook_additionalObjectsAttrTypes = objectAttrsTypeWebhookWebhook_additionalObjects(false) -var webhookWebhook_additionalObjectsAttrTypesRecurse = objectAttrsTypeWebhookWebhook_additionalObjects(true) +var webhookWebhook_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhook_additionalObjects(false) +var webhookWebhook_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook_additionalObjects(true) + +type webhookWebhook_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var webhookWebhook_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhook_additionalObjects(false) +var webhookWebhook_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook_additionalObjects(true) -type webhookWebhook_additionalObjectsData struct { +type webhookWebhook_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -func objectAttrsTypeAuditInfo(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSAuditInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["created_at"] = types.StringType objectAttrs["created_by"] = types.StringType @@ -3293,10 +6539,33 @@ func objectAttrsTypeAuditInfo(recurse bool) map[string]attr.Type { objectAttrs["last_modified_by"] = types.StringType return objectAttrs } -func objectAttrsTypeErrorReport(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuditInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["last_modified_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSErrorReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["application_error"] = types.StringType + objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse)} + objectAttrs["code"] = types.Int64Type + objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} + objectAttrs["exception"] = types.StringType + objectAttrs["message"] = types.StringType + objectAttrs["reason"] = types.StringType + objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSErrorReport(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["application_error"] = types.StringType - objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeErrorReport_applicationErrorParameters(recurse)} + objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse)} objectAttrs["code"] = types.Int64Type objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} objectAttrs["exception"] = types.StringType @@ -3305,28 +6574,67 @@ func objectAttrsTypeErrorReport(recurse bool) map[string]attr.Type { objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSGeneratedSecret(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["generated_secret"] = types.StringType + objectAttrs["old_secret"] = types.StringType + objectAttrs["regenerate"] = types.BoolType return objectAttrs } -func objectAttrsTypeGeneratedSecret(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGeneratedSecret(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["generated_secret"] = types.StringType objectAttrs["old_secret"] = types.StringType objectAttrs["regenerate"] = types.BoolType return objectAttrs } -func objectAttrsTypeLinkable(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSNonLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNonLinkable(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} return objectAttrs } -func objectAttrsTypeNonLinkable(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRestLink(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["href"] = types.StringType + objectAttrs["id"] = types.Int64Type + objectAttrs["rel"] = types.StringType + objectAttrs["type_escaped"] = types.StringType return objectAttrs } -func objectAttrsTypeRestLink(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRestLink(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["href"] = types.StringType objectAttrs["id"] = types.Int64Type @@ -3334,19 +6642,57 @@ func objectAttrsTypeRestLink(recurse bool) map[string]attr.Type { objectAttrs["type_escaped"] = types.StringType return objectAttrs } -func objectAttrsTypeSegmentCount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["count"] = types.Int64Type + objectAttrs["name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["count"] = types.Int64Type objectAttrs["name"] = types.StringType return objectAttrs } -func objectAttrsTypeAuditAuditRecord(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["date_time"] = types.StringType + objectAttrs["on_account"] = types.StringType + objectAttrs["on_certificate"] = types.StringType + objectAttrs["on_client"] = types.StringType + objectAttrs["on_directory"] = types.StringType + objectAttrs["on_group"] = types.StringType + objectAttrs["on_group2"] = types.StringType + objectAttrs["on_group_classification"] = types.StringType + objectAttrs["on_organizational_unit"] = types.StringType + objectAttrs["on_service_account"] = types.StringType + objectAttrs["on_system"] = types.StringType + objectAttrs["on_vault_record"] = types.StringType + objectAttrs["on_webhook"] = types.StringType + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["performed_by"] = types.StringType + objectAttrs["security_level"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditAuditRecord_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["audit_audit_record_type"] = types.StringType objectAttrs["date_time"] = types.StringType objectAttrs["on_account"] = types.StringType @@ -3368,29 +6714,44 @@ func objectAttrsTypeAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs["security_level"] = types.StringType return objectAttrs } -func objectAttrsTypeAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuditAuditRecord(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeAuthAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["last_active"] = types.StringType objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} objectAttrs["active"] = types.BoolType objectAttrs["can_request_groups"] = types.BoolType objectAttrs["directory_uuid"] = types.StringType @@ -3410,27 +6771,96 @@ func objectAttrsTypeAuthAccount(recurse bool) map[string]attr.Type { objectAttrs["valid_in_directory"] = types.BoolType return objectAttrs } -func objectAttrsTypeAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["action"] = types.StringType + objectAttrs["exclusive_selection"] = types.BoolType + objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["action"] = types.StringType objectAttrs["exclusive_selection"] = types.BoolType objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} return objectAttrs } -func objectAttrsTypeAuthAccountChangeLocale(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["locale"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["locale"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthAccountPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthAccountPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["last_active"] = types.StringType objectAttrs["username"] = types.StringType @@ -3438,13 +6868,22 @@ func objectAttrsTypeAuthAccountPrimer(recurse bool) map[string]attr.Type { objectAttrs["validity"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["pending2_f_a_recovery_request"] = types.BoolType + objectAttrs["pending_password_recovery_request"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["pending2_f_a_recovery_request"] = types.BoolType objectAttrs["pending_password_recovery_request"] = types.BoolType return objectAttrs } -func objectAttrsTypeAuthAccountSettings(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccountSettings(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["default_organizational_unit_uuid"] = types.StringType objectAttrs["directory_name"] = types.StringType @@ -3460,7 +6899,36 @@ func objectAttrsTypeAuthAccountSettings(recurse bool) map[string]attr.Type { objectAttrs["vault_status"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthAccountStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthAccountSettings(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["default_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["in_groups"] = types.BoolType + objectAttrs["in_multiple_organizational_units"] = types.BoolType + objectAttrs["key_hub_admin"] = types.BoolType + objectAttrs["multiple_organizational_units_exist"] = types.BoolType + objectAttrs["password_mode"] = types.StringType + objectAttrs["ssh_public_key"] = types.StringType + objectAttrs["two_factor_authentication"] = types.StringType + objectAttrs["use_token_password"] = types.BoolType + objectAttrs["vault_status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["decline_recovery_requests"] = types.BoolType + objectAttrs["license_role"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["two_factor_authentication_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["account_enabled"] = types.BoolType objectAttrs["can_request_groups"] = types.BoolType @@ -3470,49 +6938,90 @@ func objectAttrsTypeAuthAccountStatus(recurse bool) map[string]attr.Type { objectAttrs["two_factor_authentication_enabled"] = types.BoolType return objectAttrs } -func objectAttrsTypeAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(recurse)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(recurse)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["active_login"] = types.BoolType - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroupLinkableWrapper(recurse)} - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountRecoveryStatus(recurse)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountSettings(recurse)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthStoredAccountAttributes(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(recurse)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(recurse)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse)} + objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse)} + objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeAuthAccountsAuditStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountsAuditStats_twoFAStats(recurse)} - objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccountsAuditStats_validityStats(recurse)} return objectAttrs } -func objectAttrsTypeAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeAuthInternalAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeAuthAccount_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["last_active"] = types.StringType objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} objectAttrs["active"] = types.BoolType objectAttrs["can_request_groups"] = types.BoolType objectAttrs["directory_uuid"] = types.StringType @@ -3539,54 +7048,169 @@ func objectAttrsTypeAuthInternalAccount(recurse bool) map[string]attr.Type { objectAttrs["telephone"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthInternalAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthInternalAccount(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthInternalAccount(recurse)}} return objectAttrs } -func objectAttrsTypeAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthInternalAccount_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["reason"] = types.StringType + objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthMoveInternalAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthInternalAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryInternalDirectory(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["reason"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthPermission(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthInternalAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["full"] = types.StringType - objectAttrs["instances"] = types.ListType{ElemType: types.StringType} - objectAttrs["operations"] = types.ListType{ElemType: types.StringType} - objectAttrs["type_escaped"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["reason"] = types.StringType return objectAttrs } -func objectAttrsTypeAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["value"] = types.StringType + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(recurse)} return objectAttrs } -func objectAttrsTypeAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthStoredAccountAttribute(recurse)}} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(recurse)} return objectAttrs } -func objectAttrsTypeCertificateCertificate(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSAuthPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["alias"] = types.StringType + objectAttrs["full"] = types.StringType + objectAttrs["instances"] = types.ListType{ElemType: types.StringType} + objectAttrs["operations"] = types.ListType{ElemType: types.StringType} + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["full"] = types.StringType + objectAttrs["instances"] = types.ListType{ElemType: types.StringType} + objectAttrs["operations"] = types.ListType{ElemType: types.StringType} + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttribute(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttribute(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType objectAttrs["certificate_certificate_primer_type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType @@ -3598,15 +7222,39 @@ func objectAttrsTypeCertificateCertificate(recurse bool) map[string]attr.Type { objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeCertificateCertificatePrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType objectAttrs["certificate_certificate_primer_type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} @@ -3618,18 +7266,26 @@ func objectAttrsTypeCertificateCertificatePrimer(recurse bool) map[string]attr.T objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeClientClientApplication(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["client_client_application_primer_type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType @@ -3641,15 +7297,55 @@ func objectAttrsTypeClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs["technical_administrator_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSClientClientApplicationPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeClientClientApplicationPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientClientApplicationPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["client_client_application_primer_type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType @@ -3658,24 +7354,38 @@ func objectAttrsTypeClientClientApplicationPrimer(recurse bool) map[string]attr. objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse)} + objectAttrs["vault_record_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["delete_tile"] = types.BoolType - objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupLinkableWrapper(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeGeneratedSecret(recurse)} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(recurse)} + objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} objectAttrs["vault_record_count"] = types.Int64Type return objectAttrs } -func objectAttrsTypeClientLdapClient(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["client_client_application_primer_type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType @@ -3692,13 +7402,38 @@ func objectAttrsTypeClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs["used_for_provisioning"] = types.BoolType return objectAttrs } -func objectAttrsTypeClientOAuth2Client(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["bind_dn"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["used_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["client_client_application_primer_type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType @@ -3708,8 +7443,8 @@ func objectAttrsTypeClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2Client_attributes(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(false)} objectAttrs["callback_u_r_i"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -3722,57 +7457,145 @@ func objectAttrsTypeClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["use_client_credentials"] = types.BoolType return objectAttrs } -func objectAttrsTypeClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(false)} + objectAttrs["callback_u_r_i"] = types.StringType + objectAttrs["confidential"] = types.BoolType + objectAttrs["debug_mode"] = types.BoolType + objectAttrs["id_token_claims"] = types.StringType + objectAttrs["initiate_login_u_r_i"] = types.StringType + objectAttrs["resource_u_r_is"] = types.StringType + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["show_landing_page"] = types.BoolType + objectAttrs["use_client_credentials"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["for_group_uuid"] = types.StringType objectAttrs["for_system_uuid"] = types.StringType objectAttrs["value"] = types.StringType return objectAttrs } -func objectAttrsTypeClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission(recurse)}} return objectAttrs } -func objectAttrsTypeClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["for_group_uuid"] = types.StringType objectAttrs["for_system_uuid"] = types.StringType objectAttrs["value"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2Client(false)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["value"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClient(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeClientSaml2Client(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplication_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["client_client_application_primer_type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType @@ -3782,23 +7605,53 @@ func objectAttrsTypeClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeClientSaml2Client_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(false)} + objectAttrs["metadata"] = types.StringType + objectAttrs["metadata_url"] = types.StringType + objectAttrs["subject_format"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(false)} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType return objectAttrs } -func objectAttrsTypeClientSaml2Client_attributes(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType objectAttrs["directory_account_directory_primer_type"] = types.StringType @@ -3812,15 +7665,56 @@ func objectAttrsTypeDirectoryAccountDirectory(recurse bool) map[string]attr.Type objectAttrs["username_customizable"] = types.BoolType return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType objectAttrs["directory_account_directory_primer_type"] = types.StringType @@ -3828,44 +7722,84 @@ func objectAttrsTypeDirectoryAccountDirectoryPrimer(recurse bool) map[string]att objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.Int64Type + objectAttrs["reason"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["accounts"] = types.Int64Type objectAttrs["reason"] = types.StringType objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse)} + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["directory_account_directory_summary_type"] = types.StringType objectAttrs["domain_restriction"] = types.StringType objectAttrs["fully_resolved_issuer"] = types.StringType objectAttrs["name"] = types.StringType - objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectoryStatusReport(recurse)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse)} objectAttrs["username_customizable"] = types.BoolType return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectorySummary(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse)} return objectAttrs } -func objectAttrsTypeDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarkers(recurse)} - objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectoryStatusReport(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse)} return objectAttrs } -func objectAttrsTypeDirectoryInternalDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType objectAttrs["directory_account_directory_primer_type"] = types.StringType @@ -3880,13 +7814,36 @@ func objectAttrsTypeDirectoryInternalDirectory(recurse bool) map[string]attr.Typ objectAttrs["owner_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType objectAttrs["directory_account_directory_primer_type"] = types.StringType @@ -3914,13 +7871,49 @@ func objectAttrsTypeDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs["trusted_certificate_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["base_d_n"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["dialect"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["host"] = types.StringType + objectAttrs["password_recovery"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["search_bind_d_n"] = types.StringType + objectAttrs["search_bind_password"] = types.StringType + objectAttrs["search_filter"] = types.StringType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType objectAttrs["directory_account_directory_primer_type"] = types.StringType @@ -3934,13 +7927,35 @@ func objectAttrsTypeDirectoryMaintenanceDirectory(recurse bool) map[string]attr. objectAttrs["username_customizable"] = types.BoolType return objectAttrs } -func objectAttrsTypeDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType objectAttrs["directory_account_directory_primer_type"] = types.StringType @@ -3965,66 +7980,176 @@ func objectAttrsTypeDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs["vendor_escaped"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupAccountGroup(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["acr_values"] = types.StringType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["enforces2fa"] = types.BoolType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["issuer"] = types.StringType + objectAttrs["logout_url"] = types.StringType + objectAttrs["send_login_hint"] = types.BoolType + objectAttrs["vendor_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroup_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["admin"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["end_date"] = types.StringType - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(false)} + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} objectAttrs["last_used"] = types.StringType objectAttrs["provisioning_end_time"] = types.StringType objectAttrs["rights"] = types.StringType objectAttrs["visible_for_provisioning"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupAccountGroup(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} return objectAttrs } -func objectAttrsTypeGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} + objectAttrs["group_count"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} objectAttrs["group_count"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupGroup(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["admin"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["application_administration"] = types.BoolType - objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditConfig(false)} + objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditConfig(false)} objectAttrs["audit_requested"] = types.BoolType objectAttrs["auditor"] = types.BoolType objectAttrs["authorizing_group_auditing_uuid"] = types.StringType - objectAttrs["authorizing_group_delegation"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} - objectAttrs["authorizing_group_membership"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} - objectAttrs["authorizing_group_provisioning"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} + objectAttrs["authorizing_group_delegation_uuid"] = types.StringType + objectAttrs["authorizing_group_membership_uuid"] = types.StringType + objectAttrs["authorizing_group_provisioning_uuid"] = types.StringType + objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} + objectAttrs["classification_uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["extended_access"] = types.StringType + objectAttrs["hide_audit_trail"] = types.BoolType + objectAttrs["nested_under_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["private_group"] = types.BoolType + objectAttrs["record_trail"] = types.BoolType + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["single_managed"] = types.BoolType + objectAttrs["vault_recovery"] = types.StringType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["application_administration"] = types.BoolType + objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditConfig(false)} + objectAttrs["audit_requested"] = types.BoolType + objectAttrs["auditor"] = types.BoolType + objectAttrs["authorizing_group_auditing"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_delegation"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_membership"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_provisioning"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} - objectAttrs["classification"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassificationPrimer(false)} + objectAttrs["classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(false)} objectAttrs["description"] = types.StringType objectAttrs["extended_access"] = types.StringType objectAttrs["hide_audit_trail"] = types.BoolType - objectAttrs["nested_under"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["nested_under"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["private_group"] = types.BoolType objectAttrs["record_trail"] = types.BoolType objectAttrs["rotating_password_required"] = types.BoolType @@ -4033,13 +8158,14 @@ func objectAttrsTypeGroupGroup(recurse bool) map[string]attr.Type { objectAttrs["vault_requires_activation"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupGroupAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["last_active"] = types.StringType objectAttrs["username"] = types.StringType @@ -4056,40 +8182,122 @@ func objectAttrsTypeGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs["visible_for_provisioning"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)}} + objectAttrs["connected"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupGroupAccountNesting(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["connected"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupGroupAccountStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)} + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} objectAttrs["visible_for_provisioning"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAdminMail(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["body"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupAdminMail(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupAdminMail(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["body"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupAudit(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAudit_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditAccount(false)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} objectAttrs["comment"] = types.StringType objectAttrs["created_at"] = types.StringType objectAttrs["created_by"] = types.StringType @@ -4102,10 +8310,30 @@ func objectAttrsTypeGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs["submitted_by"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupAuditAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAuditAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["account_valid"] = types.BoolType + objectAttrs["action"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["display_name"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["rights"] = types.StringType + objectAttrs["username"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAuditAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["account_valid"] = types.BoolType objectAttrs["action"] = types.StringType @@ -4120,42 +8348,104 @@ func objectAttrsTypeGroupGroupAuditAccount(recurse bool) map[string]attr.Type { objectAttrs["username"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupAuditConfig(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAuditConfig(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["months"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupAuditConfig(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAudit(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["months"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit(recurse)}} return objectAttrs } -func objectAttrsTypeGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit_due_date"] = types.StringType - objectAttrs["last_audit_date"] = types.StringType - objectAttrs["nr_accounts"] = types.Int64Type - objectAttrs["nr_disabled_accounts"] = types.Int64Type - objectAttrs["nr_disabled_managers"] = types.Int64Type - objectAttrs["nr_expired_vault_records"] = types.Int64Type - objectAttrs["nr_managers"] = types.Int64Type - objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit(recurse)}} return objectAttrs } -func objectAttrsTypeGroupGroupClassification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit_due_date"] = types.StringType + objectAttrs["last_audit_date"] = types.StringType + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_disabled_accounts"] = types.Int64Type + objectAttrs["nr_disabled_managers"] = types.Int64Type + objectAttrs["nr_expired_vault_records"] = types.Int64Type + objectAttrs["nr_managers"] = types.Int64Type + objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit_due_date"] = types.StringType + objectAttrs["last_audit_date"] = types.StringType + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_disabled_accounts"] = types.Int64Type + objectAttrs["nr_disabled_managers"] = types.Int64Type + objectAttrs["nr_expired_vault_records"] = types.Int64Type + objectAttrs["nr_managers"] = types.Int64Type + objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["authorizing_group_auditing_required"] = types.BoolType + objectAttrs["authorizing_group_delegation_required"] = types.BoolType + objectAttrs["authorizing_group_membership_required"] = types.BoolType + objectAttrs["authorizing_group_provisioning_required"] = types.BoolType + objectAttrs["default_classification"] = types.BoolType + objectAttrs["description"] = types.StringType + objectAttrs["maximum_audit_interval"] = types.Int64Type + objectAttrs["minimum_nr_managers"] = types.Int64Type + objectAttrs["record_trail_required"] = types.BoolType + objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["authorizing_group_auditing_required"] = types.BoolType @@ -4172,80 +8462,187 @@ func objectAttrsTypeGroupGroupClassification(recurse bool) map[string]attr.Type objectAttrs["vault_requires_activation"] = types.BoolType return objectAttrs } -func objectAttrsTypeGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_groups"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["nr_groups"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["classificaton_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["classificaton"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassificationInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassificationInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationInfo(recurse)} return objectAttrs } -func objectAttrsTypeGroupGroupClient(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClient_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["activation_required"] = types.BoolType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} + objectAttrs["client_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClient(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupFolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupFolder(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupFolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_accounts_with_vault"] = types.Int64Type + objectAttrs["nr_audits"] = types.Int64Type + objectAttrs["nr_clients"] = types.Int64Type + objectAttrs["nr_provisioned_systems"] = types.Int64Type + objectAttrs["nr_vault_records"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupGroupInfo(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["nr_accounts"] = types.Int64Type objectAttrs["nr_accounts_with_vault"] = types.Int64Type @@ -4255,66 +8652,145 @@ func objectAttrsTypeGroupGroupInfo(recurse bool) map[string]attr.Type { objectAttrs["nr_vault_records"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["admin"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["items"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)}} - objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeSegmentCount(recurse)}} - return objectAttrs -} -func objectAttrsTypeGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupAuthorizedGroupsWrapper(recurse)} - objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditingInfo(recurse)} - objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupInfo(recurse)} - objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarkers(recurse)} - objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)} - objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAccount(recurse)} - objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimerLinkableWrapper(recurse)} - objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryAccountDirectoryLinkableWrapper(recurse)} - objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(recurse)} - objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(recurse)} - objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupAuditLinkableWrapper(recurse)} + +func objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} + objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSSegmentCount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} + objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSSegmentCount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse)} + objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditingInfo(recurse)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupInfo(recurse)} + objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} + objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse)} + objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse)} + objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse)} + objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse)} + objectAttrs["requeststatus"] = types.StringType + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse)} + objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditingInfo(recurse)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupInfo(recurse)} + objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} + objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse)} + objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse)} + objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse)} + objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse)} objectAttrs["requeststatus"] = types.StringType - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} - objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} + objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audited_groups"] = types.Int64Type + objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} + objectAttrs["overdue_audit_groups"] = types.Int64Type + objectAttrs["overdue_vault_policies"] = types.Int64Type + objectAttrs["unaudited_groups"] = types.Int64Type + objectAttrs["valid_vault_policies"] = types.Int64Type + objectAttrs["vaults_without_policies"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupGroupsAuditStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audited_groups"] = types.Int64Type - objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupClassification(recurse)}} + objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} objectAttrs["overdue_audit_groups"] = types.Int64Type objectAttrs["overdue_vault_policies"] = types.Int64Type objectAttrs["unaudited_groups"] = types.Int64Type @@ -4322,52 +8798,102 @@ func objectAttrsTypeGroupGroupsAuditStats(recurse bool) map[string]attr.Type { objectAttrs["vaults_without_policies"] = types.Int64Type return objectAttrs } -func objectAttrsTypeGroupProvisioningGroup(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupProvisioningGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSGroupProvisioningGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["activation_required"] = types.BoolType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupPrimer(false)} - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)}} return objectAttrs } -func objectAttrsTypeGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["group_uuid"] = types.StringType objectAttrs["identicon_code"] = types.Int64Type objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTilePrimer(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse)} + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse)} objectAttrs["title"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs } -func objectAttrsTypeLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadDisplayedLaunchpadTile(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse)}} return objectAttrs } -func objectAttrsTypeLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["application_uuid"] = types.StringType objectAttrs["group_uuid"] = types.StringType objectAttrs["identicon_code"] = types.Int64Type @@ -4376,29 +8902,68 @@ func objectAttrsTypeLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs["vault_record_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} return objectAttrs } -func objectAttrsTypeLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["application_uuid"] = types.StringType objectAttrs["group_uuid"] = types.StringType objectAttrs["identicon_code"] = types.Int64Type @@ -4409,13 +8974,32 @@ func objectAttrsTypeLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.T objectAttrs["uri"] = types.StringType return objectAttrs } -func objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["application_uuid"] = types.StringType objectAttrs["group_uuid"] = types.StringType objectAttrs["identicon_code"] = types.Int64Type @@ -4425,13 +9009,31 @@ func objectAttrsTypeLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[strin objectAttrs["uri"] = types.StringType return objectAttrs } -func objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadLaunchpadTile_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["application_uuid"] = types.StringType objectAttrs["group_uuid"] = types.StringType objectAttrs["identicon_code"] = types.Int64Type @@ -4440,7 +9042,45 @@ func objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]a objectAttrs["vault_record_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["current_license_status"] = types.StringType + objectAttrs["customer_company"] = types.StringType + objectAttrs["customer_contact"] = types.StringType + objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} + objectAttrs["details"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration_time"] = types.StringType + objectAttrs["features"] = types.ListType{ElemType: types.StringType} + objectAttrs["issue_time"] = types.StringType + objectAttrs["key_hub_domain"] = types.StringType + objectAttrs["license_key"] = types.StringType + objectAttrs["not_before_time"] = types.StringType + objectAttrs["users_hard_limit"] = types.Int64Type + objectAttrs["users_pro_limit"] = types.Int64Type + objectAttrs["users_soft_limit"] = types.Int64Type + objectAttrs["uuid"] = types.StringType + objectAttrs["version"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["current_license_status"] = types.StringType objectAttrs["customer_company"] = types.StringType @@ -4460,347 +9100,434 @@ func objectAttrsTypeLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type objectAttrs["version"] = types.Int64Type return objectAttrs } -func objectAttrsTypeMarkItemMarker(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["level"] = types.StringType + objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker_parameters(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType objectAttrs["mark_item_marker_type"] = types.StringType - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarker_parameters(recurse)} + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker_parameters(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSMarkItemMarkers(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker(recurse)}} return objectAttrs } -func objectAttrsTypeMarkItemMarker_parameters(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker(recurse)}} return objectAttrs } -func objectAttrsTypeMarkItemMarkers(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarker(recurse)}} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(recurse)} + objectAttrs["expiration"] = types.StringType + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)} + objectAttrs["usage"] = types.StringType + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)} return objectAttrs } -func objectAttrsTypeNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeCertificateCertificate(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDirectoryLDAPDirectory(recurse)} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(recurse)} objectAttrs["expiration"] = types.StringType - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientLdapClient(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem(recurse)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)} objectAttrs["usage"] = types.StringType - objectAttrs["webhook_uuid"] = types.StringType + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["due_date"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} + objectAttrs["notification_group_audit_required_notification_type"] = types.StringType return objectAttrs } -func objectAttrsTypeNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["due_date"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} objectAttrs["notification_group_audit_required_notification_type"] = types.StringType return objectAttrs } -func objectAttrsTypeNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse)} + objectAttrs["reason"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)} - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse)} objectAttrs["reason"] = types.StringType return objectAttrs } -func objectAttrsTypeNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["active_accounts"] = types.Int64Type + objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse)} return objectAttrs } -func objectAttrsTypeNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["active_accounts"] = types.Int64Type - objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeLicenseKeyHubLicenseInfo(recurse)} + objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["admins"] = types.ListType{ElemType: types.StringType} + objectAttrs["groups"] = types.ListType{ElemType: types.StringType} + objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)} return objectAttrs } -func objectAttrsTypeNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["admins"] = types.ListType{ElemType: types.StringType} objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest(recurse)} + objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNotificationNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSNotificationNotifications(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationNotification(recurse)}} return objectAttrs } -func objectAttrsTypeNotificationNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationNotifications(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationNotification(recurse)}} return objectAttrs } -func objectAttrsTypeNotificationNotifications(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeNotificationNotification(recurse)}} + objectAttrs["api_version"] = types.Int64Type + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(recurse)} return objectAttrs } -func objectAttrsTypeNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["api_version"] = types.Int64Type - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2Client(recurse)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(recurse)} return objectAttrs } -func objectAttrsTypeNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["systems"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["systems"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["groups"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["released_at"] = types.StringType + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} return objectAttrs } -func objectAttrsTypeNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)} + objectAttrs["released_at"] = types.StringType return objectAttrs } -func objectAttrsTypeOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType + objectAttrs["released_at"] = types.StringType return objectAttrs } -func objectAttrsTypeOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationAccountOrganizationalUnit(recurse)}} + objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)} return objectAttrs } -func objectAttrsTypeOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)} return objectAttrs } -func objectAttrsTypeOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["depth"] = types.Int64Type - objectAttrs["description"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["parent_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - return objectAttrs -} -func objectAttrsTypeOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitAccount(recurse)}} return objectAttrs } -func objectAttrsTypeOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - return objectAttrs -} -func objectAttrsTypeOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnit(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse)}} return objectAttrs } -func objectAttrsTypeOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse)}} return objectAttrs } -func objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType + objectAttrs["parent_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} return objectAttrs } -func objectAttrsTypeProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["description"] = types.StringType - objectAttrs["result"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroup(recurse)} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAccountProvisioningStatus(recurse)}} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} return objectAttrs } -func objectAttrsTypeProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["number_of_failed_calls"] = types.Int64Type - objectAttrs["number_of_not_permitted_calls"] = types.Int64Type - objectAttrs["number_of_successful_calls"] = types.Int64Type - objectAttrs["state"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse)}} return objectAttrs } -func objectAttrsTypeProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["system_uuid"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse)}} return objectAttrs } -func objectAttrsTypeProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit(recurse)}} return objectAttrs } -func objectAttrsTypeProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit(recurse)}} return objectAttrs } -func objectAttrsTypeProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroupFolder(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeGroupGroup(recurse)} - objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["provisioning_permission_end_time"] = types.StringType - objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAccountProvisioningStatusReport(recurse)} - objectAttrs["visible_on_dashboard"] = types.BoolType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(recurse)}} - objectAttrs["unlinked_count"] = types.Int64Type + objectAttrs["items"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["name"] = types.StringType - objectAttrs["next_u_i_d"] = types.Int64Type + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)}} return objectAttrs } -func objectAttrsTypeProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAD(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -4816,7 +9543,7 @@ func objectAttrsTypeProvisioningProvisionedAD(recurse bool) map[string]attr.Type objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} objectAttrs["base_d_n"] = types.StringType objectAttrs["bind_d_n"] = types.StringType objectAttrs["bind_password"] = types.StringType @@ -4832,17 +9559,412 @@ func objectAttrsTypeProvisioningProvisionedAD(recurse bool) map[string]attr.Type objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate_uuid"] = types.StringType objectAttrs["user_d_n"] = types.StringType - objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["user_d_n"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["description"] = types.StringType + objectAttrs["result"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["description"] = types.StringType + objectAttrs["result"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["number_of_failed_calls"] = types.Int64Type + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["number_of_failed_calls"] = types.Int64Type + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} + objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["provisioning_permission_end_time"] = types.StringType + objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse)} + objectAttrs["visible_on_dashboard"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} + objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["provisioning_permission_end_time"] = types.StringType + objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse)} + objectAttrs["visible_on_dashboard"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_u_i_d"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_u_i_d"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + objectAttrs["sam_account_name_scheme"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["user_d_n"] = types.StringType + objectAttrs["sam_account_name_scheme"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType objectAttrs["last_active"] = types.StringType objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType @@ -4850,23 +9972,38 @@ func objectAttrsTypeProvisioningProvisionedAccount(recurse bool) map[string]attr objectAttrs["uid"] = types.Int64Type return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -4886,13 +10023,41 @@ func objectAttrsTypeProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[ objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -4914,13 +10079,43 @@ func objectAttrsTypeProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -4942,13 +10137,43 @@ func objectAttrsTypeProvisioningProvisionedAzureTenant(recurse bool) map[string] objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -4964,16 +10189,43 @@ func objectAttrsTypeProvisioningProvisionedInternalLDAP(recurse bool) map[string objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeClientLdapClient(false)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -4989,7 +10241,7 @@ func objectAttrsTypeProvisioningProvisionedLDAP(recurse bool) map[string]attr.Ty objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} objectAttrs["base_d_n"] = types.StringType objectAttrs["bind_d_n"] = types.StringType objectAttrs["bind_password"] = types.StringType @@ -5007,16 +10259,61 @@ func objectAttrsTypeProvisioningProvisionedLDAP(recurse bool) map[string]attr.Ty objectAttrs["user_d_n"] = types.StringType objectAttrs["gid"] = types.Int64Type objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionNumberSequence(false)} + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(false)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["user_d_n"] = types.StringType + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(false)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -5036,13 +10333,41 @@ func objectAttrsTypeProvisioningProvisionedLDAPDirectory(recurse bool) map[strin objectAttrs["group_d_n"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["group_d_n"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -5060,15 +10385,48 @@ func objectAttrsTypeProvisioningProvisionedSystem(recurse bool) map[string]attr. objectAttrs["username_prefix"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystem(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)}} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType @@ -5076,73 +10434,161 @@ func objectAttrsTypeProvisioningProvisionedSystemPrimer(recurse bool) map[string objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["items"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["created_at"] = types.StringType objectAttrs["errors"] = types.Int64Type objectAttrs["log"] = types.StringType objectAttrs["modifications"] = types.Int64Type return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedSystemSyncLog(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse)} return objectAttrs } -func objectAttrsTypeProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisionedAccount(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningProvisioningManagementPermissions(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeMarkItemMarkers(recurse)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningCircuitBreakerStatistics(recurse)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystemTypes(recurse)} + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["create_new_groups_allowed"] = types.BoolType + objectAttrs["create_service_accounts_allowed"] = types.BoolType + objectAttrs["reuse_existing_groups_allowed"] = types.BoolType return objectAttrs } -func objectAttrsTypeProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["create_new_groups_allowed"] = types.BoolType objectAttrs["create_service_accounts_allowed"] = types.BoolType objectAttrs["reuse_existing_groups_allowed"] = types.BoolType return objectAttrs } -func objectAttrsTypeProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse)}} + objectAttrs["ignore_errors"] = types.BoolType + objectAttrs["restricted_by_license"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupProvisioningStatus(recurse)}} + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse)}} objectAttrs["ignore_errors"] = types.BoolType objectAttrs["restricted_by_license"] = types.BoolType return objectAttrs } -func objectAttrsTypeProvisioningTokenPassword(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSProvisioningTokenPassword(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["password"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSProvisioningTokenPassword(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType objectAttrs["group_uuid"] = types.StringType @@ -5152,13 +10598,32 @@ func objectAttrsTypeRequestAbstractApplicationModificationRequest(recurse bool) objectAttrs["application_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5169,13 +10634,32 @@ func objectAttrsTypeRequestAbstractOrganizationalUnitModificationRequest(recurse objectAttrs["organizational_unit_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5186,34 +10670,82 @@ func objectAttrsTypeRequestAbstractProvisionedSystemModificationRequest(recurse objectAttrs["system_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} + objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} return objectAttrs } -func objectAttrsTypeRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["nanos"] = types.Int64Type objectAttrs["seconds"] = types.Int64Type return objectAttrs } -func objectAttrsTypeRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["end_date"] = types.StringType + objectAttrs["make_manager"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["end_date"] = types.StringType objectAttrs["make_manager"] = types.BoolType return objectAttrs } -func objectAttrsTypeRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5225,13 +10757,33 @@ func objectAttrsTypeRequestAddGroupAdminRequest(recurse bool) map[string]attr.Ty objectAttrs["private_key"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["private_key"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5245,13 +10797,35 @@ func objectAttrsTypeRequestCreateGroupOnSystemRequest(recurse bool) map[string]a objectAttrs["name_in_system"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestCreateGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system_type"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5263,13 +10837,33 @@ func objectAttrsTypeRequestCreateGroupRequest(recurse bool) map[string]attr.Type objectAttrs["group_name"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["group_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5281,13 +10875,33 @@ func objectAttrsTypeRequestCreateServiceAccountRequest(recurse bool) map[string] objectAttrs["username"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestDisable2FARequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["username"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestDisable2FARequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5298,13 +10912,32 @@ func objectAttrsTypeRequestDisable2FARequest(recurse bool) map[string]attr.Type objectAttrs["subject"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["subject"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5314,13 +10947,31 @@ func objectAttrsTypeRequestEnableTechnicalAdministrationRequest(recurse bool) ma objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestExtendAccessRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5331,13 +10982,32 @@ func objectAttrsTypeRequestExtendAccessRequest(recurse bool) map[string]attr.Typ objectAttrs["extend_until"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestGrantAccessRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["extend_until"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5347,13 +11017,31 @@ func objectAttrsTypeRequestGrantAccessRequest(recurse bool) map[string]attr.Type objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5364,13 +11052,32 @@ func objectAttrsTypeRequestGrantApplicationRequest(recurse bool) map[string]attr objectAttrs["application_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5383,13 +11090,34 @@ func objectAttrsTypeRequestGrantClientPermissionRequest(recurse bool) map[string objectAttrs["system_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["permission_type"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5398,16 +11126,36 @@ func objectAttrsTypeRequestGrantGroupOnSystemRequest(recurse bool) map[string]at objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} return objectAttrs } -func objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5416,16 +11164,36 @@ func objectAttrsTypeRequestGrantGroupOnSystemRequestRequest(recurse bool) map[st objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} return objectAttrs } -func objectAttrsTypeRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5433,17 +11201,37 @@ func objectAttrsTypeRequestGrantServiceAccountGroupRequest(recurse bool) map[str objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} objectAttrs["service_account_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5453,13 +11241,31 @@ func objectAttrsTypeRequestJoinGroupRequest(recurse bool) map[string]attr.Type { objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestJoinVaultRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5469,13 +11275,31 @@ func objectAttrsTypeRequestJoinVaultRequest(recurse bool) map[string]attr.Type { objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestModificationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5485,25 +11309,59 @@ func objectAttrsTypeRequestModificationRequest(recurse bool) map[string]attr.Typ objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest(recurse)}} + objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse)} return objectAttrs } -func objectAttrsTypeRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestAcceptModificationRequestParameters(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestPasswordResetRequestStatus(recurse)} + objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse)} return objectAttrs } -func objectAttrsTypeRequestPasswordResetRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5516,7 +11374,37 @@ func objectAttrsTypeRequestPasswordResetRequest(recurse bool) map[string]attr.Ty objectAttrs["unsynced_password"] = types.BoolType return objectAttrs } -func objectAttrsTypeRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_vault_and_directory_password"] = types.StringType + objectAttrs["new_vault_password"] = types.StringType + objectAttrs["unsynced_password"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["cooldown_end"] = types.StringType + objectAttrs["managers"] = types.ListType{ElemType: types.StringType} + objectAttrs["nr_accepted"] = types.Int64Type + objectAttrs["reset_via_mail"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["cooldown_end"] = types.StringType objectAttrs["managers"] = types.ListType{ElemType: types.StringType} @@ -5524,13 +11412,14 @@ func objectAttrsTypeRequestPasswordResetRequestStatus(recurse bool) map[string]a objectAttrs["reset_via_mail"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5541,13 +11430,32 @@ func objectAttrsTypeRequestRemoveGroupRequest(recurse bool) map[string]attr.Type objectAttrs["group_name"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5559,13 +11467,33 @@ func objectAttrsTypeRequestRemoveOrganizationalUnitRequest(recurse bool) map[str objectAttrs["organizational_unit_name"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["organizational_unit_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5577,13 +11505,33 @@ func objectAttrsTypeRequestRemoveProvisionedSystemRequest(recurse bool) map[stri objectAttrs["system_name"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestReviewAuditRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["system_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5593,13 +11541,31 @@ func objectAttrsTypeRequestReviewAuditRequest(recurse bool) map[string]attr.Type objectAttrs["status"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5610,13 +11576,32 @@ func objectAttrsTypeRequestRevokeAdminRequest(recurse bool) map[string]attr.Type objectAttrs["admin_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5629,13 +11614,34 @@ func objectAttrsTypeRequestSetupAuthorizingGroupRequest(recurse bool) map[string objectAttrs["requesting_group_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["authorizing_group_type"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5648,30 +11654,34 @@ func objectAttrsTypeRequestSetupNestedGroupRequest(recurse bool) map[string]attr objectAttrs["requesting_group_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType + objectAttrs["account_action"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} return objectAttrs } -func objectAttrsTypeRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5682,29 +11692,32 @@ func objectAttrsTypeRequestTransferApplicationOwnershipRequest(recurse bool) map objectAttrs["application_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } -func objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5712,33 +11725,35 @@ func objectAttrsTypeRequestTransferGroupOnSystemOwnershipRequest(recurse bool) m objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeProvisioningGroupOnSystem(false)} + objectAttrs["application_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } -func objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5746,33 +11761,33 @@ func objectAttrsTypeRequestTransferProvisionedSystemAdministrationRequest(recurs objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5780,33 +11795,35 @@ func objectAttrsTypeRequestTransferProvisionedSystemOwnershipRequest(recurse boo objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} return objectAttrs } -func objectAttrsTypeRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} return objectAttrs } -func objectAttrsTypeRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -5814,195 +11831,640 @@ func objectAttrsTypeRequestUpdateGroupMembershipRequest(recurse bool) map[string objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["account_to_update_uuid"] = types.StringType - objectAttrs["current_end_date"] = types.StringType - objectAttrs["current_rights"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["update_group_membership_type"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRequestModificationRequest_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["internal_account_name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccount(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccount_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType objectAttrs["system_uuid"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["description"] = types.StringType - objectAttrs["password_uuid"] = types.StringType - objectAttrs["password_rotation"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroup(recurse)}} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccount(recurse)}} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["service_account_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_to_update_uuid"] = types.StringType + objectAttrs["current_end_date"] = types.StringType + objectAttrs["current_rights"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["update_group_membership_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["current_end_date"] = types.StringType + objectAttrs["current_rights"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["update_group_membership_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["internal_account_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["internal_account_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["password_uuid"] = types.StringType + objectAttrs["password_rotation"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["password"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_rotation"] = types.StringType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountGroupLinkableWrapper(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeGeneratedSecret(recurse)} + objectAttrs["disabled_count"] = types.Int64Type + objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} + objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["disabled_count"] = types.Int64Type - objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} - objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(recurse)} + objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} + objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSSimpleStringValue(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["value"] = types.StringType return objectAttrs } -func objectAttrsTypeSimpleStringValue(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSSimpleStringValue(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["value"] = types.StringType return objectAttrs } -func objectAttrsTypeSimpleVersionInfo(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSSimpleVersionInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} + objectAttrs["key_hub_version"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSSimpleVersionInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} objectAttrs["key_hub_version"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["record_count"] = types.Int64Type + objectAttrs["vault_deleted_vault_holder_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["record_count"] = types.Int64Type objectAttrs["vault_deleted_vault_holder_type"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultDeletedVaultHolder(recurse)}} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} return objectAttrs } -func objectAttrsTypeVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVault(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} return objectAttrs } -func objectAttrsTypeVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["prefix"] = types.StringType objectAttrs["private_key"] = types.StringType objectAttrs["target_group_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultMoveVaultRecord(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["prefix"] = types.StringType + objectAttrs["private_key"] = types.StringType + objectAttrs["target_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["account_uuid"] = types.StringType objectAttrs["action"] = types.StringType objectAttrs["group_uuid"] = types.StringType - objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultMoveVaultRecord_shareDuration(recurse)} + objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} + objectAttrs["action"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type return objectAttrs } -func objectAttrsTypeVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["nanos"] = types.Int64Type objectAttrs["seconds"] = types.Int64Type return objectAttrs } -func objectAttrsTypeVaultVault(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVault(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["access_available"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultVault(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["access_available"] = types.BoolType objectAttrs["name"] = types.StringType - objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}} + objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) return objectAttrs } -func objectAttrsTypeVaultVaultHolder(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultRecord(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["color"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["share_end_time"] = types.StringType @@ -6016,27 +12478,64 @@ func objectAttrsTypeVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs["warning_period"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecord(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["color"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["share_end_time"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["items"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["comment"] = types.StringType + objectAttrs["file"] = types.StringType + objectAttrs["password"] = types.StringType + objectAttrs["totp"] = types.StringType + objectAttrs["write_totp"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["comment"] = types.StringType objectAttrs["file"] = types.StringType @@ -6045,54 +12544,108 @@ func objectAttrsTypeVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { objectAttrs["write_totp"] = types.BoolType return objectAttrs } -func objectAttrsTypeVaultVaultRecordShare(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecordShare(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["vault_vault_record_share_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordShare(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["name"] = types.StringType objectAttrs["vault_vault_record_share_type"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShare(recurse)}} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShare(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShare(recurse)}} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShare(recurse)} + objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShare(recurse)}} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShare(recurse)} return objectAttrs } -func objectAttrsTypeVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} objectAttrs["delete_tile"] = types.BoolType objectAttrs["parent_uuid"] = types.StringType - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordSecrets(recurse)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordShareSummary(recurse)} - objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultRecordPrimerLinkableWrapper(recurse)} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeLaunchpadVaultRecordLaunchpadTile(recurse)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeVaultVaultHolder(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(recurse)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(recurse)} + objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} + objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(recurse)} return objectAttrs } -func objectAttrsTypeVaultVaultRecovery(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultRecovery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["account_uuid"] = types.StringType objectAttrs["private_key"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultUnlock(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSVaultVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} + objectAttrs["private_key"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultUnlock(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultUnlock(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["password"] = types.StringType return objectAttrs } -func objectAttrsTypeVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["expires_at"] = types.StringType + objectAttrs["session_password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["expires_at"] = types.StringType objectAttrs["session_password"] = types.StringType return objectAttrs } -func objectAttrsTypeWebhookWebhook(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhook_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_uuid"] = types.StringType objectAttrs["active"] = types.BoolType objectAttrs["all_types"] = types.BoolType @@ -6116,14 +12669,63 @@ func objectAttrsTypeWebhookWebhook(recurse bool) map[string]attr.Type { objectAttrs["verbose_payloads"] = types.BoolType return objectAttrs } -func objectAttrsTypeWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["active"] = types.BoolType + objectAttrs["all_types"] = types.BoolType + objectAttrs["authentication_scheme"] = types.StringType + objectAttrs["basic_auth_password"] = types.StringType + objectAttrs["basic_auth_username"] = types.StringType + objectAttrs["bearer_token"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["custom_header_name"] = types.StringType + objectAttrs["custom_header_value"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["name"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["verbose_payloads"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookDelivery_additionalObjects(false)} + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeAuthPermission(recurse)}} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookPush(false)} + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} objectAttrs["reponse_headers"] = types.StringType objectAttrs["request_headers"] = types.StringType objectAttrs["response"] = types.StringType @@ -6132,66 +12734,153 @@ func objectAttrsTypeWebhookWebhookDelivery(recurse bool) map[string]attr.Type { objectAttrs["trigger_time"] = types.StringType return objectAttrs } -func objectAttrsTypeWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookDelivery(recurse)}} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery(recurse)}} return objectAttrs } -func objectAttrsTypeWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery(recurse)}} return objectAttrs } -func objectAttrsTypeWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)}} return objectAttrs } -func objectAttrsTypeWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { + +func objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLinkable(recurse)} + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["name"] = types.StringType - objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeLinkable(recurse)} + objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLinkable(recurse)} objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeWebhookWebhookPush(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSWebhookWebhookPush(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["security_level"] = types.StringType + objectAttrs["seq"] = types.Int64Type + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["timestamp"] = types.StringType + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook_webhook_push_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookPush(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} objectAttrs["parameter1"] = types.StringType objectAttrs["parameter2"] = types.StringType objectAttrs["parameter3"] = types.StringType objectAttrs["security_level"] = types.StringType objectAttrs["seq"] = types.Int64Type - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} objectAttrs["timestamp"] = types.StringType - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeWebhookWebhookNameUuid(recurse)} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} objectAttrs["webhook_webhook_push_type"] = types.StringType return objectAttrs } -func objectAttrsTypeWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { + +func objectAttrsTypeRSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeAuditInfo(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func tkhToTFObjectAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditInfoAttrTypesRSRecurse + } else { + attrs = auditInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditInfoAttrTypesRecurse + attrs = auditInfoAttrTypesDSRecurse } else { - attrs = auditInfoAttrTypes + attrs = auditInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6208,13 +12897,13 @@ func tkhToTFObjectAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types. return objVal, diags } -func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = errorReportAttrTypesRecurse + attrs = errorReportAttrTypesRSRecurse } else { - attrs = errorReportAttrTypes + attrs = errorReportAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6223,7 +12912,7 @@ func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (ty obj := make(map[string]attr.Value) obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) { - val, d := tkhToTFObjectErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) + val, d := tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) diags.Append(d...) obj["application_error_parameters"] = val } @@ -6253,93 +12942,77 @@ func tkhToTFObjectErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (ty return objVal, diags } -func tkhToTFObjectErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = errorReport_applicationErrorParametersAttrTypesRecurse + attrs = errorReportAttrTypesDSRecurse } else { - attrs = errorReport_applicationErrorParametersAttrTypes + attrs = errorReportAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = generatedSecretAttrTypesRecurse - } else { - attrs = generatedSecretAttrTypes + obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) + { + val, d := tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) + diags.Append(d...) + obj["application_error_parameters"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) + { + elemType := attrs["error_details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["error_details"] = val + } + obj["exception"] = types.StringPointerValue(tkh.GetException()) + obj["message"] = types.StringPointerValue(tkh.GetMessage()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + { + elemType := attrs["stacktrace"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["stacktrace"] = val } - - obj := make(map[string]attr.Value) - obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) - obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) - obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = linkableAttrTypesRecurse + attrs = errorReport_applicationErrorParametersAttrTypesRSRecurse } else { - attrs = linkableAttrTypes + attrs = errorReport_applicationErrorParametersAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = nonLinkableAttrTypesRecurse + attrs = errorReport_applicationErrorParametersAttrTypesDSRecurse } else { - attrs = nonLinkableAttrTypes + attrs = errorReport_applicationErrorParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6352,74 +13025,67 @@ func tkhToTFObjectNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (ty return objVal, diags } -func tkhToTFObjectRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = restLinkAttrTypesRecurse + attrs = generatedSecretAttrTypesRSRecurse } else { - attrs = restLinkAttrTypes + attrs = generatedSecretAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["href"] = types.StringPointerValue(tkh.GetHref()) - obj["id"] = types.Int64PointerValue(tkh.GetId()) - obj["rel"] = types.StringPointerValue(tkh.GetRel()) - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) + obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) + obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = segmentCountAttrTypesRecurse + attrs = generatedSecretAttrTypesDSRecurse } else { - attrs = segmentCountAttrTypes + attrs = generatedSecretAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["count"] = types.Int64PointerValue(tkh.GetCount()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) + obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) + obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditAuditRecordAttrTypesRecurse + attrs = linkableAttrTypesRSRecurse } else { - attrs = auditAuditRecordAttrTypes + attrs = linkableAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6429,115 +13095,36 @@ func tkhToTFObjectAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecor { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) - obj["date_time"] = timePointerToTF(tkh.GetDateTime()) - obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) - obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) - obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) - obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) - obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) - obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) - obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) - obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) - obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) - obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) - obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) - obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecordLinkableWrapperAttrTypesRecurse - } else { - attrs = auditAuditRecordLinkableWrapperAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuditAuditRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecord_additionalObjectsAttrTypesRecurse - } else { - attrs = auditAuditRecord_additionalObjectsAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountAttrTypesRecurse + attrs = linkableAttrTypesDSRecurse } else { - attrs = authAccountAttrTypes + attrs = linkableAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6547,307 +13134,282 @@ func tkhToTFObjectAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (ty { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountBulkUpdateAttrTypesRecurse + attrs = nonLinkableAttrTypesRSRecurse } else { - attrs = authAccountBulkUpdateAttrTypes + attrs = nonLinkableAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) - { - elemType := attrs["selected_accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(tkh) - }) - diags.Append(d...) - obj["selected_accounts"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountChangeLocaleAttrTypesRecurse + attrs = nonLinkableAttrTypesDSRecurse } else { - attrs = authAccountChangeLocaleAttrTypes + attrs = nonLinkableAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountLinkableWrapperAttrTypesRecurse + attrs = restLinkAttrTypesRSRecurse } else { - attrs = authAccountLinkableWrapperAttrTypes + attrs = restLinkAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["href"] = types.StringPointerValue(tkh.GetHref()) + obj["id"] = types.Int64PointerValue(tkh.GetId()) + obj["rel"] = types.StringPointerValue(tkh.GetRel()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountPrimerAttrTypesRecurse + attrs = restLinkAttrTypesDSRecurse } else { - attrs = authAccountPrimerAttrTypes + attrs = restLinkAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["href"] = types.StringPointerValue(tkh.GetHref()) + obj["id"] = types.Int64PointerValue(tkh.GetId()) + obj["rel"] = types.StringPointerValue(tkh.GetRel()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountRecoveryStatusAttrTypesRecurse + attrs = segmentCountAttrTypesRSRecurse } else { - attrs = authAccountRecoveryStatusAttrTypes + attrs = segmentCountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) - obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + obj["count"] = types.Int64PointerValue(tkh.GetCount()) + obj["name"] = types.StringPointerValue(tkh.GetName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountSettingsAttrTypesRecurse + attrs = segmentCountAttrTypesDSRecurse } else { - attrs = authAccountSettingsAttrTypes + attrs = segmentCountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["default_organizational_unit_uuid"] = withUuidToTF(tkh.GetDefaultOrganizationalUnit()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) - obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) - obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) - obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) - obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) - obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) - obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) - obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) - obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) + obj["count"] = types.Int64PointerValue(tkh.GetCount()) + obj["name"] = types.StringPointerValue(tkh.GetName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountStatusAttrTypesRecurse + attrs = auditAuditRecordAttrTypesRSRecurse } else { - attrs = authAccountStatusAttrTypes + attrs = auditAuditRecordAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) + if recurse { + { + val, d := tkhToTFObjectRSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["date_time"] = timePointerToTF(tkh.GetDateTime()) + obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) + obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) + obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) + obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) + obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) + obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) + obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) + obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) + obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) + obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) + obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) + obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccount_additionalObjectsAttrTypesRecurse + attrs = auditAuditRecordAttrTypesDSRecurse } else { - attrs = authAccount_additionalObjectsAttrTypes + attrs = auditAuditRecordAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) - diags.Append(d...) - obj["pending_recovery_requests"] = val - } - { - val, d := tkhToTFObjectAuthAccountSettings(recurse, tkh.GetSettings()) - diags.Append(d...) - obj["settings"] = val + if recurse { + { + val, d := tkhToTFObjectDSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tkhToTFObjectAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["stored_attributes"] = val + obj["links"] = val } { - val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["vault"] = val + obj["permissions"] = val } + obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["date_time"] = timePointerToTF(tkh.GetDateTime()) + obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) + obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) + obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) + obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) + obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) + obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) + obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) + obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) + obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) + obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) + obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) + obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStatsAttrTypesRecurse + attrs = auditAuditRecordLinkableWrapperAttrTypesRSRecurse } else { - attrs = authAccountsAuditStatsAttrTypes + attrs = auditAuditRecordLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6855,19 +13417,14 @@ func tkhToTFObjectAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccou obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) - diags.Append(d...) - obj["directory_stats"] = val - } - { - val, d := tkhToTFObjectAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) - diags.Append(d...) - obj["two_f_a_stats"] = val - } - { - val, d := tkhToTFObjectAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuditAuditRecord(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["validity_stats"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6875,70 +13432,90 @@ func tkhToTFObjectAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccou return objVal, diags } -func tkhToTFObjectAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_directoryStatsAttrTypesRecurse + attrs = auditAuditRecordLinkableWrapperAttrTypesDSRecurse } else { - attrs = authAccountsAuditStats_directoryStatsAttrTypes + attrs = auditAuditRecordLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuditAuditRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesRecurse + attrs = auditAuditRecord_additionalObjectsAttrTypesRSRecurse } else { - attrs = authAccountsAuditStats_twoFAStatsAttrTypes + attrs = auditAuditRecord_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_validityStatsAttrTypesRecurse + attrs = auditAuditRecord_additionalObjectsAttrTypesDSRecurse } else { - attrs = authAccountsAuditStats_validityStatsAttrTypes + attrs = auditAuditRecord_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountAttrTypesRecurse + attrs = authAccountAttrTypesRSRecurse } else { - attrs = authInternalAccountAttrTypes + attrs = authAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6947,7 +13524,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -6955,7 +13532,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -6965,7 +13542,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -6980,7 +13557,7 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) + val, d := tkhToTFObjectRSAuthPermission(false, tkh) diags.Append(d...) return val }) @@ -7004,182 +13581,228 @@ func tkhToTFObjectAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternal obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountLinkableWrapperAttrTypesRecurse + attrs = authAccountAttrTypesDSRecurse } else { - attrs = authInternalAccountLinkableWrapperAttrTypes + attrs = authAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthInternalAccount(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountStatusObjectAttrTypesRecurse + attrs = authAccountBulkUpdateAttrTypesRSRecurse } else { - attrs = authInternalAccountStatusObjectAttrTypes + attrs = authAccountBulkUpdateAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["status"] = stringerToTF(tkh.GetStatus()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) + { + elemType := attrs["selected_accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(tkh) + }) + diags.Append(d...) + obj["selected_accounts"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthInternalAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthInternalAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccount_additionalObjectsAttrTypesRecurse + attrs = authAccountBulkUpdateAttrTypesDSRecurse } else { - attrs = authInternalAccount_additionalObjectsAttrTypes + attrs = authAccountBulkUpdateAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["selected_accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(tkh) + }) diags.Append(d...) - obj["audit"] = val + obj["selected_accounts"] = val } - obj["reason"] = types.StringPointerValue(tkh.GetReason()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authMoveInternalAccountAttrTypesRecurse + attrs = authAccountChangeLocaleAttrTypesRSRecurse } else { - attrs = authMoveInternalAccountAttrTypes + attrs = authAccountChangeLocaleAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) - diags.Append(d...) - obj["internal_directory"] = val - } + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authPermissionAttrTypesRecurse + attrs = authAccountChangeLocaleAttrTypesDSRecurse } else { - attrs = authPermissionAttrTypes + attrs = authAccountChangeLocaleAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["full"] = types.StringPointerValue(tkh.GetFull()) - { - elemType := attrs["instances"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["instances"] = val - } - { - elemType := attrs["operations"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["operations"] = val - } - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authStoredAccountAttributeAttrTypesRecurse + attrs = authAccountLinkableWrapperAttrTypesRSRecurse } else { - attrs = authStoredAccountAttributeAttrTypes + attrs = authAccountLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["value"] = types.StringPointerValue(tkh.GetValue()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authStoredAccountAttributesAttrTypesRecurse + attrs = authAccountLinkableWrapperAttrTypesDSRecurse } else { - attrs = authStoredAccountAttributesAttrTypes + attrs = authAccountLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7187,14 +13810,14 @@ func tkhToTFObjectAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.Auth obj := make(map[string]attr.Value) { - elemType := attrs["attributes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthStoredAccountAttribute(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthAccount(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["attributes"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7202,30 +13825,23 @@ func tkhToTFObjectAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.Auth return objVal, diags } -func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificateAttrTypesRecurse + attrs = authAccountPrimerAttrTypesRSRecurse } else { - attrs = certificateCertificateAttrTypes + attrs = authAccountPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7235,79 +13851,31 @@ func tkhToTFObjectCertificateCertificate(recurse bool, tkh keyhubmodel.Certifica { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - elemType := attrs["key_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["key_data"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificateLinkableWrapperAttrTypesRecurse - } else { - attrs = certificateCertificateLinkableWrapperAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectCertificateCertificate(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["validity"] = stringerToTF(tkh.GetValidity()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificatePrimerAttrTypesRecurse + attrs = authAccountPrimerAttrTypesDSRecurse } else { - attrs = certificateCertificatePrimerAttrTypes + attrs = authAccountPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7317,7 +13885,7 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7327,128 +13895,104 @@ func tkhToTFObjectCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.Cer { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificate_additionalObjectsAttrTypesRecurse + attrs = authAccountRecoveryStatusAttrTypesRSRecurse } else { - attrs = certificateCertificate_additionalObjectsAttrTypes + attrs = authAccountRecoveryStatusAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } + obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationAttrTypesRecurse + attrs = authAccountRecoveryStatusAttrTypesDSRecurse } else { - attrs = clientClientApplicationAttrTypes + attrs = authAccountRecoveryStatusAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountSettingsAttrTypesRSRecurse + } else { + attrs = authAccountSettingsAttrTypesRS } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + + obj := make(map[string]attr.Value) + obj["default_organizational_unit_uuid"] = withUuidToTF(tkh.GetDefaultOrganizationalUnit()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) + obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) + obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) + obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) + obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) + obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) + obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) + obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) + obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationLinkableWrapperAttrTypesRecurse + attrs = authAccountSettingsAttrTypesDSRecurse } else { - attrs = clientClientApplicationLinkableWrapperAttrTypes + attrs = authAccountSettingsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7456,465 +14000,347 @@ func tkhToTFObjectClientClientApplicationLinkableWrapper(recurse bool, tkh keyhu obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectClientClientApplication(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetDefaultOrganizationalUnit()) diags.Append(d...) - obj["items"] = val + obj["default_organizational_unit"] = val } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) + obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) + obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) + obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) + obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) + obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) + obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) + obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) + obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationPrimerAttrTypesRecurse + attrs = authAccountStatusAttrTypesRSRecurse } else { - attrs = clientClientApplicationPrimerAttrTypes + attrs = authAccountStatusAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountStatusAttrTypesDSRecurse + } else { + attrs = authAccountStatusAttrTypesDS } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplication_additionalObjectsAttrTypesRecurse + attrs = authAccount_additionalObjectsAttrTypesRSRecurse } else { - attrs = clientClientApplication_additionalObjectsAttrTypes + attrs = authAccount_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) { - val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + val, d := tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groupclients"] = val + obj["groups"] = val } { - val, d := tkhToTFObjectGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + val, d := tkhToTFObjectRSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) diags.Append(d...) - obj["groups"] = val + obj["pending_recovery_requests"] = val } { - val, d := tkhToTFObjectGeneratedSecret(recurse, tkh.GetSecret()) + val, d := tkhToTFObjectRSAuthAccountSettings(recurse, tkh.GetSettings()) diags.Append(d...) - obj["secret"] = val + obj["settings"] = val } { - val, d := tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + val, d := tkhToTFObjectRSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) diags.Append(d...) - obj["tile"] = val + obj["stored_attributes"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val } - obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientLdapClientAttrTypesRecurse + attrs = authAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = clientLdapClientAttrTypes + attrs = authAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["links"] = val + obj["groups"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) diags.Append(d...) - obj["permissions"] = val + obj["pending_recovery_requests"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectDSAuthAccountSettings(recurse, tkh.GetSettings()) diags.Append(d...) - obj["scopes"] = val + obj["settings"] = val + } + { + val, d := tkhToTFObjectDSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) + diags.Append(d...) + obj["stored_attributes"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) - obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientAttrTypesRecurse + attrs = authAccountsAuditStatsAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientAttrTypes + attrs = authAccountsAuditStatsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) diags.Append(d...) - obj["scopes"] = val + obj["directory_stats"] = val } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(false, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) diags.Append(d...) - obj["account_permissions"] = val + obj["two_f_a_stats"] = val } { - val, d := tkhToTFObjectClientOAuth2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) diags.Append(d...) - obj["attributes"] = val + obj["validity_stats"] = val } - obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) - obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) - obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) - obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) - obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) - obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionAttrTypesRecurse + attrs = authAccountsAuditStatsAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionAttrTypes + attrs = authAccountsAuditStatsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + { + val, d := tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) + diags.Append(d...) + obj["directory_stats"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) diags.Append(d...) - obj["links"] = val + obj["two_f_a_stats"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) diags.Append(d...) - obj["permissions"] = val + obj["validity_stats"] = val } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRecurse + attrs = authAccountsAuditStats_directoryStatsAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypes + attrs = authAccountsAuditStats_directoryStatsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectClientOAuth2ClientPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesRecurse + attrs = authAccountsAuditStats_directoryStatsAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionWithClientAttrTypes + attrs = authAccountsAuditStats_directoryStatsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + attrs = authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse + } else { + attrs = authAccountsAuditStats_twoFAStatsAttrTypesRS } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) - { - val, d := tkhToTFObjectClientOAuth2Client(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRecurse + attrs = authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypes + attrs = authAccountsAuditStats_twoFAStatsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRecurse + attrs = authAccountsAuditStats_validityStatsAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypes + attrs = authAccountsAuditStats_validityStatsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2Client_attributesAttrTypesRecurse + attrs = authAccountsAuditStats_validityStatsAttrTypesDSRecurse } else { - attrs = clientOAuth2Client_attributesAttrTypes + attrs = authAccountsAuditStats_validityStatsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7927,13 +14353,13 @@ func tkhToTFObjectClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.Cl return objVal, diags } -func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientSaml2ClientAttrTypesRecurse + attrs = authInternalAccountAttrTypesRSRecurse } else { - attrs = clientSaml2ClientAttrTypes + attrs = authInternalAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7942,7 +14368,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -7950,7 +14376,7 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -7960,69 +14386,65 @@ func tkhToTFObjectClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Cli { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(false, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["scopes"] = val + obj["account_permissions"] = val } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - { - val, d := tkhToTFObjectClientSaml2Client_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) - obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) - obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryAttrTypesRecurse + attrs = authInternalAccountAttrTypesDSRecurse } else { - attrs = directoryAccountDirectoryAttrTypes + attrs = authInternalAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8031,7 +14453,7 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -8039,7 +14461,7 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8049,37 +14471,69 @@ func tkhToTFObjectDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Direct { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRecurse + attrs = authInternalAccountLinkableWrapperAttrTypesRSRecurse } else { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypes + attrs = authInternalAccountLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8088,8 +14542,8 @@ func tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDirectoryAccountDirectory(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthInternalAccount(recurse, tkh) diags.Append(d...) return val }) @@ -8102,13 +14556,13 @@ func tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryPrimerAttrTypesRecurse + attrs = authInternalAccountLinkableWrapperAttrTypesDSRecurse } else { - attrs = directoryAccountDirectoryPrimerAttrTypes + attrs = authInternalAccountLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8116,51 +14570,34 @@ func tkhToTFObjectDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthInternalAccount(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryStatusReportAttrTypesRecurse + attrs = authInternalAccountStatusObjectAttrTypesRSRecurse } else { - attrs = directoryAccountDirectoryStatusReportAttrTypes + attrs = authInternalAccountStatusObjectAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) @@ -8168,62 +14605,33 @@ func tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectorySummaryAttrTypesRecurse + attrs = authInternalAccountStatusObjectAttrTypesDSRecurse } else { - attrs = directoryAccountDirectorySummaryAttrTypes + attrs = authInternalAccountStatusObjectAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthInternalAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthInternalAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRecurse + attrs = authInternalAccount_additionalObjectsAttrTypesRSRecurse } else { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypes + attrs = authInternalAccount_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8231,28 +14639,24 @@ func tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDirectoryAccountDirectorySummary(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } + obj["reason"] = types.StringPointerValue(tkh.GetReason()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthInternalAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthInternalAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesRecurse + attrs = authInternalAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = directoryAccountDirectory_additionalObjectsAttrTypes + attrs = authInternalAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8260,375 +14664,188 @@ func tkhToTFObjectDirectoryAccountDirectory_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } - { - val, d := tkhToTFObjectMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } + obj["reason"] = types.StringPointerValue(tkh.GetReason()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryInternalDirectoryAttrTypesRecurse + attrs = authMoveInternalAccountAttrTypesRSRecurse } else { - attrs = directoryInternalDirectoryAttrTypes + attrs = authMoveInternalAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) diags.Append(d...) - obj["permissions"] = val + obj["internal_directory"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryLDAPDirectoryAttrTypesRecurse + attrs = authMoveInternalAccountAttrTypesDSRecurse } else { - attrs = directoryLDAPDirectoryAttrTypes + attrs = authMoveInternalAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) diags.Append(d...) - obj["permissions"] = val + obj["internal_directory"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) - obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) - obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryMaintenanceDirectoryAttrTypesRecurse + attrs = authPermissionAttrTypesRSRecurse } else { - attrs = directoryMaintenanceDirectoryAttrTypes + attrs = authPermissionAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["full"] = types.StringPointerValue(tkh.GetFull()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["instances"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["links"] = val + obj["instances"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["operations"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["permissions"] = val + obj["operations"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryOIDCDirectoryAttrTypesRecurse + attrs = authPermissionAttrTypesDSRecurse } else { - attrs = directoryOIDCDirectoryAttrTypes + attrs = authPermissionAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["full"] = types.StringPointerValue(tkh.GetFull()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["instances"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["links"] = val + obj["instances"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["operations"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["permissions"] = val + obj["operations"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) - obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) - obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) - obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupAccountGroupAttrTypesRecurse + attrs = authStoredAccountAttributeAttrTypesRSRecurse } else { - attrs = groupAccountGroupAttrTypes + attrs = authStoredAccountAttributeAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + obj["value"] = types.StringPointerValue(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupAccountGroupLinkableWrapperAttrTypesRecurse + attrs = authStoredAccountAttributeAttrTypesDSRecurse } else { - attrs = groupAccountGroupLinkableWrapperAttrTypes + attrs = authStoredAccountAttributeAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["value"] = types.StringPointerValue(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupAccountGroup_additionalObjectsAttrTypesRecurse + attrs = authStoredAccountAttributesAttrTypesRSRecurse } else { - attrs = groupAccountGroup_additionalObjectsAttrTypes + attrs = authStoredAccountAttributesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8636,14 +14853,14 @@ func tkhToTFObjectGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) + elemType := attrs["attributes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthStoredAccountAttribute(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["vault"] = val + obj["attributes"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8651,13 +14868,13 @@ func tkhToTFObjectGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmo return objVal, diags } -func tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupAuthorizedGroupsWrapperAttrTypesRecurse + attrs = authStoredAccountAttributesAttrTypesDSRecurse } else { - attrs = groupAuthorizedGroupsWrapperAttrTypes + attrs = authStoredAccountAttributesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8665,29 +14882,28 @@ func tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.Gro obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroup(recurse, tkh) + elemType := attrs["attributes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthStoredAccountAttribute(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["attributes"] = val } - obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAttrTypesRecurse + attrs = certificateCertificateAttrTypesRSRecurse } else { - attrs = groupGroupAttrTypes + attrs = certificateCertificateAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8696,7 +14912,7 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -8704,7 +14920,7 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8714,85 +14930,50 @@ func tkhToTFObjectGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (type { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) - { - val, d := tkhToTFObjectGroupGroupAuditConfig(false, tkh.GetAuditConfig()) - diags.Append(d...) - obj["audit_config"] = val - } - obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) - obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) - obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) - { - val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) - diags.Append(d...) - obj["authorizing_group_delegation"] = val - } - { - val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) - diags.Append(d...) - obj["authorizing_group_membership"] = val - } - { - val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) - diags.Append(d...) - obj["authorizing_group_provisioning"] = val - } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { - elemType := attrs["authorizing_group_types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["authorizing_group_types"] = val - } - { - val, d := tkhToTFObjectGroupGroupClassificationPrimer(false, tkh.GetClassification()) - diags.Append(d...) - obj["classification"] = val - } - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) - obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - { - val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetNestedUnder()) - diags.Append(d...) - obj["nested_under"] = val + obj["certificate_data"] = val } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { - val, d := tkhToTFObjectOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + elemType := attrs["key_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["organizational_unit"] = val + obj["key_data"] = val } - obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) - obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) - obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountAttrTypesRecurse + attrs = certificateCertificateAttrTypesDSRecurse } else { - attrs = groupGroupAccountAttrTypes + attrs = certificateCertificateAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8801,7 +14982,7 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -8809,7 +14990,7 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8819,40 +15000,50 @@ func tkhToTFObjectGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAcco { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + { + elemType := attrs["key_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["key_data"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountLinkableWrapperAttrTypesRecurse + attrs = certificateCertificateLinkableWrapperAttrTypesRSRecurse } else { - attrs = groupGroupAccountLinkableWrapperAttrTypes + attrs = certificateCertificateLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8861,8 +15052,8 @@ func tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupAccount(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh) diags.Append(d...) return val }) @@ -8875,33 +15066,42 @@ func tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel return objVal, diags } -func tkhToTFObjectGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountNestingAttrTypesRecurse + attrs = certificateCertificateLinkableWrapperAttrTypesDSRecurse } else { - attrs = groupGroupAccountNestingAttrTypes + attrs = certificateCertificateLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountStatusAttrTypesRecurse + attrs = certificateCertificatePrimerAttrTypesRSRecurse } else { - attrs = groupGroupAccountStatusAttrTypes + attrs = certificateCertificatePrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8909,24 +15109,109 @@ func tkhToTFObjectGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGro obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectGroupGroupFolder(recurse, tkh.GetFolder()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["folder"] = val + obj["links"] = val } - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificatePrimerAttrTypesDSRecurse + } else { + attrs = certificateCertificatePrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccount_additionalObjectsAttrTypesRecurse + attrs = certificateCertificate_additionalObjectsAttrTypesRSRecurse } else { - attrs = groupGroupAccount_additionalObjectsAttrTypes + attrs = certificateCertificate_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8934,7 +15219,7 @@ func tkhToTFObjectGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } @@ -8944,33 +15229,37 @@ func tkhToTFObjectGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmo return objVal, diags } -func tkhToTFObjectGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAdminMailAttrTypesRecurse + attrs = certificateCertificate_additionalObjectsAttrTypesDSRecurse } else { - attrs = groupGroupAdminMailAttrTypes + attrs = certificateCertificate_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["body"] = types.StringPointerValue(tkh.GetBody()) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditAttrTypesRecurse + attrs = clientClientApplicationAttrTypesRSRecurse } else { - attrs = groupGroupAuditAttrTypes + attrs = clientClientApplicationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8979,7 +15268,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -8987,7 +15276,7 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -8997,56 +15286,59 @@ func tkhToTFObjectGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudita { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["accounts"] = val + obj["scopes"] = val } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditAccountAttrTypesRecurse + attrs = clientClientApplicationAttrTypesDSRecurse } else { - attrs = groupGroupAuditAccountAttrTypes + attrs = clientClientApplicationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9056,38 +15348,50 @@ func tkhToTFObjectGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGrou { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) - obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditConfigAttrTypesRecurse + attrs = clientClientApplicationLinkableWrapperAttrTypesRSRecurse } else { - attrs = groupGroupAuditConfigAttrTypes + attrs = clientClientApplicationLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9095,9 +15399,67 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientClientApplication(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationLinkableWrapperAttrTypesDSRecurse + } else { + attrs = clientClientApplicationLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientClientApplication(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationPrimerAttrTypesRSRecurse + } else { + attrs = clientClientApplicationPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9107,34 +15469,39 @@ func tkhToTFObjectGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroup { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["months"] = val + obj["scopes"] = val } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditLinkableWrapperAttrTypesRecurse + attrs = clientClientApplicationPrimerAttrTypesDSRecurse } else { - attrs = groupGroupAuditLinkableWrapperAttrTypes + attrs = clientClientApplicationPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9142,28 +15509,51 @@ func tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.G obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupAudit(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAudit_additionalObjectsAttrTypesRecurse + attrs = clientClientApplication_additionalObjectsAttrTypesRSRecurse } else { - attrs = groupGroupAudit_additionalObjectsAttrTypes + attrs = clientClientApplication_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9171,50 +15561,91 @@ func tkhToTFObjectGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmode obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + { + val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditingInfoAttrTypesRecurse + attrs = clientClientApplication_additionalObjectsAttrTypesDSRecurse } else { - attrs = groupGroupAuditingInfoAttrTypes + attrs = clientClientApplication_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) - obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) - obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) - obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) - obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) - obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) - obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) - obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + { + val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClassificationAttrTypesRecurse + attrs = clientLdapClientAttrTypesRSRecurse } else { - attrs = groupGroupClassificationAttrTypes + attrs = clientLdapClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9223,7 +15654,7 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -9231,7 +15662,7 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9241,106 +15672,147 @@ func tkhToTFObjectGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGr { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) - obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) - obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) - obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) - obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) - obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) - obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) { - elemType := attrs["required_months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["required_months"] = val + obj["scopes"] = val } - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClassificationInfoAttrTypesRecurse + attrs = clientLdapClientAttrTypesDSRecurse } else { - attrs = groupGroupClassificationInfoAttrTypes + attrs = clientLdapClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = groupGroupClassificationLinkableWrapperAttrTypesRecurse - } else { - attrs = groupGroupClassificationLinkableWrapperAttrTypes + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupClassification(recurse, tkh) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val } + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + diags.Append(d...) + obj["shared_secret"] = val + } + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClassificationPrimerAttrTypesRecurse + attrs = clientOAuth2ClientAttrTypesRSRecurse } else { - attrs = groupGroupClassificationPrimerAttrTypes + attrs = clientOAuth2ClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9350,77 +15822,215 @@ func tkhToTFObjectGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.G { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectRSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClassificationUpdateAttrTypesRecurse + attrs = clientOAuth2ClientAttrTypesDSRecurse } else { - attrs = groupGroupClassificationUpdateAttrTypes + attrs = clientOAuth2ClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["classificaton_uuid"] = withUuidToTF(tkh.GetClassificaton()) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectDSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + diags.Append(d...) + obj["shared_secret"] = val + } + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClassification_additionalObjectsAttrTypesRecurse + attrs = clientOAuth2ClientPermissionAttrTypesRSRecurse } else { - attrs = groupGroupClassification_additionalObjectsAttrTypes + attrs = clientOAuth2ClientPermissionAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["links"] = val } { - val, d := tkhToTFObjectGroupGroupClassificationInfo(recurse, tkh.GetInfo()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["info"] = val + obj["permissions"] = val } + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClientAttrTypesRecurse + attrs = clientOAuth2ClientPermissionAttrTypesDSRecurse } else { - attrs = groupGroupClientAttrTypes + attrs = clientOAuth2ClientPermissionAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9429,7 +16039,7 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -9437,7 +16047,7 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9447,39 +16057,37 @@ func tkhToTFObjectGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClien { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectClientClientApplicationPrimer(false, tkh.GetClient()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) diags.Append(d...) - obj["client"] = val + obj["for_group"] = val } { - val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) diags.Append(d...) - obj["group"] = val + obj["for_system"] = val } - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["value"] = stringerToTF(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClientLinkableWrapperAttrTypesRecurse + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse } else { - attrs = groupGroupClientLinkableWrapperAttrTypes + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9488,8 +16096,8 @@ func tkhToTFObjectGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupClient(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission(recurse, tkh) diags.Append(d...) return val }) @@ -9502,13 +16110,13 @@ func tkhToTFObjectGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel. return objVal, diags } -func tkhToTFObjectGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupClient_additionalObjectsAttrTypesRecurse + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse } else { - attrs = groupGroupClient_additionalObjectsAttrTypes + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9516,9 +16124,14 @@ func tkhToTFObjectGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -9526,13 +16139,13 @@ func tkhToTFObjectGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmod return objVal, diags } -func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupFolderAttrTypesRecurse + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse } else { - attrs = groupGroupFolderAttrTypes + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9541,7 +16154,7 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -9549,7 +16162,7 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -9559,42 +16172,82 @@ func tkhToTFObjectGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolde { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupFolderLinkableWrapperAttrTypesRecurse + attrs = clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse } else { - attrs = groupGroupFolderLinkableWrapperAttrTypes + attrs = clientOAuth2ClientPermissionWithClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupFolder(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) + diags.Append(d...) + obj["for_group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + diags.Append(d...) + obj["for_system"] = val + } + obj["value"] = stringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -9602,13 +16255,13 @@ func tkhToTFObjectGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel. return objVal, diags } -func tkhToTFObjectGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupFolder_additionalObjectsAttrTypesRecurse + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse } else { - attrs = groupGroupFolder_additionalObjectsAttrTypes + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9616,9 +16269,14 @@ func tkhToTFObjectGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -9626,38 +16284,42 @@ func tkhToTFObjectGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmod return objVal, diags } -func tkhToTFObjectGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupInfoAttrTypesRecurse + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse } else { - attrs = groupGroupInfoAttrTypes + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) - obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) - obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) - obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) - obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) - obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupLinkableWrapperAttrTypesRecurse + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse } else { - attrs = groupGroupLinkableWrapperAttrTypes + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9665,14 +16327,9 @@ func tkhToTFObjectGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupG obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -9680,13 +16337,13 @@ func tkhToTFObjectGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupG return objVal, diags } -func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupPrimerAttrTypesRecurse + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse } else { - attrs = groupGroupPrimerAttrTypes + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9694,292 +16351,304 @@ func tkhToTFObjectGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrime obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupPrimerLinkableWrapperAttrTypesRecurse + attrs = clientOAuth2Client_attributesAttrTypesRSRecurse } else { - attrs = groupGroupPrimerLinkableWrapperAttrTypes + attrs = clientOAuth2Client_attributesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesRecurse + attrs = clientOAuth2Client_attributesAttrTypesDSRecurse } else { - attrs = groupGroupSegmentedLinkableWrapperAttrTypes + attrs = clientOAuth2Client_attributesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - { - elemType := attrs["segments"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectSegmentCount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["segments"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroup_additionalObjectsAttrTypesRecurse + attrs = clientSaml2ClientAttrTypesRSRecurse } else { - attrs = groupGroup_additionalObjectsAttrTypes + attrs = clientSaml2ClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["accounts"] = val + obj["links"] = val } { - val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) - diags.Append(d...) - obj["administered_clients"] = val - } - { - val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) - diags.Append(d...) - obj["administered_systems"] = val - } - { - val, d := tkhToTFObjectGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) - diags.Append(d...) - obj["admins"] = val - } - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) - diags.Append(d...) - obj["authorized_groups"] = val - } - { - val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) - diags.Append(d...) - obj["client_permissions"] = val - } - { - val, d := tkhToTFObjectGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) - diags.Append(d...) - obj["clients"] = val - } - { - val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) - diags.Append(d...) - obj["content_administered_systems"] = val - } - { - val, d := tkhToTFObjectGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) - diags.Append(d...) - obj["groupauditinginfo"] = val - } - { - val, d := tkhToTFObjectGroupGroupInfo(recurse, tkh.GetGroupinfo()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["groupinfo"] = val + obj["permissions"] = val } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["helpdesk"] = val + obj["scopes"] = val } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { - val, d := tkhToTFObjectMarkItemMarkers(recurse, tkh.GetMarkers()) + val, d := tkhToTFObjectRSClientSaml2Client_attributes(false, tkh.GetAttributes()) diags.Append(d...) - obj["markers"] = val + obj["attributes"] = val } - { - val, d := tkhToTFObjectGroupGroupAccount(recurse, tkh.GetMyaccount()) - diags.Append(d...) - obj["myaccount"] = val + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2ClientAttrTypesDSRecurse + } else { + attrs = clientSaml2ClientAttrTypesDS } - { - val, d := tkhToTFObjectGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) - diags.Append(d...) - obj["mydelegatedaccount"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tkhToTFObjectGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) - diags.Append(d...) - obj["nested_groups"] = val + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tkhToTFObjectClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["owned_clients"] = val + obj["links"] = val } { - val, d := tkhToTFObjectDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["owned_directories"] = val + obj["permissions"] = val } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["owned_groups_on_system"] = val + obj["scopes"] = val } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) { - val, d := tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - obj["owned_organizational_units"] = val + obj["owner"] = val } { - val, d := tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - obj["owned_systems"] = val + obj["technical_administrator"] = val } { - val, d := tkhToTFObjectGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + val, d := tkhToTFObjectDSClientSaml2Client_attributes(false, tkh.GetAttributes()) diags.Append(d...) - obj["recent_audits"] = val + obj["attributes"] = val } - obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) - { - val, d := tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = val + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2Client_attributesAttrTypesRSRecurse + } else { + attrs = clientSaml2Client_attributesAttrTypesRS } - { - val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2Client_attributesAttrTypesDSRecurse + } else { + attrs = clientSaml2Client_attributesAttrTypesDS } - { - val, d := tkhToTFObjectWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) - diags.Append(d...) - obj["webhooks"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupsAuditStatsAttrTypesRecurse + attrs = directoryAccountDirectoryAttrTypesRSRecurse } else { - attrs = groupGroupsAuditStatsAttrTypes + attrs = directoryAccountDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["classifications"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupGroupClassification(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["classifications"] = val + obj["links"] = val } - obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) - obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) - obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) - obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) - obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupProvisioningGroupAttrTypesRecurse + attrs = directoryAccountDirectoryAttrTypesDSRecurse } else { - attrs = groupProvisioningGroupAttrTypes + attrs = directoryAccountDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9988,7 +16657,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -9996,7 +16665,7 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10006,37 +16675,45 @@ func tkhToTFObjectGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProv { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { - val, d := tkhToTFObjectGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) - obj["group"] = val + obj["base_organizational_unit"] = val } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) diags.Append(d...) - obj["group_on_system"] = val + obj["helpdesk_group"] = val } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesRecurse + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse } else { - attrs = groupProvisioningGroupLinkableWrapperAttrTypes + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10045,8 +16722,8 @@ func tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectGroupProvisioningGroup(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSDirectoryAccountDirectory(recurse, tkh) diags.Append(d...) return val }) @@ -10059,13 +16736,13 @@ func tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesRecurse + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse } else { - attrs = groupProvisioningGroup_additionalObjectsAttrTypes + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10073,9 +16750,14 @@ func tkhToTFObjectGroupProvisioningGroup_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSDirectoryAccountDirectory(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -10083,13 +16765,13 @@ func tkhToTFObjectGroupProvisioningGroup_additionalObjects(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRecurse + attrs = directoryAccountDirectoryPrimerAttrTypesRSRecurse } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypes + attrs = directoryAccountDirectoryPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10099,7 +16781,7 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10109,43 +16791,119 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel. { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryPrimerAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectoryPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["logo"] = val + obj["links"] = val } { - val, d := tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["tile"] = val + obj["permissions"] = val } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryStatusReportAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectoryStatusReportAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryStatusReportAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectoryStatusReportAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRecurse + attrs = directoryAccountDirectorySummaryAttrTypesRSRecurse } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypes + attrs = directoryAccountDirectorySummaryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10153,45 +16911,58 @@ func tkhToTFObjectLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectLaunchpadDisplayedLaunchpadTile(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val } + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTileAttrTypesRecurse + attrs = directoryAccountDirectorySummaryAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTileAttrTypes + attrs = directoryAccountDirectorySummaryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10201,39 +16972,36 @@ func tkhToTFObjectLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchpad { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) diags.Append(d...) - obj["logo"] = val + obj["status"] = val } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRecurse + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse } else { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypes + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10242,8 +17010,8 @@ func tkhToTFObjectLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectLaunchpadLaunchpadTile(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse, tkh) diags.Append(d...) return val }) @@ -10256,13 +17024,13 @@ func tkhToTFObjectLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesRecurse + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTilePrimerAttrTypes + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10270,24 +17038,48 @@ func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.Lau obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["links"] = val + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -10295,13 +17087,13 @@ func tkhToTFObjectLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.Lau return objVal, diags } -func tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRecurse + attrs = directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypes + attrs = directoryAccountDirectory_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10309,23 +17101,33 @@ func tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesRecurse + attrs = directoryInternalDirectoryAttrTypesRSRecurse } else { - attrs = launchpadManualLaunchpadTileAttrTypes + attrs = directoryInternalDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10334,7 +17136,7 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -10342,7 +17144,7 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10352,41 +17154,38 @@ func tkhToTFObjectLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.Lau { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRecurse + attrs = directoryInternalDirectoryAttrTypesDSRecurse } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypes + attrs = directoryInternalDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10395,7 +17194,7 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -10403,7 +17202,7 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10413,40 +17212,50 @@ func tkhToTFObjectLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) - obj["logo"] = val + obj["base_organizational_unit"] = val + } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRecurse + attrs = directoryLDAPDirectoryAttrTypesRSRecurse } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypes + attrs = directoryLDAPDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10455,7 +17264,7 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -10463,7 +17272,7 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -10473,107 +17282,128 @@ func tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmode { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesRecurse + attrs = directoryLDAPDirectoryAttrTypesDSRecurse } else { - attrs = licenseKeyHubLicenseInfoAttrTypes + attrs = directoryLDAPDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["customer_domains"] = val + obj["links"] = val } { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["details"] = val + obj["permissions"] = val } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) - obj["features"] = val + obj["base_organizational_unit"] = val } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesRecurse - } else { - attrs = markItemMarkerAttrTypes + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := tkhToTFObjectMarkItemMarker_parameters(recurse, tkh.GetParameters()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - obj["parameters"] = val + obj["failover_trusted_certificate"] = val + } + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -10581,281 +17411,426 @@ func tkhToTFObjectMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerabl return objVal, diags } -func tkhToTFObjectMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarker_parametersAttrTypesRecurse + attrs = directoryMaintenanceDirectoryAttrTypesRSRecurse } else { - attrs = markItemMarker_parametersAttrTypes + attrs = directoryMaintenanceDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = markItemMarkersAttrTypesRecurse - } else { - attrs = markItemMarkersAttrTypes + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectMarkItemMarker(recurse, tkh) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["markers"] = val + obj["permissions"] = val } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationCertificateExpiredNotificationAttrTypesRecurse + attrs = directoryMaintenanceDirectoryAttrTypesDSRecurse } else { - attrs = notificationCertificateExpiredNotificationAttrTypes + attrs = directoryMaintenanceDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tkhToTFObjectCertificateCertificate(recurse, tkh.GetCertificate()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["certificate"] = val + obj["links"] = val } { - val, d := tkhToTFObjectDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["directory"] = val + obj["permissions"] = val } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { - val, d := tkhToTFObjectClientLdapClient(recurse, tkh.GetLdapClient()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) - obj["ldap_client"] = val + obj["base_organizational_unit"] = val } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) { - val, d := tkhToTFObjectProvisioningProvisionedSystem(recurse, tkh.GetSystem()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) diags.Append(d...) - obj["system"] = val + obj["helpdesk_group"] = val } - obj["usage"] = stringerToTF(tkh.GetUsage()) - obj["webhook_uuid"] = withUuidToTF(tkh.GetWebhook()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationGroupAuditRequiredNotificationAttrTypesRecurse + attrs = directoryOIDCDirectoryAttrTypesRSRecurse } else { - attrs = notificationGroupAuditRequiredNotificationAttrTypes + attrs = directoryOIDCDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["due_date"] = timePointerToTF(tkh.GetDueDate()) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tkhToTFObjectGroupGroup(recurse, tkh.GetGroup()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["group"] = val + obj["links"] = val } - obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationGroupEditRequiredNotificationAttrTypesRecurse + attrs = directoryOIDCDirectoryAttrTypesDSRecurse } else { - attrs = notificationGroupEditRequiredNotificationAttrTypes + attrs = directoryOIDCDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tkhToTFObjectGroupGroup(recurse, tkh.GetGroup()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["group"] = val + obj["links"] = val } { - val, d := tkhToTFObjectNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["parameters"] = val + obj["permissions"] = val } - obj["reason"] = stringerToTF(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRecurse - } else { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypes + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) + diags.Append(d...) + obj["base_organizational_unit"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val } - - obj := make(map[string]attr.Value) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRecurse + attrs = groupAccountGroupAttrTypesRSRecurse } else { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypes + attrs = groupAccountGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = notificationLicenseStatusNotificationAttrTypesRecurse - } else { - attrs = notificationLicenseStatusNotificationAttrTypes + { + val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) - obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) { - val, d := tkhToTFObjectLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["license_info"] = val + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationModificationRequestNotificationAttrTypesRecurse + attrs = groupAccountGroupAttrTypesDSRecurse } else { - attrs = notificationModificationRequestNotificationAttrTypes + attrs = groupAccountGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["admins"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["admins"] = val + obj["links"] = val } { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["groups"] = val + obj["permissions"] = val } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) { - val, d := tkhToTFObjectRequestModificationRequest(recurse, tkh.GetRequest()) + val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) diags.Append(d...) - obj["request"] = val + obj["folder"] = val } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationNotificationAttrTypesRecurse + attrs = groupAccountGroupLinkableWrapperAttrTypesRSRecurse } else { - attrs = notificationNotificationAttrTypes + attrs = groupAccountGroupLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupAccountGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationNotificationsAttrTypesRecurse + attrs = groupAccountGroupLinkableWrapperAttrTypesDSRecurse } else { - attrs = notificationNotificationsAttrTypes + attrs = groupAccountGroupLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10864,8 +17839,8 @@ func tkhToTFObjectNotificationNotifications(recurse bool, tkh keyhubmodel.Notifi obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectNotificationNotification(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupAccountGroup(recurse, tkh) diags.Append(d...) return val }) @@ -10878,24 +17853,28 @@ func tkhToTFObjectNotificationNotifications(recurse bool, tkh keyhubmodel.Notifi return objVal, diags } -func tkhToTFObjectNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationOldApiVersionUsageNotificationAttrTypesRecurse + attrs = groupAccountGroup_additionalObjectsAttrTypesRSRecurse } else { - attrs = notificationOldApiVersionUsageNotificationAttrTypes + attrs = groupAccountGroup_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) { - val, d := tkhToTFObjectClientOAuth2Client(recurse, tkh.GetClient()) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["client"] = val + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -10903,13 +17882,13 @@ func tkhToTFObjectNotificationOldApiVersionUsageNotification(recurse bool, tkh k return objVal, diags } -func tkhToTFObjectNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesRecurse + attrs = groupAccountGroup_additionalObjectsAttrTypesDSRecurse } else { - attrs = notificationProvisionConfigRequiredNotificationAttrTypes + attrs = groupAccountGroup_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10917,12 +17896,14 @@ func tkhToTFObjectNotificationProvisionConfigRequiredNotification(recurse bool, obj := make(map[string]attr.Value) { - elemType := attrs["systems"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["systems"] = val + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -10930,13 +17911,13 @@ func tkhToTFObjectNotificationProvisionConfigRequiredNotification(recurse bool, return objVal, diags } -func tkhToTFObjectNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRecurse + attrs = groupAuthorizedGroupsWrapperAttrTypesRSRecurse } else { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypes + attrs = groupAuthorizedGroupsWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10944,46 +17925,29 @@ func tkhToTFObjectNotificationRotatingPasswordRequiredNotification(recurse bool, obj := make(map[string]attr.Value) { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["groups"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationUpdateAvailableNotificationAttrTypesRecurse - } else { - attrs = notificationUpdateAvailableNotificationAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["items"] = val } - - obj := make(map[string]attr.Value) - obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = notificationVaultRecordExpiredNotificationAttrTypesRecurse + attrs = groupAuthorizedGroupsWrapperAttrTypesDSRecurse } else { - attrs = notificationVaultRecordExpiredNotificationAttrTypes + attrs = groupAuthorizedGroupsWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -10991,23 +17955,29 @@ func tkhToTFObjectNotificationVaultRecordExpiredNotification(recurse bool, tkh k obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectVaultVaultRecord(recurse, tkh.GetRecord()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["record"] = val + obj["items"] = val } + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationAccountOrganizationalUnitAttrTypesRecurse + attrs = groupGroupAttrTypesRSRecurse } else { - attrs = organizationAccountOrganizationalUnitAttrTypes + attrs = groupGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11016,7 +17986,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -11024,7 +17994,7 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11034,81 +18004,61 @@ func tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhub { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRecurse - } else { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectOrganizationAccountOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRecurse - } else { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["audit_config"] = val } - - obj := make(map[string]attr.Value) + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) + obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) + obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) + obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - obj["audit"] = val + obj["authorizing_group_types"] = val } + obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitAttrTypesRecurse + attrs = groupGroupAttrTypesDSRecurse } else { - attrs = organizationOrganizationalUnitAttrTypes + attrs = groupGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11117,7 +18067,7 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -11125,7 +18075,7 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11135,32 +18085,89 @@ func tkhToTFObjectOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.O { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) + { + val, d := tkhToTFObjectDSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) + diags.Append(d...) + obj["audit_config"] = val + } + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupAuditing()) + diags.Append(d...) + obj["authorizing_group_auditing"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) + diags.Append(d...) + obj["authorizing_group_delegation"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) + diags.Append(d...) + obj["authorizing_group_membership"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) + diags.Append(d...) + obj["authorizing_group_provisioning"] = val + } + { + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["authorizing_group_types"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(false, tkh.GetClassification()) + diags.Append(d...) + obj["classification"] = val + } obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetNestedUnder()) + diags.Append(d...) + obj["nested_under"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitAccountAttrTypesRecurse + attrs = groupGroupAccountAttrTypesRSRecurse } else { - attrs = organizationOrganizationalUnitAccountAttrTypes + attrs = groupGroupAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11169,7 +18176,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -11177,7 +18184,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11187,7 +18194,7 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -11200,48 +18207,91 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhub obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["validity"] = stringerToTF(tkh.GetValidity()) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRecurse + attrs = groupGroupAccountAttrTypesDSRecurse } else { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypes + attrs = groupGroupAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectOrganizationOrganizationalUnitAccount(recurse, tkh) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val } + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRecurse + attrs = groupGroupAccountLinkableWrapperAttrTypesRSRecurse } else { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypes + attrs = groupGroupAccountLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11249,9 +18299,14 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(recurs obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -11259,13 +18314,13 @@ func tkhToTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(recurs return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRecurse + attrs = groupGroupAccountLinkableWrapperAttrTypesDSRecurse } else { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypes + attrs = groupGroupAccountLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11274,8 +18329,8 @@ func tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tk obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectOrganizationOrganizationalUnit(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh) diags.Append(d...) return val }) @@ -11288,81 +18343,53 @@ func tkhToTFObjectOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tk return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitPrimerAttrTypesRecurse + attrs = groupGroupAccountNestingAttrTypesRSRecurse } else { - attrs = organizationOrganizationalUnitPrimerAttrTypes + attrs = groupGroupAccountNestingAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRecurse + attrs = groupGroupAccountNestingAttrTypesDSRecurse } else { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypes + attrs = groupGroupAccountNestingAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } + obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRecurse + attrs = groupGroupAccountStatusAttrTypesRSRecurse } else { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypes + attrs = groupGroupAccountStatusAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11370,140 +18397,83 @@ func tkhToTFObjectOrganizationOrganizationalUnit_additionalObjects(recurse bool, obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) + val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) diags.Append(d...) - obj["create_as_parent_of"] = val + obj["folder"] = val } + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningAbstractProvisionedLDAPAttrTypesRecurse + attrs = groupGroupAccountStatusAttrTypesDSRecurse } else { - attrs = provisioningAbstractProvisionedLDAPAttrTypes + attrs = groupGroupAccountStatusAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) diags.Append(d...) - obj["attributes"] = val + obj["folder"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRecurse + attrs = groupGroupAccount_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypes + attrs = groupGroupAccount_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningAccountProvisioningStatusAttrTypesRecurse + attrs = groupGroupAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = provisioningAccountProvisioningStatusAttrTypes + attrs = groupGroupAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["result"] = stringerToTF(tkh.GetResult()) { - val, d := tkhToTFObjectGroupProvisioningGroup(recurse, tkh.GetSystem()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["system"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -11511,65 +18481,53 @@ func tkhToTFObjectProvisioningAccountProvisioningStatus(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningAccountProvisioningStatusReportAttrTypesRecurse + attrs = groupGroupAdminMailAttrTypesRSRecurse } else { - attrs = provisioningAccountProvisioningStatusReportAttrTypes + attrs = groupGroupAdminMailAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["status"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningAccountProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["status"] = val - } + obj["body"] = types.StringPointerValue(tkh.GetBody()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningCircuitBreakerStatisticsAttrTypesRecurse + attrs = groupGroupAdminMailAttrTypesDSRecurse } else { - attrs = provisioningCircuitBreakerStatisticsAttrTypes + attrs = groupGroupAdminMailAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) - obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) - obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) - obj["state"] = stringerToTF(tkh.GetState()) + obj["body"] = types.StringPointerValue(tkh.GetBody()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupOnSystemAttrTypesRecurse + attrs = groupGroupAuditAttrTypesRSRecurse } else { - attrs = provisioningGroupOnSystemAttrTypes + attrs = groupGroupAuditAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11578,7 +18536,7 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -11586,7 +18544,7 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11596,61 +18554,112 @@ func tkhToTFObjectProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRecurse + attrs = groupGroupAuditAttrTypesDSRecurse } else { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypes + attrs = groupGroupAuditAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningGroupOnSystem(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupOnSystemPrimerAttrTypesRecurse + attrs = groupGroupAuditAccountAttrTypesRSRecurse } else { - attrs = provisioningGroupOnSystemPrimerAttrTypes + attrs = groupGroupAuditAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11660,7 +18669,7 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11670,30 +18679,38 @@ func tkhToTFObjectProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel. { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupOnSystemTypesAttrTypesRecurse + attrs = groupGroupAuditAccountAttrTypesDSRecurse } else { - attrs = provisioningGroupOnSystemTypesAttrTypes + attrs = groupGroupAuditAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11701,26 +18718,50 @@ func tkhToTFObjectProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.P obj := make(map[string]attr.Value) { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["types"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRecurse + attrs = groupGroupAuditConfigAttrTypesRSRecurse } else { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypes + attrs = groupGroupAuditConfigAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11728,19 +18769,32 @@ func tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["links"] = val } { - val, d := tkhToTFObjectGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["provgroups"] = val + obj["permissions"] = val } { - val, d := tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) + elemType := attrs["months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - obj["service_accounts"] = val + obj["months"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -11748,13 +18802,13 @@ func tkhToTFObjectProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh return objVal, diags } -func tkhToTFObjectProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupProvisioningStatusAttrTypesRecurse + attrs = groupGroupAuditConfigAttrTypesDSRecurse } else { - attrs = provisioningGroupProvisioningStatusAttrTypes + attrs = groupGroupAuditConfigAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11762,62 +18816,75 @@ func tkhToTFObjectProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - { - val, d := tkhToTFObjectGroupGroup(recurse, tkh.GetGroup()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["group"] = val + obj["links"] = val } { - val, d := tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["provisioning_duration"] = val + obj["permissions"] = val } - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) { - val, d := tkhToTFObjectProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) + elemType := attrs["months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - obj["status_report"] = val + obj["months"] = val } - obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRecurse + attrs = groupGroupAuditLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypes + attrs = groupGroupAuditLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAudit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRecurse + attrs = groupGroupAuditLinkableWrapperAttrTypesDSRecurse } else { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypes + attrs = groupGroupAuditLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11826,77 +18893,51 @@ func tkhToTFObjectProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhu obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningGroupOnSystem(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAudit(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["items"] = val } - obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionNumberSequenceAttrTypesRecurse + attrs = groupGroupAudit_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningProvisionNumberSequenceAttrTypes + attrs = groupGroupAudit_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRecurse + attrs = groupGroupAudit_additionalObjectsAttrTypesDSRecurse } else { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypes + attrs = groupGroupAudit_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11904,14 +18945,9 @@ func tkhToTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(recurse boo obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionNumberSequence(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -11919,42 +18955,67 @@ func tkhToTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(recurse boo return objVal, diags } -func tkhToTFObjectProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRecurse + attrs = groupGroupAuditingInfoAttrTypesRSRecurse } else { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypes + attrs = groupGroupAuditingInfoAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditingInfoAttrTypesDSRecurse + } else { + attrs = groupGroupAuditingInfoAttrTypesDS } - { - val, d := tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedADAttrTypesRecurse + attrs = groupGroupClassificationAttrTypesRSRecurse } else { - attrs = provisioningProvisionedADAttrTypes + attrs = groupGroupClassificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -11963,7 +19024,7 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -11971,7 +19032,7 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -11981,62 +19042,47 @@ func tkhToTFObjectProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Provis { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) + obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) + obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) + obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) + obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) { - val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + elemType := attrs["required_months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - obj["attributes"] = val + obj["required_months"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAccountAttrTypesRecurse + attrs = groupGroupClassificationAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAccountAttrTypes + attrs = groupGroupClassificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12045,7 +19091,7 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -12053,7 +19099,7 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12063,230 +19109,155 @@ func tkhToTFObjectProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.P { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) + obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) + obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) + obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) + obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) + obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) + { + elemType := attrs["required_months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["required_months"] = val + } + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRecurse + attrs = groupGroupClassificationInfoAttrTypesRSRecurse } else { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypes + attrs = groupGroupClassificationInfoAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionedAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRecurse + attrs = groupGroupClassificationInfoAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypes + attrs = groupGroupClassificationInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } + obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRecurse + attrs = groupGroupClassificationLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypes + attrs = groupGroupClassificationLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRecurse + attrs = groupGroupClassificationLinkableWrapperAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypes + attrs = groupGroupClassificationLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesRecurse + attrs = groupGroupClassificationPrimerAttrTypesRSRecurse } else { - attrs = provisioningProvisionedAzureTenantAttrTypes + attrs = groupGroupClassificationPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12296,62 +19267,38 @@ func tkhToTFObjectProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmod { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesRecurse + attrs = groupGroupClassificationPrimerAttrTypesDSRecurse } else { - attrs = provisioningProvisionedInternalLDAPAttrTypes + attrs = groupGroupClassificationPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12361,120 +19308,116 @@ func tkhToTFObjectProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectClientLdapClient(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationUpdateAttrTypesRSRecurse + } else { + attrs = groupGroupClassificationUpdateAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + obj["classificaton_uuid"] = withUuidToTF(tkh.GetClassificaton()) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPAttrTypesRecurse + attrs = groupGroupClassificationUpdateAttrTypesDSRecurse } else { - attrs = provisioningProvisionedLDAPAttrTypes + attrs = groupGroupClassificationUpdateAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(recurse, tkh.GetClassificaton()) + diags.Append(d...) + obj["classificaton"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = groupGroupClassification_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupClassification_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["links"] = val + obj["audit"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) diags.Append(d...) - obj["permissions"] = val + obj["info"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassification_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupClassification_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["attributes"] = val + obj["audit"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := tkhToTFObjectProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) + val, d := tkhToTFObjectDSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) diags.Append(d...) - obj["numbering"] = val + obj["info"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -12482,13 +19425,13 @@ func tkhToTFObjectProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Prov return objVal, diags } -func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRecurse + attrs = groupGroupClientAttrTypesRSRecurse } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypes + attrs = groupGroupClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12497,7 +19440,7 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -12505,7 +19448,7 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12515,43 +19458,31 @@ func tkhToTFObjectProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemAttrTypesRecurse + attrs = groupGroupClientAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemAttrTypes + attrs = groupGroupClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12560,7 +19491,7 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -12568,7 +19499,7 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12578,41 +19509,47 @@ func tkhToTFObjectProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.Pr { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRecurse + attrs = groupGroupClientLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypes + attrs = groupGroupClientLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12621,8 +19558,8 @@ func tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionedSystem(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClient(recurse, tkh) diags.Append(d...) return val }) @@ -12635,13 +19572,13 @@ func tkhToTFObjectProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesRecurse + attrs = groupGroupClientLinkableWrapperAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemPrimerAttrTypes + attrs = groupGroupClientLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12649,43 +19586,52 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClient(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["links"] = val + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClient_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupClient_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRecurse + attrs = groupGroupClient_additionalObjectsAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypes + attrs = groupGroupClient_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12693,12 +19639,9 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse boo obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -12706,13 +19649,13 @@ func tkhToTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(recurse boo return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRecurse + attrs = groupGroupFolderAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypes + attrs = groupGroupFolderAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12721,7 +19664,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -12729,7 +19672,7 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -12739,59 +19682,74 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubm { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + obj["name"] = types.StringPointerValue(tkh.GetName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRecurse + attrs = groupGroupFolderAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypes + attrs = groupGroupFolderAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningProvisionedSystemSyncLog(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } + obj["name"] = types.StringPointerValue(tkh.GetName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRecurse + attrs = groupGroupFolderLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypes + attrs = groupGroupFolderLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12799,9 +19757,14 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(recurse obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -12809,13 +19772,13 @@ func tkhToTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(recurse return objVal, diags } -func tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRecurse + attrs = groupGroupFolderLinkableWrapperAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypes + attrs = groupGroupFolderLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12823,40 +19786,14 @@ func tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(recurse bool, obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["supported_group_types"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -12864,35 +19801,37 @@ func tkhToTFObjectProvisioningProvisionedSystem_additionalObjects(recurse bool, return objVal, diags } -func tkhToTFObjectProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesRecurse + attrs = groupGroupFolder_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypes + attrs = groupGroupFolder_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisioningStatusAttrTypesRecurse + attrs = groupGroupFolder_additionalObjectsAttrTypesDSRecurse } else { - attrs = provisioningProvisioningStatusAttrTypes + attrs = groupGroupFolder_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -12900,121 +19839,141 @@ func tkhToTFObjectProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.P obj := make(map[string]attr.Value) { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["groups"] = val + obj["audit"] = val } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningTokenPasswordAttrTypesRecurse + attrs = groupGroupInfoAttrTypesRSRecurse } else { - attrs = provisioningTokenPasswordAttrTypes + attrs = groupGroupInfoAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesRecurse + attrs = groupGroupInfoAttrTypesDSRecurse } else { - attrs = requestAbstractApplicationModificationRequestAttrTypes + attrs = groupGroupInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = groupGroupLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupLinkableWrapperAttrTypesRS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["links"] = val + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRecurse + attrs = groupGroupPrimerAttrTypesRSRecurse } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypes + attrs = groupGroupPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13024,51 +19983,39 @@ func tkhToTFObjectRequestAbstractOrganizationalUnitModificationRequest(recurse b { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRecurse + attrs = groupGroupPrimerAttrTypesDSRecurse } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypes + attrs = groupGroupPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13078,34 +20025,29 @@ func tkhToTFObjectRequestAbstractProvisionedSystemModificationRequest(recurse bo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesRecurse + attrs = groupGroupPrimerLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypes + attrs = groupGroupPrimerLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -13113,9 +20055,12 @@ func tkhToTFObjectRequestAcceptGrantAccessRequestParameters(recurse bool, tkh ke obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) diags.Append(d...) - obj["access_duration"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -13123,296 +20068,490 @@ func tkhToTFObjectRequestAcceptGrantAccessRequestParameters(recurse bool, tkh ke return objVal, diags } -func tkhToTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRecurse + attrs = groupGroupPrimerLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypes + attrs = groupGroupPrimerLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesRecurse + attrs = groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypes + attrs = groupGroupSegmentedLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + { + elemType := attrs["segments"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSSegmentCount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["segments"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesRecurse + attrs = groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestAcceptModificationRequestParametersAttrTypes + attrs = groupGroupSegmentedLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + { + elemType := attrs["segments"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSSegmentCount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["segments"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAddGroupAdminRequestAttrTypesRecurse + attrs = groupGroup_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestAddGroupAdminRequestAttrTypes + attrs = groupGroup_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + { + val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) + diags.Append(d...) + obj["accounts"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) - obj["links"] = val + obj["administered_clients"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) - obj["permissions"] = val + obj["administered_systems"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) + diags.Append(d...) + obj["admins"] = val + } + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) + diags.Append(d...) + obj["authorized_groups"] = val + } + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) + diags.Append(d...) + obj["client_permissions"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) + diags.Append(d...) + obj["clients"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) + diags.Append(d...) + obj["content_administered_systems"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupInfo(recurse, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) + diags.Append(d...) + obj["helpdesk"] = val + } + { + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = val + } + { + val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = val + } + { + val, d := tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = val + } + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + { + val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesRecurse + attrs = groupGroup_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestCreateGroupOnSystemRequestAttrTypes + attrs = groupGroup_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + { + val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) + diags.Append(d...) + obj["accounts"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) - obj["links"] = val + obj["administered_clients"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) - obj["permissions"] = val + obj["administered_systems"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) + diags.Append(d...) + obj["admins"] = val + } + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) + diags.Append(d...) + obj["authorized_groups"] = val + } + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) + diags.Append(d...) + obj["client_permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) + diags.Append(d...) + obj["clients"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) + diags.Append(d...) + obj["content_administered_systems"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupInfo(recurse, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) + diags.Append(d...) + obj["helpdesk"] = val + } + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = val + } + { + val, d := tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = val + } + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + { + val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateGroupRequestAttrTypesRecurse + attrs = groupGroupsAuditStatsAttrTypesRSRecurse } else { - attrs = requestCreateGroupRequestAttrTypes + attrs = groupGroupsAuditStatsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } + obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["classifications"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["classifications"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) + obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) + obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) + obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) + obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesRecurse + attrs = groupGroupsAuditStatsAttrTypesDSRecurse } else { - attrs = requestCreateServiceAccountRequestAttrTypes + attrs = groupGroupsAuditStatsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } + obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["classifications"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["classifications"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) + obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) + obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) + obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) + obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestDisable2FARequestAttrTypesRecurse + attrs = groupProvisioningGroupAttrTypesRSRecurse } else { - attrs = requestDisable2FARequestAttrTypes + attrs = groupProvisioningGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -13421,7 +20560,7 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -13429,7 +20568,7 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13439,34 +20578,33 @@ func tkhToTFObjectRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Request { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesRecurse + attrs = groupProvisioningGroupAttrTypesDSRecurse } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypes + attrs = groupProvisioningGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -13475,7 +20613,7 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -13483,7 +20621,7 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13493,211 +20631,153 @@ func tkhToTFObjectRequestEnableTechnicalAdministrationRequest(recurse bool, tkh { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestExtendAccessRequestAttrTypesRecurse + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestExtendAccessRequestAttrTypes + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantAccessRequestAttrTypesRecurse + attrs = groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestGrantAccessRequestAttrTypes + attrs = groupProvisioningGroupLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantApplicationRequestAttrTypesRecurse + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestGrantApplicationRequestAttrTypes + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["links"] = val + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesRecurse + attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestGrantClientPermissionRequestAttrTypes + attrs = launchpadDisplayedLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13707,53 +20787,53 @@ func tkhToTFObjectRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesRecurse + attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestGrantGroupOnSystemRequestAttrTypes + attrs = launchpadDisplayedLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13763,84 +20843,62 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) diags.Append(d...) - obj["group_on_system"] = val + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRecurse + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypes + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -13848,72 +20906,42 @@ func tkhToTFObjectRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesRecurse + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypes + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val + obj["items"] = val } - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestJoinGroupRequestAttrTypesRecurse + attrs = launchpadLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestJoinGroupRequestAttrTypes + attrs = launchpadLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -13922,7 +20950,7 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -13930,7 +20958,7 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13940,33 +20968,39 @@ func tkhToTFObjectRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestJoinVaultRequestAttrTypesRecurse + attrs = launchpadLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestJoinVaultRequestAttrTypes + attrs = launchpadLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -13975,7 +21009,7 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -13983,7 +21017,7 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -13993,86 +21027,80 @@ func tkhToTFObjectRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequestAttrTypesRecurse + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestModificationRequestAttrTypes + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesRecurse + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestModificationRequestLinkableWrapperAttrTypes + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14081,8 +21109,8 @@ func tkhToTFObjectRequestModificationRequestLinkableWrapper(recurse bool, tkh ke obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRequestModificationRequest(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile(recurse, tkh) diags.Append(d...) return val }) @@ -14095,13 +21123,13 @@ func tkhToTFObjectRequestModificationRequestLinkableWrapper(recurse bool, tkh ke return objVal, diags } -func tkhToTFObjectRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesRecurse + attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse } else { - attrs = requestModificationRequest_additionalObjectsAttrTypes + attrs = launchpadLaunchpadTilePrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14109,19 +21137,24 @@ func tkhToTFObjectRequestModificationRequest_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) - diags.Append(d...) - obj["accept_params"] = val - } - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["links"] = val } { - val, d := tkhToTFObjectRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["reset_status"] = val + obj["permissions"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -14129,30 +21162,23 @@ func tkhToTFObjectRequestModificationRequest_additionalObjects(recurse bool, tkh return objVal, diags } -func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestPasswordResetRequestAttrTypesRecurse + attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse } else { - attrs = requestPasswordResetRequestAttrTypes + attrs = launchpadLaunchpadTilePrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14162,120 +21188,74 @@ func tkhToTFObjectRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Requ { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) - obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) - obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesRecurse + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestPasswordResetRequestStatusAttrTypes + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["managers"] = val + obj["audit"] = val } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveGroupRequestAttrTypesRecurse + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestRemoveGroupRequestAttrTypes + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesRecurse + attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypes + attrs = launchpadManualLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14284,7 +21264,7 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -14292,7 +21272,7 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14302,35 +21282,41 @@ func tkhToTFObjectRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhu { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesRecurse + attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypes + attrs = launchpadManualLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14339,7 +21325,7 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -14347,7 +21333,7 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14357,35 +21343,53 @@ func tkhToTFObjectRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhub { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestReviewAuditRequestAttrTypesRecurse + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestReviewAuditRequestAttrTypes + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14394,7 +21398,7 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -14402,7 +21406,7 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14412,33 +21416,40 @@ func tkhToTFObjectRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRevokeAdminRequestAttrTypesRecurse + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestRevokeAdminRequestAttrTypes + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14447,7 +21458,7 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -14455,7 +21466,7 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14465,34 +21476,52 @@ func tkhToTFObjectRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Reques { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesRecurse + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypes + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14501,7 +21530,7 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -14509,7 +21538,7 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14519,36 +21548,39 @@ func tkhToTFObjectRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmo { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesRecurse + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestSetupNestedGroupRequestAttrTypes + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -14557,7 +21589,7 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -14565,7 +21597,7 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -14575,241 +21607,201 @@ func tkhToTFObjectRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.R { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesRecurse + attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypes + attrs = licenseKeyHubLicenseInfoAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["links"] = val + obj["details"] = val } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["permissions"] = val + obj["features"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferApplicationOwnershipRequestAttrTypesRecurse + attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse } else { - attrs = requestTransferApplicationOwnershipRequestAttrTypes + attrs = licenseKeyHubLicenseInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["links"] = val + obj["details"] = val } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["permissions"] = val + obj["features"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferAuditorGroupRequestAttrTypesRecurse + attrs = markItemMarkerAttrTypesRSRecurse } else { - attrs = requestTransferAuditorGroupRequestAttrTypes + attrs = markItemMarkerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) - obj["links"] = val + obj["parameters"] = val } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRecurse + attrs = markItemMarkerAttrTypesDSRecurse } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypes + attrs = markItemMarkerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - val, d := tkhToTFObjectProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) - obj["group_on_system"] = val + obj["parameters"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -14817,640 +21809,400 @@ func tkhToTFObjectRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh return objVal, diags } -func tkhToTFObjectRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRecurse + attrs = markItemMarker_parametersAttrTypesRSRecurse } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypes + attrs = markItemMarker_parametersAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRecurse + attrs = markItemMarker_parametersAttrTypesDSRecurse } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypes + attrs = markItemMarker_parametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = markItemMarkersAttrTypesRSRecurse + } else { + attrs = markItemMarkersAttrTypesRS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["markers"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRecurse + attrs = markItemMarkersAttrTypesDSRecurse } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypes + attrs = markItemMarkersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["markers"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRecurse + attrs = notificationCertificateExpiredNotificationAttrTypesRSRecurse } else { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypes + attrs = notificationCertificateExpiredNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + { + val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) diags.Append(d...) - obj["links"] = val + obj["directory"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + { + val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetLdapClient()) + diags.Append(d...) + obj["ldap_client"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) diags.Append(d...) - obj["permissions"] = val + obj["system"] = val + } + obj["usage"] = stringerToTF(tkh.GetUsage()) + { + val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRecurse + attrs = notificationCertificateExpiredNotificationAttrTypesDSRecurse } else { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypes + attrs = notificationCertificateExpiredNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + { + val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) diags.Append(d...) - obj["links"] = val + obj["directory"] = val } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetLdapClient()) diags.Append(d...) - obj["permissions"] = val + obj["ldap_client"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["usage"] = stringerToTF(tkh.GetUsage()) + { + val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestUpdateGroupMembershipRequestAttrTypesRecurse + attrs = notificationGroupAuditRequiredNotificationAttrTypesRSRecurse } else { - attrs = requestUpdateGroupMembershipRequestAttrTypes + attrs = notificationGroupAuditRequiredNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } + obj["due_date"] = timePointerToTF(tkh.GetDueDate()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) - obj["permissions"] = val + obj["group"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) - obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) - obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) + obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestVerifyInternalAccountRequestAttrTypesRecurse + attrs = notificationGroupAuditRequiredNotificationAttrTypesDSRecurse } else { - attrs = requestVerifyInternalAccountRequestAttrTypes + attrs = notificationGroupAuditRequiredNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } + obj["due_date"] = timePointerToTF(tkh.GetDueDate()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) - obj["permissions"] = val + obj["group"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountAttrTypesRecurse + attrs = notificationGroupEditRequiredNotificationAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountAttrTypes + attrs = notificationGroupEditRequiredNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) - obj["links"] = val + obj["group"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) diags.Append(d...) - obj["permissions"] = val + obj["parameters"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) - obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["reason"] = stringerToTF(tkh.GetReason()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountGroupAttrTypesRecurse + attrs = notificationGroupEditRequiredNotificationAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountGroupAttrTypes + attrs = notificationGroupEditRequiredNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) - obj["links"] = val + obj["group"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) diags.Append(d...) - obj["permissions"] = val + obj["parameters"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["reason"] = stringerToTF(tkh.GetReason()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRecurse + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypes + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectServiceaccountServiceAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRecurse + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypes + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRecurse + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypes + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectServiceaccountServiceAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountPrimerAttrTypesRecurse + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountPrimerAttrTypes + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRecurse + attrs = notificationLicenseStatusNotificationAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypes + attrs = notificationLicenseStatusNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) + val, d := tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) diags.Append(d...) - obj["items"] = val + obj["license_info"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15458,33 +22210,38 @@ func tkhToTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountStatusAttrTypesRecurse + attrs = notificationLicenseStatusNotificationAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountStatusAttrTypes + attrs = notificationLicenseStatusNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) + { + val, d := tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) + diags.Append(d...) + obj["license_info"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRecurse + attrs = notificationModificationRequestNotificationAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypes + attrs = notificationModificationRequestNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -15492,19 +22249,25 @@ func tkhToTFObjectServiceaccountServiceAccount_additionalObjects(recurse bool, t obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["admins"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["audit"] = val + obj["admins"] = val } { - val, d := tkhToTFObjectServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) obj["groups"] = val } { - val, d := tkhToTFObjectGeneratedSecret(recurse, tkh.GetSecret()) + val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh.GetRequest()) diags.Append(d...) - obj["secret"] = val + obj["request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15512,29 +22275,39 @@ func tkhToTFObjectServiceaccountServiceAccount_additionalObjects(recurse bool, t return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRecurse + attrs = notificationModificationRequestNotificationAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypes + attrs = notificationModificationRequestNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) { - val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) + elemType := attrs["admins"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["password_scheme_enabled_stats"] = val + obj["admins"] = val } { - val, d := tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["system_stats"] = val + obj["groups"] = val + } + { + val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh.GetRequest()) + diags.Append(d...) + obj["request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15542,13 +22315,13 @@ func tkhToTFObjectServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRecurse + attrs = notificationNotificationAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypes + attrs = notificationNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -15561,13 +22334,13 @@ func tkhToTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledS return objVal, diags } -func tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRecurse + attrs = notificationNotificationAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypes + attrs = notificationNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -15580,33 +22353,42 @@ func tkhToTFObjectServiceaccountServiceAccountsAuditStats_systemStats(recurse bo return objVal, diags } -func tkhToTFObjectSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = simpleStringValueAttrTypesRecurse + attrs = notificationNotificationsAttrTypesRSRecurse } else { - attrs = simpleStringValueAttrTypes + attrs = notificationNotificationsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["value"] = types.StringPointerValue(tkh.GetValue()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSNotificationNotification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = simpleVersionInfoAttrTypesRecurse + attrs = notificationNotificationsAttrTypesDSRecurse } else { - attrs = simpleVersionInfoAttrTypes + attrs = notificationNotificationsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -15614,91 +22396,64 @@ func tkhToTFObjectSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionI obj := make(map[string]attr.Value) { - elemType := attrs["contract_versions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(int64(tkh)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSNotificationNotification(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["contract_versions"] = val + obj["items"] = val } - obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolderAttrTypesRecurse + attrs = notificationOldApiVersionUsageNotificationAttrTypesRSRecurse } else { - attrs = vaultDeletedVaultHolderAttrTypes + attrs = notificationOldApiVersionUsageNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } + obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSClientOAuth2Client(recurse, tkh.GetClient()) diags.Append(d...) - obj["permissions"] = val + obj["client"] = val } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) - obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRecurse + attrs = notificationOldApiVersionUsageNotificationAttrTypesDSRecurse } else { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypes + attrs = notificationOldApiVersionUsageNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultDeletedVaultHolder(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSClientOAuth2Client(recurse, tkh.GetClient()) diags.Append(d...) - obj["items"] = val + obj["client"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15706,13 +22461,13 @@ func tkhToTFObjectVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhu return objVal, diags } -func tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRecurse + attrs = notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse } else { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypes + attrs = notificationProvisionConfigRequiredNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -15720,14 +22475,12 @@ func tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh ke obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectVaultVault(recurse, tkh.GetVault()) + elemType := attrs["systems"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) diags.Append(d...) - obj["vault"] = val + obj["systems"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15735,48 +22488,55 @@ func tkhToTFObjectVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh ke return objVal, diags } -func tkhToTFObjectVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultRecoveryAttrTypesRecurse + attrs = notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse } else { - attrs = vaultDeletedVaultRecoveryAttrTypes + attrs = notificationProvisionConfigRequiredNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - obj["target_group_uuid"] = withUuidToTF(tkh.GetTargetGroup()) + { + elemType := attrs["systems"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["systems"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultMoveVaultRecordAttrTypesRecurse + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse } else { - attrs = vaultMoveVaultRecordAttrTypes + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { - val, d := tkhToTFObjectVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) diags.Append(d...) - obj["share_duration"] = val + obj["groups"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15784,71 +22544,92 @@ func tkhToTFObjectVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVa return objVal, diags } -func tkhToTFObjectVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesRecurse + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse } else { - attrs = vaultMoveVaultRecord_shareDurationAttrTypes + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["groups"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultAttrTypesRecurse + attrs = notificationUpdateAvailableNotificationAttrTypesRSRecurse } else { - attrs = vaultVaultAttrTypes + attrs = notificationUpdateAvailableNotificationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationUpdateAvailableNotificationAttrTypesDSRecurse + } else { + attrs = notificationUpdateAvailableNotificationAttrTypesDS } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + + obj := make(map[string]attr.Value) + obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationVaultRecordExpiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationVaultRecordExpiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - elemType := attrs["records"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh.GetRecord()) diags.Append(d...) - obj["records"] = val + obj["record"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -15856,32 +22637,37 @@ func tkhToTFObjectVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (type return objVal, diags } -func tkhToTFObjectVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultHolderAttrTypesRecurse + attrs = notificationVaultRecordExpiredNotificationAttrTypesDSRecurse } else { - attrs = vaultVaultHolderAttrTypes + attrs = notificationVaultRecordExpiredNotificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh.GetRecord()) + diags.Append(d...) + obj["record"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordAttrTypesRecurse + attrs = organizationAccountOrganizationalUnitAttrTypesRSRecurse } else { - attrs = vaultVaultRecordAttrTypes + attrs = organizationAccountOrganizationalUnitAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -15890,7 +22676,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -15898,7 +22684,7 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15908,83 +22694,45 @@ func tkhToTFObjectVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecor { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["color"] = stringerToTF(tkh.GetColor()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordLinkableWrapperAttrTypesRecurse + attrs = organizationAccountOrganizationalUnitAttrTypesDSRecurse } else { - attrs = vaultVaultRecordLinkableWrapperAttrTypes + attrs = organizationAccountOrganizationalUnitAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordPrimerAttrTypesRecurse - } else { - attrs = vaultVaultRecordPrimerAttrTypes - } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -15994,16 +22742,14 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["color"] = stringerToTF(tkh.GetColor()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -16011,13 +22757,13 @@ func tkhToTFObjectVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaul return objVal, diags } -func tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRecurse + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse } else { - attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypes + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16026,8 +22772,10 @@ func tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) obj["items"] = val @@ -16038,58 +22786,66 @@ func tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordSecretsAttrTypesRecurse + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse } else { - attrs = vaultVaultRecordSecretsAttrTypes + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["file"] = types.StringPointerValue(tkh.GetFile()) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - obj["totp"] = types.StringPointerValue(tkh.GetTotp()) - obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordShareAttrTypesRecurse + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse } else { - attrs = vaultVaultRecordShareAttrTypes + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecordShareSummaryAttrTypesRecurse + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse } else { - attrs = vaultVaultRecordShareSummaryAttrTypes + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16097,19 +22853,9 @@ func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.Vau obj := make(map[string]attr.Value) { - elemType := attrs["children"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectVaultVaultRecordShare(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["children"] = val - } - { - val, d := tkhToTFObjectVaultVaultRecordShare(recurse, tkh.GetParent()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["parent"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -16117,126 +22863,125 @@ func tkhToTFObjectVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.Vau return objVal, diags } -func tkhToTFObjectVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecord_additionalObjectsAttrTypesRecurse + attrs = organizationOrganizationalUnitAttrTypesRSRecurse } else { - attrs = vaultVaultRecord_additionalObjectsAttrTypes + attrs = organizationOrganizationalUnitAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) - obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) - { - val, d := tkhToTFObjectVaultVaultRecordSecrets(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } - { - val, d := tkhToTFObjectVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) - diags.Append(d...) - obj["share_summary"] = val - } - { - val, d := tkhToTFObjectVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) - diags.Append(d...) - obj["shares"] = val + if recurse { + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tkhToTFObjectLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["tile"] = val + obj["links"] = val } { - val, d := tkhToTFObjectVaultVaultHolder(recurse, tkh.GetVaultholder()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["vaultholder"] = val + obj["permissions"] = val } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultVaultRecoveryAttrTypesRecurse + attrs = organizationOrganizationalUnitAttrTypesDSRecurse } else { - attrs = vaultVaultRecoveryAttrTypes + attrs = organizationOrganizationalUnitAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = vaultVaultUnlockAttrTypesRecurse - } else { - attrs = vaultVaultUnlockAttrTypes + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockResponseAttrTypesRecurse - } else { - attrs = vaultVaultUnlockResponseAttrTypes + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetParent()) + diags.Append(d...) + obj["parent"] = val } - - obj := make(map[string]attr.Value) - obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) - obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookAttrTypesRecurse + attrs = organizationOrganizationalUnitAccountAttrTypesRSRecurse } else { - attrs = webhookWebhookAttrTypes + attrs = organizationOrganizationalUnitAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16245,7 +22990,7 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -16253,7 +22998,7 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -16263,54 +23008,32 @@ func tkhToTFObjectWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookabl { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) - obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) - obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) - obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) - obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) - obj["client_uuid"] = withUuidToTF(tkh.GetClient()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) - obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookDeliveryAttrTypesRecurse + attrs = organizationOrganizationalUnitAccountAttrTypesDSRecurse } else { - attrs = webhookWebhookDeliveryAttrTypes + attrs = organizationOrganizationalUnitAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16319,7 +23042,7 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -16327,7 +23050,7 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRestLink(recurse, tkh) + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) @@ -16337,37 +23060,36 @@ func tkhToTFObjectWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWe { elemType := attrs["permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectAuthPermission(recurse, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) { - val, d := tkhToTFObjectWebhookWebhookPush(false, tkh.GetPayload()) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) - obj["payload"] = val + obj["directory"] = val } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRecurse + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse } else { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypes + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16376,8 +23098,8 @@ func tkhToTFObjectWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectWebhookWebhookDelivery(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse, tkh) diags.Append(d...) return val }) @@ -16390,13 +23112,13 @@ func tkhToTFObjectWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRecurse + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse } else { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypes + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16404,9 +23126,14 @@ func tkhToTFObjectWebhookWebhookDelivery_additionalObjects(recurse bool, tkh key obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -16414,13 +23141,13 @@ func tkhToTFObjectWebhookWebhookDelivery_additionalObjects(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookLinkableWrapperAttrTypesRecurse + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse } else { - attrs = webhookWebhookLinkableWrapperAttrTypes + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16428,12 +23155,9 @@ func tkhToTFObjectWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.We obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -16441,39 +23165,37 @@ func tkhToTFObjectWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.We return objVal, diags } -func tkhToTFObjectWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookNameUuidAttrTypesRecurse + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = webhookWebhookNameUuidAttrTypes + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectLinkable(recurse, tkh.GetObject()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["object"] = val + obj["audit"] = val } - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhookPushAttrTypesRecurse + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse } else { - attrs = webhookWebhookPushAttrTypes + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16481,95 +23203,166 @@ func tkhToTFObjectWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhoo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetAccount()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["account"] = val + obj["items"] = val } - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetByParty()) - diags.Append(d...) - obj["by_party"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDS } - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetClient()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["client"] = val + obj["items"] = val } - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypesRS } - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["group2"] = val + obj["links"] = val } { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["group_classification"] = val + obj["permissions"] = val } - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) - diags.Append(d...) - obj["modification_request"] = val + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypesDS } - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["service_account"] = val + obj["links"] = val } { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetSystem()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["system"] = val + obj["permissions"] = val } - obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) - { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) diags.Append(d...) - obj["webhook"] = val + obj["items"] = val } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = webhookWebhook_additionalObjectsAttrTypesRecurse + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse } else { - attrs = webhookWebhook_additionalObjectsAttrTypes + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -16577,9 +23370,14 @@ func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -16587,9199 +23385,11321 @@ func tkhToTFObjectWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel return objVal, diags } -func tfObjectToTKHAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuditInfo() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetCreatedAt(val) + obj["audit"] = val } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) diags.Append(d...) - tkh.SetLastModifiedAt(val) + obj["create_as_parent_of"] = val } - tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewErrorReport() - objAttrs := objVal.Attributes() - tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetApplicationErrorParameters(val) + obj["audit"] = val } - tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetErrorDetails(val) - } - tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetStacktrace(val) - } - return tkh, diags -} - -func tfObjectToTKHErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() - return tkh, diags -} - -func tfObjectToTKHGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewGeneratedSecret() - objAttrs := objVal.Attributes() - tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewLinkable() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewNonLinkable() - return tkh, diags -} - -func tfObjectToTKHRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["create_as_parent_of"] = val } - tkh := keyhubmodel.NewRestLink() - objAttrs := objVal.Attributes() - tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAPAttrTypesRSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAPAttrTypesRS } - - tkh := keyhubmodel.NewSegmentCount() - objAttrs := objVal.Attributes() - tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuditAuditRecord() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetAuditAuditRecordType(val) - } - { - val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDateTime(val) + obj["permissions"] = val } - tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) diags.Append(d...) - tkh.SetSecurityLevel(val) - } - return tkh, diags -} - -func tfObjectToTKHAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["attributes"] = val } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { - tkh, d := tfObjectToTKHAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAPAttrTypesDSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAPAttrTypesDS } - return tkh, diags -} - -func tfObjectToTKHAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccount() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) + obj["permissions"] = val } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetValidity(val) + obj["organizational_unit"] = val } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetAccountPermissions(val) + obj["content_administrator"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetDirectory(val) + obj["owner"] = val } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) + obj["technical_administrator"] = val } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) diags.Append(d...) - tkh.SetDirectoryType(val) + obj["attributes"] = val } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) diags.Append(d...) - tkh.SetLastModifiedAt(val) + obj["client_certificate"] = val } + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - tkh.SetLicenseRole(val) + obj["failover_trusted_certificate"] = val } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) diags.Append(d...) - tkh.SetTwoFactorStatus(val) + obj["trusted_certificate"] = val } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccountBulkUpdate() - objAttrs := objVal.Attributes() - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return val.(keyhubmodel.AuthAccountBulkUpdateAction) - }) - diags.Append(d...) - tkh.SetAction(val) + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDS } - tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { - return val.(basetypes.Int64Value).ValueInt64() - }) - diags.Append(d...) - tkh.SetSelectedAccounts(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusAttrTypesRSRecurse + } else { + attrs = provisioningAccountProvisioningStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccountChangeLocale() - objAttrs := objVal.Attributes() - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj := make(map[string]attr.Value) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["result"] = stringerToTF(tkh.GetResult()) + { + val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningAccountProvisioningStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["result"] = stringerToTF(tkh.GetResult()) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { - tkh, d := tfObjectToTKHAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh.GetSystem()) diags.Append(d...) - tkh.SetItems(val) + obj["system"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusReportAttrTypesRSRecurse + } else { + attrs = provisioningAccountProvisioningStatusReportAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccountPrimer() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["status"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusReportAttrTypesDSRecurse + } else { + attrs = provisioningAccountProvisioningStatusReportAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["status"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["status"] = val } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningCircuitBreakerStatisticsAttrTypesRSRecurse + } else { + attrs = provisioningCircuitBreakerStatisticsAttrTypesRS } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = stringerToTF(tkh.GetState()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningCircuitBreakerStatisticsAttrTypesDSRecurse + } else { + attrs = provisioningCircuitBreakerStatisticsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() - objAttrs := objVal.Attributes() - tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + obj := make(map[string]attr.Value) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = stringerToTF(tkh.GetState()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemAttrTypesRS } - - tkh := keyhubmodel.NewAuthAccountSettings() - objAttrs := objVal.Attributes() - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDefaultOrganizationalUnit(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return val.(keyhubmodel.AuthPasswordMode) }) - diags.Append(d...) - tkh.SetPasswordMode(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetTwoFactorAuthentication(val) + obj["links"] = val } - tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return val.(keyhubmodel.VaultAccountVaultStatus) }) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetVaultStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - tkh := keyhubmodel.NewAuthAccountStatus() - objAttrs := objVal.Attributes() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemAttrTypesDS } - - tkh := keyhubmodel.NewAuthAccount_additionalObjects() - objAttrs := objVal.Attributes() - tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfObjectToTKHGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetPendingRecoveryRequests(val) + obj["links"] = val } { - val, d := tfObjectToTKHAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetSettings(val) + obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) { - val, d := tfObjectToTKHAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetStoredAttributes(val) + obj["owner"] = val } { - val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetVault(val) + obj["system"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewAuthAccountsAuditStats() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectoryStats(val) + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRS } - { - val, d := tfObjectToTKHAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTwoFAStats(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetValidityStats(val) - } - return tkh, diags -} - -func tfObjectToTKHAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["items"] = val } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() - return tkh, diags -} - -func tfObjectToTKHAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewAuthInternalAccount() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = provisioningGroupOnSystemPrimerAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemPrimerAttrTypesRS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) - } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return val }) diags.Append(d...) - tkh.SetDirectoryType(val) + obj["permissions"] = val } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemPrimerAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemPrimerAttrTypesDS } - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetActivationDeadline(val) + obj["links"] = val } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return val.(keyhubmodel.AuthInternalAccountStatus) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["permissions"] = val } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemTypesAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemTypesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { - tkh, d := tfObjectToTKHAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - tkh.SetItems(val) + obj["types"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemTypesAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemTypesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return val.(keyhubmodel.AuthInternalAccountStatus) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - tkh.SetStatus(val) + obj["types"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthInternalAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccount_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthInternalAccount_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetAudit(val) + obj["audit"] = val } - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) + diags.Append(d...) + obj["provgroups"] = val } - - tkh := keyhubmodel.NewAuthMoveInternalAccount() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) - tkh.SetInternalDirectory(val) + obj["service_accounts"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthPermission() - objAttrs := objVal.Attributes() - tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetInstances(val) + obj["audit"] = val } { - val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return val.(keyhubmodel.AuthPermittedOperation) }) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) diags.Append(d...) - tkh.SetOperations(val) + obj["provgroups"] = val } - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val } - tkh := keyhubmodel.NewAuthStoredAccountAttribute() - objAttrs := objVal.Attributes() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatusAttrTypesRSRecurse + } else { + attrs = provisioningGroupProvisioningStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewAuthStoredAccountAttributes() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { - tkh, d := tfObjectToTKHAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) diags.Append(d...) - tkh.SetAttributes(val) - } - return tkh, diags -} - -func tfObjectToTKHCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewCertificateCertificate() - objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + obj["folder"] = val } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) - tkh.SetLinks(val) + obj["group"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) diags.Append(d...) - tkh.SetPermissions(val) + obj["provisioning_duration"] = val } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return val.(keyhubmodel.CertificateCertificateType) - }) + val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) + obj["status_report"] = val } - { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningGroupProvisioningStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) diags.Append(d...) - tkh.SetCertificateData(val) + obj["folder"] = val } { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) diags.Append(d...) - tkh.SetExpiration(val) + obj["group"] = val } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) diags.Append(d...) - tkh.SetKeyData(val) + obj["provisioning_duration"] = val } - return tkh, diags + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) + { + val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) + diags.Append(d...) + obj["status_report"] = val + } + obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse + } else { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS } - - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { - tkh, d := tfObjectToTKHCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse + } else { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS } - - tkh := keyhubmodel.NewCertificateCertificatePrimer() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse + } else { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRS } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return val.(keyhubmodel.CertificateCertificateType) - }) - diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetCertificateData(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) + obj["items"] = val } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse + } else { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAudit(val) + obj["items"] = val } - return tkh, diags + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceAttrTypesRSRecurse + } else { + attrs = provisioningProvisionNumberSequenceAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientClientApplication() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceAttrTypesDSRecurse + } else { + attrs = provisioningProvisionNumberSequenceAttrTypesDS } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOwner(val) + obj["links"] = val } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["permissions"] = val } - return tkh, diags + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { - tkh, d := tfObjectToTKHClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientClientApplicationPrimer() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["items"] = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) + obj["audit"] = val } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) - tkh.SetScopes(val) + obj["systems"] = val } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetAudit(val) + obj["audit"] = val } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) - tkh.SetGroupclients(val) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedADAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedADAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetGroups(val) + obj["links"] = val } { - val, d := tfObjectToTKHGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetSecret(val) + obj["permissions"] = val } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tfObjectToTKHLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) diags.Append(d...) - tkh.SetTile(val) + obj["attributes"] = val } - tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedADAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedADAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientLdapClient() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) + obj["organizational_unit"] = val } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetScopes(val) + obj["content_administrator"] = val } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetLastModifiedAt(val) + obj["owner"] = val } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetOwner(val) + obj["technical_administrator"] = val } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["attributes"] = val } - tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) diags.Append(d...) - tkh.SetClientCertificate(val) + obj["client_certificate"] = val } - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - tkh.SetSharedSecret(val) + obj["failover_trusted_certificate"] = val } - tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val } + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - tkh := keyhubmodel.NewClientOAuth2Client() - objAttrs := objVal.Attributes() + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) + obj["links"] = val } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetScopes(val) + obj["permissions"] = val } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRS } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["items"] = val } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetAccountPermissions(val) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetAttributes(val) + obj["audit"] = val } - tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetSharedSecret(val) + obj["audit"] = val } - tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientOAuth2ClientPermission() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + return val }) diags.Append(d...) - tkh.SetValue(val) - } - return tkh, diags -} - -func tfObjectToTKHClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { - tkh, d := tfObjectToTKHClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetForGroup(val) + obj["organizational_unit"] = val } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetForSystem(val) + obj["content_administrator"] = val } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetValue(val) + obj["owner"] = val } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := tfObjectToTKHClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetClient(val) + obj["technical_administrator"] = val } - return tkh, diags + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { - tkh, d := tfObjectToTKHClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - tkh := keyhubmodel.NewClientOAuth2Client_attributes() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewClientSaml2Client() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + return val }) diags.Append(d...) - tkh.SetScopes(val) + obj["permissions"] = val } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetLastModifiedAt(val) + obj["organizational_unit"] = val } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetOwner(val) + obj["content_administrator"] = val } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["owner"] = val } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := tfObjectToTKHClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetAttributes(val) + obj["technical_administrator"] = val } - tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) { - val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return val.(keyhubmodel.ClientSubjectFormat) }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) - tkh.SetSubjectFormat(val) - } - return tkh, diags -} - -func tfObjectToTKHClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["directory"] = val } + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - tkh := keyhubmodel.NewClientSaml2Client_attributes() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryAccountDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + obj["links"] = val } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + obj["permissions"] = val } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + obj["organizational_unit"] = val } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetRotatingPassword(val) + obj["content_administrator"] = val } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() - objAttrs := objVal.Attributes() + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { - tkh, d := tfObjectToTKHDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetItems(val) + obj["technical_administrator"] = val } - return tkh, diags + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["links"] = val } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() - objAttrs := objVal.Attributes() - tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { - return val.(keyhubmodel.DirectoryAccountDirectoryStatus) - }) + val, d := tkhToTFObjectRSClientLdapClient(false, tkh.GetClient()) diags.Append(d...) - tkh.SetStatus(val) + obj["client"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetDirectoryAccountDirectorySummaryType(val) + obj["permissions"] = val } - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tfObjectToTKHDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["organizational_unit"] = val } - - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() - objAttrs := objVal.Attributes() + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { - tkh, d := tfObjectToTKHDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["content_administrator"] = val } - - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() - objAttrs := objVal.Attributes() + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetAudit(val) + obj["owner"] = val } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := tfObjectToTKHMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetMarkers(val) + obj["technical_administrator"] = val } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tfObjectToTKHDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSClientLdapClient(false, tkh.GetClient()) diags.Append(d...) - tkh.SetStatus(val) + obj["client"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryInternalDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return val }) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) + obj["permissions"] = val } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) diags.Append(d...) - tkh.SetRotatingPassword(val) + obj["attributes"] = val } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) diags.Append(d...) - tkh.SetOwner(val) + obj["numbering"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return val }) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + obj["permissions"] = val } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + obj["organizational_unit"] = val } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + obj["content_administrator"] = val } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetRotatingPassword(val) + obj["owner"] = val } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetClientCertificate(val) + obj["technical_administrator"] = val } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return val.(keyhubmodel.DirectoryLDAPDialect) }) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) diags.Append(d...) - tkh.SetDialect(val) + obj["attributes"] = val } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + obj["client_certificate"] = val } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return val.(keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - tkh.SetPasswordRecovery(val) + obj["failover_trusted_certificate"] = val } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) diags.Append(d...) - tkh.SetTls(val) + obj["trusted_certificate"] = val } + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) diags.Append(d...) - tkh.SetTrustedCertificate(val) + obj["numbering"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + obj["organizational_unit"] = val } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + obj["content_administrator"] = val } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + obj["owner"] = val } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetRotatingPassword(val) + obj["technical_administrator"] = val } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return val.(keyhubmodel.DirectoryOIDCVendor) }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) - tkh.SetVendorEscaped(val) + obj["directory"] = val } - return tkh, diags + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupAccountGroup() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetEndDate(val) + obj["links"] = val } { - val, d := tfObjectToTKHGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetFolder(val) + obj["permissions"] = val } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetLastUsed(val) + obj["organizational_unit"] = val } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - tkh.SetProvisioningEndTime(val) + obj["content_administrator"] = val } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - tkh.SetRights(val) + obj["owner"] = val } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { - tkh, d := tfObjectToTKHGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS } - - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetVault(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["links"] = val } - tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewGroupGroup() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tfObjectToTKHGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetAuditConfig(val) + obj["organizational_unit"] = val } - tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupAuditing(val) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS } - { - val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_delegation"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizingGroupDelegation(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_membership"].(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) diags.Append(d...) - tkh.SetAuthorizingGroupMembership(val) + obj["items"] = val } - { - val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_provisioning"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizingGroupProvisioning(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return val.(keyhubmodel.RequestAuthorizingGroupType) - }) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetAuthorizingGroupTypes(val) + obj["items"] = val } - { - val, d := tfObjectToTKHGroupGroupClassificationPrimer(ctx, false, objAttrs["classification"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClassification(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogAttrTypesRS } - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { return val.(keyhubmodel.GroupGroupExtendedAccess) }) - diags.Append(d...) - tkh.SetExtendedAccess(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["nested_under"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNestedUnder(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["links"] = val } - tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { - return val.(keyhubmodel.GroupVaultRecoveryAvailability) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetVaultRecovery(val) + obj["permissions"] = val } - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAccount() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetTwoFactorStatus(val) + obj["items"] = val } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { - tkh, d := tfObjectToTKHGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["items"] = val } - tkh := keyhubmodel.NewGroupGroupAccountNesting() - objAttrs := objVal.Attributes() - tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAccountStatus() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetFolder(val) + obj["audit"] = val } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["audit"] = val } - tkh := keyhubmodel.NewGroupGroupAdminMail() - objAttrs := objVal.Attributes() - tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewGroupGroupAudit() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) - tkh.SetLinks(val) + obj["account"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetPermissions(val) + obj["audit"] = val } { - val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { - tkh, d := tfObjectToTKHGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - tkh.SetAccounts(val) + obj["issued_permissions"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) - tkh.SetCreatedAt(val) + obj["management_permissions"] = val } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - tkh.SetReviewedAt(val) + obj["markers"] = val } - tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return val.(keyhubmodel.GroupGroupAuditStatus) }) + val, d := tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) - tkh.SetStatus(val) + obj["statistics"] = val } { - val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + val, d := tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) diags.Append(d...) - tkh.SetSubmittedAt(val) + obj["supported_group_types"] = val } - tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAuditAccount() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) - tkh.SetLinks(val) + obj["account"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetPermissions(val) + obj["audit"] = val } - tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return val.(keyhubmodel.AuditAuditAccountAction) }) + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - tkh.SetAction(val) + obj["issued_permissions"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) - tkh.SetEndDate(val) + obj["management_permissions"] = val } { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - tkh.SetLastActive(val) + obj["markers"] = val } { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) - tkh.SetLastUsed(val) + obj["statistics"] = val } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) diags.Append(d...) - tkh.SetRights(val) + obj["supported_group_types"] = val } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningManagementPermissionsAttrTypesRSRecurse + } else { + attrs = provisioningProvisioningManagementPermissionsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAuditConfig() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse + } else { + attrs = provisioningProvisioningManagementPermissionsAttrTypesDS } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningStatusAttrTypesRSRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetMonths(val) + obj["groups"] = val } - return tkh, diags + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { - tkh, d := tfObjectToTKHGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["groups"] = val } - return tkh, diags + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesRSRecurse + } else { + attrs = provisioningTokenPasswordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesDSRecurse + } else { + attrs = provisioningTokenPasswordAttrTypesDS } - return tkh, diags + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesRSRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupAuditingInfo() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAuditDueDate(val) + obj["links"] = val } { - val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetLastAuditDate(val) + obj["permissions"] = val } - tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClassification() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetRequiredMonths(val) + obj["account"] = val } - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse + } else { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRS } - - tkh := keyhubmodel.NewGroupGroupClassificationInfo() - objAttrs := objVal.Attributes() - tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["links"] = val } - return tkh, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val } - - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() - objAttrs := objVal.Attributes() + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetClassificaton(val) + obj["group"] = val } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse + } else { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAudit(val) + obj["links"] = val } { - val, d := tfObjectToTKHGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetInfo(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClient() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) + obj["permissions"] = val } { - val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetGroup(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetOwner(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["system"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { - tkh, d := tfObjectToTKHGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) diags.Append(d...) - tkh.SetItems(val) + obj["access_duration"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) diags.Append(d...) - tkh.SetAudit(val) + obj["access_duration"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupFolder() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse + } else { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesRS } - - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { - tkh, d := tfObjectToTKHGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse + } else { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS } - - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptModificationRequestParametersAttrTypesRSRecurse + } else { + attrs = requestAcceptModificationRequestParametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupInfo() - objAttrs := objVal.Attributes() - tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse + } else { + attrs = requestAcceptModificationRequestParametersAttrTypesDS } - - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { +func tkhToTFObjectRSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAddGroupAdminRequestAttrTypesRSRecurse + } else { + attrs = requestAddGroupAdminRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupPrimer() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestAddGroupAdminRequestAttrTypesDSRecurse + } else { + attrs = requestAddGroupAdminRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { - tkh, d := tfObjectToTKHSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetSegments(val) - } - return tkh, diags -} - -func tfObjectToTKHGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } - - tkh := keyhubmodel.NewGroupGroup_additionalObjects() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetAccounts(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetAdministeredClients(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetNewAdmin()) diags.Append(d...) - tkh.SetAdministeredSystems(val) + obj["new_admin"] = val } - { - val, d := tfObjectToTKHGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmins(val) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupOnSystemRequestAttrTypesRSRecurse + } else { + attrs = requestCreateGroupOnSystemRequestAttrTypesRS } - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfObjectToTKHGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizedGroups(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetClientPermissions(val) + obj["links"] = val } { - val, d := tfObjectToTKHGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetClients(val) + obj["permissions"] = val } - { - val, d := tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministeredSystems(val) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse + } else { + attrs = requestCreateGroupOnSystemRequestAttrTypesDS } - { - val, d := tfObjectToTKHGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupauditinginfo(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfObjectToTKHGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupinfo(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetHelpdesk(val) + obj["links"] = val } { - val, d := tfObjectToTKHMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetMarkers(val) + obj["permissions"] = val } { - val, d := tfObjectToTKHGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetMyaccount(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetMydelegatedaccount(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfObjectToTKHGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetNestedGroups(val) + obj["system"] = val } - { - val, d := tfObjectToTKHClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedClients(val) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupRequestAttrTypesRSRecurse + } else { + attrs = requestCreateGroupRequestAttrTypesRS } - { - val, d := tfObjectToTKHDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedDirectories(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfObjectToTKHProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedGroupsOnSystem(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOwnedOrganizationalUnits(val) + obj["links"] = val } { - val, d := tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOwnedSystems(val) + obj["permissions"] = val } - { - val, d := tfObjectToTKHGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecentAudits(val) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupRequestAttrTypesDSRecurse + } else { + attrs = requestCreateGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return val.(keyhubmodel.GroupGroupRequestStatus) }) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetRequeststatus(val) + obj["links"] = val } { - val, d := tfObjectToTKHServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetServiceAccounts(val) + obj["permissions"] = val } { - val, d := tfObjectToTKHGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetSystems(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetVault(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfObjectToTKHWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetWebhooks(val) + obj["organizational_unit"] = val } - return tkh, diags + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { +func tkhToTFObjectRSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateServiceAccountRequestAttrTypesRSRecurse + } else { + attrs = requestCreateServiceAccountRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupGroupsAuditStats() - objAttrs := objVal.Attributes() - tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetClassifications(val) + obj["links"] = val } - tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse + } else { + attrs = requestCreateServiceAccountRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupProvisioningGroup() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetGroup(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroupOnSystem(val) + obj["group"] = val } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestDisable2FARequestAttrTypesRSRecurse + } else { + attrs = requestDisable2FARequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { - tkh, d := tfObjectToTKHGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAudit(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { +func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestDisable2FARequestAttrTypesDSRecurse + } else { + attrs = requestDisable2FARequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["links"] = val } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetGroup(val) + obj["permissions"] = val } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetLogo(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetTile(val) + obj["group"] = val } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { +func tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { - tkh, d := tfObjectToTKHLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["links"] = val } - return tkh, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { +func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetApplication(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroup(val) + obj["group"] = val } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestExtendAccessRequestAttrTypesRSRecurse + } else { + attrs = requestExtendAccessRequestAttrTypesRS } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { - tkh, d := tfObjectToTKHLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags -} -func tfObjectToTKHLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { +func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestExtendAccessRequestAttrTypesDSRecurse + } else { + attrs = requestExtendAccessRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetApplication(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroup(val) + obj["group"] = val } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantAccessRequestAttrTypesRSRecurse + } else { + attrs = requestGrantAccessRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetLogo(val) + obj["links"] = val } { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetVaultRecord(val) + obj["permissions"] = val } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantAccessRequestAttrTypesDSRecurse + } else { + attrs = requestGrantAccessRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetApplication(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroup(val) + obj["group"] = val } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantApplicationRequestAttrTypesRSRecurse + } else { + attrs = requestGrantApplicationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetLogo(val) + obj["links"] = val } { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetVaultRecord(val) + obj["permissions"] = val } - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantApplicationRequestAttrTypesDSRecurse + } else { + attrs = requestGrantApplicationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetApplication(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroup(val) + obj["group"] = val } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) - }) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) + obj["application"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetLogo(val) + obj["links"] = val } { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetVaultRecord(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() - objAttrs := objVal.Attributes() - { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return val.(keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetCustomerDomains(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetDetails(val) + obj["permissions"] = val } { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetExpirationTime(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return val.(keyhubmodel.LicenseLicenseFeature) }) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetFeatures(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) - tkh.SetIssueTime(val) + obj["application"] = val } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetNotBeforeTime(val) + obj["system"] = val } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { +func tkhToTFObjectRSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestAttrTypesRSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewMarkItemMarker() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return val.(keyhubmodel.MarkItemMarkerLevel) }) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetLevel(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return val.(keyhubmodel.MarkItemMarkerType) }) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetMarkItemMarkerType(val) + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tfObjectToTKHMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetParameters(val) + obj["group_on_system"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() - return tkh, diags -} - -func tfObjectToTKHMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - tkh := keyhubmodel.NewMarkItemMarkers() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetMarkers(val) - } - return tkh, diags -} - -func tfObjectToTKHNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetCertificate(val) + obj["permissions"] = val } { - val, d := tfObjectToTKHDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetDirectory(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetExpiration(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tfObjectToTKHClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetLdapClient(val) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetSystem(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return val.(keyhubmodel.NotificationCertificateUsage) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetUsage(val) + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := findWebhookWebhookByUUID(ctx, objAttrs["webhook_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetWebhook(val) + obj["group_on_system"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() - objAttrs := objVal.Attributes() - { - val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDueDate(val) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetGroup(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return val.(keyhubmodel.AuditAuditRequiredSourceType) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetNotificationGroupAuditRequiredNotificationType(val) - } - return tkh, diags -} - -func tfObjectToTKHNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } - - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetGroup(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetParameters(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return val.(keyhubmodel.GroupGroupEditRequiredReason) - }) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetReason(val) - } - return tkh, diags -} - -func tfObjectToTKHNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() - return tkh, diags -} - -func tfObjectToTKHNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["group_on_system"] = val } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { +func tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantServiceAccountGroupRequestAttrTypesRSRecurse + } else { + attrs = requestGrantServiceAccountGroupRequestAttrTypesRS } - - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() - objAttrs := objVal.Attributes() - tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLicenseInfo(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags -} -func tfObjectToTKHNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - tkh := keyhubmodel.NewNotificationModificationRequestNotification() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetAdmins(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetGroups(val) + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfObjectToTKHRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetRequest(val) - } - return tkh, diags -} - -func tfObjectToTKHNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewNotificationNotification() - return tkh, diags -} - -func tfObjectToTKHNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["group_on_system"] = val } + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) - tkh := keyhubmodel.NewNotificationNotifications() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { - tkh, d := tfObjectToTKHNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse + } else { + attrs = requestGrantServiceAccountGroupRequestAttrTypesDS } - - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() - objAttrs := objVal.Attributes() - tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags -} -func tfObjectToTKHNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetGroups(val) + obj["permissions"] = val } - return tkh, diags -} - -func tfObjectToTKHNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val } - - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() - objAttrs := objVal.Attributes() + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetReleasedAt(val) + obj["group"] = val } - return tkh, diags -} - -func tfObjectToTKHNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val } - - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) diags.Append(d...) - tkh.SetRecord(val) + obj["service_account"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { +func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinGroupRequestAttrTypesRSRecurse + } else { + attrs = requestJoinGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { - tkh, d := tfObjectToTKHOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinGroupRequestAttrTypesDSRecurse + } else { + attrs = requestJoinGroupRequestAttrTypesDS } - return tkh, diags -} - -func tfObjectToTKHOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOwner(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetParent(val) + obj["group"] = val } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { +func tkhToTFObjectRSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinVaultRequestAttrTypesRSRecurse + } else { + attrs = requestJoinVaultRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - return tkh, diags -} - -func tfObjectToTKHOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { - tkh, d := tfObjectToTKHOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinVaultRequestAttrTypesDSRecurse + } else { + attrs = requestJoinVaultRequestAttrTypesDS } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags -} -func tfObjectToTKHOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { - tkh, d := tfObjectToTKHOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["permissions"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["account"] = val } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() - objAttrs := objVal.Attributes() + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { - tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetItems(val) + obj["group"] = val } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestAttrTypesRSRecurse + } else { + attrs = requestModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAudit(val) + obj["links"] = val } { - val, d := tfObjectToTKHOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetCreateAsParentOf(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestAttrTypesDSRecurse + } else { + attrs = requestModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["group"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestLinkableWrapperAttrTypesRSRecurse + } else { + attrs = requestModificationRequestLinkableWrapperAttrTypesRS } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOwner(val) + obj["items"] = val } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse + } else { + attrs = requestModificationRequestLinkableWrapperAttrTypesDS } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetClientCertificate(val) + obj["items"] = val } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequest_additionalObjectsAttrTypesRSRecurse + } else { + attrs = requestModificationRequest_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + obj["accept_params"] = val } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetTls(val) + obj["audit"] = val } { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["reset_status"] = val } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse + } else { + attrs = requestModificationRequest_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() - objAttrs := objVal.Attributes() - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return val.(keyhubmodel.ProvisioningAccountProvisioningResult) - }) + val, d := tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) diags.Append(d...) - tkh.SetResult(val) + obj["accept_params"] = val } { - val, d := tfObjectToTKHGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetSystem(val) + obj["audit"] = val } - return tkh, diags + { + val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) + diags.Append(d...) + obj["reset_status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { +func tkhToTFObjectRSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestAttrTypesRSRecurse + } else { + attrs = requestPasswordResetRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { - tkh, d := tfObjectToTKHProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() - objAttrs := objVal.Attributes() - tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return val.(keyhubmodel.ProvisioningCircuitBreakerState) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetState(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) + obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) + obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { +func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestAttrTypesDSRecurse + } else { + attrs = requestPasswordResetRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningGroupOnSystem() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return val }) diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) + obj["permissions"] = val } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOwner(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetSystem(val) + obj["group"] = val } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) + obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) + obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestStatusAttrTypesRSRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + elemType := attrs["managers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - tkh.SetItems(val) + obj["managers"] = val } - return tkh, diags + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { +func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + elemType := attrs["managers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["managers"] = val } + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectRSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveGroupRequestAttrTypesRSRecurse + } else { + attrs = requestRemoveGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetProvgroups(val) + obj["links"] = val } { - val, d := tfObjectToTKHServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetServiceAccounts(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { +func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveGroupRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveGroupRequestAttrTypesDS } - - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfObjectToTKHGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetProvisioningDuration(val) + obj["links"] = val } { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetProvisioningEndTime(val) + obj["permissions"] = val } { - val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetProvisioningPermissionEndTime(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetStatusReport(val) - } - tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() - objAttrs := objVal.Attributes() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["links"] = val } - tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { +func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { - tkh, d := tfObjectToTKHProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["account"] = val } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() - objAttrs := objVal.Attributes() + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetAudit(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfObjectToTKHProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetSystems(val) + obj["organizational_unit"] = val } - return tkh, diags + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { +func tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveProvisionedSystemRequestAttrTypesRSRecurse + } else { + attrs = requestRemoveProvisionedSystemRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedAD() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveProvisionedSystemRequestAttrTypesDS } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetExternalUuid(val) + obj["links"] = val } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOwner(val) + obj["permissions"] = val } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["account"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetAttributes(val) + obj["group"] = val } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetClientCertificate(val) + obj["system"] = val } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestReviewAuditRequestAttrTypesRSRecurse + } else { + attrs = requestReviewAuditRequestAttrTypesRS } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTrustedCertificate(val) + obj["links"] = val } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return val.(keyhubmodel.ProvisioningADSamAccountNameScheme) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetSamAccountNameScheme(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { +func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestReviewAuditRequestAttrTypesDSRecurse + } else { + attrs = requestReviewAuditRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedAccount() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetLastActive(val) + obj["account"] = val } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetValidity(val) + obj["group"] = val } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesRSRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["links"] = val } - - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAudit(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { +func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesDSRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["group"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAdmin()) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["admin"] = val } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupAuthorizingGroupRequestAttrTypesRSRecurse + } else { + attrs = requestSetupAuthorizingGroupRequestAttrTypesRS } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["links"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetDirectory(val) + obj["permissions"] = val } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { +func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse + } else { + attrs = requestSetupAuthorizingGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["group"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["requesting_group"] = val } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesRSRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypesRS } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["links"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetDirectory(val) + obj["permissions"] = val } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { +func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["group"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["requesting_group"] = val } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferApplicationAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetOwner(val) + obj["links"] = val } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["permissions"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferApplicationAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["group"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["application"] = val } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferApplicationOwnershipRequestAttrTypesRS } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["links"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetClient(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferApplicationOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["group"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["application"] = val } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferAuditorGroupRequestAttrTypesRSRecurse + } else { + attrs = requestTransferAuditorGroupRequestAttrTypesRS } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAttributes(val) + obj["links"] = val } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetClientCertificate(val) + obj["permissions"] = val } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferAuditorGroupRequestAttrTypesDSRecurse + } else { + attrs = requestTransferAuditorGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTls(val) + obj["links"] = val } { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetTrustedCertificate(val) + obj["permissions"] = val } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return val.(keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetHashingScheme(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetNumbering(val) + obj["group"] = val } - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { +func tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["group_on_system"] = val } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["links"] = val } { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetExternalUuid(val) + obj["permissions"] = val } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOwner(val) + obj["account"] = val } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["group"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) diags.Append(d...) - tkh.SetDirectory(val) + obj["group_on_system"] = val } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { +func tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + obj["links"] = val } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetContentAdministrator(val) + obj["permissions"] = val } { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetExternalUuid(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetOwner(val) + obj["group"] = val } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + obj["organizational_unit"] = val } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["links"] = val } - return tkh, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["group"] = val } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - objAttrs := objVal.Attributes() + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetItems(val) + obj["system"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { +func tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS } - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := tfObjectToTKHClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetIssuedPermissions(val) + obj["links"] = val } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetManagementPermissions(val) + obj["permissions"] = val } { - val, d := tfObjectToTKHMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetMarkers(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetStatistics(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tfObjectToTKHProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["system"] = val } - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - objAttrs := objVal.Attributes() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { +func tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewProvisioningProvisioningStatus() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetGroups(val) + obj["links"] = val } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - tkh := keyhubmodel.NewProvisioningTokenPassword() - objAttrs := objVal.Attributes() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetAccount(val) + obj["account"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroup(val) + obj["group"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["links"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetApplication(val) + obj["permissions"] = val } - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["permissions"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["account"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetStatus(val) + obj["group"] = val } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["service_account"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { +func tkhToTFObjectRSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestUpdateGroupMembershipRequestAttrTypesRSRecurse + } else { + attrs = requestUpdateGroupMembershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) + obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) + obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestUpdateGroupMembershipRequestAttrTypesDSRecurse + } else { + attrs = requestUpdateGroupMembershipRequestAttrTypesDS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["permissions"] = val } { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["account"] = val } - - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - objAttrs := objVal.Attributes() + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := tfObjectToTKHRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - objAttrs := objVal.Attributes() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["group"] = val } - - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - objAttrs := objVal.Attributes() + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccountToUpdate()) diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + obj["account_to_update"] = val } + obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) + obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { +func tkhToTFObjectRSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestVerifyInternalAccountRequestAttrTypesRSRecurse + } else { + attrs = requestVerifyInternalAccountRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["permissions"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { +func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = requestVerifyInternalAccountRequestAttrTypesDSRecurse + } else { + attrs = requestVerifyInternalAccountRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["permissions"] = val } { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetSystem(val) + obj["account"] = val } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetGroupOnSystemType(val) + obj["group"] = val } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestCreateGroupRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return val }) diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["permissions"] = val } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["permissions"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["system"] = val } + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetPassword()) diags.Append(d...) - tkh.SetStatus(val) + obj["password"] = val } + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - tkh.SetSystem(val) + obj["technical_administrator"] = val } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestDisable2FARequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["permissions"] = val } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + obj["permissions"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestExtendAccessRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["items"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["audit"] = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetExtendUntil(val) + obj["audit"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantAccessRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSServiceaccountServiceAccount(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + obj["items"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccount(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["items"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerAttrTypesRS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) + obj["permissions"] = val } - return tkh, diags + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccountPrimerAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["permissions"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["system"] = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return val }) diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountStatusAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + attrs = serviceaccountServiceAccountStatusAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountStatusAttrTypesDS } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["audit"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - tkh.SetStatus(val) + obj["groups"] = val } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) diags.Append(d...) - tkh.SetGroupOnSystem(val) + obj["secret"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetPermissions(val) + obj["audit"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - tkh.SetAccount(val) + obj["groups"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) diags.Append(d...) - tkh.SetGroup(val) + obj["secret"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRS } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) { - val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) diags.Append(d...) - tkh.SetGroupOnSystem(val) + obj["password_scheme_enabled_stats"] = val } { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) diags.Append(d...) - tkh.SetServiceAccount(val) + obj["system_stats"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestJoinGroupRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) + obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["password_scheme_enabled_stats"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) diags.Append(d...) - tkh.SetStatus(val) + obj["system_stats"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestJoinVaultRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleStringValueAttrTypesRSRecurse + } else { + attrs = simpleStringValueAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleStringValueAttrTypesDSRecurse + } else { + attrs = simpleStringValueAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleVersionInfoAttrTypesRSRecurse + } else { + attrs = simpleVersionInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["contract_versions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(int64(tkh)) }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["contract_versions"] = val + } + obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleVersionInfoAttrTypesDSRecurse + } else { + attrs = simpleVersionInfoAttrTypesDS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["contract_versions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(int64(tkh)) }) diags.Append(d...) - tkh.SetStatus(val) + obj["contract_versions"] = val } - return tkh, diags + obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { +func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultHolderAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestModificationRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) + obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultHolderAttrTypesDS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["permissions"] = val } - return tkh, diags + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) + obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { +func tkhToTFObjectRSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultDeletedVaultHolder(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetItems(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { +func tkhToTFObjectDSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultDeletedVaultHolder(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAcceptParams(val) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetAudit(val) + obj["audit"] = val } { - val, d := tfObjectToTKHRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) diags.Append(d...) - tkh.SetResetStatus(val) + obj["vault"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestPasswordResetRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetPermissions(val) + obj["audit"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) diags.Append(d...) - tkh.SetAccount(val) + obj["vault"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultRecoveryAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultRecoveryAttrTypesRS } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + obj["target_group_uuid"] = withUuidToTF(tkh.GetTargetGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultRecoveryAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultRecoveryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetTargetGroup()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["target_group"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecordAttrTypesRSRecurse + } else { + attrs = vaultMoveVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) diags.Append(d...) - tkh.SetStatus(val) + obj["share_duration"] = val } - tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { +func tkhToTFObjectDSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecordAttrTypesDSRecurse + } else { + attrs = vaultMoveVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) diags.Append(d...) - tkh.SetCooldownEnd(val) + obj["account"] = val } + obj["action"] = stringerToTF(tkh.GetAction()) { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) diags.Append(d...) - tkh.SetManagers(val) + obj["group"] = val } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return val.(keyhubmodel.RequestPasswordResetEmailType) - }) + val, d := tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) diags.Append(d...) - tkh.SetResetViaMail(val) + obj["share_duration"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse + } else { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse + } else { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultAttrTypesRSRecurse + } else { + attrs = vaultVaultAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } + obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["records"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["records"] = val } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultAttrTypesDSRecurse + } else { + attrs = vaultVaultAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } + obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["records"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - tkh.SetAccount(val) + obj["records"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultHolderAttrTypesRSRecurse + } else { + attrs = vaultVaultHolderAttrTypesRS } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultHolderAttrTypesDSRecurse + } else { + attrs = vaultVaultHolderAttrTypesDS } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { +func tkhToTFObjectRSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["permissions"] = val } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) + obj["types"] = val } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestReviewAuditRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - tkh.SetAccount(val) + obj["types"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordLinkableWrapperAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordLinkableWrapperAttrTypesRS } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultRecordLinkableWrapperAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordLinkableWrapperAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["items"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordPrimerAttrTypesRS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAdmin(val) + obj["permissions"] = val } - return tkh, diags + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultRecordPrimerAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordPrimerAttrTypesDS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["permissions"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRS } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return val.(keyhubmodel.RequestAuthorizingGroupType) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) + obj["items"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["items"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordSecretsAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordSecretsAttrTypesRS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + obj := make(map[string]attr.Value) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["file"] = types.StringPointerValue(tkh.GetFile()) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["totp"] = types.StringPointerValue(tkh.GetTotp()) + obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordSecretsAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordSecretsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["file"] = types.StringPointerValue(tkh.GetFile()) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["totp"] = types.StringPointerValue(tkh.GetTotp()) + obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordShareAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordShareAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareSummaryAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordShareSummaryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["children"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultVaultRecordShare(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["children"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectRSVaultVaultRecordShare(recurse, tkh.GetParent()) diags.Append(d...) - tkh.SetStatus(val) + obj["parent"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareSummaryAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordShareSummaryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return val.(keyhubmodel.RequestGroupNestAccountAction) + elemType := attrs["children"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecordShare(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetAccountAction(val) + obj["children"] = val } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSVaultVaultRecordShare(recurse, tkh.GetParent()) diags.Append(d...) - tkh.SetRequestingGroup(val) + obj["parent"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { +func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultRecord_additionalObjectsAttrTypesRSRecurse + } else { + attrs = vaultVaultRecord_additionalObjectsAttrTypesRS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetPermissions(val) + obj["audit"] = val } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) - tkh.SetAccount(val) + obj["secret"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) diags.Append(d...) - tkh.SetGroup(val) + obj["share_summary"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["shares"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) - tkh.SetStatus(val) + obj["tile"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSVaultVaultHolder(recurse, tkh.GetVaultholder()) diags.Append(d...) - tkh.SetApplication(val) + obj["vaultholder"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { +func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultRecord_additionalObjectsAttrTypesDSRecurse + } else { + attrs = vaultVaultRecord_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetLinks(val) + obj["audit"] = val } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetParent()) diags.Append(d...) - tkh.SetPermissions(val) + obj["parent"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) - tkh.SetAccount(val) + obj["secret"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) diags.Append(d...) - tkh.SetGroup(val) + obj["share_summary"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["shares"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) - tkh.SetStatus(val) + obj["tile"] = val } { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSVaultVaultHolder(recurse, tkh.GetVaultholder()) diags.Append(d...) - tkh.SetApplication(val) + obj["vaultholder"] = val } - return tkh, diags + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { +func tkhToTFObjectRSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecoveryAttrTypesRSRecurse + } else { + attrs = vaultVaultRecoveryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = vaultVaultRecoveryAttrTypesDSRecurse + } else { + attrs = vaultVaultRecoveryAttrTypesDS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) diags.Append(d...) - tkh.SetPermissions(val) + obj["account"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockAttrTypesRSRecurse + } else { + attrs = vaultVaultUnlockAttrTypesRS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockAttrTypesDSRecurse + } else { + attrs = vaultVaultUnlockAttrTypesDS } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } - return tkh, diags + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { +func tkhToTFObjectRSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockResponseAttrTypesRSRecurse + } else { + attrs = vaultVaultUnlockResponseAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) + obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockResponseAttrTypesDSRecurse + } else { + attrs = vaultVaultUnlockResponseAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) + obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookAttrTypesRSRecurse + } else { + attrs = webhookWebhookAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["permissions"] = val } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) + obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) + obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) + obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) + obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) + obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) + obj["types"] = val } - return tkh, diags + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { +func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookAttrTypesDSRecurse + } else { + attrs = webhookWebhookAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectDSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) - tkh.SetAccount(val) + obj["account"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) + obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) + obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) + obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) + obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) diags.Append(d...) - tkh.SetGroup(val) + obj["client"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["client_certificate"] = val } + obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) + obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) - tkh.SetStatus(val) + obj["directory"] = val } { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + obj["group"] = val } - return tkh, diags + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val + } + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { +func tkhToTFObjectRSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryAttrTypesRSRecurse + } else { + attrs = webhookWebhookDeliveryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) if recurse { { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - tkh.SetAdditionalObjects(val) + obj["additional_objects"] = val } } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["links"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["permissions"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) diags.Append(d...) - tkh.SetAccount(val) + obj["payload"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryAttrTypesDSRecurse + } else { + attrs = webhookWebhookDeliveryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["links"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["permissions"] = val } { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) diags.Append(d...) - tkh.SetSystem(val) + obj["payload"] = val } - return tkh, diags + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { +func tkhToTFObjectRSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse + } else { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSWebhookWebhookDelivery(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetLinks(val) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse + } else { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSWebhookWebhookDelivery(recurse, tkh) diags.Append(d...) - return tkh + return val }) diags.Append(d...) - tkh.SetPermissions(val) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse + } else { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetAccount(val) + obj["audit"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse + } else { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetGroup(val) + obj["audit"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookLinkableWrapperAttrTypesRSRecurse + } else { + attrs = webhookWebhookLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookLinkableWrapperAttrTypesDSRecurse + } else { + attrs = webhookWebhookLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - tkh.SetStatus(val) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookNameUuidAttrTypesRSRecurse + } else { + attrs = webhookWebhookNameUuidAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSLinkable(recurse, tkh.GetObject()) diags.Append(d...) - tkh.SetSystem(val) + obj["object"] = val } - return tkh, diags + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { +func tkhToTFObjectDSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookNameUuidAttrTypesDSRecurse + } else { + attrs = webhookWebhookNameUuidAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() - objAttrs := objVal.Attributes() + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSLinkable(recurse, tkh.GetObject()) + diags.Append(d...) + obj["object"] = val + } + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = webhookWebhookPushAttrTypesRSRecurse + } else { + attrs = webhookWebhookPushAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) diags.Append(d...) - tkh.SetLinks(val) + obj["account"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) diags.Append(d...) - tkh.SetPermissions(val) + obj["by_party"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) diags.Append(d...) - tkh.SetAccount(val) + obj["certificate"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetClient()) diags.Append(d...) - tkh.SetGroup(val) + obj["client"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["directory"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) diags.Append(d...) - tkh.SetStatus(val) + obj["group"] = val } { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() - objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + obj["group2"] = val } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) diags.Append(d...) - tkh.SetLinks(val) + obj["group_classification"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) diags.Append(d...) - tkh.SetPermissions(val) + obj["modification_request"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetAccount(val) + obj["organizational_unit"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) diags.Append(d...) - tkh.SetGroup(val) + obj["service_account"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["system"] = val } + obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) diags.Append(d...) - tkh.SetStatus(val) + obj["vault_record"] = val } { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) diags.Append(d...) - tkh.SetServiceAccount(val) + obj["webhook"] = val } - return tkh, diags + obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tkhToTFObjectDSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookPushAttrTypesDSRecurse + } else { + attrs = webhookWebhookPushAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() - objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) diags.Append(d...) - tkh.SetLinks(val) + obj["by_party"] = val } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) diags.Append(d...) - tkh.SetPermissions(val) + obj["certificate"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetClient()) diags.Append(d...) - tkh.SetAccount(val) + obj["client"] = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) diags.Append(d...) - tkh.SetGroup(val) + obj["directory"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + obj["group"] = val } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) diags.Append(d...) - tkh.SetStatus(val) + obj["group2"] = val } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) diags.Append(d...) - tkh.SetAccountToUpdate(val) + obj["group_classification"] = val } { - val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) diags.Append(d...) - tkh.SetCurrentEndDate(val) + obj["modification_request"] = val } { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - tkh.SetCurrentRights(val) + obj["organizational_unit"] = val } + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) diags.Append(d...) - tkh.SetEndDate(val) + obj["service_account"] = val } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) diags.Append(d...) - tkh.SetRights(val) + obj["system"] = val } + obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) { - val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return val.(keyhubmodel.RequestUpdateGroupMembershipType) - }) + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) diags.Append(d...) - tkh.SetUpdateGroupMembershipType(val) + obj["vault_record"] = val } - return tkh, diags + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val + } + obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } -func tfObjectToTKHRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { +func tkhToTFObjectRSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - objAttrs := objVal.Attributes() + var attrs map[string]attr.Type if recurse { - { - val, d := tfObjectToTKHRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + attrs = webhookWebhook_additionalObjectsAttrTypesRSRecurse + } else { + attrs = webhookWebhook_additionalObjectsAttrTypesRS } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetPermissions(val) + obj["audit"] = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhook_additionalObjectsAttrTypesDSRecurse + } else { + attrs = webhookWebhook_additionalObjectsAttrTypesDS } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - tkh.SetGroup(val) + obj["audit"] = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuditInfo() + objAttrs := objVal.Attributes() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetCreatedAt(val) } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetLastModifiedAt(val) } - tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { +func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccount() + tkh := keyhubmodel.NewAuditInfo() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetCreatedAt(val) } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetLastModifiedAt(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) + tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + + tkh := keyhubmodel.NewErrorReport() + objAttrs := objVal.Attributes() + tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["password_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPassword(val) + tkh.SetApplicationErrorParameters(val) } + tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { - return val.(keyhubmodel.ServiceaccountPasswordRotationScheme) + val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetPasswordRotation(val) + tkh.SetErrorDetails(val) } + tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetStacktrace(val) } return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { +func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + tkh := keyhubmodel.NewErrorReport() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetApplicationErrorParameters(val) } + tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetErrorDetails(val) } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) + tkh.SetStacktrace(val) } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() - objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { - tkh, d := tfObjectToTKHServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) + tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + return tkh, diags +} + +func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + + tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + tkh := keyhubmodel.NewGeneratedSecret() objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } + tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + tkh := keyhubmodel.NewGeneratedSecret() objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { - tkh, d := tfObjectToTKHServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } + tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { +func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + tkh := keyhubmodel.NewLinkable() objAttrs := objVal.Attributes() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -25788,174 +34708,139 @@ func tfObjectToTKHServiceaccountServiceAccountPrimer(ctx context.Context, recurs } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + tkh := keyhubmodel.NewLinkable() objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { - tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetLinks(val) } - return tkh, diags -} - -func tfObjectToTKHServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) } - - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() - objAttrs := objVal.Attributes() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } + tkh := keyhubmodel.NewNonLinkable() return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { +func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() - objAttrs := objVal.Attributes() - tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPasswordSchemeEnabledStats(val) - } - { - val, d := tfObjectToTKHServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystemStats(val) - } + tkh := keyhubmodel.NewNonLinkable() return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { +func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + tkh := keyhubmodel.NewRestLink() + objAttrs := objVal.Attributes() + tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { +func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + tkh := keyhubmodel.NewRestLink() + objAttrs := objVal.Attributes() + tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { +func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewSimpleStringValue() + tkh := keyhubmodel.NewSegmentCount() objAttrs := objVal.Attributes() - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { +func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewSimpleVersionInfo() + tkh := keyhubmodel.NewSegmentCount() objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { - return int32(val.(basetypes.Int64Value).ValueInt64()) - }) - diags.Append(d...) - tkh.SetContractVersions(val) - } - tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { +func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultDeletedVaultHolder() + tkh := keyhubmodel.NewAuditAuditRecord() objAttrs := objVal.Attributes() if recurse { { - val, d := tfObjectToTKHVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } } { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -25964,196 +34849,204 @@ func tfObjectToTKHVaultDeletedVaultHolder(ctx context.Context, recurse bool, obj } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) - tkh.SetVaultDeletedVaultHolderType(val) + tkh.SetAuditAuditRecordType(val) + } + { + val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDateTime(val) + } + tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) } return tkh, diags } -func tfObjectToTKHVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + tkh := keyhubmodel.NewAuditAuditRecord() objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { - tkh, d := tfObjectToTKHVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetLinks(val) } - return tkh, diags -} - -func tfObjectToTKHVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) } - - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() - objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetAuditAuditRecordType(val) } { - val, d := tfObjectToTKHVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetVault(val) + tkh.SetDateTime(val) + } + tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) } return tkh, diags } -func tfObjectToTKHVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { +func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() objAttrs := objVal.Attributes() - tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["target_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { + tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetTargetGroup(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultMoveVaultRecord() + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() objAttrs := objVal.Attributes() { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return val.(keyhubmodel.VaultMoveVaultRecordAction) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { + tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetAction(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShareDuration(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { +func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() objAttrs := objVal.Attributes() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } return tkh, diags } -func tfObjectToTKHVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { +func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVault() + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRecords(val) - } - return tkh, diags -} - -func tfObjectToTKHVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetAudit(val) } - - tkh := keyhubmodel.NewVaultVaultHolder() return tkh, diags } -func tfObjectToTKHVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultRecord() + tkh := keyhubmodel.NewAuthAccount() objAttrs := objVal.Attributes() if recurse { { - val, d := tfObjectToTKHVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } } { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -26162,84 +35055,103 @@ func tfObjectToTKHVaultVaultRecord(ctx context.Context, recurse bool, objVal typ } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetShareEndTime(val) + tkh.SetLastActive(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetValidity(val) } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return val.(keyhubmodel.VaultVaultSecretType) }) + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetTypes(val) + tkh.SetAccountPermissions(val) } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return val.(keyhubmodel.VaultVaultRecordWarningPeriod) - }) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetWarningPeriod(val) + tkh.SetDirectory(val) } - return tkh, diags -} - -func tfObjectToTKHVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) } - - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultRecordPrimer() + tkh := keyhubmodel.NewAuthAccount() objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -26248,217 +35160,212 @@ func tfObjectToTKHVaultVaultRecordPrimer(ctx context.Context, recurse bool, objV } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetColor(val) + tkh.SetLastActive(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetValidity(val) } - - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() - objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { - tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetAccountPermissions(val) } - return tkh, diags -} - -func tfObjectToTKHVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) } - - tkh := keyhubmodel.NewVaultVaultRecordSecrets() - objAttrs := objVal.Attributes() - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) } - - tkh := keyhubmodel.NewVaultVaultRecordShare() - objAttrs := objVal.Attributes() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) diags.Append(d...) - tkh.SetVaultVaultRecordShareType(val) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + tkh := keyhubmodel.NewAuthAccountBulkUpdate() objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { - tkh, d := tfObjectToTKHVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { + return val.(keyhubmodel.AuthAccountBulkUpdateAction) }) diags.Append(d...) - tkh.SetChildren(val) + tkh.SetAction(val) } + tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { + return val.(basetypes.Int64Value).ValueInt64() + }) diags.Append(d...) - tkh.SetParent(val) + tkh.SetSelectedAccounts(val) } return tkh, diags } -func tfObjectToTKHVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + tkh := keyhubmodel.NewAuthAccountBulkUpdate() objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetParent(val) - } - { - val, d := tfObjectToTKHVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - { - val, d := tfObjectToTKHVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShareSummary(val) - } - { - val, d := tfObjectToTKHVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShares(val) - } - { - val, d := tfObjectToTKHLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { + return val.(keyhubmodel.AuthAccountBulkUpdateAction) + }) diags.Append(d...) - tkh.SetTile(val) + tkh.SetAction(val) } + tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { + return val.(basetypes.Int64Value).ValueInt64() + }) diags.Append(d...) - tkh.SetVaultholder(val) + tkh.SetSelectedAccounts(val) } return tkh, diags } -func tfObjectToTKHVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultRecovery() + tkh := keyhubmodel.NewAuthAccountChangeLocale() objAttrs := objVal.Attributes() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultUnlock() + tkh := keyhubmodel.NewAuthAccountChangeLocale() objAttrs := objVal.Attributes() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultUnlockResponse() + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() objAttrs := objVal.Attributes() { - val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { + tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetExpiresAt(val) + tkh.SetItems(val) } - tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhook() + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { + tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + + tkh := keyhubmodel.NewAuthAccountPrimer() + objAttrs := objVal.Attributes() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -26467,101 +35374,40 @@ func tfObjectToTKHWebhookWebhook(ctx context.Context, recurse bool, objVal types } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { - return val.(keyhubmodel.WebhookWebhookAuthenticationScheme) - }) - diags.Append(d...) - tkh.SetAuthenticationScheme(val) - } - tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetTrustedCertificate(val) + tkh.SetLastActive(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - return tkh - }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetTypes(val) + tkh.SetValidity(val) } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhookDelivery() + tkh := keyhubmodel.NewAuthAccountPrimer() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -26570,302 +35416,21750 @@ func tfObjectToTKHWebhookWebhookDelivery(ctx context.Context, recurse bool, objV } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetPayload(val) + tkh.SetLastActive(val) } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetTriggerTime(val) + tkh.SetValidity(val) } return tkh, diags } -func tfObjectToTKHWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() objAttrs := objVal.Attributes() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { - tkh, d := tfObjectToTKHWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) + tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + objAttrs := objVal.Attributes() + tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + tkh := keyhubmodel.NewAuthAccountSettings() objAttrs := objVal.Attributes() { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetDefaultOrganizationalUnit(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return val.(keyhubmodel.AuthPasswordMode) }) + diags.Append(d...) + tkh.SetPasswordMode(val) + } + tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorAuthentication(val) + } + tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return val.(keyhubmodel.VaultAccountVaultStatus) }) + diags.Append(d...) + tkh.SetVaultStatus(val) } return tkh, diags } -func tfObjectToTKHWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + tkh := keyhubmodel.NewAuthAccountSettings() objAttrs := objVal.Attributes() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { - tkh, d := findWebhookWebhookByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["default_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDefaultOrganizationalUnit(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetDirectoryType(val) + } + tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return val.(keyhubmodel.AuthPasswordMode) }) + diags.Append(d...) + tkh.SetPasswordMode(val) + } + tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorAuthentication(val) + } + tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return val.(keyhubmodel.VaultAccountVaultStatus) }) + diags.Append(d...) + tkh.SetVaultStatus(val) } return tkh, diags } -func tfObjectToTKHWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhookNameUuid() + tkh := keyhubmodel.NewAuthAccountStatus() objAttrs := objVal.Attributes() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) - tkh.SetObject(val) + tkh.SetLicenseRole(val) } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { +func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewWebhookWebhookPush() + tkh := keyhubmodel.NewAuthAccountStatus() objAttrs := objVal.Attributes() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) - tkh.SetByParty(val) + tkh.SetLicenseRole(val) } - { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + + tkh := keyhubmodel.NewAuthAccount_additionalObjects() + objAttrs := objVal.Attributes() + tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetClient(val) + tkh.SetAudit(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetDirectory(val) + tkh.SetGroups(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetPendingRecoveryRequests(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup2(val) + tkh.SetSettings(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroupClassification(val) + tkh.SetStoredAttributes(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetModificationRequest(val) + tkh.SetVault(val) } - { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) + return tkh, diags +} + +func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + + tkh := keyhubmodel.NewAuthAccount_additionalObjects() + objAttrs := objVal.Attributes() + tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSecurityLevel(val) + tkh.SetAudit(val) } - tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetServiceAccount(val) + tkh.SetGroups(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) + tkh.SetPendingRecoveryRequests(val) } { - val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) + val, d := tfObjectToTKHDSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTimestamp(val) + tkh.SetSettings(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetVaultRecord(val) + tkh.SetStoredAttributes(val) } { - val, d := tfObjectToTKHWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetWebhook(val) + tkh.SetVault(val) } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats() + objAttrs := objVal.Attributes() { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetWebhookWebhookPushType(val) + tkh.SetDirectoryStats(val) + } + { + val, d := tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTwoFAStats(val) + } + { + val, d := tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetValidityStats(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectoryStats(val) + } + { + val, d := tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTwoFAStats(val) + } + { + val, d := tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetValidityStats(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return val.(keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return val.(keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { + tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { + tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return val.(keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return val.(keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthInternalAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthMoveInternalAccount() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInternalDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthMoveInternalAccount() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInternalDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthPermission() + objAttrs := objVal.Attributes() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetInstances(val) + } + { + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return val.(keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetOperations(val) } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } +func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthPermission() + objAttrs := objVal.Attributes() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetInstances(val) + } + { + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return val.(keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetOperations(val) + } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthStoredAccountAttribute() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthStoredAccountAttribute() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthStoredAccountAttributes() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { + tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAttributes(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewAuthStoredAccountAttributes() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { + tkh, d := tfObjectToTKHDSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAttributes(val) + } + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificate() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return val.(keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetKeyData(val) + } + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificate() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return val.(keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetKeyData(val) + } + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { + tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { + tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificatePrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return val.(keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificatePrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return val.(keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplication() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplication() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { + tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { + tkh, d := tfObjectToTKHDSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplicationPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplicationPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupclients(val) + } + { + val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupclients(val) + } + { + val, d := tfObjectToTKHDSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientLdapClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientLdapClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2Client() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2Client() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermission() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermission() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { + tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { + tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { + tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { + tkh, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientOAuth2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientSaml2Client() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return val.(keyhubmodel.ClientSubjectFormat) }) + diags.Append(d...) + tkh.SetSubjectFormat(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientSaml2Client() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return val.(keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return val.(keyhubmodel.ClientSubjectFormat) }) + diags.Append(d...) + tkh.SetSubjectFormat(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientSaml2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewClientSaml2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { + tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { + tkh, d := tfObjectToTKHDSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + objAttrs := objVal.Attributes() + tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { + return val.(keyhubmodel.DirectoryAccountDirectoryStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + objAttrs := objVal.Attributes() + tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { + return val.(keyhubmodel.DirectoryAccountDirectoryStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectorySummaryType(val) + } + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectorySummaryType(val) + } + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { + tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { + tkh, d := tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryInternalDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryInternalDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + { + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return val.(keyhubmodel.DirectoryLDAPDialect) }) + diags.Append(d...) + tkh.SetDialect(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return val.(keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) + diags.Append(d...) + tkh.SetPasswordRecovery(val) + } + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + { + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return val.(keyhubmodel.DirectoryLDAPDialect) }) + diags.Append(d...) + tkh.SetDialect(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return val.(keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) + diags.Append(d...) + tkh.SetPasswordRecovery(val) + } + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryOIDCDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return val.(keyhubmodel.DirectoryOIDCVendor) }) + diags.Append(d...) + tkh.SetVendorEscaped(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewDirectoryOIDCDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return val.(keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return val.(keyhubmodel.DirectoryOIDCVendor) }) + diags.Append(d...) + tkh.SetVendorEscaped(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { + tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { + tkh, d := tfObjectToTKHDSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuditConfig(val) + } + tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupAuditing(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupDelegation(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupMembership(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupProvisioning(val) + } + { + val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return val.(keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAuthorizingGroupTypes(val) + } + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClassification(val) + } + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { return val.(keyhubmodel.GroupGroupExtendedAccess) }) + diags.Append(d...) + tkh.SetExtendedAccess(val) + } + tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNestedUnder(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { + return val.(keyhubmodel.GroupVaultRecoveryAvailability) + }) + diags.Append(d...) + tkh.SetVaultRecovery(val) + } + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuditConfig(val) + } + tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_auditing"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupAuditing(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_delegation"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupDelegation(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_membership"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupMembership(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_provisioning"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupProvisioning(val) + } + { + val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return val.(keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAuthorizingGroupTypes(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, false, objAttrs["classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClassification(val) + } + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { return val.(keyhubmodel.GroupGroupExtendedAccess) }) + diags.Append(d...) + tkh.SetExtendedAccess(val) + } + tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["nested_under"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedUnder(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { + return val.(keyhubmodel.GroupVaultRecoveryAvailability) + }) + diags.Append(d...) + tkh.SetVaultRecovery(val) + } + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { + tkh, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountNesting() + objAttrs := objVal.Attributes() + tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountNesting() + objAttrs := objVal.Attributes() + tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountStatus() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccountStatus() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAdminMail() + objAttrs := objVal.Attributes() + tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAdminMail() + objAttrs := objVal.Attributes() + tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAudit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return val.(keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAudit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHDSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return val.(keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditAccount() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return val.(keyhubmodel.AuditAuditAccountAction) }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditAccount() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return val.(keyhubmodel.AuditAuditAccountAction) }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditConfig() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMonths(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditConfig() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMonths(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { + tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { + tkh, d := tfObjectToTKHDSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditingInfo() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetAuditDueDate(val) + } + { + val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastAuditDate(val) + } + tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupAuditingInfo() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetAuditDueDate(val) + } + { + val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastAuditDate(val) + } + tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassification() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRequiredMonths(val) + } + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassification() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRequiredMonths(val) + } + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationInfo() + objAttrs := objVal.Attributes() + tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationInfo() + objAttrs := objVal.Attributes() + tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + objAttrs := objVal.Attributes() + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClassificaton(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClassificaton(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClient() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { + tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { + tkh, d := tfObjectToTKHDSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolder() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolder() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { + tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { + tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupInfo() + objAttrs := objVal.Attributes() + tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupInfo() + objAttrs := objVal.Attributes() + tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + { + val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { + tkh, d := tfObjectToTKHRSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSegments(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + { + val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { + tkh, d := tfObjectToTKHDSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSegments(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccounts(val) + } + { + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredClients(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredSystems(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizedGroups(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientPermissions(val) + } + { + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClients(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministeredSystems(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupauditinginfo(val) + } + { + val, d := tfObjectToTKHRSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupinfo(val) + } + { + val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdesk(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMyaccount(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMydelegatedaccount(val) + } + { + val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedGroups(val) + } + { + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedClients(val) + } + { + val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedDirectories(val) + } + { + val, d := tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedGroupsOnSystem(val) + } + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedOrganizationalUnits(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedSystems(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecentAudits(val) + } + { + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return val.(keyhubmodel.GroupGroupRequestStatus) }) + diags.Append(d...) + tkh.SetRequeststatus(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + { + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhooks(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccounts(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredClients(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredSystems(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizedGroups(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClients(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministeredSystems(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupauditinginfo(val) + } + { + val, d := tfObjectToTKHDSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupinfo(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdesk(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMyaccount(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMydelegatedaccount(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedGroups(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedClients(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedDirectories(val) + } + { + val, d := tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedGroupsOnSystem(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedOrganizationalUnits(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedSystems(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecentAudits(val) + } + { + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return val.(keyhubmodel.GroupGroupRequestStatus) }) + diags.Append(d...) + tkh.SetRequeststatus(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + { + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhooks(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupsAuditStats() + objAttrs := objVal.Attributes() + tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetClassifications(val) + } + tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupGroupsAuditStats() + objAttrs := objVal.Attributes() + tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetClassifications(val) + } + tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { + tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { + tkh, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { + tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { + tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { + tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { + tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return val.(keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return val.(keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return val.(keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return val.(keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return val.(keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarker() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return val.(keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return val.(keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarker() + objAttrs := objVal.Attributes() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return val.(keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return val.(keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarkers() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewMarkItemMarkers() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + { + val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLdapClient(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { + return val.(keyhubmodel.NotificationCertificateUsage) + }) + diags.Append(d...) + tkh.SetUsage(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + { + val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLdapClient(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { + return val.(keyhubmodel.NotificationCertificateUsage) + }) + diags.Append(d...) + tkh.SetUsage(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDueDate(val) + } + { + val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { + return val.(keyhubmodel.AuditAuditRequiredSourceType) + }) + diags.Append(d...) + tkh.SetNotificationGroupAuditRequiredNotificationType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDueDate(val) + } + { + val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { + return val.(keyhubmodel.AuditAuditRequiredSourceType) + }) + diags.Append(d...) + tkh.SetNotificationGroupAuditRequiredNotificationType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + { + val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { + return val.(keyhubmodel.GroupGroupEditRequiredReason) + }) + diags.Append(d...) + tkh.SetReason(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + { + val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { + return val.(keyhubmodel.GroupGroupEditRequiredReason) + }) + diags.Append(d...) + tkh.SetReason(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + return tkh, diags +} + +func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + return tkh, diags +} + +func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + return tkh, diags +} + +func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + return tkh, diags +} + +func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + objAttrs := objVal.Attributes() + tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLicenseInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + objAttrs := objVal.Attributes() + tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLicenseInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationModificationRequestNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequest(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationModificationRequestNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequest(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationNotification() + return tkh, diags +} + +func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationNotification() + return tkh, diags +} + +func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationNotifications() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { + tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationNotifications() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { + tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + objAttrs := objVal.Attributes() + tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + objAttrs := objVal.Attributes() + tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetReleasedAt(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetReleasedAt(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { + tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { + tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { + tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { + tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCreateAsParentOf(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCreateAsParentOf(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + objAttrs := objVal.Attributes() + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { + return val.(keyhubmodel.ProvisioningAccountProvisioningResult) + }) + diags.Append(d...) + tkh.SetResult(val) + } + { + val, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + objAttrs := objVal.Attributes() + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { + return val.(keyhubmodel.ProvisioningAccountProvisioningResult) + }) + diags.Append(d...) + tkh.SetResult(val) + } + { + val, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { + tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { + tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + objAttrs := objVal.Attributes() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return val.(keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + objAttrs := objVal.Attributes() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return val.(keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystem() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystem() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvgroups(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvgroups(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvisioningDuration(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningPermissionEndTime(val) + } + { + val, d := tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatusReport(val) + } + tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvisioningDuration(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningPermissionEndTime(val) + } + { + val, d := tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatusReport(val) + } + tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { + tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { + tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAD() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return val.(keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAD() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return val.(keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return val.(keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) + diags.Append(d...) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return val.(keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) + diags.Append(d...) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystem() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystem() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return val.(keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetIssuedPermissions(val) + } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetManagementPermissions(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatistics(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetIssuedPermissions(val) + } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetManagementPermissions(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatistics(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() + objAttrs := objVal.Attributes() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() + objAttrs := objVal.Attributes() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisioningStatus() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningProvisioningStatus() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningTokenPassword() + objAttrs := objVal.Attributes() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewProvisioningTokenPassword() + objAttrs := objVal.Attributes() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccessDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccessDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() + objAttrs := objVal.Attributes() + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() + return tkh, diags +} + +func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNewAdmin(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["new_admin"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNewAdmin(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetGroupOnSystemType(val) + } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetGroupOnSystemType(val) + } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestDisable2FARequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestDisable2FARequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestExtendAccessRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExtendUntil(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestExtendAccessRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExtendUntil(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantAccessRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantAccessRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantApplicationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantApplicationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestJoinGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestJoinGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestJoinVaultRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestJoinVaultRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAcceptParams(val) + } + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetResetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAcceptParams(val) + } + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetResetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestPasswordResetRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestPasswordResetRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCooldownEnd(val) + } + { + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetManagers(val) + } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return val.(keyhubmodel.RequestPasswordResetEmailType) + }) + diags.Append(d...) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCooldownEnd(val) + } + { + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetManagers(val) + } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return val.(keyhubmodel.RequestPasswordResetEmailType) + }) + diags.Append(d...) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestReviewAuditRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestReviewAuditRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRevokeAdminRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAdmin(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestRevokeAdminRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["admin"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmin(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return val.(keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + tkh.SetAuthorizingGroupType(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return val.(keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + tkh.SetAuthorizingGroupType(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return val.(keyhubmodel.RequestGroupNestAccountAction) + }) + diags.Append(d...) + tkh.SetAccountAction(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return val.(keyhubmodel.RequestGroupNestAccountAction) + }) + diags.Append(d...) + tkh.SetAccountAction(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccountToUpdate(val) + } + { + val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetCurrentEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetCurrentRights(val) + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { + return val.(keyhubmodel.RequestUpdateGroupMembershipType) + }) + diags.Append(d...) + tkh.SetUpdateGroupMembershipType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account_to_update"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccountToUpdate(val) + } + { + val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetCurrentEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetCurrentRights(val) + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { + return val.(keyhubmodel.RequestUpdateGroupMembershipType) + }) + diags.Append(d...) + tkh.SetUpdateGroupMembershipType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return val.(keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return val.(keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["password_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetPassword(val) + } + { + val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { + return val.(keyhubmodel.ServiceaccountPasswordRotationScheme) + }) + diags.Append(d...) + tkh.SetPasswordRotation(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccount() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["password"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPassword(val) + } + { + val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { + return val.(keyhubmodel.ServiceaccountPasswordRotationScheme) + }) + diags.Append(d...) + tkh.SetPasswordRotation(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return val.(keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { + tkh, d := tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { + tkh, d := tfObjectToTKHRSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + objAttrs := objVal.Attributes() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + objAttrs := objVal.Attributes() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + objAttrs := objVal.Attributes() + tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordSchemeEnabledStats(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystemStats(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + objAttrs := objVal.Attributes() + tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordSchemeEnabledStats(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystemStats(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + return tkh, diags +} + +func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSimpleStringValue() + objAttrs := objVal.Attributes() + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSimpleStringValue() + objAttrs := objVal.Attributes() + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSimpleVersionInfo() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { + return int32(val.(basetypes.Int64Value).ValueInt64()) + }) + diags.Append(d...) + tkh.SetContractVersions(val) + } + tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewSimpleVersionInfo() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { + return int32(val.(basetypes.Int64Value).ValueInt64()) + }) + diags.Append(d...) + tkh.SetContractVersions(val) + } + tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolder() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultDeletedVaultHolderType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolder() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultDeletedVaultHolderType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { + tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { + tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + objAttrs := objVal.Attributes() + tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["target_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTargetGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + objAttrs := objVal.Attributes() + tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["target_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTargetGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultMoveVaultRecord() + objAttrs := objVal.Attributes() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { + return val.(keyhubmodel.VaultMoveVaultRecordAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultMoveVaultRecord() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { + return val.(keyhubmodel.VaultMoveVaultRecordAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + objAttrs := objVal.Attributes() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVault() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRecords(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVault() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRecords(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultHolder() + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultHolder() + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecord() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return val.(keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return val.(keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecord() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return val.(keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return val.(keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordPrimer() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { + tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { + tkh, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordSecrets() + objAttrs := objVal.Attributes() + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordSecrets() + objAttrs := objVal.Attributes() + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordShare() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultVaultRecordShareType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordShare() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultVaultRecordShareType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { + tkh, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetChildren(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { + tkh, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetChildren(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetParent(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareSummary(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShares(val) + } + { + val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + { + val, d := tfObjectToTKHRSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultholder(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareSummary(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShares(val) + } + { + val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + { + val, d := tfObjectToTKHDSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultholder(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecovery() + objAttrs := objVal.Attributes() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultRecovery() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultUnlock() + objAttrs := objVal.Attributes() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultUnlock() + objAttrs := objVal.Attributes() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultUnlockResponse() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiresAt(val) + } + tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewVaultVaultUnlockResponse() + objAttrs := objVal.Attributes() + { + val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiresAt(val) + } + tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhook() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { + return val.(keyhubmodel.WebhookWebhookAuthenticationScheme) + }) + diags.Append(d...) + tkh.SetAuthenticationScheme(val) + } + tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhook() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { + return val.(keyhubmodel.WebhookWebhookAuthenticationScheme) + }) + diags.Append(d...) + tkh.SetAuthenticationScheme(val) + } + tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDelivery() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDelivery() + objAttrs := objVal.Attributes() + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { + tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { + tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { + tkh, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + objAttrs := objVal.Attributes() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { + tkh, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookNameUuid() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetObject(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookNameUuid() + objAttrs := objVal.Attributes() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetObject(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookPush() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetByParty(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup2(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupClassification(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetModificationRequest(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTimestamp(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + { + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetWebhookWebhookPushType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhookPush() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetByParty(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup2(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupClassification(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetModificationRequest(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTimestamp(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + { + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetWebhookWebhookPushType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + objAttrs := objVal.Attributes() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func fillDataStructFromTFObjectRSAuditInfo(data *auditInfoDataRS, obj types.Object) { + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuditInfo(data *auditInfoDataDS, obj types.Object) { + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSErrorReport(data *errorReportDataRS, obj types.Object) { + data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) + data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) + data.Code = obj.Attributes()["code"].(basetypes.Int64Value) + data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) + data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) + data.Message = obj.Attributes()["message"].(basetypes.StringValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSErrorReport(data *errorReportDataDS, obj types.Object) { + data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) + data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) + data.Code = obj.Attributes()["code"].(basetypes.Int64Value) + data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) + data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) + data.Message = obj.Attributes()["message"].(basetypes.StringValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSGeneratedSecret(data *generatedSecretDataRS, obj types.Object) { + data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) + data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) + data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGeneratedSecret(data *generatedSecretDataDS, obj types.Object) { + data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) + data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) + data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSLinkable(data *linkableDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLinkable(data *linkableDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNonLinkable(data *nonLinkableDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNonLinkable(data *nonLinkableDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSRestLink(data *restLinkDataRS, obj types.Object) { + data.Href = obj.Attributes()["href"].(basetypes.StringValue) + data.ID = obj.Attributes()["id"].(basetypes.Int64Value) + data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRestLink(data *restLinkDataDS, obj types.Object) { + data.Href = obj.Attributes()["href"].(basetypes.StringValue) + data.ID = obj.Attributes()["id"].(basetypes.Int64Value) + data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSSegmentCount(data *segmentCountDataRS, obj types.Object) { + data.Count = obj.Attributes()["count"].(basetypes.Int64Value) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj types.Object) { + data.Count = obj.Attributes()["count"].(basetypes.Int64Value) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) + data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) + data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) + data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) + data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) + data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) + data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) + data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) + data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) + data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) + data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) + data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) + data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) + data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) + data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) + data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) + data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) + data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) + data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) + data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) + data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) + data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) + data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) + data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) + data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthAccount(data *authAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataRS, obj types.Object) { + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) + data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataDS, obj types.Object) { + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) + data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuthAccountChangeLocale(data *authAccountChangeLocaleDataRS, obj types.Object) { + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthAccountChangeLocale(data *authAccountChangeLocaleDataDS, obj types.Object) { + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuthAccountPrimer(data *authAccountPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthAccountPrimer(data *authAccountPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataRS, obj types.Object) { + data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataDS, obj types.Object) { + data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSAuthAccountSettings(data *authAccountSettingsDataRS, obj types.Object) { + data.DefaultOrganizationalUnitUUID = obj.Attributes()["default_organizational_unit_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) + data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) + data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) + data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) + data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) + data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) + data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) + data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) + data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthAccountSettings(data *authAccountSettingsDataDS, obj types.Object) { + data.DefaultOrganizationalUnit = obj.Attributes()["default_organizational_unit"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) + data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) + data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) + data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) + data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) + data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) + data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) + data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) + data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthAccountStatus(data *authAccountStatusDataRS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSAuthAccountStatus(data *authAccountStatusDataDS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataRS, obj types.Object) { + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataDS, obj types.Object) { + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats(data *authAccountsAuditStatsDataRS, obj types.Object) { + data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats(data *authAccountsAuditStatsDataDS, obj types.Object) { + data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSAuthInternalAccount(data *authInternalAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthInternalAccount(data *authInternalAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataRS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataDS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthInternalAccount_additionalObjects(data *authInternalAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthInternalAccount_additionalObjects(data *authInternalAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthMoveInternalAccount(data *authMoveInternalAccountDataRS, obj types.Object) { + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthMoveInternalAccount(data *authMoveInternalAccountDataDS, obj types.Object) { + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthPermission(data *authPermissionDataRS, obj types.Object) { + data.Full = obj.Attributes()["full"].(basetypes.StringValue) + data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) + data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthPermission(data *authPermissionDataDS, obj types.Object) { + data.Full = obj.Attributes()["full"].(basetypes.StringValue) + data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) + data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataRS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataDS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataRS, obj types.Object) { + data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataDS, obj types.Object) { + data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertificateDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertificateDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateCertificatePrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateCertificatePrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) + data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) + data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) + data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) + data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) + data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) + data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) + data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) + data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) + data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) + data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) + data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) + data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) + data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) + data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) + data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) + data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportDataRS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportDataDS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSDirectoryInternalDirectory(data *directoryInternalDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryInternalDirectory(data *directoryInternalDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) + data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) + data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) + data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) + data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) + data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) + data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) + data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) + data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupAccountGroup(data *groupAccountGroupDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupAccountGroup(data *groupAccountGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroup(data *groupGroupDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) + data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) + data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) + data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) + data.AuthorizingGroupAuditingUUID = obj.Attributes()["authorizing_group_auditing_uuid"].(basetypes.StringValue) + data.AuthorizingGroupDelegationUUID = obj.Attributes()["authorizing_group_delegation_uuid"].(basetypes.StringValue) + data.AuthorizingGroupMembershipUUID = obj.Attributes()["authorizing_group_membership_uuid"].(basetypes.StringValue) + data.AuthorizingGroupProvisioningUUID = obj.Attributes()["authorizing_group_provisioning_uuid"].(basetypes.StringValue) + data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) + data.ClassificationUUID = obj.Attributes()["classification_uuid"].(basetypes.StringValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) + data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) + data.NestedUnderUUID = obj.Attributes()["nested_under_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) + data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) + data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroup(data *groupGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) + data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) + data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) + data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) + data.AuthorizingGroupAuditing = obj.Attributes()["authorizing_group_auditing"].(basetypes.ObjectValue) + data.AuthorizingGroupDelegation = obj.Attributes()["authorizing_group_delegation"].(basetypes.ObjectValue) + data.AuthorizingGroupMembership = obj.Attributes()["authorizing_group_membership"].(basetypes.ObjectValue) + data.AuthorizingGroupProvisioning = obj.Attributes()["authorizing_group_provisioning"].(basetypes.ObjectValue) + data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) + data.Classification = obj.Attributes()["classification"].(basetypes.ObjectValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) + data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) + data.NestedUnder = obj.Attributes()["nested_under"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) + data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) + data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccount(data *groupGroupAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccount(data *groupGroupAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccountNesting(data *groupGroupAccountNestingDataRS, obj types.Object) { + data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccountNesting(data *groupGroupAccountNestingDataDS, obj types.Object) { + data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccountStatus(data *groupGroupAccountStatusDataRS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccountStatus(data *groupGroupAccountStatusDataDS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAdminMail(data *groupGroupAdminMailDataRS, obj types.Object) { + data.Body = obj.Attributes()["body"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAdminMail(data *groupGroupAdminMailDataDS, obj types.Object) { + data.Body = obj.Attributes()["body"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAudit(data *groupGroupAuditDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAudit(data *groupGroupAuditDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditAccount(data *groupGroupAuditAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditAccount(data *groupGroupAuditAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditConfig(data *groupGroupAuditConfigDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Months = obj.Attributes()["months"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditConfig(data *groupGroupAuditConfigDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Months = obj.Attributes()["months"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditingInfo(data *groupGroupAuditingInfoDataRS, obj types.Object) { + data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) + data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) + data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) + data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) + data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) + data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditingInfo(data *groupGroupAuditingInfoDataDS, obj types.Object) { + data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) + data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) + data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) + data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) + data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) + data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroupClassification(data *groupGroupClassificationDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) + data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) + data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) + data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) + data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) + data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) + data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) + data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassification(data *groupGroupClassificationDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) + data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) + data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) + data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) + data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) + data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) + data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) + data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataRS, obj types.Object) { + data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataDS, obj types.Object) { + data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataRS, obj types.Object) { + data.ClassificatonUUID = obj.Attributes()["classificaton_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataDS, obj types.Object) { + data.Classificaton = obj.Attributes()["classificaton"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClient(data *groupGroupClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClient(data *groupGroupClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupFolder(data *groupGroupFolderDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupFolder(data *groupGroupFolderDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupInfo(data *groupGroupInfoDataRS, obj types.Object) { + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) + data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) + data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) + data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) + data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupInfo(data *groupGroupInfoDataDS, obj types.Object) { + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) + data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) + data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) + data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) + data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupPrimer(data *groupGroupPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupPrimer(data *groupGroupPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataRS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataDS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataRS, obj types.Object) { + data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) + data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) + data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) + data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) + data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) + data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) + data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataDS, obj types.Object) { + data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) + data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) + data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) + data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) + data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) + data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) + data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupProvisioningGroup(data *groupProvisioningGroupDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupProvisioningGroup(data *groupProvisioningGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataRS, obj types.Object) { + data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) + data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) + data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) + data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) + data.Details = obj.Attributes()["details"].(basetypes.ListValue) + data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) + data.Features = obj.Attributes()["features"].(basetypes.ListValue) + data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) + data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) + data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) + data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) + data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) + data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) + data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Version = obj.Attributes()["version"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataDS, obj types.Object) { + data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) + data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) + data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) + data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) + data.Details = obj.Attributes()["details"].(basetypes.ListValue) + data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) + data.Features = obj.Attributes()["features"].(basetypes.ListValue) + data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) + data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) + data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) + data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) + data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) + data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) + data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Version = obj.Attributes()["version"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { + data.Level = obj.Attributes()["level"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { + data.Level = obj.Attributes()["level"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSMarkItemMarker_parameters(data *markItemMarker_parametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSMarkItemMarker_parameters(data *markItemMarker_parametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, obj types.Object) { + data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, obj types.Object) { + data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataRS, obj types.Object) { + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataDS, obj types.Object) { + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataRS, obj types.Object) { + data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataDS, obj types.Object) { + data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataRS, obj types.Object) { + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataDS, obj types.Object) { + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataRS, obj types.Object) { + data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) + data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataDS, obj types.Object) { + data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) + data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataRS, obj types.Object) { + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataDS, obj types.Object) { + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationNotification(data *notificationNotificationDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNotificationNotification(data *notificationNotificationDataDS, obj types.Object) { +} - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags +func fillDataStructFromTFObjectRSNotificationNotifications(data *notificationNotificationsDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuditInfo(data *auditInfoData, obj types.Object) { - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSNotificationNotifications(data *notificationNotificationsDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectErrorReport(data *errorReportData, obj types.Object) { - data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) - data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) - data.Code = obj.Attributes()["code"].(basetypes.Int64Value) - data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) - data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) - data.Message = obj.Attributes()["message"].(basetypes.StringValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataRS, obj types.Object) { + data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersData, obj types.Object) { +func fillDataStructFromTFObjectDSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataDS, obj types.Object) { + data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGeneratedSecret(data *generatedSecretData, obj types.Object) { - data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) - data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) - data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +func fillDataStructFromTFObjectRSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataRS, obj types.Object) { + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) } -func fillDataStructFromTFObjectLinkable(data *linkableData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataDS, obj types.Object) { + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) } -func fillDataStructFromTFObjectNonLinkable(data *nonLinkableData, obj types.Object) { +func fillDataStructFromTFObjectRSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataRS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRestLink(data *restLinkData, obj types.Object) { - data.Href = obj.Attributes()["href"].(basetypes.StringValue) - data.ID = obj.Attributes()["id"].(basetypes.Int64Value) - data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataDS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) } -func fillDataStructFromTFObjectSegmentCount(data *segmentCountData, obj types.Object) { - data.Count = obj.Attributes()["count"].(basetypes.Int64Value) +func fillDataStructFromTFObjectRSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataRS, obj types.Object) { + data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataDS, obj types.Object) { + data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataRS, obj types.Object) { + data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataDS, obj types.Object) { + data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuditAuditRecord(data *auditAuditRecordData, obj types.Object) { +func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) - data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) - data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) - data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) - data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) - data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) - data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) - data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) - data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) - data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) - data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) - data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) - data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) - data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) } -func fillDataStructFromTFObjectAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthAccount(data *authAccountData, obj types.Object) { +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) @@ -26873,42 +57167,11 @@ func fillDataStructFromTFObjectAuthAccount(data *authAccountData, obj types.Obje data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectAuthAccountBulkUpdate(data *authAccountBulkUpdateData, obj types.Object) { - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) - data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectAuthAccountChangeLocale(data *authAccountChangeLocaleData, obj types.Object) { - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectAuthAccountLinkableWrapper(data *authAccountLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthAccountPrimer(data *authAccountPrimerData, obj types.Object) { +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) @@ -26916,1465 +57179,1571 @@ func fillDataStructFromTFObjectAuthAccountPrimer(data *authAccountPrimerData, ob data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthAccountRecoveryStatus(data *authAccountRecoveryStatusData, obj types.Object) { - data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) - data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthAccountSettings(data *authAccountSettingsData, obj types.Object) { - data.DefaultOrganizationalUnitUUID = obj.Attributes()["default_organizational_unit_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) - data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) - data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) - data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) - data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) - data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) - data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) - data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) - data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthAccountStatus(data *authAccountStatusData, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthAccount_additionalObjects(data *authAccount_additionalObjectsData, obj types.Object) { - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthAccountsAuditStats(data *authAccountsAuditStatsData, obj types.Object) { - data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) - data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsData, obj types.Object) { +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsData, obj types.Object) { +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsData, obj types.Object) { +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthInternalAccount(data *authInternalAccountData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) } -func fillDataStructFromTFObjectAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataRS, obj types.Object) { } -func fillDataStructFromTFObjectAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectData, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataDS, obj types.Object) { } -func fillDataStructFromTFObjectAuthInternalAccount_additionalObjects(data *authInternalAccount_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataRS, obj types.Object) { + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Result = obj.Attributes()["result"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthMoveInternalAccount(data *authMoveInternalAccountData, obj types.Object) { - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataDS, obj types.Object) { + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Result = obj.Attributes()["result"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectAuthPermission(data *authPermissionData, obj types.Object) { - data.Full = obj.Attributes()["full"].(basetypes.StringValue) - data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) - data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataRS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthStoredAccountAttribute(data *authStoredAccountAttributeData, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataDS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.ListValue) } -func fillDataStructFromTFObjectAuthStoredAccountAttributes(data *authStoredAccountAttributesData, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataRS, obj types.Object) { + data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) + data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) + data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) + data.State = obj.Attributes()["state"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataDS, obj types.Object) { + data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) + data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) + data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) + data.State = obj.Attributes()["state"].(basetypes.StringValue) } -func fillDataStructFromTFObjectCertificateCertificate(data *certificateCertificateData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGroupOnSystemDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGroupOnSystemDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectCertificateCertificatePrimer(data *certificateCertificatePrimerData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesDataRS, obj types.Object) { + data.Types = obj.Attributes()["types"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesDataDS, obj types.Object) { + data.Types = obj.Attributes()["types"].(basetypes.ListValue) } -func fillDataStructFromTFObjectCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataRS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) + data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) + data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectClientClientApplication(data *clientClientApplicationData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataDS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) + data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) + data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataRS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataDS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectClientClientApplicationPrimer(data *clientClientApplicationPrimerData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) - data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectClientLdapClient(data *clientLdapClientData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningProvisionedADDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) - data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) - data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } -func fillDataStructFromTFObjectClientOAuth2Client(data *clientOAuth2ClientData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningProvisionedADDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) - data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) - data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) - data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) - data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) - data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) - data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) - data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) - data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) - data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } -func fillDataStructFromTFObjectClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) - data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) - data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectClientOAuth2Client_attributes(data *clientOAuth2Client_attributesData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectClientSaml2Client(data *clientSaml2ClientData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) - data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) - data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectClientSaml2Client_attributes(data *clientSaml2Client_attributesData, obj types.Object) { + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDirectoryAccountDirectory(data *directoryAccountDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportData, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) - data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) - data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDirectoryInternalDirectory(data *directoryInternalDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDirectoryLDAPDirectory(data *directoryLDAPDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) - data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) - data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDirectoryOIDCDirectory(data *directoryOIDCDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) - data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) - data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) - data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) - data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) - data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) - data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) - data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupAccountGroup(data *groupAccountGroupData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupGroup(data *groupGroupData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) - data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) - data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) - data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) - data.AuthorizingGroupAuditingUUID = obj.Attributes()["authorizing_group_auditing_uuid"].(basetypes.StringValue) - data.AuthorizingGroupDelegation = obj.Attributes()["authorizing_group_delegation"].(basetypes.ObjectValue) - data.AuthorizingGroupMembership = obj.Attributes()["authorizing_group_membership"].(basetypes.ObjectValue) - data.AuthorizingGroupProvisioning = obj.Attributes()["authorizing_group_provisioning"].(basetypes.ObjectValue) - data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) - data.Classification = obj.Attributes()["classification"].(basetypes.ObjectValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) - data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) - data.NestedUnder = obj.Attributes()["nested_under"].(basetypes.ObjectValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) - data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) - data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupGroupAccount(data *groupGroupAccountData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectGroupGroupAccountNesting(data *groupGroupAccountNestingData, obj types.Object) { - data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectGroupGroupAccountStatus(data *groupGroupAccountStatusData, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectGroupGroupAdminMail(data *groupGroupAdminMailData, obj types.Object) { - data.Body = obj.Attributes()["body"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) } -func fillDataStructFromTFObjectGroupGroupAudit(data *groupGroupAuditData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) - data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) - data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) - data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) - data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) } -func fillDataStructFromTFObjectGroupGroupAuditAccount(data *groupGroupAuditAccountData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) } -func fillDataStructFromTFObjectGroupGroupAuditConfig(data *groupGroupAuditConfigData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Months = obj.Attributes()["months"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) } -func fillDataStructFromTFObjectGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectGroupGroupAuditingInfo(data *groupGroupAuditingInfoData, obj types.Object) { - data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) - data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) - data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) - data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) - data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) - data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) - data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) - data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupClassification(data *groupGroupClassificationData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) - data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) - data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) - data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) - data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) - data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) - data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) - data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectGroupGroupClassificationInfo(data *groupGroupClassificationInfoData, obj types.Object) { - data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateData, obj types.Object) { - data.ClassificatonUUID = obj.Attributes()["classificaton_uuid"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupClient(data *groupGroupClientData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectGroupGroupFolder(data *groupGroupFolderData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectGroupGroupInfo(data *groupGroupInfoData, obj types.Object) { - data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) - data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) - data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) - data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) - data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) - data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectGroupGroupPrimer(data *groupGroupPrimerData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataRS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupGroup_additionalObjects(data *groupGroup_additionalObjectsData, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) - data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) - data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) - data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) - data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) - data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) - data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) - data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) - data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) - data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) - data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) - data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) - data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) - data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) - data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) - data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) - data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) - data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) - data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectGroupGroupsAuditStats(data *groupGroupsAuditStatsData, obj types.Object) { - data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) - data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) - data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) - data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) - data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) - data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) - data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) +func fillDataStructFromTFObjectRSProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsDataRS, obj types.Object) { + data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) + data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) + data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectGroupProvisioningGroup(data *groupProvisioningGroupData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsDataDS, obj types.Object) { + data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) + data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) + data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataRS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) + data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataDS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) + data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSProvisioningTokenPassword(data *provisioningTokenPasswordDataRS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) } -func fillDataStructFromTFObjectLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTokenPasswordDataDS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) } -func fillDataStructFromTFObjectLaunchpadLaunchpadTile(data *launchpadLaunchpadTileData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoData, obj types.Object) { - data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) - data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) - data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) - data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) - data.Details = obj.Attributes()["details"].(basetypes.ListValue) - data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) - data.Features = obj.Attributes()["features"].(basetypes.ListValue) - data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) - data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) - data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) - data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) - data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) - data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) - data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Version = obj.Attributes()["version"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectMarkItemMarker(data *markItemMarkerData, obj types.Object) { - data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectMarkItemMarker_parameters(data *markItemMarker_parametersData, obj types.Object) { -} - -func fillDataStructFromTFObjectMarkItemMarkers(data *markItemMarkersData, obj types.Object) { - data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationData, obj types.Object) { - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) - data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationData, obj types.Object) { - data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersData, obj types.Object) { -} - -func fillDataStructFromTFObjectNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationData, obj types.Object) { -} - -func fillDataStructFromTFObjectNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationData, obj types.Object) { - data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) - data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectNotificationModificationRequestNotification(data *notificationModificationRequestNotificationData, obj types.Object) { - data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataRS, obj types.Object) { + data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectNotificationNotification(data *notificationNotificationData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataDS, obj types.Object) { + data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectNotificationNotifications(data *notificationNotificationsData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataRS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationData, obj types.Object) { - data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataDS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationData, obj types.Object) { - data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataRS, obj types.Object) { + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationData, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataDS, obj types.Object) { + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationData, obj types.Object) { - data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataRS, obj types.Object) { } -func fillDataStructFromTFObjectNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationData, obj types.Object) { - data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataDS, obj types.Object) { } -func fillDataStructFromTFObjectOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } -func fillDataStructFromTFObjectOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectOrganizationOrganizationalUnit(data *organizationOrganizationalUnitData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewAdmin = obj.Attributes()["new_admin"].(basetypes.ObjectValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } -func fillDataStructFromTFObjectOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) } -func fillDataStructFromTFObjectOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) } -func fillDataStructFromTFObjectOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectRSRequestCreateGroupRequest(data *requestCreateGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusData, obj types.Object) { - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Result = obj.Attributes()["result"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportData, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsData, obj types.Object) { - data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) - data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) - data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) - data.State = obj.Attributes()["state"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectProvisioningGroupOnSystem(data *provisioningGroupOnSystemData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestDisable2FARequest(data *requestDisable2FARequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesData, obj types.Object) { - data.Types = obj.Attributes()["types"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectRSRequestExtendAccessRequest(data *requestExtendAccessRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusData, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) - data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) - data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationData, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +func fillDataStructFromTFObjectRSRequestGrantAccessRequest(data *requestGrantAccessRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) +func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAD(data *provisioningProvisionedADData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) - data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAccount(data *provisioningProvisionedAccountData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsData, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestJoinGroupRequest(data *requestJoinGroupRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystem(data *provisioningProvisionedSystemData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSRequestJoinVaultRequest(data *requestJoinVaultRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) +func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModificationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataRS, obj types.Object) { + data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsData, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) +func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataDS, obj types.Object) { + data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) - data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) - data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) - data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsData, obj types.Object) { - data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) - data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) - data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) +func fillDataStructFromTFObjectRSRequestPasswordResetRequest(data *requestPasswordResetRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) + data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) + data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectProvisioningProvisioningStatus(data *provisioningProvisioningStatusData, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) - data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) +func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) + data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) + data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectProvisioningTokenPassword(data *provisioningTokenPasswordData, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) +func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataRS, obj types.Object) { + data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) + data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) + data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) + data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataDS, obj types.Object) { + data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) + data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) + data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) + data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28385,10 +58754,24 @@ func fillDataStructFromTFObjectRequestAbstractApplicationModificationRequest(dat data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28400,9 +58783,25 @@ func fillDataStructFromTFObjectRequestAbstractOrganizationalUnitModificationRequ data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28414,26 +58813,51 @@ func fillDataStructFromTFObjectRequestAbstractProvisionedSystemModificationReque data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersData, obj types.Object) { - data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationData, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersData, obj types.Object) { - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) +func fillDataStructFromTFObjectRSRequestReviewAuditRequest(data *requestReviewAuditRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28444,28 +58868,24 @@ func fillDataStructFromTFObjectRequestAddGroupAdminRequest(data *requestAddGroup data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) + data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.Admin = obj.Attributes()["admin"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestCreateGroupRequest(data *requestCreateGroupRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28476,26 +58896,28 @@ func fillDataStructFromTFObjectRequestCreateGroupRequest(data *requestCreateGrou data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestDisable2FARequest(data *requestDisable2FARequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28506,23 +58928,28 @@ func fillDataStructFromTFObjectRequestDisable2FARequest(data *requestDisable2FAR data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) + data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestExtendAccessRequest(data *requestExtendAccessRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28533,23 +58960,24 @@ func fillDataStructFromTFObjectRequestExtendAccessRequest(data *requestExtendAcc data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestGrantAccessRequest(data *requestGrantAccessRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestGrantApplicationRequest(data *requestGrantApplicationRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28563,23 +58991,21 @@ func fillDataStructFromTFObjectRequestGrantApplicationRequest(data *requestGrant data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28590,26 +59016,22 @@ func fillDataStructFromTFObjectRequestGrantGroupOnSystemRequest(data *requestGra data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28621,82 +59043,23 @@ func fillDataStructFromTFObjectRequestGrantServiceAccountGroupRequest(data *requ data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestJoinGroupRequest(data *requestJoinGroupRequestData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestJoinVaultRequest(data *requestJoinVaultRequestData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestModificationRequest(data *requestModificationRequestData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperData, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsData, obj types.Object) { - data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestPasswordResetRequest(data *requestPasswordResetRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) - data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) - data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusData, obj types.Object) { - data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) - data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) - data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) - data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestRemoveGroupRequest(data *requestRemoveGroupRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28707,25 +59070,24 @@ func fillDataStructFromTFObjectRequestRemoveGroupRequest(data *requestRemoveGrou data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28737,23 +59099,23 @@ func fillDataStructFromTFObjectRequestRemoveProvisionedSystemRequest(data *reque data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestReviewAuditRequest(data *requestReviewAuditRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestRevokeAdminRequest(data *requestRevokeAdminRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28764,26 +59126,24 @@ func fillDataStructFromTFObjectRequestRevokeAdminRequest(data *requestRevokeAdmi data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28794,26 +59154,24 @@ func fillDataStructFromTFObjectRequestSetupNestedGroupRequest(data *requestSetup data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28824,23 +59182,24 @@ func fillDataStructFromTFObjectRequestTransferApplicationOwnershipRequest(data * data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28851,24 +59210,34 @@ func fillDataStructFromTFObjectRequestTransferGroupOnSystemOwnershipRequest(data data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) + data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) + data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.AccountToUpdate = obj.Attributes()["account_to_update"].(basetypes.ObjectValue) + data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) + data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -28879,100 +59248,54 @@ func fillDataStructFromTFObjectRequestTransferProvisionedSystemAdministrationReq data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestData, obj types.Object) { +func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestData, obj types.Object) { +func fillDataStructFromTFObjectRSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) - data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) - data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestData, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.PasswordUUID = obj.Attributes()["password_uuid"].(basetypes.StringValue) + data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccount(data *serviceaccountServiceAccountData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.PasswordUUID = obj.Attributes()["password_uuid"].(basetypes.StringValue) + data.Password = obj.Attributes()["password"].(basetypes.ObjectValue) data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupData, obj types.Object) { +func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) @@ -28982,19 +59305,41 @@ func fillDataStructFromTFObjectServiceaccountServiceAccountGroup(data *serviceac data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -29004,42 +59349,87 @@ func fillDataStructFromTFObjectServiceaccountServiceAccountPrimer(data *servicea data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataRS, obj types.Object) { data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataDS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataRS, obj types.Object) { data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsData, obj types.Object) { +func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataDS, obj types.Object) { + data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) + data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) + data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataDS, obj types.Object) { } -func fillDataStructFromTFObjectServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsData, obj types.Object) { +func fillDataStructFromTFObjectRSSimpleStringValue(data *simpleStringValueDataRS, obj types.Object) { + data.Value = obj.Attributes()["value"].(basetypes.StringValue) } -func fillDataStructFromTFObjectSimpleStringValue(data *simpleStringValueData, obj types.Object) { +func fillDataStructFromTFObjectDSSimpleStringValue(data *simpleStringValueDataDS, obj types.Object) { data.Value = obj.Attributes()["value"].(basetypes.StringValue) } -func fillDataStructFromTFObjectSimpleVersionInfo(data *simpleVersionInfoData, obj types.Object) { +func fillDataStructFromTFObjectRSSimpleVersionInfo(data *simpleVersionInfoDataRS, obj types.Object) { + data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) + data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSSimpleVersionInfo(data *simpleVersionInfoDataDS, obj types.Object) { data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultDeletedVaultHolder(data *vaultDeletedVaultHolderData, obj types.Object) { +func fillDataStructFromTFObjectRSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -29048,34 +59438,70 @@ func fillDataStructFromTFObjectVaultDeletedVaultHolder(data *vaultDeletedVaultHo data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) + data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectRSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryData, obj types.Object) { +func fillDataStructFromTFObjectRSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataRS, obj types.Object) { data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) data.TargetGroupUUID = obj.Attributes()["target_group_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultMoveVaultRecord(data *vaultMoveVaultRecordData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataDS, obj types.Object) { + data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) + data.TargetGroup = obj.Attributes()["target_group"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataRS, obj types.Object) { data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.Action = obj.Attributes()["action"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataRS, obj types.Object) { data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectVaultVault(data *vaultVaultData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataDS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSVaultVault(data *vaultVaultDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) @@ -29083,10 +59509,21 @@ func fillDataStructFromTFObjectVaultVault(data *vaultVaultData, obj types.Object data.Records = obj.Attributes()["records"].(basetypes.ListValue) } -func fillDataStructFromTFObjectVaultVaultHolder(data *vaultVaultHolderData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVault(data *vaultVaultDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Records = obj.Attributes()["records"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSVaultVaultHolder(data *vaultVaultHolderDataRS, obj types.Object) { } -func fillDataStructFromTFObjectVaultVaultRecord(data *vaultVaultRecordData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultHolder(data *vaultVaultHolderDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSVaultVaultRecord(data *vaultVaultRecordDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Color = obj.Attributes()["color"].(basetypes.StringValue) @@ -29103,11 +59540,32 @@ func fillDataStructFromTFObjectVaultVaultRecord(data *vaultVaultRecordData, obj data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecord(data *vaultVaultRecordDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectVaultVaultRecordPrimer(data *vaultVaultRecordPrimerData, obj types.Object) { +func fillDataStructFromTFObjectRSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Color = obj.Attributes()["color"].(basetypes.StringValue) @@ -29116,11 +59574,24 @@ func fillDataStructFromTFObjectVaultVaultRecordPrimer(data *vaultVaultRecordPrim data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectVaultVaultRecordSecrets(data *vaultVaultRecordSecretsData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordSecrets(data *vaultVaultRecordSecretsDataRS, obj types.Object) { data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.File = obj.Attributes()["file"].(basetypes.StringValue) data.Password = obj.Attributes()["password"].(basetypes.StringValue) @@ -29128,17 +59599,35 @@ func fillDataStructFromTFObjectVaultVaultRecordSecrets(data *vaultVaultRecordSec data.WriteTotp = obj.Attributes()["write_totp"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectVaultVaultRecordShare(data *vaultVaultRecordShareData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecordSecrets(data *vaultVaultRecordSecretsDataDS, obj types.Object) { + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.File = obj.Attributes()["file"].(basetypes.StringValue) + data.Password = obj.Attributes()["password"].(basetypes.StringValue) + data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) + data.WriteTotp = obj.Attributes()["write_totp"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordShare(data *vaultVaultRecordShareDataRS, obj types.Object) { data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecordShare(data *vaultVaultRecordShareDataDS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataRS, obj types.Object) { data.Children = obj.Attributes()["children"].(basetypes.ListValue) data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataDS, obj types.Object) { + data.Children = obj.Attributes()["children"].(basetypes.ListValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) @@ -29149,21 +59638,46 @@ func fillDataStructFromTFObjectVaultVaultRecord_additionalObjects(data *vaultVau data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectVaultVaultRecovery(data *vaultVaultRecoveryData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecovery(data *vaultVaultRecoveryDataRS, obj types.Object) { data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultVaultUnlock(data *vaultVaultUnlockData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultRecovery(data *vaultVaultRecoveryDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultUnlock(data *vaultVaultUnlockDataRS, obj types.Object) { data.Password = obj.Attributes()["password"].(basetypes.StringValue) } -func fillDataStructFromTFObjectVaultVaultUnlockResponse(data *vaultVaultUnlockResponseData, obj types.Object) { +func fillDataStructFromTFObjectDSVaultVaultUnlock(data *vaultVaultUnlockDataDS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataRS, obj types.Object) { + data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) + data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataDS, obj types.Object) { data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) } -func fillDataStructFromTFObjectWebhookWebhook(data *webhookWebhookData, obj types.Object) { +func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) @@ -29190,7 +59704,34 @@ func fillDataStructFromTFObjectWebhookWebhook(data *webhookWebhookData, obj type data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectWebhookWebhookDelivery(data *webhookWebhookDeliveryData, obj types.Object) { +func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) + data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) + data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) + data.BasicAuthUsername = obj.Attributes()["basic_auth_username"].(basetypes.StringValue) + data.BearerToken = obj.Attributes()["bearer_token"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.CustomHeaderName = obj.Attributes()["custom_header_name"].(basetypes.StringValue) + data.CustomHeaderValue = obj.Attributes()["custom_header_value"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -29203,25 +59744,80 @@ func fillDataStructFromTFObjectWebhookWebhookDelivery(data *webhookWebhookDelive data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) } -func fillDataStructFromTFObjectWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectDSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperData, obj types.Object) { +func fillDataStructFromTFObjectDSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectWebhookWebhookNameUuid(data *webhookWebhookNameUuidData, obj types.Object) { +func fillDataStructFromTFObjectDSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataRS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataDS, obj types.Object) { data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectWebhookWebhookPush(data *webhookWebhookPushData, obj types.Object) { +func fillDataStructFromTFObjectRSWebhookWebhookPush(data *webhookWebhookPushDataRS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) + data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) + data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) + data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) + data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookPush(data *webhookWebhookPushDataDS, obj types.Object) { data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) @@ -29245,7 +59841,11 @@ func fillDataStructFromTFObjectWebhookWebhookPush(data *webhookWebhookPushData, data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) } -func fillDataStructFromTFObjectWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsData, obj types.Object) { +func fillDataStructFromTFObjectRSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } @@ -29504,8 +60104,9 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -29626,8 +60227,9 @@ func dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]dss } func dataSourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["default_organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["default_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -29793,8 +60395,9 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -30096,11 +60699,13 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } return schemaAttrs } @@ -30223,23 +60828,27 @@ func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Att schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["shared_secret_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ Computed: true, @@ -30289,11 +60898,13 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -30326,8 +60937,9 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["shared_secret_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ Computed: true, @@ -30357,11 +60969,13 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] }, Computed: true, } - schemaAttrs["for_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["for_system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } schemaAttrs["value"] = dsschema.StringAttribute{ Computed: true, @@ -30398,11 +61012,13 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) m }, Computed: true, } - schemaAttrs["for_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["for_system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } schemaAttrs["value"] = dsschema.StringAttribute{ Computed: true, @@ -30478,11 +61094,13 @@ func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.At schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(false), @@ -30539,14 +61157,16 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Required: recurse, Computed: !recurse, } - schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["default_directory"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ Computed: true, @@ -30711,14 +61331,16 @@ func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]ds Required: recurse, Computed: !recurse, } - schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["default_directory"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ Computed: true, @@ -30729,8 +61351,9 @@ func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]ds schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } return schemaAttrs } @@ -30770,14 +61393,16 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche Required: recurse, Computed: !recurse, } - schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["default_directory"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ Computed: true, @@ -30794,8 +61419,9 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["base_d_n"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["dialect"] = dsschema.StringAttribute{ Computed: true, @@ -30803,8 +61429,9 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["host"] = dsschema.StringAttribute{ Computed: true, @@ -30827,8 +61454,9 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } return schemaAttrs } @@ -30868,14 +61496,16 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string Required: recurse, Computed: !recurse, } - schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["default_directory"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ Computed: true, @@ -30924,14 +61554,16 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche Required: recurse, Computed: !recurse, } - schemaAttrs["base_organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["default_directory"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ Computed: true, @@ -31106,8 +61738,9 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["auditor"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["authorizing_group_auditing_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["authorizing_group_auditing"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["authorizing_group_delegation"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), @@ -31202,8 +61835,9 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ Computed: true, @@ -31558,8 +62192,9 @@ func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[strin } func dataSourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["classificaton_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["classificaton"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse), + Computed: true, } return schemaAttrs } @@ -31606,11 +62241,13 @@ func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Att Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } return schemaAttrs } @@ -31735,9 +62372,11 @@ func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + }, + Computed: true, } return schemaAttrs } @@ -31961,8 +62600,9 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri }, Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -32013,11 +62653,13 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche }, Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -32029,8 +62671,9 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche ElementType: types.StringType, Computed: true, } - schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } return schemaAttrs } @@ -32088,11 +62731,13 @@ func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string] }, Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -32104,8 +62749,9 @@ func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string] ElementType: types.StringType, Computed: true, } - schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } schemaAttrs["title"] = dsschema.StringAttribute{ Computed: true, @@ -32135,11 +62781,13 @@ func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map }, Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -32151,8 +62799,9 @@ func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map ElementType: types.StringType, Computed: true, } - schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } schemaAttrs["uri"] = dsschema.StringAttribute{ Computed: true, @@ -32179,11 +62828,13 @@ func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[st }, Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -32195,8 +62846,9 @@ func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[st ElementType: types.StringType, Computed: true, } - schemaAttrs["vault_record_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } return schemaAttrs } @@ -32308,8 +62960,9 @@ func dataSourceSchemaAttrsNotificationCertificateExpiredNotification(recurse boo schemaAttrs["usage"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), + Computed: true, } return schemaAttrs } @@ -32404,17 +63057,21 @@ func dataSourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse boo } func dataSourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["systems"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["systems"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["groups"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32513,11 +63170,13 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[strin schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["parent_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } return schemaAttrs } @@ -32557,8 +63216,9 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) ma schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } return schemaAttrs } @@ -32615,9 +63275,11 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map } func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + }, + Computed: true, } return schemaAttrs } @@ -32659,8 +63321,9 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -32672,14 +63335,16 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -32693,8 +63358,9 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -32712,14 +63378,16 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["bind_password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["group_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -32742,8 +63410,9 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["user_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -32826,11 +63495,13 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } return schemaAttrs } @@ -33027,8 +63698,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33040,14 +63712,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33061,8 +63735,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -33080,14 +63755,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["bind_password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["group_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -33110,8 +63787,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["user_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -33206,8 +63884,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33219,14 +63898,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33240,14 +63921,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, @@ -33280,8 +63963,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33293,14 +63977,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33314,8 +64000,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -33326,8 +64013,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, @@ -33360,8 +64048,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33373,14 +64062,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33394,8 +64085,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -33440,8 +64132,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33453,14 +64146,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33474,8 +64169,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -33512,8 +64208,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33525,14 +64222,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33546,8 +64245,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -33565,14 +64265,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["bind_password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["group_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -33595,8 +64297,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["user_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -33639,8 +64342,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33652,14 +64356,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33673,14 +64379,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } schemaAttrs["group_d_n"] = dsschema.StringAttribute{ Computed: true, @@ -33713,8 +64421,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33726,14 +64435,16 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -33747,8 +64458,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, @@ -33785,8 +64497,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ Computed: true, @@ -33799,9 +64512,11 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ } func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, + Computed: true, } return schemaAttrs } @@ -33948,8 +64663,9 @@ func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -33957,8 +64673,9 @@ func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -33969,8 +64686,9 @@ func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } return schemaAttrs } @@ -33994,8 +64712,9 @@ func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(r }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34003,8 +64722,9 @@ func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(r schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34015,8 +64735,9 @@ func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(r schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } return schemaAttrs } @@ -34040,8 +64761,9 @@ func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(re }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34049,8 +64771,9 @@ func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(re schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34061,8 +64784,9 @@ func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(re schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } return schemaAttrs } @@ -34118,8 +64842,9 @@ func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]d }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34127,8 +64852,9 @@ func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]d schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34139,8 +64865,9 @@ func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]d schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["new_admin_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, @@ -34167,8 +64894,9 @@ func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[st }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34176,8 +64904,9 @@ func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[st schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34188,8 +64917,9 @@ func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[st schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, @@ -34222,8 +64952,9 @@ func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34231,8 +64962,9 @@ func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dss schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34243,8 +64975,9 @@ func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dss schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["group_name"] = dsschema.StringAttribute{ Computed: true, @@ -34271,8 +65004,9 @@ func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[s }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34280,8 +65014,9 @@ func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[s schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34292,8 +65027,9 @@ func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[s schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, @@ -34320,8 +65056,9 @@ func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dssc }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34329,8 +65066,9 @@ func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dssc schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34366,8 +65104,9 @@ func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bo }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34375,8 +65114,9 @@ func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bo schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34409,8 +65149,9 @@ func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]ds }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34418,8 +65159,9 @@ func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]ds schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34455,8 +65197,9 @@ func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34464,8 +65207,9 @@ func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dss schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34498,8 +65242,9 @@ func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[strin }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34507,8 +65252,9 @@ func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[strin schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34519,8 +65265,9 @@ func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[strin schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } return schemaAttrs } @@ -34544,8 +65291,9 @@ func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[ }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34553,8 +65301,9 @@ func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[ schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34565,14 +65314,16 @@ func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[ schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } schemaAttrs["permission_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } return schemaAttrs } @@ -34596,8 +65347,9 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[str }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34605,8 +65357,9 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[str schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34646,8 +65399,9 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34655,8 +65409,9 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34696,8 +65451,9 @@ func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) m }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34705,8 +65461,9 @@ func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) m schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34721,8 +65478,9 @@ func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) m Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), Computed: true, } - schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), + Computed: true, } return schemaAttrs } @@ -34746,8 +65504,9 @@ func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dssch }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34755,8 +65514,9 @@ func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dssch schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34789,8 +65549,9 @@ func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dssch }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34798,8 +65559,9 @@ func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dssch schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34832,8 +65594,9 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34841,8 +65604,9 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34901,8 +65665,9 @@ func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]d }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34910,8 +65675,9 @@ func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]d schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -34970,8 +65736,9 @@ func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -34979,8 +65746,9 @@ func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dss schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35016,8 +65784,9 @@ func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) m }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35025,8 +65794,9 @@ func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) m schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35037,8 +65807,9 @@ func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) m schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ Computed: true, @@ -35065,8 +65836,9 @@ func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) ma }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35074,8 +65846,9 @@ func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) ma schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35086,8 +65859,9 @@ func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) ma schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } schemaAttrs["system_name"] = dsschema.StringAttribute{ Computed: true, @@ -35114,8 +65888,9 @@ func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35123,8 +65898,9 @@ func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dss schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35157,8 +65933,9 @@ func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35166,8 +65943,9 @@ func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dss schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35178,8 +65956,9 @@ func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dss schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["admin_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } return schemaAttrs } @@ -35203,8 +65982,9 @@ func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[ }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35212,8 +65992,9 @@ func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[ schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35230,8 +66011,9 @@ func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[ schemaAttrs["connect"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["requesting_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } return schemaAttrs } @@ -35255,8 +66037,9 @@ func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[strin }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35264,8 +66047,9 @@ func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[strin schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35282,8 +66066,9 @@ func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[strin schemaAttrs["connect"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["requesting_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } return schemaAttrs } @@ -35307,8 +66092,9 @@ func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurs }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35316,8 +66102,9 @@ func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurs schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35328,8 +66115,9 @@ func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurs schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } return schemaAttrs } @@ -35353,8 +66141,9 @@ func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse boo }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35362,8 +66151,9 @@ func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse boo schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35374,8 +66164,9 @@ func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse boo schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["application_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } return schemaAttrs } @@ -35399,8 +66190,9 @@ func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[s }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35408,8 +66200,9 @@ func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[s schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35442,8 +66235,9 @@ func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse b }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35451,8 +66245,9 @@ func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse b schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35489,8 +66284,9 @@ func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recu }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35498,8 +66294,9 @@ func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recu schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35510,8 +66307,9 @@ func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recu schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, } return schemaAttrs } @@ -35535,8 +66333,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest( }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35544,8 +66343,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest( schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35556,8 +66356,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest( schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } return schemaAttrs } @@ -35581,8 +66382,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationR }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35590,8 +66392,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationR schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35602,8 +66405,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationR schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } return schemaAttrs } @@ -35627,8 +66431,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recur }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35636,8 +66441,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recur schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35648,8 +66454,9 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recur schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } return schemaAttrs } @@ -35673,8 +66480,9 @@ func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(rec }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35682,8 +66490,9 @@ func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(rec schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35694,8 +66503,9 @@ func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(rec schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), + Computed: true, } return schemaAttrs } @@ -35719,8 +66529,9 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35728,8 +66539,9 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35740,8 +66552,9 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_to_update_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["current_end_date"] = dsschema.StringAttribute{ Computed: true, @@ -35780,8 +66593,9 @@ func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[ }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -35789,8 +66603,9 @@ func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[ schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -35832,8 +66647,9 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + Computed: true, } schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, @@ -35845,14 +66661,16 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["password_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["password"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, } schemaAttrs["password_rotation"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["technical_administrator_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } return schemaAttrs } @@ -35938,8 +66756,9 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[s schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + Computed: true, } schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, @@ -35952,9 +66771,11 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[s } func dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + }, + Computed: true, } return schemaAttrs } @@ -36083,21 +66904,24 @@ func dataSourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]dss schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["target_group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["target_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, } schemaAttrs["action"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, } schemaAttrs["share_duration"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), @@ -36245,9 +67069,11 @@ func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dssche } func dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + }, + Computed: true, } return schemaAttrs } @@ -36303,8 +67129,9 @@ func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[s schemaAttrs["delete_tile"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["parent_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + Computed: true, } schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), @@ -36330,8 +67157,9 @@ func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[s } func dataSourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, } schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, @@ -36375,8 +67203,9 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri }, Computed: true, } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -36396,11 +67225,13 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri schemaAttrs["bearer_token"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, } - schemaAttrs["client_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["custom_header_name"] = dsschema.StringAttribute{ Computed: true, @@ -36408,23 +67239,27 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri schemaAttrs["custom_header_value"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, } schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate_uuid"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, } schemaAttrs["types"] = dsschema.ListAttribute{ ElementType: types.StringType, @@ -36506,9 +67341,11 @@ func dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) } func dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), + }, + Computed: true, } return schemaAttrs } @@ -38556,25 +69393,21 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["authorizing_group_delegation"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimer(false), - Optional: true, + schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["authorizing_group_membership"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimer(false), - Optional: true, + schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["authorizing_group_provisioning"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimer(false), - Optional: true, + schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["classification"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassificationPrimer(false), - Optional: true, + schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, @@ -38589,13 +69422,11 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["nested_under"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimer(false), - Optional: true, + schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["organizational_unit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Optional: true, + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["private_group"] = rsschema.BoolAttribute{ Computed: true, @@ -39097,15 +69928,13 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplicationPrimer(false), + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ Computed: true, - PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Computed: true, - PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -39447,10 +70276,9 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Optional: true, Default: booldefault.StaticBool(true), } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Computed: true, - PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), @@ -39857,8 +70685,9 @@ func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) schemaAttrs["usage"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhook(recurse), + Optional: true, } return schemaAttrs } @@ -44207,9 +75036,11 @@ func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) m } func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsWebhookWebhook(recurse), + }, + Optional: true, } return schemaAttrs } @@ -44546,19 +75377,6 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) return findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) } -func findWebhookWebhookByUUID(ctx context.Context, uuid *string) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Webhook().Get(ctx, &keyhubwebhook.WebhookRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubwebhook.WebhookRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.WebhookWebhookable](wrapper, "webhook", uuid, err) -} - func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { if uuid == nil { return nil, diag.Diagnostics{} From 3b4c8380a4b3a0b5dcf0a24789812424a12559e3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Sep 2023 10:30:42 +0000 Subject: [PATCH 07/34] Bump goreleaser/goreleaser-action from 4.3.0 to 5.0.0 Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 4.3.0 to 5.0.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/336e29918d653399e599bfca99fadc1d7ffbc9f7...7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1115591..7b3332e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - name: Run GoReleaser - uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0 + uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 with: args: release --clean env: From 59f90afc7e4b1ab03dbcd6f9d63da577e948f1f1 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Thu, 14 Sep 2023 18:15:55 +0200 Subject: [PATCH 08/34] Working group resource --- .../provider-install-verification/main.tf | 6 +- internal/provider/group_resource.go | 2 + internal/provider/impl.go | 6603 +++++++---------- 3 files changed, 2610 insertions(+), 4001 deletions(-) diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index a02d9ee..3248fe1 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -32,11 +32,13 @@ data "keyhub_group" "test" { resource "keyhub_group" "terra" { name = "Terraform" additional_objects = { - admins = { + accounts = { items = [{ - + uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" + rights = "MANAGER" }] } + requeststatus = "MEMBER" } } diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index b743c9c..e5f0f4a 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -71,6 +71,7 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, return } + ctx = context.WithValue(ctx, "keyhub_client", r.client) obj, diags := types.ObjectValueFrom(ctx, groupGroupAttrTypesRSRecurse, data) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { @@ -113,6 +114,7 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp } ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) + ctx = context.WithValue(ctx, "keyhub_client", r.client) tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") groups, err := r.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ diff --git a/internal/provider/impl.go b/internal/provider/impl.go index 100dda5..286853c 100644 --- a/internal/provider/impl.go +++ b/internal/provider/impl.go @@ -559,39 +559,14 @@ var authInternalAccountAttrTypesRS = objectAttrsTypeRSAuthInternalAccount(false) var authInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount(true) type authInternalAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` + UUID types.String `tfsdk:"uuid"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` } var authInternalAccountAttrTypesDS = objectAttrsTypeDSAuthInternalAccount(false) @@ -661,22 +636,6 @@ type authInternalAccountStatusObjectDataDS struct { Status types.String `tfsdk:"status"` } -var authInternalAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuthInternalAccount_additionalObjects(false) -var authInternalAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount_additionalObjects(true) - -type authInternalAccount_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Reason types.String `tfsdk:"reason"` -} - -var authInternalAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuthInternalAccount_additionalObjects(false) -var authInternalAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccount_additionalObjects(true) - -type authInternalAccount_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Reason types.String `tfsdk:"reason"` -} - var authMoveInternalAccountAttrTypesRS = objectAttrsTypeRSAuthMoveInternalAccount(false) var authMoveInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthMoveInternalAccount(true) @@ -937,10 +896,8 @@ var clientClientApplication_additionalObjectsAttrTypesDSRecurse = objectAttrsTyp type clientClientApplication_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile"` Groupclients types.Object `tfsdk:"groupclients"` Groups types.Object `tfsdk:"groups"` - Secret types.Object `tfsdk:"secret"` Tile types.Object `tfsdk:"tile"` VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` } @@ -1585,10 +1542,6 @@ var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) var groupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup(true) type groupAccountGroupDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` EndDate types.String `tfsdk:"end_date"` @@ -1733,13 +1686,7 @@ var groupGroupAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAccount(false) var groupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount(true) type groupGroupAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` AdditionalObjects types.Object `tfsdk:"additional_objects"` DirectoryUUID types.String `tfsdk:"directory_uuid"` DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` @@ -2985,9 +2932,6 @@ var organizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganiza var organizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(true) type organizationAccountOrganizationalUnitDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -3065,13 +3009,7 @@ var organizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSOrganiza var organizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(true) type organizationOrganizationalUnitAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` AdditionalObjects types.Object `tfsdk:"additional_objects"` DirectoryUUID types.String `tfsdk:"directory_uuid"` } @@ -3179,8 +3117,7 @@ var organizationOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTyp var organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(true) type organizationOrganizationalUnit_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` + Audit types.Object `tfsdk:"audit"` } var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false) @@ -3625,13 +3562,7 @@ var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningPro var provisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount(true) type provisioningProvisionedAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Uid types.Int64 `tfsdk:"uid"` } @@ -5008,9 +4939,8 @@ var requestModificationRequest_additionalObjectsAttrTypesDS = objectAttrsTypeDSR var requestModificationRequest_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest_additionalObjects(true) type requestModificationRequest_additionalObjectsDataDS struct { - AcceptParams types.Object `tfsdk:"accept_params"` - Audit types.Object `tfsdk:"audit"` - ResetStatus types.Object `tfsdk:"reset_status"` + Audit types.Object `tfsdk:"audit"` + ResetStatus types.Object `tfsdk:"reset_status"` } var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequest(false) @@ -5046,9 +4976,6 @@ type requestPasswordResetRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` - NewVaultPassword types.String `tfsdk:"new_vault_password"` - UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` } var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) @@ -5874,7 +5801,6 @@ var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAtt type serviceaccountServiceAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Groups types.Object `tfsdk:"groups"` - Secret types.Object `tfsdk:"secret"` } var serviceaccountServiceAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(false) @@ -6198,11 +6124,10 @@ var vaultVaultRecordSecretsAttrTypesDS = objectAttrsTypeDSVaultVaultRecordSecret var vaultVaultRecordSecretsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordSecrets(true) type vaultVaultRecordSecretsDataDS struct { - Comment types.String `tfsdk:"comment"` - File types.String `tfsdk:"file"` - Password types.String `tfsdk:"password"` - Totp types.String `tfsdk:"totp"` - WriteTotp types.Bool `tfsdk:"write_totp"` + Comment types.String `tfsdk:"comment"` + File types.String `tfsdk:"file"` + Password types.String `tfsdk:"password"` + Totp types.String `tfsdk:"totp"` } var vaultVaultRecordShareAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShare(false) @@ -6256,7 +6181,6 @@ var vaultVaultRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaul type vaultVaultRecord_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile"` Parent types.Object `tfsdk:"parent"` Secret types.Object `tfsdk:"secret"` ShareSummary types.Object `tfsdk:"share_summary"` @@ -7011,34 +6935,7 @@ func objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse bool) map[str func objectAttrsTypeRSAuthInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType objectAttrs["activation_code"] = types.StringType objectAttrs["activation_deadline"] = types.StringType objectAttrs["company"] = types.StringType @@ -7113,20 +7010,6 @@ func objectAttrsTypeDSAuthInternalAccountStatusObject(recurse bool) map[string]a return objectAttrs } -func objectAttrsTypeRSAuthInternalAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["reason"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["reason"] = types.StringType - return objectAttrs -} - func objectAttrsTypeRSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(recurse)} @@ -7370,10 +7253,8 @@ func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) ma func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["delete_tile"] = types.BoolType objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} objectAttrs["vault_record_count"] = types.Int64Type return objectAttrs @@ -8018,10 +7899,6 @@ func objectAttrsTypeRSGroupAccountGroup(recurse bool) map[string]attr.Type { if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType - objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["end_date"] = types.StringType objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} @@ -8164,13 +8041,7 @@ func objectAttrsTypeRSGroupGroupAccount(recurse bool) map[string]attr.Type { if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType objectAttrs["directory_uuid"] = types.StringType objectAttrs["disconnected_nested"] = types.BoolType objectAttrs["end_date"] = types.StringType @@ -9334,9 +9205,6 @@ func objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse bool) map[st if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -9414,13 +9282,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse bool) map[st if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType objectAttrs["directory_uuid"] = types.StringType return objectAttrs } @@ -9517,7 +9379,6 @@ func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} return objectAttrs } @@ -9946,13 +9807,7 @@ func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]at if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType objectAttrs["uid"] = types.Int64Type return objectAttrs } @@ -11349,7 +11204,6 @@ func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse)} objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse)} return objectAttrs @@ -11389,9 +11243,6 @@ func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr. objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["new_vault_and_directory_password"] = types.StringType - objectAttrs["new_vault_password"] = types.StringType - objectAttrs["unsynced_password"] = types.BoolType return objectAttrs } @@ -12241,7 +12092,6 @@ func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse boo objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} return objectAttrs } @@ -12541,7 +12391,6 @@ func objectAttrsTypeDSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type objectAttrs["file"] = types.StringType objectAttrs["password"] = types.StringType objectAttrs["totp"] = types.StringType - objectAttrs["write_totp"] = types.BoolType return objectAttrs } @@ -12589,7 +12438,6 @@ func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[strin func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["delete_tile"] = types.BoolType objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} @@ -14366,65 +14214,7 @@ func tkhToTFObjectRSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthIntern } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["uuid"] = withUuidToTF(tkh) obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) obj["company"] = types.StringPointerValue(tkh.GetCompany()) @@ -14625,56 +14415,6 @@ func tkhToTFObjectDSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmode return objVal, diags } -func tkhToTFObjectRSAuthInternalAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthInternalAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = authInternalAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthInternalAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthInternalAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = authInternalAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -15611,7 +15351,6 @@ func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh diags.Append(d...) obj["audit"] = val } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) { val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) diags.Append(d...) @@ -15622,11 +15361,6 @@ func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh diags.Append(d...) obj["groups"] = val } - { - val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } { val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) @@ -17697,29 +17431,7 @@ func tkhToTFObjectRSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccount obj["additional_objects"] = val } } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["uuid"] = withUuidToTF(tkh) obj["end_date"] = stringerToTF(tkh.GetEndDate()) { val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) @@ -18181,31 +17893,7 @@ func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAc obj["additional_objects"] = val } } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["uuid"] = withUuidToTF(tkh) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) obj["end_date"] = stringerToTF(tkh.GetEndDate()) @@ -22681,28 +22369,7 @@ func tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyh obj["additional_objects"] = val } } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["uuid"] = withUuidToTF(tkh) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -22995,31 +22662,7 @@ func tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyh obj["additional_objects"] = val } } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["uuid"] = withUuidToTF(tkh) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) objVal, d := types.ObjectValue(attrs, obj) @@ -23432,11 +23075,6 @@ func tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(recurse boo diags.Append(d...) obj["audit"] = val } - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) - diags.Append(d...) - obj["create_as_parent_of"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -24817,31 +24455,7 @@ func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel obj["additional_objects"] = val } } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["uuid"] = withUuidToTF(tkh) obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) @@ -29312,11 +28926,6 @@ func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, t } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) - diags.Append(d...) - obj["accept_params"] = val - } { val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) @@ -29444,9 +29053,6 @@ func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Re obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) - obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) - obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -32310,11 +31916,6 @@ func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, diags.Append(d...) obj["groups"] = val } - { - val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -33428,7 +33029,6 @@ func tkhToTFObjectDSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultV obj["file"] = types.StringPointerValue(tkh.GetFile()) obj["password"] = types.StringPointerValue(tkh.GetPassword()) obj["totp"] = types.StringPointerValue(tkh.GetTotp()) - obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -33614,7 +33214,6 @@ func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm diags.Append(d...) obj["audit"] = val } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) { val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetParent()) diags.Append(d...) @@ -34530,9 +34129,8 @@ func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditInfo() { val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) @@ -34553,9 +34151,8 @@ func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditInfo() { val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) @@ -34576,9 +34173,8 @@ func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewErrorReport() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewErrorReport() tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) @@ -34611,9 +34207,8 @@ func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewErrorReport() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewErrorReport() tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) @@ -34646,7 +34241,6 @@ func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } @@ -34656,7 +34250,6 @@ func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } @@ -34666,9 +34259,8 @@ func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal ty if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGeneratedSecret() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGeneratedSecret() tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) @@ -34680,9 +34272,8 @@ func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal ty if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGeneratedSecret() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGeneratedSecret() tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) @@ -34694,9 +34285,8 @@ func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLinkable() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLinkable() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -34723,9 +34313,8 @@ func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLinkable() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLinkable() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -34752,7 +34341,6 @@ func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNonLinkable() return tkh, diags } @@ -34762,7 +34350,6 @@ func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNonLinkable() return tkh, diags } @@ -34772,9 +34359,8 @@ func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRestLink() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRestLink() tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) @@ -34787,9 +34373,8 @@ func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRestLink() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRestLink() tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) @@ -34802,9 +34387,8 @@ func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewSegmentCount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSegmentCount() tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -34815,9 +34399,8 @@ func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewSegmentCount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSegmentCount() tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -34828,16 +34411,8 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditAuditRecord() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewAuditAuditRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -34857,7 +34432,7 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetAuditAuditRecordType(val) } @@ -34883,10 +34458,17 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) diags.Append(d...) tkh.SetSecurityLevel(val) } + if recurse { + { + val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -34895,16 +34477,8 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditAuditRecord() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewAuditAuditRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -34924,7 +34498,7 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetAuditAuditRecordType(val) } @@ -34950,10 +34524,17 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) diags.Append(d...) tkh.SetSecurityLevel(val) } + if recurse { + { + val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -34962,9 +34543,8 @@ func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -34982,9 +34562,8 @@ func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35002,9 +34581,8 @@ func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -35018,9 +34596,8 @@ func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -35034,16 +34611,8 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewAuthAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35071,7 +34640,7 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -35095,14 +34664,14 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetDirectoryRotatingPassword(val) } { val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryType(val) @@ -35116,7 +34685,7 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetLastModifiedAt(val) } { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) tkh.SetLicenseRole(val) } @@ -35125,12 +34694,19 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorStatus(val) } tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -35139,16 +34715,8 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewAuthAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35176,7 +34744,7 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -35200,14 +34768,14 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetDirectoryRotatingPassword(val) } { val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryType(val) @@ -35221,7 +34789,7 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetLastModifiedAt(val) } { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) tkh.SetLicenseRole(val) } @@ -35230,12 +34798,19 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorStatus(val) } tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -35244,12 +34819,11 @@ func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountBulkUpdate() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountBulkUpdate() { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return val.(keyhubmodel.AuthAccountBulkUpdateAction) + return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) }) diags.Append(d...) tkh.SetAction(val) @@ -35270,12 +34844,11 @@ func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountBulkUpdate() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountBulkUpdate() { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return val.(keyhubmodel.AuthAccountBulkUpdateAction) + return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) }) diags.Append(d...) tkh.SetAction(val) @@ -35296,9 +34869,8 @@ func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountChangeLocale() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountChangeLocale() tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -35308,9 +34880,8 @@ func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountChangeLocale() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountChangeLocale() tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -35320,9 +34891,8 @@ func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35340,9 +34910,8 @@ func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35360,9 +34929,8 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35390,7 +34958,7 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -35402,9 +34970,8 @@ func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35432,7 +34999,7 @@ func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -35444,9 +35011,8 @@ func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags @@ -35457,9 +35023,8 @@ func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags @@ -35470,9 +35035,8 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountSettings() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountSettings() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -35481,7 +35045,7 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryType(val) @@ -35491,21 +35055,21 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return val.(keyhubmodel.AuthPasswordMode) }) + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) diags.Append(d...) tkh.SetPasswordMode(val) } tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorAuthentication(val) } tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return val.(keyhubmodel.VaultAccountVaultStatus) }) + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) diags.Append(d...) tkh.SetVaultStatus(val) } @@ -35517,9 +35081,8 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountSettings() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountSettings() { val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["default_organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -35528,7 +35091,7 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryType(val) @@ -35538,21 +35101,21 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return val.(keyhubmodel.AuthPasswordMode) }) + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) diags.Append(d...) tkh.SetPasswordMode(val) } tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorAuthentication(val) } tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return val.(keyhubmodel.VaultAccountVaultStatus) }) + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) diags.Append(d...) tkh.SetVaultStatus(val) } @@ -35564,14 +35127,13 @@ func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) tkh.SetLicenseRole(val) } @@ -35585,14 +35147,13 @@ func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) tkh.SetLicenseRole(val) } @@ -35606,9 +35167,8 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccount_additionalObjects() tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -35619,6 +35179,9 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) @@ -35648,9 +35211,8 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccount_additionalObjects() tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -35690,9 +35252,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountsAuditStats() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountsAuditStats() { val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) @@ -35716,9 +35277,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthAccountsAuditStats() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountsAuditStats() { val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) @@ -35742,7 +35302,6 @@ func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, r if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() return tkh, diags } @@ -35752,7 +35311,6 @@ func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, r if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() return tkh, diags } @@ -35762,7 +35320,6 @@ func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } @@ -35772,7 +35329,6 @@ func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } @@ -35782,7 +35338,6 @@ func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, re if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() return tkh, diags } @@ -35792,7 +35347,6 @@ func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, re if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() return tkh, diags } @@ -35802,103 +35356,17 @@ func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVa if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthInternalAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) - } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + tkh := keyhubmodel.NewAuthInternalAccount() { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) + val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetTwoFactorStatus(val) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccount = *(val.(*keyhubmodel.AuthAccount)) + tkh.SetTypeEscaped(dtype) + } } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) @@ -35910,7 +35378,7 @@ func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return val.(keyhubmodel.AuthInternalAccountStatus) + return *val.(*keyhubmodel.AuthInternalAccountStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -35924,16 +35392,8 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthInternalAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewAuthInternalAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -35961,7 +35421,7 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -35985,14 +35445,14 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetDirectoryRotatingPassword(val) } { val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryType(val) @@ -36006,7 +35466,7 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetLastModifiedAt(val) } { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return val.(keyhubmodel.AuthAccountLicenseRole) }) + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) diags.Append(d...) tkh.SetLicenseRole(val) } @@ -36015,7 +35475,7 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorStatus(val) @@ -36032,12 +35492,19 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return val.(keyhubmodel.AuthInternalAccountStatus) + return *val.(*keyhubmodel.AuthInternalAccountStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -36046,9 +35513,8 @@ func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36066,9 +35532,8 @@ func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36086,12 +35551,11 @@ func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return val.(keyhubmodel.AuthInternalAccountStatus) + return *val.(*keyhubmodel.AuthInternalAccountStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -36104,12 +35568,11 @@ func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return val.(keyhubmodel.AuthInternalAccountStatus) + return *val.(*keyhubmodel.AuthInternalAccountStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -36117,48 +35580,13 @@ func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse return tkh, diags } -func tfObjectToTKHRSAuthInternalAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewAuthInternalAccount_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewAuthInternalAccount_additionalObjects() - objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthMoveInternalAccount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthMoveInternalAccount() { val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36172,9 +35600,8 @@ func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthMoveInternalAccount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthMoveInternalAccount() { val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36188,9 +35615,8 @@ func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthPermission() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthPermission() tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -36201,7 +35627,7 @@ func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal typ } { val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return val.(keyhubmodel.AuthPermittedOperation) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) diags.Append(d...) return tkh }) @@ -36217,9 +35643,8 @@ func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthPermission() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthPermission() tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -36230,7 +35655,7 @@ func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal typ } { val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return val.(keyhubmodel.AuthPermittedOperation) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) diags.Append(d...) return tkh }) @@ -36246,9 +35671,8 @@ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthStoredAccountAttribute() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -36259,9 +35683,8 @@ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthStoredAccountAttribute() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -36272,9 +35695,8 @@ func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthStoredAccountAttributes() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttributes() { val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36292,9 +35714,8 @@ func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewAuthStoredAccountAttributes() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttributes() { val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { tkh, d := tfObjectToTKHDSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36312,16 +35733,8 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificate() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewCertificateCertificate() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36343,7 +35756,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return val.(keyhubmodel.CertificateCertificateType) + return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) tkh.SetCertificateCertificatePrimerType(val) @@ -36372,6 +35785,13 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetKeyData(val) } + if recurse { + { + val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -36380,16 +35800,8 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificate() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewCertificateCertificate() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36411,7 +35823,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return val.(keyhubmodel.CertificateCertificateType) + return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) tkh.SetCertificateCertificatePrimerType(val) @@ -36440,6 +35852,13 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetKeyData(val) } + if recurse { + { + val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -36448,9 +35867,8 @@ func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36468,9 +35886,8 @@ func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36488,9 +35905,8 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificatePrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificatePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36512,7 +35928,7 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return val.(keyhubmodel.CertificateCertificateType) + return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) tkh.SetCertificateCertificatePrimerType(val) @@ -36542,9 +35958,8 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificatePrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificatePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36566,7 +35981,7 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return val.(keyhubmodel.CertificateCertificateType) + return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) tkh.SetCertificateCertificatePrimerType(val) @@ -36596,9 +36011,8 @@ func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36612,9 +36026,8 @@ func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36628,16 +36041,8 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplication() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36658,7 +36063,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -36689,6 +36094,13 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -36697,16 +36109,8 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplication() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36727,7 +36131,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -36758,6 +36162,13 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -36766,9 +36177,8 @@ func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36786,9 +36196,8 @@ func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { tkh, d := tfObjectToTKHDSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36806,9 +36215,8 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplicationPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36829,7 +36237,7 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -36853,9 +36261,8 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplicationPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -36876,7 +36283,7 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -36900,9 +36307,8 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36913,6 +36319,9 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroupclients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) @@ -36938,15 +36347,13 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36957,11 +36364,6 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex diags.Append(d...) tkh.SetGroups(val) } - { - val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } { val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) @@ -36976,16 +36378,8 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientLdapClient() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientLdapClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37006,7 +36400,7 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -37050,6 +36444,13 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t tkh.SetSharedSecret(val) } tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37058,16 +36459,8 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientLdapClient() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientLdapClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37088,7 +36481,7 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -37132,6 +36525,13 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t tkh.SetSharedSecret(val) } tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37140,16 +36540,8 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2Client() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientOAuth2Client() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37170,7 +36562,7 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -37229,6 +36621,13 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal } tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37237,16 +36636,8 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2Client() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientOAuth2Client() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37267,7 +36658,7 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -37326,6 +36717,13 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal } tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37334,16 +36732,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermission() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37374,11 +36764,18 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo } { val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) tkh.SetValue(val) } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37387,16 +36784,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermission() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37427,11 +36816,18 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo } { val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) tkh.SetValue(val) } + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37440,9 +36836,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37460,9 +36855,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37480,16 +36874,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37520,7 +36906,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, } { val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) tkh.SetValue(val) @@ -37530,6 +36916,13 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, diags.Append(d...) tkh.SetClient(val) } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37538,16 +36931,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37578,7 +36963,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, } { val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) tkh.SetValue(val) @@ -37588,6 +36973,13 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, diags.Append(d...) tkh.SetClient(val) } + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37596,9 +36988,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37616,9 +37007,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { tkh, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37636,9 +37026,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -37652,9 +37041,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.C if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -37668,7 +37056,6 @@ func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } @@ -37678,7 +37065,6 @@ func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } @@ -37688,16 +37074,8 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientSaml2Client() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientSaml2Client() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37718,7 +37096,7 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -37757,10 +37135,17 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return val.(keyhubmodel.ClientSubjectFormat) }) + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) diags.Append(d...) tkh.SetSubjectFormat(val) } + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37769,16 +37154,8 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewClientSaml2Client() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewClientSaml2Client() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37799,7 +37176,7 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal } { val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return val.(keyhubmodel.ClientClientApplicationType) + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) tkh.SetClientClientApplicationPrimerType(val) @@ -37838,10 +37215,17 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return val.(keyhubmodel.ClientSubjectFormat) }) + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) diags.Append(d...) tkh.SetSubjectFormat(val) } + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37850,7 +37234,6 @@ func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } @@ -37860,7 +37243,6 @@ func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } @@ -37870,16 +37252,8 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryAccountDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37902,7 +37276,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -37923,12 +37297,19 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -37937,16 +37318,8 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryAccountDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -37969,7 +37342,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -37990,12 +37363,19 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38004,9 +37384,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38024,9 +37403,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { tkh, d := tfObjectToTKHDSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38044,9 +37422,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38069,7 +37446,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38084,9 +37461,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38109,7 +37485,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38124,14 +37500,13 @@ func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { - return val.(keyhubmodel.DirectoryAccountDirectoryStatus) + return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -38144,14 +37519,13 @@ func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { - return val.(keyhubmodel.DirectoryAccountDirectoryStatus) + return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -38164,9 +37538,8 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38187,7 +37560,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs } { val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectorySummaryType(val) @@ -38209,9 +37582,8 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38232,7 +37604,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs } { val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectorySummaryType(val) @@ -38254,9 +37626,8 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38274,9 +37645,8 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { tkh, d := tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38294,9 +37664,8 @@ func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -38320,9 +37689,8 @@ func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -38346,16 +37714,8 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryInternalDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryInternalDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38378,7 +37738,7 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38399,7 +37759,7 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) @@ -38410,6 +37770,13 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool diags.Append(d...) tkh.SetOwner(val) } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38418,16 +37785,8 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryInternalDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryInternalDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38450,7 +37809,7 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38471,7 +37830,7 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) @@ -38482,6 +37841,13 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool diags.Append(d...) tkh.SetOwner(val) } + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38490,16 +37856,8 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryLDAPDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryLDAPDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38522,7 +37880,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38543,7 +37901,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) @@ -38557,7 +37915,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetClientCertificate(val) } { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return val.(keyhubmodel.DirectoryLDAPDialect) }) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) tkh.SetDialect(val) } @@ -38570,7 +37928,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return val.(keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) }) diags.Append(d...) tkh.SetPasswordRecovery(val) @@ -38580,7 +37938,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -38589,6 +37947,13 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetTrustedCertificate(val) } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38597,16 +37962,8 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryLDAPDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryLDAPDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38629,7 +37986,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38650,7 +38007,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) @@ -38664,7 +38021,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetClientCertificate(val) } { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return val.(keyhubmodel.DirectoryLDAPDialect) }) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) tkh.SetDialect(val) } @@ -38677,7 +38034,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return val.(keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) }) diags.Append(d...) tkh.SetPasswordRecovery(val) @@ -38687,7 +38044,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -38696,6 +38053,13 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetTrustedCertificate(val) } + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38704,16 +38068,8 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38736,7 +38092,7 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38757,12 +38113,19 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38771,16 +38134,8 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38803,7 +38158,7 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38824,12 +38179,19 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38838,16 +38200,8 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryOIDCDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryOIDCDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38870,7 +38224,7 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38891,7 +38245,7 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) @@ -38908,10 +38262,17 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return val.(keyhubmodel.DirectoryOIDCVendor) }) + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) diags.Append(d...) tkh.SetVendorEscaped(val) } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -38920,16 +38281,8 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewDirectoryOIDCDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewDirectoryOIDCDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -38952,7 +38305,7 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return val.(keyhubmodel.DirectoryAccountDirectoryType) + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) tkh.SetDirectoryAccountDirectoryPrimerType(val) @@ -38973,7 +38326,7 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return val.(keyhubmodel.DirectoryDirectoryRotatingPassword) + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) tkh.SetRotatingPassword(val) @@ -38990,10 +38343,17 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return val.(keyhubmodel.DirectoryOIDCVendor) }) + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) diags.Append(d...) tkh.SetVendorEscaped(val) } + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39002,37 +38362,17 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAccountGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + tkh := keyhubmodel.NewGroupAccountGroup() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetPermissions(val) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) + tkh.SetTypeEscaped(dtype) + } } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -39054,11 +38394,18 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal tkh.SetProvisioningEndTime(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39067,16 +38414,8 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAccountGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39119,11 +38458,18 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal tkh.SetProvisioningEndTime(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39132,9 +38478,8 @@ func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39152,9 +38497,8 @@ func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { tkh, d := tfObjectToTKHDSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39172,9 +38516,8 @@ func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -39193,9 +38536,8 @@ func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -39214,9 +38556,8 @@ func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39235,9 +38576,8 @@ func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39256,16 +38596,8 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39318,7 +38650,7 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O { val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return val.(keyhubmodel.RequestAuthorizingGroupType) + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) return tkh @@ -39333,7 +38665,9 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O } tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { return val.(keyhubmodel.GroupGroupExtendedAccess) }) + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { + return *val.(*keyhubmodel.GroupGroupExtendedAccess) + }) diags.Append(d...) tkh.SetExtendedAccess(val) } @@ -39354,12 +38688,19 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { - return val.(keyhubmodel.GroupVaultRecoveryAvailability) + return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) }) diags.Append(d...) tkh.SetVaultRecovery(val) } tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39368,16 +38709,8 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39430,7 +38763,7 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O { val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return val.(keyhubmodel.RequestAuthorizingGroupType) + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) return tkh @@ -39445,7 +38778,9 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O } tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { return val.(keyhubmodel.GroupGroupExtendedAccess) }) + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { + return *val.(*keyhubmodel.GroupGroupExtendedAccess) + }) diags.Append(d...) tkh.SetExtendedAccess(val) } @@ -39466,12 +38801,19 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { - return val.(keyhubmodel.GroupVaultRecoveryAvailability) + return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) }) diags.Append(d...) tkh.SetVaultRecovery(val) } tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39480,46 +38822,16 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh := keyhubmodel.NewGroupGroupAccount() { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetValidity(val) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } } { val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -39544,18 +38856,25 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal tkh.SetProvisioningEndTime(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } { val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorStatus(val) } tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39564,16 +38883,8 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39601,7 +38912,7 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -39628,18 +38939,25 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal tkh.SetProvisioningEndTime(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } { val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return val.(keyhubmodel.AuthTwoFactorAuthenticationStatus) + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) }) diags.Append(d...) tkh.SetTwoFactorStatus(val) } tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39648,9 +38966,8 @@ func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39668,9 +38985,8 @@ func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { tkh, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39688,9 +39004,8 @@ func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccountNesting() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountNesting() tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -39700,9 +39015,8 @@ func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccountNesting() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountNesting() tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -39712,9 +39026,8 @@ func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccountStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountStatus() { val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -39729,9 +39042,8 @@ func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccountStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountStatus() { val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -39746,9 +39058,8 @@ func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -39762,9 +39073,8 @@ func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -39778,9 +39088,8 @@ func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAdminMail() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAdminMail() tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -39790,9 +39099,8 @@ func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAdminMail() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAdminMail() tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -39802,16 +39110,8 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAudit() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39855,7 +39155,7 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty } tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return val.(keyhubmodel.GroupGroupAuditStatus) }) + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) diags.Append(d...) tkh.SetStatus(val) } @@ -39865,6 +39165,13 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty tkh.SetSubmittedAt(val) } tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39873,16 +39180,8 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAudit() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39926,7 +39225,7 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty } tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return val.(keyhubmodel.GroupGroupAuditStatus) }) + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) diags.Append(d...) tkh.SetStatus(val) } @@ -39936,6 +39235,13 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty tkh.SetSubmittedAt(val) } tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -39944,9 +39250,8 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditAccount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -39968,7 +39273,7 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return val.(keyhubmodel.AuditAuditAccountAction) }) + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) diags.Append(d...) tkh.SetAction(val) } @@ -39992,7 +39297,7 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob } tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } @@ -40005,9 +39310,8 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditAccount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40029,7 +39333,7 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return val.(keyhubmodel.AuditAuditAccountAction) }) + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) diags.Append(d...) tkh.SetAction(val) } @@ -40053,7 +39357,7 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob } tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } @@ -40066,9 +39370,8 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditConfig() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40089,7 +39392,7 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj } { val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) diags.Append(d...) return tkh }) @@ -40104,9 +39407,8 @@ func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditConfig() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40127,7 +39429,7 @@ func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj } { val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) diags.Append(d...) return tkh }) @@ -40142,9 +39444,8 @@ func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40162,9 +39463,8 @@ func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { tkh, d := tfObjectToTKHDSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40182,9 +39482,8 @@ func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40198,9 +39497,8 @@ func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40214,9 +39512,8 @@ func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditingInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditingInfo() { val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -40241,9 +39538,8 @@ func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupAuditingInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditingInfo() { val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -40268,16 +39564,8 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassification() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupClassification() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40309,7 +39597,7 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) diags.Append(d...) return tkh }) @@ -40318,6 +39606,13 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, } tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -40326,16 +39621,8 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassification() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupClassification() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40367,7 +39654,7 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return val.(keyhubmodel.Month) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) diags.Append(d...) return tkh }) @@ -40376,6 +39663,13 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, } tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -40384,9 +39678,8 @@ func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationInfo() tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } @@ -40396,9 +39689,8 @@ func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationInfo() tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } @@ -40408,9 +39700,8 @@ func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40428,9 +39719,8 @@ func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40448,9 +39738,8 @@ func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40479,9 +39768,8 @@ func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40510,9 +39798,8 @@ func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() { val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -40526,9 +39813,8 @@ func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() { val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40542,9 +39828,8 @@ func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40563,9 +39848,8 @@ func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40584,16 +39868,8 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClient() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40633,6 +39909,13 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -40641,16 +39924,8 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClient() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40690,6 +39965,13 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -40698,9 +39980,8 @@ func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40718,9 +39999,8 @@ func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { tkh, d := tfObjectToTKHDSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40738,9 +40018,8 @@ func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40754,9 +40033,8 @@ func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40770,16 +40048,8 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupFolder() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupFolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40799,6 +40069,13 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -40807,16 +40084,8 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupFolder() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupGroupFolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40836,6 +40105,13 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -40844,9 +40120,8 @@ func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40864,9 +40139,8 @@ func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40884,9 +40158,8 @@ func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40900,9 +40173,8 @@ func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -40916,9 +40188,8 @@ func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupInfo() tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) @@ -40933,9 +40204,8 @@ func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupInfo() tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) @@ -40950,9 +40220,8 @@ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40970,9 +40239,8 @@ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -40990,9 +40258,8 @@ func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41022,9 +40289,8 @@ func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41054,9 +40320,8 @@ func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -41074,9 +40339,8 @@ func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41094,9 +40358,8 @@ func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41123,9 +40386,8 @@ func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41152,18 +40414,23 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAccounts(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdministeredClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) @@ -41174,6 +40441,9 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdmins(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -41184,16 +40454,25 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo val, d := tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAuthorizedGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "group.AuthorizedGroupsWrapper"}) + } } { val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClientPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) @@ -41214,6 +40493,9 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetHelpdesk(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) @@ -41234,21 +40516,33 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetNestedGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetOwnedClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetOwnedDirectories(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetOwnedGroupsOnSystem(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "provisioning.OwnedGroupOnSystemsWrapper"}) + } } { val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) @@ -41264,9 +40558,12 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetRecentAudits(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return val.(keyhubmodel.GroupGroupRequestStatus) }) + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) diags.Append(d...) tkh.SetRequeststatus(val) } @@ -41279,6 +40576,9 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetSystems(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) @@ -41298,9 +40598,8 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) diags.Append(d...) @@ -41412,7 +40711,7 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetRecentAudits(val) } { - val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return val.(keyhubmodel.GroupGroupRequestStatus) }) + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) diags.Append(d...) tkh.SetRequeststatus(val) } @@ -41444,9 +40743,8 @@ func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupsAuditStats() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupsAuditStats() tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { @@ -41470,9 +40768,8 @@ func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupGroupsAuditStats() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupsAuditStats() tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { @@ -41496,16 +40793,8 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupProvisioningGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41535,6 +40824,13 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetGroupOnSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -41543,16 +40839,8 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupProvisioningGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41582,6 +40870,13 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetGroupOnSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -41590,9 +40885,8 @@ func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41610,9 +40904,8 @@ func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { tkh, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41630,9 +40923,8 @@ func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -41646,9 +40938,8 @@ func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -41662,9 +40953,8 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41711,9 +41001,8 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41760,9 +41049,8 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41780,9 +41068,8 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41800,16 +41087,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41841,7 +41120,7 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -41858,6 +41137,13 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -41866,16 +41152,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41907,7 +41185,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -41924,6 +41202,13 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -41932,9 +41217,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41952,9 +41236,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -41972,9 +41255,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42001,9 +41283,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42030,9 +41311,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -42046,9 +41326,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -42062,16 +41341,8 @@ func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42103,7 +41374,7 @@ func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -42122,6 +41393,13 @@ func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo } tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -42130,16 +41408,8 @@ func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42171,7 +41441,7 @@ func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -42190,6 +41460,13 @@ func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo } tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -42198,16 +41475,8 @@ func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42239,7 +41508,7 @@ func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, re tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -42257,6 +41526,13 @@ func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, re tkh.SetVaultRecord(val) } tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -42265,16 +41541,8 @@ func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42306,7 +41574,7 @@ func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, re tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -42324,6 +41592,13 @@ func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, re tkh.SetVaultRecord(val) } tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -42332,16 +41607,8 @@ func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42373,7 +41640,7 @@ func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -42390,6 +41657,13 @@ func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur diags.Append(d...) tkh.SetVaultRecord(val) } + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -42398,16 +41672,8 @@ func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42439,7 +41705,7 @@ func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return val.(keyhubmodel.LaunchpadLaunchpadTileType) + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) }) diags.Append(d...) tkh.SetLaunchpadLaunchpadTileType(val) @@ -42456,6 +41722,13 @@ func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur diags.Append(d...) tkh.SetVaultRecord(val) } + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -42464,12 +41737,11 @@ func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() { val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return val.(keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) }) diags.Append(d...) tkh.SetCurrentLicenseStatus(val) @@ -42497,7 +41769,7 @@ func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, } { val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return val.(keyhubmodel.LicenseLicenseFeature) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) diags.Append(d...) return tkh }) @@ -42529,12 +41801,11 @@ func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() { val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return val.(keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) }) diags.Append(d...) tkh.SetCurrentLicenseStatus(val) @@ -42562,7 +41833,7 @@ func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, } { val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return val.(keyhubmodel.LicenseLicenseFeature) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) diags.Append(d...) return tkh }) @@ -42594,16 +41865,15 @@ func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewMarkItemMarker() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarker() { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return val.(keyhubmodel.MarkItemMarkerLevel) }) + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) tkh.SetLevel(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return val.(keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) tkh.SetMarkItemMarkerType(val) } @@ -42620,16 +41890,15 @@ func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewMarkItemMarker() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarker() { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return val.(keyhubmodel.MarkItemMarkerLevel) }) + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) tkh.SetLevel(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return val.(keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) tkh.SetMarkItemMarkerType(val) } @@ -42646,7 +41915,6 @@ func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } @@ -42656,7 +41924,6 @@ func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } @@ -42666,9 +41933,8 @@ func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal ty if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewMarkItemMarkers() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarkers() { val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42686,9 +41952,8 @@ func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal ty if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewMarkItemMarkers() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarkers() { val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) @@ -42706,9 +41971,8 @@ func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() { val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -42736,7 +42000,7 @@ func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Conte } { val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return val.(keyhubmodel.NotificationCertificateUsage) + return *val.(*keyhubmodel.NotificationCertificateUsage) }) diags.Append(d...) tkh.SetUsage(val) @@ -42754,9 +42018,8 @@ func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() { val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -42784,7 +42047,7 @@ func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Conte } { val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return val.(keyhubmodel.NotificationCertificateUsage) + return *val.(*keyhubmodel.NotificationCertificateUsage) }) diags.Append(d...) tkh.SetUsage(val) @@ -42802,9 +42065,8 @@ func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() { val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) diags.Append(d...) @@ -42817,7 +42079,7 @@ func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Conte } { val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return val.(keyhubmodel.AuditAuditRequiredSourceType) + return *val.(*keyhubmodel.AuditAuditRequiredSourceType) }) diags.Append(d...) tkh.SetNotificationGroupAuditRequiredNotificationType(val) @@ -42830,9 +42092,8 @@ func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() { val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) diags.Append(d...) @@ -42845,7 +42106,7 @@ func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Conte } { val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return val.(keyhubmodel.AuditAuditRequiredSourceType) + return *val.(*keyhubmodel.AuditAuditRequiredSourceType) }) diags.Append(d...) tkh.SetNotificationGroupAuditRequiredNotificationType(val) @@ -42858,9 +42119,8 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() { val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) @@ -42873,7 +42133,7 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Contex } { val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return val.(keyhubmodel.GroupGroupEditRequiredReason) + return *val.(*keyhubmodel.GroupGroupEditRequiredReason) }) diags.Append(d...) tkh.SetReason(val) @@ -42886,9 +42146,8 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() { val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) @@ -42901,7 +42160,7 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Contex } { val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return val.(keyhubmodel.GroupGroupEditRequiredReason) + return *val.(*keyhubmodel.GroupGroupEditRequiredReason) }) diags.Append(d...) tkh.SetReason(val) @@ -42914,7 +42173,6 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx con if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() return tkh, diags } @@ -42924,7 +42182,6 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx con if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() return tkh, diags } @@ -42934,7 +42191,6 @@ func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx contex if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() return tkh, diags } @@ -42944,7 +42200,6 @@ func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx contex if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() return tkh, diags } @@ -42954,9 +42209,8 @@ func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) @@ -42971,9 +42225,8 @@ func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) @@ -42988,9 +42241,8 @@ func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationModificationRequestNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationModificationRequestNotification() { val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() @@ -43018,9 +42270,8 @@ func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationModificationRequestNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationModificationRequestNotification() { val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() @@ -43048,7 +42299,6 @@ func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationNotification() return tkh, diags } @@ -43058,7 +42308,6 @@ func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationNotification() return tkh, diags } @@ -43068,9 +42317,8 @@ func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationNotifications() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationNotifications() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43088,9 +42336,8 @@ func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationNotifications() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationNotifications() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43108,9 +42355,8 @@ func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) @@ -43125,9 +42371,8 @@ func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) @@ -43142,9 +42387,8 @@ func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() { val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -43162,9 +42406,8 @@ func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() { val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43182,9 +42425,8 @@ func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -43202,9 +42444,8 @@ func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43222,9 +42463,8 @@ func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() { val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -43238,9 +42478,8 @@ func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() { val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -43254,9 +42493,8 @@ func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() { val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43270,9 +42508,8 @@ func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() { val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43286,9 +42523,17 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) + tkh.SetTypeEscaped(dtype) + } + } if recurse { { val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -43296,26 +42541,6 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r tkh.SetAdditionalObjects(val) } } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -43324,16 +42549,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43354,6 +42571,13 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r } tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -43362,9 +42586,8 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43382,9 +42605,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43402,9 +42624,8 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43418,9 +42639,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43434,16 +42654,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43476,6 +42688,13 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse diags.Append(d...) tkh.SetParent(val) } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -43484,16 +42703,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43526,6 +42737,13 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse diags.Append(d...) tkh.SetParent(val) } + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -43534,52 +42752,29 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetValidity(val) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } } { val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetDirectory(val) } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -43588,16 +42783,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43625,7 +42812,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } @@ -43634,6 +42821,13 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r diags.Append(d...) tkh.SetDirectory(val) } + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -43642,9 +42836,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43662,9 +42855,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43682,9 +42874,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43698,9 +42889,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43714,9 +42904,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43734,9 +42923,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43754,9 +42942,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43785,9 +42972,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43816,9 +43002,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -43836,9 +43021,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43856,9 +43040,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -43868,6 +43051,9 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetCreateAsParentOf(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } return tkh, diags } @@ -43877,19 +43063,13 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCreateAsParentOf(val) - } return tkh, diags } @@ -43898,16 +43078,8 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -43935,7 +43107,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -43993,7 +43165,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -44003,6 +43175,13 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetTrustedCertificate(val) } tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -44011,16 +43190,8 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44048,7 +43219,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -44106,7 +43277,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -44116,6 +43287,13 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetTrustedCertificate(val) } tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -44124,7 +43302,6 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } @@ -44134,7 +43311,6 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } @@ -44144,13 +43320,12 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return val.(keyhubmodel.ProvisioningAccountProvisioningResult) + return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) }) diags.Append(d...) tkh.SetResult(val) @@ -44168,13 +43343,12 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return val.(keyhubmodel.ProvisioningAccountProvisioningResult) + return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) }) diags.Append(d...) tkh.SetResult(val) @@ -44192,9 +43366,8 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() { val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44212,9 +43385,8 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() { val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44232,15 +43404,14 @@ func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return val.(keyhubmodel.ProvisioningCircuitBreakerState) + return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) }) diags.Append(d...) tkh.SetState(val) @@ -44253,15 +43424,14 @@ func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return val.(keyhubmodel.ProvisioningCircuitBreakerState) + return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) }) diags.Append(d...) tkh.SetState(val) @@ -44274,16 +43444,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystem() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44306,7 +43468,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetProvisioningGroupOnSystemPrimerType(val) @@ -44322,6 +43484,13 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -44330,16 +43499,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystem() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44362,7 +43523,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetProvisioningGroupOnSystemPrimerType(val) @@ -44378,6 +43539,13 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -44386,9 +43554,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44406,9 +43573,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44426,9 +43592,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44451,7 +43616,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetProvisioningGroupOnSystemPrimerType(val) @@ -44465,9 +43630,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44490,7 +43654,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetProvisioningGroupOnSystemPrimerType(val) @@ -44504,13 +43668,12 @@ func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) return tkh @@ -44526,13 +43689,12 @@ func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) return tkh @@ -44548,9 +43710,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -44560,11 +43721,17 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetProvgroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetServiceAccounts(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } return tkh, diags } @@ -44574,9 +43741,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -44600,9 +43766,8 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() { val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -44642,9 +43807,8 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() { val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -44684,9 +43848,8 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -44697,9 +43860,8 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -44710,9 +43872,8 @@ func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44731,9 +43892,8 @@ func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44752,16 +43912,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44783,6 +43935,13 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -44791,16 +43950,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44822,6 +43973,13 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -44830,9 +43988,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44850,9 +44007,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44870,9 +44026,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -44882,6 +44037,9 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetSystems(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } return tkh, diags } @@ -44891,9 +44049,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -44912,16 +44069,8 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAD() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAD() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -44949,7 +44098,7 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45007,7 +44156,7 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -45019,11 +44168,18 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return val.(keyhubmodel.ProvisioningADSamAccountNameScheme) + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) }) diags.Append(d...) tkh.SetSamAccountNameScheme(val) } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45032,16 +44188,8 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAD() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAD() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45069,7 +44217,7 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45127,7 +44275,7 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -45139,11 +44287,18 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return val.(keyhubmodel.ProvisioningADSamAccountNameScheme) + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) }) diags.Append(d...) tkh.SetSamAccountNameScheme(val) } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45152,9 +44307,18 @@ func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAccount() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -45162,38 +44326,6 @@ func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse tkh.SetAdditionalObjects(val) } } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } @@ -45202,16 +44334,8 @@ func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45239,11 +44363,18 @@ func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return val.(keyhubmodel.AuthAccountValidity) }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) tkh.SetValidity(val) } tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45252,9 +44383,8 @@ func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45272,9 +44402,8 @@ func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45292,9 +44421,8 @@ func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -45308,9 +44436,8 @@ func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -45324,16 +44451,8 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45361,7 +44480,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45399,6 +44518,13 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex tkh.SetDirectory(val) } tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45407,16 +44533,8 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45444,7 +44562,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45482,6 +44600,13 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex tkh.SetDirectory(val) } tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45490,16 +44615,8 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45527,7 +44644,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45567,6 +44684,13 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co tkh.SetDirectory(val) } tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45575,16 +44699,8 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45612,7 +44728,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45652,6 +44768,13 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co tkh.SetDirectory(val) } tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45660,16 +44783,8 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45697,7 +44812,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45733,6 +44848,13 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45741,16 +44863,8 @@ func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45778,7 +44892,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recu } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45814,6 +44928,13 @@ func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recu tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45822,16 +44943,8 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45859,7 +44972,7 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45896,6 +45009,13 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetClient(val) } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45904,16 +45024,8 @@ func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -45941,7 +45053,7 @@ func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, rec } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -45978,6 +45090,13 @@ func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetClient(val) } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -45986,16 +45105,8 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46023,7 +45134,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46081,7 +45192,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -46094,7 +45205,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return val.(keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) }) diags.Append(d...) tkh.SetHashingScheme(val) @@ -46104,6 +45215,13 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetNumbering(val) } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46112,16 +45230,8 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46149,7 +45259,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46207,7 +45317,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -46220,7 +45330,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return val.(keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) }) diags.Append(d...) tkh.SetHashingScheme(val) @@ -46230,6 +45340,13 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetNumbering(val) } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46238,16 +45355,8 @@ func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46275,7 +45384,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, re } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46313,6 +45422,13 @@ func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, re tkh.SetDirectory(val) } tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46321,16 +45437,8 @@ func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46358,7 +45466,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, re } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46396,6 +45504,13 @@ func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, re tkh.SetDirectory(val) } tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46404,16 +45519,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystem() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46441,7 +45548,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46473,6 +45580,13 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46481,16 +45595,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystem() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46518,7 +45624,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46550,6 +45656,13 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46558,9 +45671,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46578,9 +45690,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46598,9 +45709,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46628,7 +45738,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, rec } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46642,9 +45752,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46672,7 +45781,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, rec } { val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return val.(keyhubmodel.ProvisioningProvisionedSystemType) + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) tkh.SetProvisioningProvisionedSystemPrimerType(val) @@ -46686,9 +45795,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -46706,9 +45814,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46726,16 +45833,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46762,6 +45861,13 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, re tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46770,16 +45876,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, re if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46806,6 +45904,13 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, re tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -46814,9 +45919,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46834,9 +45938,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) @@ -46854,9 +45957,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx c if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -46870,9 +45972,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx c if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -46886,9 +45987,8 @@ func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -46903,6 +46003,9 @@ func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context. val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetIssuedPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { @@ -46933,9 +46036,8 @@ func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -46980,9 +46082,8 @@ func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) @@ -46994,9 +46095,8 @@ func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) @@ -47008,9 +46108,8 @@ func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisioningStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningStatus() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47030,9 +46129,8 @@ func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningProvisioningStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningStatus() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47052,9 +46150,8 @@ func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningTokenPassword() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningTokenPassword() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -47064,9 +46161,8 @@ func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewProvisioningTokenPassword() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningTokenPassword() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -47076,16 +46172,8 @@ func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47119,14 +46207,14 @@ func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Co tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47136,6 +46224,13 @@ func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Co diags.Append(d...) tkh.SetApplication(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47144,16 +46239,8 @@ func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47187,14 +46274,14 @@ func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Co tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47204,6 +46291,13 @@ func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Co diags.Append(d...) tkh.SetApplication(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47212,16 +46306,8 @@ func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47255,14 +46341,14 @@ func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx con tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47272,6 +46358,13 @@ func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx con diags.Append(d...) tkh.SetOrganizationalUnit(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47280,16 +46373,8 @@ func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47323,14 +46408,14 @@ func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx con tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47340,6 +46425,13 @@ func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx con diags.Append(d...) tkh.SetOrganizationalUnit(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47348,16 +46440,8 @@ func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47391,14 +46475,14 @@ func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx cont tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47408,6 +46492,13 @@ func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx cont diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47416,16 +46507,8 @@ func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47459,14 +46542,14 @@ func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx cont tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47476,6 +46559,13 @@ func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx cont diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47484,9 +46574,8 @@ func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() { val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) diags.Append(d...) @@ -47500,9 +46589,8 @@ func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() { val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) diags.Append(d...) @@ -47516,9 +46604,8 @@ func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -47529,9 +46616,8 @@ func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -47542,9 +46628,8 @@ func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() { val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -47559,9 +46644,8 @@ func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() { val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -47576,7 +46660,6 @@ func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Conte if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() return tkh, diags } @@ -47586,7 +46669,6 @@ func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Conte if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() return tkh, diags } @@ -47596,16 +46678,8 @@ func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47639,14 +46713,14 @@ func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse boo tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47657,6 +46731,13 @@ func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse boo tkh.SetNewAdmin(val) } tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47665,16 +46746,8 @@ func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47708,14 +46781,14 @@ func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse boo tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47726,6 +46799,13 @@ func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse boo tkh.SetNewAdmin(val) } tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47734,16 +46814,8 @@ func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47777,14 +46849,14 @@ func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recur tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47797,12 +46869,19 @@ func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recur tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetGroupOnSystemType(val) } tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47811,16 +46890,8 @@ func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47854,14 +46925,14 @@ func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recur tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -47874,12 +46945,19 @@ func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recur tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetGroupOnSystemType(val) } tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -47888,9 +46966,59 @@ func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestCreateGroupRequest() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -47898,6 +47026,84 @@ func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, tkh.SetAdditionalObjects(val) } } + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -47931,104 +47137,24 @@ func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestCreateGroupRequest() - objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetSystem(val) } - - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - objAttrs := objVal.Attributes() + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -48036,57 +47162,6 @@ func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recu tkh.SetAdditionalObjects(val) } } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -48095,16 +47170,8 @@ func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48138,14 +47205,14 @@ func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recu tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -48156,6 +47223,13 @@ func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recu tkh.SetSystem(val) } tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -48164,16 +47238,8 @@ func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestDisable2FARequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestDisable2FARequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48207,19 +47273,26 @@ func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -48228,16 +47301,8 @@ func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestDisable2FARequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestDisable2FARequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48271,19 +47336,26 @@ func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -48292,16 +47364,8 @@ func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48335,18 +47399,25 @@ func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Cont tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -48355,16 +47426,8 @@ func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48398,18 +47461,25 @@ func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Cont tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -48418,16 +47488,8 @@ func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestExtendAccessRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestExtendAccessRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48461,14 +47523,14 @@ func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -48478,6 +47540,13 @@ func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetExtendUntil(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -48486,16 +47555,8 @@ func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestExtendAccessRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestExtendAccessRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48529,14 +47590,14 @@ func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -48546,90 +47607,26 @@ func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetExtendUntil(val) } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantAccessRequest() - objAttrs := objVal.Attributes() if recurse { { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } return tkh, diags } -func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantAccessRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantAccessRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -48638,7 +47635,7 @@ func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -48646,43 +47643,32 @@ func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, tkh.SetPermissions(val) } { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetAccount(val) } tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetGroup(val) } tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - objAttrs := objVal.Attributes() if recurse { { val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -48690,74 +47676,16 @@ func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse tkh.SetAdditionalObjects(val) } } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } return tkh, diags } -func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantApplicationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantAccessRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48791,41 +47719,35 @@ func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantApplicationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48859,14 +47781,14 @@ func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -48876,36 +47798,23 @@ func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, rec diags.Append(d...) tkh.SetApplication(val) } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantApplicationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -48939,14 +47848,14 @@ func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -48956,36 +47865,23 @@ func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, rec diags.Append(d...) tkh.SetApplication(val) } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return val.(keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49019,42 +47915,52 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurs tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetGroupOnSystem(val) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49088,42 +47994,52 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurs tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroupOnSystem(val) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49157,14 +48073,14 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -49175,24 +48091,23 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, diags.Append(d...) tkh.SetGroupOnSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } -func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49226,14 +48141,14 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -49244,24 +48159,23 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, diags.Append(d...) tkh.SetGroupOnSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } -func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49295,46 +48209,41 @@ func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroupOnSystem(val) } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49368,46 +48277,41 @@ func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroupOnSystem(val) } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestJoinGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49441,36 +48345,45 @@ func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, o tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } -func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestJoinGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49504,29 +48417,90 @@ func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, o tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } -func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestJoinVaultRequest() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } if recurse { { val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -49534,9 +48508,19 @@ func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, o tkh.SetAdditionalObjects(val) } } + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -49545,7 +48529,7 @@ func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, o } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -49553,50 +48537,111 @@ func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, o tkh.SetPermissions(val) } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAccount(val) } tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroup(val) } tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } -func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestJoinVaultRequest() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinVaultRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } if recurse { { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } } + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinVaultRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49630,18 +48675,25 @@ func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, o tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -49650,16 +48702,8 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49693,18 +48737,25 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -49713,16 +48764,8 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestModificationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49756,18 +48799,25 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -49776,9 +48826,8 @@ func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49796,9 +48845,8 @@ func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49816,9 +48864,8 @@ func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() { val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) diags.Append(d...) @@ -49842,14 +48889,8 @@ func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() objAttrs := objVal.Attributes() - { - val, d := tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAcceptParams(val) - } + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -49868,16 +48909,8 @@ func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestPasswordResetRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestPasswordResetRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49911,14 +48944,14 @@ func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse boo tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -49926,6 +48959,13 @@ func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse boo tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -49934,16 +48974,8 @@ func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse boo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestPasswordResetRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestPasswordResetRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -49977,21 +49009,25 @@ func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse boo tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } - tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50000,9 +49036,8 @@ func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() { val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) diags.Append(d...) @@ -50018,7 +49053,7 @@ func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recur tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return val.(keyhubmodel.RequestPasswordResetEmailType) + return *val.(*keyhubmodel.RequestPasswordResetEmailType) }) diags.Append(d...) tkh.SetResetViaMail(val) @@ -50031,9 +49066,8 @@ func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() { val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) diags.Append(d...) @@ -50049,7 +49083,7 @@ func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recur tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return val.(keyhubmodel.RequestPasswordResetEmailType) + return *val.(*keyhubmodel.RequestPasswordResetEmailType) }) diags.Append(d...) tkh.SetResetViaMail(val) @@ -50062,16 +49096,8 @@ func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRemoveGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRemoveGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50105,19 +49131,26 @@ func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50126,16 +49159,8 @@ func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRemoveGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRemoveGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50169,19 +49194,26 @@ func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50190,16 +49222,8 @@ func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50233,14 +49257,14 @@ func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -50251,6 +49275,13 @@ func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, tkh.SetOrganizationalUnit(val) } tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50259,16 +49290,8 @@ func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50302,14 +49325,14 @@ func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -50320,6 +49343,13 @@ func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, tkh.SetOrganizationalUnit(val) } tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50328,16 +49358,8 @@ func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50371,14 +49393,14 @@ func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, r tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -50389,6 +49411,13 @@ func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, r tkh.SetSystem(val) } tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50397,16 +49426,8 @@ func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50440,14 +49461,14 @@ func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, r tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -50458,6 +49479,13 @@ func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, r tkh.SetSystem(val) } tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50466,16 +49494,8 @@ func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestReviewAuditRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestReviewAuditRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50509,18 +49529,25 @@ func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50529,16 +49556,8 @@ func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestReviewAuditRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestReviewAuditRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50572,18 +49591,25 @@ func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50592,16 +49618,8 @@ func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRevokeAdminRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRevokeAdminRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50635,14 +49653,14 @@ func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -50652,6 +49670,13 @@ func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetAdmin(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50660,16 +49685,8 @@ func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestRevokeAdminRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestRevokeAdminRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50703,14 +49720,14 @@ func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -50720,6 +49737,13 @@ func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetAdmin(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50728,16 +49752,8 @@ func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50771,21 +49787,21 @@ func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } { val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return val.(keyhubmodel.RequestAuthorizingGroupType) + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) tkh.SetAuthorizingGroupType(val) @@ -50796,6 +49812,13 @@ func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec diags.Append(d...) tkh.SetRequestingGroup(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50804,16 +49827,8 @@ func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -50847,21 +49862,21 @@ func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } { val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return val.(keyhubmodel.RequestAuthorizingGroupType) + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) tkh.SetAuthorizingGroupType(val) @@ -50872,6 +49887,13 @@ func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec diags.Append(d...) tkh.SetRequestingGroup(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -50880,9 +49902,66 @@ func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) + }) + diags.Append(d...) + tkh.SetAccountAction(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } if recurse { { val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -50890,9 +49969,19 @@ func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse tkh.SetAdditionalObjects(val) } } + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -50901,7 +49990,7 @@ func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse } { val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -50909,56 +49998,45 @@ func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse tkh.SetPermissions(val) } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAccount(val) } tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroup(val) } tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } { val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return val.(keyhubmodel.RequestGroupNestAccountAction) + return *val.(*keyhubmodel.RequestGroupNestAccountAction) }) diags.Append(d...) tkh.SetAccountAction(val) } tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetRequestingGroup(val) } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - objAttrs := objVal.Attributes() if recurse { { val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -50966,64 +50044,6 @@ func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse tkh.SetAdditionalObjects(val) } } - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return val.(keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } return tkh, diags } @@ -51032,16 +50052,8 @@ func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51075,14 +50087,14 @@ func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context. tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51092,6 +50104,13 @@ func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context. diags.Append(d...) tkh.SetApplication(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51100,16 +50119,8 @@ func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context. if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51143,14 +50154,14 @@ func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context. tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51160,6 +50171,13 @@ func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context. diags.Append(d...) tkh.SetApplication(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51168,16 +50186,8 @@ func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51211,14 +50221,14 @@ func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Conte tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51228,6 +50238,13 @@ func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Conte diags.Append(d...) tkh.SetApplication(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51236,16 +50253,8 @@ func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51279,14 +50288,14 @@ func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Conte tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51296,6 +50305,13 @@ func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Conte diags.Append(d...) tkh.SetApplication(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51304,16 +50320,8 @@ func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51347,18 +50355,25 @@ func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recu tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51367,16 +50382,8 @@ func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51410,18 +50417,25 @@ func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recu tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51430,16 +50444,8 @@ func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51473,14 +50479,14 @@ func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51490,6 +50496,13 @@ func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con diags.Append(d...) tkh.SetGroupOnSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51498,16 +50511,8 @@ func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51541,14 +50546,14 @@ func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51558,6 +50563,13 @@ func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con diags.Append(d...) tkh.SetGroupOnSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51566,16 +50578,8 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51609,14 +50613,14 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51626,6 +50630,13 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex diags.Append(d...) tkh.SetOrganizationalUnit(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51634,16 +50645,8 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51677,14 +50680,14 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51694,6 +50697,13 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex diags.Append(d...) tkh.SetOrganizationalUnit(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51702,16 +50712,8 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51745,14 +50747,14 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx co tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51762,6 +50764,13 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx co diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51770,16 +50779,8 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51813,14 +50814,14 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51830,6 +50831,13 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51838,16 +50846,8 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51881,14 +50881,14 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51898,6 +50898,13 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51906,16 +50913,8 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -51949,14 +50948,14 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -51966,6 +50965,13 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -51974,16 +50980,8 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52017,14 +51015,14 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -52034,6 +51032,13 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52042,16 +51047,8 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52085,14 +51082,14 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -52102,6 +51099,13 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context diags.Append(d...) tkh.SetSystem(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52110,16 +51114,8 @@ func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52153,14 +51149,14 @@ func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx conte tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -52170,6 +51166,13 @@ func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx conte diags.Append(d...) tkh.SetServiceAccount(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52178,16 +51181,8 @@ func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx conte if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52221,14 +51216,14 @@ func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx conte tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -52238,6 +51233,13 @@ func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx conte diags.Append(d...) tkh.SetServiceAccount(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52246,16 +51248,8 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52289,14 +51283,14 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -52312,7 +51306,7 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec tkh.SetCurrentEndDate(val) } { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetCurrentRights(val) } @@ -52322,17 +51316,24 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec tkh.SetEndDate(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } { val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return val.(keyhubmodel.RequestUpdateGroupMembershipType) + return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) }) diags.Append(d...) tkh.SetUpdateGroupMembershipType(val) } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52341,16 +51342,8 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52384,14 +51377,14 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) @@ -52407,7 +51400,7 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec tkh.SetCurrentEndDate(val) } { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetCurrentRights(val) } @@ -52417,17 +51410,24 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec tkh.SetEndDate(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return val.(keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) tkh.SetRights(val) } { val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return val.(keyhubmodel.RequestUpdateGroupMembershipType) + return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) }) diags.Append(d...) tkh.SetUpdateGroupMembershipType(val) } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52436,16 +51436,8 @@ func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52479,19 +51471,26 @@ func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52500,16 +51499,8 @@ func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, rec if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52543,19 +51534,26 @@ func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, rec tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return val.(keyhubmodel.RequestModificationRequestType) + return *val.(*keyhubmodel.RequestModificationRequestType) }) diags.Append(d...) tkh.SetRequestModificationRequestType(val) } { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return val.(keyhubmodel.RequestModificationRequestStatus) + return *val.(*keyhubmodel.RequestModificationRequestStatus) }) diags.Append(d...) tkh.SetStatus(val) } tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52564,16 +51562,8 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewServiceaccountServiceAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52609,7 +51599,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo } { val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { - return val.(keyhubmodel.ServiceaccountPasswordRotationScheme) + return *val.(*keyhubmodel.ServiceaccountPasswordRotationScheme) }) diags.Append(d...) tkh.SetPasswordRotation(val) @@ -52619,6 +51609,13 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52627,16 +51624,8 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccount() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewServiceaccountServiceAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52672,7 +51661,7 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo } { val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { - return val.(keyhubmodel.ServiceaccountPasswordRotationScheme) + return *val.(*keyhubmodel.ServiceaccountPasswordRotationScheme) }) diags.Append(d...) tkh.SetPasswordRotation(val) @@ -52682,6 +51671,13 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52690,16 +51686,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52722,12 +51710,19 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetProvisioningGroupOnSystemPrimerType(val) } tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52736,16 +51731,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52768,12 +51755,19 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return val.(keyhubmodel.ProvisioningGroupOnSystemType) + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) tkh.SetProvisioningGroupOnSystemPrimerType(val) } tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -52782,9 +51776,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { tkh, d := tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52802,9 +51795,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52822,9 +51814,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -52838,9 +51829,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -52854,9 +51844,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { tkh, d := tfObjectToTKHRSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52874,9 +51863,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52894,9 +51882,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52932,9 +51919,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -52970,9 +51956,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -52990,9 +51975,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53010,9 +51994,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -53022,9 +52005,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -53034,9 +52016,8 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -53046,6 +52027,9 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) @@ -53060,9 +52044,8 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -53073,11 +52056,6 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C diags.Append(d...) tkh.SetGroups(val) } - { - val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } return tkh, diags } @@ -53086,9 +52064,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) @@ -53108,9 +52085,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) @@ -53130,7 +52106,6 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() return tkh, diags } @@ -53140,7 +52115,6 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() return tkh, diags } @@ -53150,7 +52124,6 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() return tkh, diags } @@ -53160,7 +52133,6 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() return tkh, diags } @@ -53170,9 +52142,8 @@ func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewSimpleStringValue() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleStringValue() tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -53182,9 +52153,8 @@ func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewSimpleStringValue() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleStringValue() tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -53194,9 +52164,8 @@ func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewSimpleVersionInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleVersionInfo() { val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { return int32(val.(basetypes.Int64Value).ValueInt64()) @@ -53213,9 +52182,8 @@ func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewSimpleVersionInfo() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleVersionInfo() { val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { return int32(val.(basetypes.Int64Value).ValueInt64()) @@ -53232,16 +52200,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultHolder() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewVaultDeletedVaultHolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53263,10 +52223,17 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultDeletedVaultHolderType(val) } + if recurse { + { + val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -53275,16 +52242,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultHolder() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewVaultDeletedVaultHolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53306,10 +52265,17 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultDeletedVaultHolderType(val) } + if recurse { + { + val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -53318,9 +52284,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53338,9 +52303,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53358,9 +52322,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -53379,9 +52342,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -53400,9 +52362,8 @@ func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { @@ -53418,9 +52379,8 @@ func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { @@ -53436,9 +52396,8 @@ func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultMoveVaultRecord() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -53446,7 +52405,7 @@ func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV } { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return val.(keyhubmodel.VaultMoveVaultRecordAction) + return *val.(*keyhubmodel.VaultMoveVaultRecordAction) }) diags.Append(d...) tkh.SetAction(val) @@ -53469,9 +52428,8 @@ func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultMoveVaultRecord() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord() { val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -53479,7 +52437,7 @@ func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV } { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return val.(keyhubmodel.VaultMoveVaultRecordAction) + return *val.(*keyhubmodel.VaultMoveVaultRecordAction) }) diags.Append(d...) tkh.SetAction(val) @@ -53502,9 +52460,8 @@ func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -53515,9 +52472,8 @@ func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -53528,9 +52484,8 @@ func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.O if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVault() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVault() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53568,9 +52523,8 @@ func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.O if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVault() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVault() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53608,7 +52562,6 @@ func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultHolder() return tkh, diags } @@ -53618,7 +52571,6 @@ func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultHolder() return tkh, diags } @@ -53628,16 +52580,8 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecord() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53657,7 +52601,7 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) tkh.SetColor(val) } @@ -53677,7 +52621,7 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return val.(keyhubmodel.VaultVaultSecretType) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) diags.Append(d...) return tkh }) @@ -53688,11 +52632,18 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return val.(keyhubmodel.VaultVaultRecordWarningPeriod) + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) }) diags.Append(d...) tkh.SetWarningPeriod(val) } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -53701,16 +52652,8 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecord() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53730,7 +52673,7 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) tkh.SetColor(val) } @@ -53750,7 +52693,7 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return val.(keyhubmodel.VaultVaultSecretType) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) diags.Append(d...) return tkh }) @@ -53761,11 +52704,18 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return val.(keyhubmodel.VaultVaultRecordWarningPeriod) + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) }) diags.Append(d...) tkh.SetWarningPeriod(val) } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -53774,9 +52724,8 @@ func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53794,9 +52743,8 @@ func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53814,9 +52762,8 @@ func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53836,7 +52783,7 @@ func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) tkh.SetColor(val) } @@ -53855,9 +52802,8 @@ func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordPrimer() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53877,7 +52823,7 @@ func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return val.(keyhubmodel.VaultVaultRecordColor) }) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) tkh.SetColor(val) } @@ -53896,9 +52842,8 @@ func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -53916,9 +52861,8 @@ func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { tkh, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -53936,9 +52880,8 @@ func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordSecrets() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordSecrets() tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) @@ -53952,14 +52895,12 @@ func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordSecrets() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordSecrets() tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -53968,12 +52909,11 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordShare() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultVaultRecordShareType(val) } @@ -53985,12 +52925,11 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordShare() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return val.(keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultVaultRecordShareType(val) } @@ -54002,9 +52941,8 @@ func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() { val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { tkh, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54027,9 +52965,8 @@ func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() { val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { tkh, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54052,9 +52989,8 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54080,6 +53016,9 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu val, d := tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetShares(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) @@ -54099,15 +53038,13 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54146,9 +53083,8 @@ func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecovery() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecovery() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -54163,9 +53099,8 @@ func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultRecovery() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecovery() { val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54180,9 +53115,8 @@ func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultUnlock() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlock() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -54192,9 +53126,8 @@ func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultUnlock() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlock() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -54204,9 +53137,8 @@ func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultUnlockResponse() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlockResponse() { val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) diags.Append(d...) @@ -54221,9 +53153,8 @@ func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewVaultVaultUnlockResponse() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlockResponse() { val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) diags.Append(d...) @@ -54238,16 +53169,8 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhook() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewWebhookWebhook() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54275,7 +53198,7 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { - return val.(keyhubmodel.WebhookWebhookAuthenticationScheme) + return *val.(*keyhubmodel.WebhookWebhookAuthenticationScheme) }) diags.Append(d...) tkh.SetAuthenticationScheme(val) @@ -54312,7 +53235,7 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetSystem(val) } { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -54323,7 +53246,7 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ } { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) return tkh }) @@ -54333,6 +53256,13 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -54341,16 +53271,8 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhook() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewWebhookWebhook() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54378,7 +53300,7 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { - return val.(keyhubmodel.WebhookWebhookAuthenticationScheme) + return *val.(*keyhubmodel.WebhookWebhookAuthenticationScheme) }) diags.Append(d...) tkh.SetAuthenticationScheme(val) @@ -54415,7 +53337,7 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetSystem(val) } { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return val.(keyhubmodel.TLSLevel) }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) tkh.SetTls(val) } @@ -54426,7 +53348,7 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ } { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) return tkh }) @@ -54436,6 +53358,13 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -54444,16 +53373,8 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookDelivery() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewWebhookWebhookDelivery() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54487,6 +53408,13 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetTriggerTime(val) } + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -54495,16 +53423,8 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookDelivery() objAttrs := objVal.Attributes() - if recurse { - { - val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh := keyhubmodel.NewWebhookWebhookDelivery() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54538,6 +53458,13 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetTriggerTime(val) } + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } return tkh, diags } @@ -54546,9 +53473,8 @@ func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54566,9 +53492,8 @@ func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54586,9 +53511,8 @@ func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54602,9 +53526,8 @@ func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54618,9 +53541,8 @@ func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { tkh, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54638,9 +53560,8 @@ func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { tkh, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) @@ -54658,9 +53579,8 @@ func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookNameUuid() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookNameUuid() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) @@ -54676,9 +53596,8 @@ func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookNameUuid() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookNameUuid() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) @@ -54694,9 +53613,8 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookPush() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookPush() { val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54751,7 +53669,7 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) diags.Append(d...) tkh.SetSecurityLevel(val) } @@ -54782,7 +53700,7 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetWebhook(val) } { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetWebhookWebhookPushType(val) } @@ -54794,9 +53712,8 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhookPush() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookPush() { val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54851,7 +53768,7 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return val.(keyhubmodel.AuthSecurityLevel) }) + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) diags.Append(d...) tkh.SetSecurityLevel(val) } @@ -54882,7 +53799,7 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetWebhook(val) } { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return val.(keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetWebhookWebhookPushType(val) } @@ -54894,9 +53811,8 @@ func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -54910,9 +53826,8 @@ func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurs if objVal.IsNull() { return nil, diags } - - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -55296,32 +54211,7 @@ func fillDataStructFromTFObjectDSAuthAccountsAuditStats_validityStats(data *auth } func fillDataStructFromTFObjectRSAuthInternalAccount(data *authInternalAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) data.Company = obj.Attributes()["company"].(basetypes.StringValue) @@ -55383,16 +54273,6 @@ func fillDataStructFromTFObjectDSAuthInternalAccountStatusObject(data *authInter data.Status = obj.Attributes()["status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSAuthInternalAccount_additionalObjects(data *authInternalAccount_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthInternalAccount_additionalObjects(data *authInternalAccount_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSAuthMoveInternalAccount(data *authMoveInternalAccountDataRS, obj types.Object) { data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) } @@ -55581,10 +54461,8 @@ func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) } @@ -56100,10 +54978,6 @@ func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirec } func fillDataStructFromTFObjectRSGroupAccountGroup(data *groupAccountGroupDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) @@ -56218,13 +55092,7 @@ func fillDataStructFromTFObjectDSGroupGroup(data *groupGroupDataDS, obj types.Ob } func fillDataStructFromTFObjectRSGroupGroupAccount(data *groupGroupAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) @@ -57104,9 +55972,6 @@ func fillDataStructFromTFObjectDSNotificationVaultRecordExpiredNotification(data } func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -57160,13 +56025,7 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizati } func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) } @@ -57236,7 +56095,6 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObject func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { @@ -57576,13 +56434,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningPro } func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) } @@ -58692,7 +57544,6 @@ func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(da } func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataDS, obj types.Object) { - data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) } @@ -58724,9 +57575,6 @@ func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswo data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) - data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) - data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) } func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataRS, obj types.Object) { @@ -59384,7 +58232,6 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccount_additionalObjects( func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataRS, obj types.Object) { @@ -59604,7 +58451,6 @@ func fillDataStructFromTFObjectDSVaultVaultRecordSecrets(data *vaultVaultRecordS data.File = obj.Attributes()["file"].(basetypes.StringValue) data.Password = obj.Attributes()["password"].(basetypes.StringValue) data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) - data.WriteTotp = obj.Attributes()["write_totp"].(basetypes.BoolValue) } func fillDataStructFromTFObjectRSVaultVaultRecordShare(data *vaultVaultRecordShareDataRS, obj types.Object) { @@ -59640,7 +58486,6 @@ func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultV func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) @@ -60481,17 +59326,6 @@ func dataSourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[stri } return schemaAttrs } -func dataSourceSchemaAttrsAuthInternalAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reason"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ @@ -60761,9 +59595,6 @@ func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool Attributes: dataSourceSchemaAttrsAuditInfo(recurse), Computed: true, } - schemaAttrs["delete_tile"] = dsschema.BoolAttribute{ - Computed: true, - } schemaAttrs["groupclients"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), Computed: true, @@ -60772,10 +59603,6 @@ func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), Computed: true, } - schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), - Computed: true, - } schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), Computed: true, @@ -62411,8 +61238,9 @@ func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string] Computed: true, } schemaAttrs["admins"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Computed: true, + Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Computed: true, + DeprecationMessage: "This property will be removed in a future version.", } schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuditInfo(recurse), @@ -63289,10 +62117,6 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recur Attributes: dataSourceSchemaAttrsAuditInfo(recurse), Computed: true, } - schemaAttrs["create_as_parent_of"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), - Computed: true, - } return schemaAttrs } func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { @@ -65631,10 +64455,6 @@ func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool } func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["accept_params"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), - Computed: true, - } schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuditInfo(recurse), Computed: true, @@ -65688,15 +64508,6 @@ func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]d schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["new_vault_and_directory_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["new_vault_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["unsynced_password"] = dsschema.BoolAttribute{ - Computed: true, - } return schemaAttrs } func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { @@ -66796,10 +65607,6 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), Computed: true, } - schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), - Computed: true, - } return schemaAttrs } func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { @@ -67091,9 +65898,6 @@ func dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]dssch schemaAttrs["totp"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["write_totp"] = dsschema.BoolAttribute{ - Computed: true, - } return schemaAttrs } func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschema.Attribute { @@ -67126,9 +65930,6 @@ func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[s Attributes: dataSourceSchemaAttrsAuditInfo(recurse), Computed: true, } - schemaAttrs["delete_tile"] = dsschema.BoolAttribute{ - Computed: true, - } schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, @@ -67660,7 +66461,7 @@ func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[str schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -67911,31 +66712,31 @@ func resourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]rsschema.Attr func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["active_login"] = rsschema.BoolAttribute{ - Optional: true, + Computed: true, } schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["pending_recovery_requests"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), - Optional: true, + Computed: true, } schemaAttrs["settings"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), - Optional: true, + Computed: true, } schemaAttrs["stored_attributes"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), - Optional: true, + Computed: true, } schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVault(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -67969,95 +66770,8 @@ func resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[s } func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["email"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id_in_directory"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_password_change_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["locale"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["token_password_enabled"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ - Computed: true, + Required: true, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ Computed: true, @@ -68099,17 +66813,6 @@ func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string } return schemaAttrs } -func resourceSchemaAttrsAuthInternalAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, - } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} func resourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ @@ -68272,7 +66975,7 @@ func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) m schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -68375,7 +67078,7 @@ func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ Optional: true, @@ -68386,7 +67089,7 @@ func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) } schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGeneratedSecret(recurse), @@ -68397,7 +67100,7 @@ func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) Optional: true, } schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -68658,7 +67361,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse b schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -68905,15 +67608,15 @@ func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Optional: true, + Computed: true, } schemaAttrs["status"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -69263,28 +67966,8 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["admin"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Required: true, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -69321,11 +68004,11 @@ func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[st schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVault(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -69468,32 +68151,8 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, + Required: true, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -69558,7 +68217,7 @@ func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[st schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -69713,7 +68372,7 @@ func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[stri schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -69895,11 +68554,11 @@ func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["info"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -69958,7 +68617,7 @@ func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[str schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -70001,7 +68660,7 @@ func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[str schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -70108,23 +68767,24 @@ func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rs } schemaAttrs["administered_clients"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["administered_systems"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["admins"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Optional: true, + Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Optional: true, + DeprecationMessage: "This property will be removed in a future version.", } schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["authorized_groups"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["client_permissions"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), @@ -70132,82 +68792,82 @@ func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rs } schemaAttrs["clients"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["content_administered_systems"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["groupauditinginfo"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["groupinfo"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["helpdesk"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Optional: true, + Computed: true, } schemaAttrs["myaccount"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - Optional: true, + Computed: true, } schemaAttrs["mydelegatedaccount"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - Optional: true, + Computed: true, } schemaAttrs["nested_groups"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["owned_clients"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["owned_directories"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["owned_groups_on_system"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["owned_organizational_units"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["owned_systems"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["recent_audits"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["requeststatus"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVault(recurse), - Optional: true, + Computed: true, } schemaAttrs["webhooks"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -70301,7 +68961,7 @@ func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) m schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -70428,7 +69088,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) m schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -70823,23 +69483,8 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[ Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Required: true, } return schemaAttrs } @@ -70857,7 +69502,7 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects( schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -70909,32 +69554,8 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[ Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, + Required: true, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -70955,7 +69576,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects( schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -71003,7 +69624,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["create_as_parent_of"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), @@ -71281,7 +69902,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["provgroups"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), @@ -71396,11 +70017,11 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(re schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -71545,32 +70166,8 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, + Required: true, } schemaAttrs["uid"] = rsschema.Int64Attribute{ Computed: true, @@ -71591,7 +70188,7 @@ func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -72338,7 +70935,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(r schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -72346,34 +70943,34 @@ func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Optional: true, + Computed: true, } schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["login_name"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Optional: true, + Computed: true, } schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Optional: true, + Computed: true, } schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Optional: true, + Computed: true, } schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -73376,11 +71973,11 @@ func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse boo } schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -74416,7 +73013,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recu schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -74482,11 +73079,11 @@ func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse b schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGeneratedSecret(recurse), @@ -74580,11 +73177,11 @@ func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVault(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -74819,13 +73416,13 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ Optional: true, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), @@ -74833,11 +73430,11 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str } schemaAttrs["share_summary"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordShareSummary(recurse), - Optional: true, + Computed: true, } schemaAttrs["shares"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), - Optional: true, + Computed: true, } schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), @@ -74845,7 +73442,7 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str } schemaAttrs["vaultholder"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultHolder(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -75030,7 +73627,7 @@ func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) m schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -75145,7 +73742,7 @@ func resourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[strin schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), - Optional: true, + Computed: true, } return schemaAttrs } @@ -75215,7 +73812,7 @@ func tfToTime(val basetypes.StringValue) (time.Time, diag.Diagnostics) { } func tfToTimePointer(val basetypes.StringValue) (*time.Time, diag.Diagnostics) { - if val.IsNull() { + if val.IsNull() || val.IsUnknown() { return nil, diag.Diagnostics{} } parsed, diags := tfToTime(val) @@ -75230,7 +73827,7 @@ func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { } func parsePointer[T any](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { - if val.IsNull() { + if val.IsNull() || val.IsUnknown() { return nil, diag.Diagnostics{} } parsed, diags := parse(val, parser) @@ -75238,7 +73835,7 @@ func parsePointer[T any](val basetypes.StringValue, parser func(string) (T, erro } func parsePointer2[T any](val basetypes.StringValue, parser func(string) (*T, error)) (*T, diag.Diagnostics) { - if val.IsNull() { + if val.IsNull() || val.IsUnknown() { return nil, diag.Diagnostics{} } parsed, diags := parse(val, parser) @@ -75255,7 +73852,7 @@ func parse[T any](val basetypes.StringValue, parser func(string) (T, error)) (T, } func parseCastPointer[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (*T, diag.Diagnostics) { - if val.IsNull() { + if val.IsNull() || val.IsUnknown() { return nil, diag.Diagnostics{} } parsed, diags := parseCast(val, parser, caster) @@ -75378,6 +73975,14 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) } func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + account, diag := findAuthAccountByUUID(ctx, uuid) + if account == nil { + return account, diag + } + return &account.(*keyhubmodel.AuthAccount).AuthAccountPrimer, diag +} + +func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountable, diag.Diagnostics) { if uuid == nil { return nil, diag.Diagnostics{} } From 98d31e8b4ab0117241f18c7e9fdddea691d6fbd5 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Thu, 14 Sep 2023 21:48:52 +0200 Subject: [PATCH 09/34] Split generated file --- internal/provider/full-data-struct-ds.go | 3237 + internal/provider/full-data-struct-rs.go | 3197 + internal/provider/full-helpers.go | 307 + internal/provider/full-object-attrs-ds.go | 3152 + internal/provider/full-object-attrs-rs.go | 3110 + internal/provider/full-schema-ds.go | 7570 ++ internal/provider/full-schema-rs.go | 7509 ++ .../provider/full-tf-to-data-struct-ds.go | 2458 + .../provider/full-tf-to-data-struct-rs.go | 2418 + internal/provider/full-tf-to-tkh-ds.go | 9912 +++ internal/provider/full-tf-to-tkh-rs.go | 9830 ++ internal/provider/full-tkh-to-tf-ds.go | 11262 +++ internal/provider/full-tkh-to-tf-rs.go | 10185 +++ internal/provider/group_resource.go | 4 +- internal/provider/impl.go | 74022 ---------------- 15 files changed, 74149 insertions(+), 74024 deletions(-) create mode 100644 internal/provider/full-data-struct-ds.go create mode 100644 internal/provider/full-data-struct-rs.go create mode 100644 internal/provider/full-helpers.go create mode 100644 internal/provider/full-object-attrs-ds.go create mode 100644 internal/provider/full-object-attrs-rs.go create mode 100644 internal/provider/full-schema-ds.go create mode 100644 internal/provider/full-schema-rs.go create mode 100644 internal/provider/full-tf-to-data-struct-ds.go create mode 100644 internal/provider/full-tf-to-data-struct-rs.go create mode 100644 internal/provider/full-tf-to-tkh-ds.go create mode 100644 internal/provider/full-tf-to-tkh-rs.go create mode 100644 internal/provider/full-tkh-to-tf-ds.go create mode 100644 internal/provider/full-tkh-to-tf-rs.go delete mode 100644 internal/provider/impl.go diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go new file mode 100644 index 0000000..5e5d5b7 --- /dev/null +++ b/internal/provider/full-data-struct-ds.go @@ -0,0 +1,3237 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/types" +) + +var auditInfoAttrTypesDS = objectAttrsTypeDSAuditInfo(false) +var auditInfoAttrTypesDSRecurse = objectAttrsTypeDSAuditInfo(true) + +type auditInfoDataDS struct { + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LastModifiedBy types.String `tfsdk:"last_modified_by"` +} + +var errorReportAttrTypesDS = objectAttrsTypeDSErrorReport(false) +var errorReportAttrTypesDSRecurse = objectAttrsTypeDSErrorReport(true) + +type errorReportDataDS struct { + ApplicationError types.String `tfsdk:"application_error"` + ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` + Code types.Int64 `tfsdk:"code"` + ErrorDetails types.List `tfsdk:"error_details"` + Exception types.String `tfsdk:"exception"` + Message types.String `tfsdk:"message"` + Reason types.String `tfsdk:"reason"` + Stacktrace types.List `tfsdk:"stacktrace"` +} + +var errorReport_applicationErrorParametersAttrTypesDS = objectAttrsTypeDSErrorReport_applicationErrorParameters(false) +var errorReport_applicationErrorParametersAttrTypesDSRecurse = objectAttrsTypeDSErrorReport_applicationErrorParameters(true) + +type errorReport_applicationErrorParametersDataDS struct { +} + +var generatedSecretAttrTypesDS = objectAttrsTypeDSGeneratedSecret(false) +var generatedSecretAttrTypesDSRecurse = objectAttrsTypeDSGeneratedSecret(true) + +type generatedSecretDataDS struct { + GeneratedSecret types.String `tfsdk:"generated_secret"` + OldSecret types.String `tfsdk:"old_secret"` + Regenerate types.Bool `tfsdk:"regenerate"` +} + +var linkableAttrTypesDS = objectAttrsTypeDSLinkable(false) +var linkableAttrTypesDSRecurse = objectAttrsTypeDSLinkable(true) + +type linkableDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var nonLinkableAttrTypesDS = objectAttrsTypeDSNonLinkable(false) +var nonLinkableAttrTypesDSRecurse = objectAttrsTypeDSNonLinkable(true) + +type nonLinkableDataDS struct { +} + +var restLinkAttrTypesDS = objectAttrsTypeDSRestLink(false) +var restLinkAttrTypesDSRecurse = objectAttrsTypeDSRestLink(true) + +type restLinkDataDS struct { + Href types.String `tfsdk:"href"` + ID types.Int64 `tfsdk:"id"` + Rel types.String `tfsdk:"rel"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var segmentCountAttrTypesDS = objectAttrsTypeDSSegmentCount(false) +var segmentCountAttrTypesDSRecurse = objectAttrsTypeDSSegmentCount(true) + +type segmentCountDataDS struct { + Count types.Int64 `tfsdk:"count"` + Name types.String `tfsdk:"name"` +} + +var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) +var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) + +type auditAuditRecordDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + DateTime types.String `tfsdk:"date_time"` + OnAccount types.String `tfsdk:"on_account"` + OnCertificate types.String `tfsdk:"on_certificate"` + OnClient types.String `tfsdk:"on_client"` + OnDirectory types.String `tfsdk:"on_directory"` + OnGroup types.String `tfsdk:"on_group"` + OnGroup2 types.String `tfsdk:"on_group2"` + OnGroupClassification types.String `tfsdk:"on_group_classification"` + OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` + OnServiceAccount types.String `tfsdk:"on_service_account"` + OnSystem types.String `tfsdk:"on_system"` + OnVaultRecord types.String `tfsdk:"on_vault_record"` + OnWebhook types.String `tfsdk:"on_webhook"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + PerformedBy types.String `tfsdk:"performed_by"` + SecurityLevel types.String `tfsdk:"security_level"` +} + +var auditAuditRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(false) +var auditAuditRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(true) + +type auditAuditRecordLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var auditAuditRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuditAuditRecord_additionalObjects(false) +var auditAuditRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord_additionalObjects(true) + +type auditAuditRecord_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var authAccountAttrTypesDS = objectAttrsTypeDSAuthAccount(false) +var authAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount(true) + +type authAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + Directory types.Object `tfsdk:"directory"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` +} + +var authAccountBulkUpdateAttrTypesDS = objectAttrsTypeDSAuthAccountBulkUpdate(false) +var authAccountBulkUpdateAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountBulkUpdate(true) + +type authAccountBulkUpdateDataDS struct { + Action types.String `tfsdk:"action"` + ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` + SelectedAccounts types.List `tfsdk:"selected_accounts"` +} + +var authAccountChangeLocaleAttrTypesDS = objectAttrsTypeDSAuthAccountChangeLocale(false) +var authAccountChangeLocaleAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountChangeLocale(true) + +type authAccountChangeLocaleDataDS struct { + Locale types.String `tfsdk:"locale"` +} + +var authAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthAccountLinkableWrapper(false) +var authAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountLinkableWrapper(true) + +type authAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var authAccountPrimerAttrTypesDS = objectAttrsTypeDSAuthAccountPrimer(false) +var authAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountPrimer(true) + +type authAccountPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` +} + +var authAccountRecoveryStatusAttrTypesDS = objectAttrsTypeDSAuthAccountRecoveryStatus(false) +var authAccountRecoveryStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountRecoveryStatus(true) + +type authAccountRecoveryStatusDataDS struct { + Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` + PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` +} + +var authAccountSettingsAttrTypesDS = objectAttrsTypeDSAuthAccountSettings(false) +var authAccountSettingsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountSettings(true) + +type authAccountSettingsDataDS struct { + DefaultOrganizationalUnit types.Object `tfsdk:"default_organizational_unit"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryType types.String `tfsdk:"directory_type"` + InGroups types.Bool `tfsdk:"in_groups"` + InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` + KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` + MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` + PasswordMode types.String `tfsdk:"password_mode"` + SshPublicKey types.String `tfsdk:"ssh_public_key"` + TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` + UseTokenPassword types.Bool `tfsdk:"use_token_password"` + VaultStatus types.String `tfsdk:"vault_status"` +} + +var authAccountStatusAttrTypesDS = objectAttrsTypeDSAuthAccountStatus(false) +var authAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountStatus(true) + +type authAccountStatusDataDS struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` + LicenseRole types.String `tfsdk:"license_role"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` +} + +var authAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuthAccount_additionalObjects(false) +var authAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount_additionalObjects(true) + +type authAccount_additionalObjectsDataDS struct { + ActiveLogin types.Bool `tfsdk:"active_login"` + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` + Settings types.Object `tfsdk:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes"` + Vault types.Object `tfsdk:"vault"` +} + +var authAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats(false) +var authAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats(true) + +type authAccountsAuditStatsDataDS struct { + DirectoryStats types.Object `tfsdk:"directory_stats"` + TwoFAStats types.Object `tfsdk:"two_f_a_stats"` + ValidityStats types.Object `tfsdk:"validity_stats"` +} + +var authAccountsAuditStats_directoryStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(false) +var authAccountsAuditStats_directoryStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(true) + +type authAccountsAuditStats_directoryStatsDataDS struct { +} + +var authAccountsAuditStats_twoFAStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(false) +var authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(true) + +type authAccountsAuditStats_twoFAStatsDataDS struct { +} + +var authAccountsAuditStats_validityStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(false) +var authAccountsAuditStats_validityStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(true) + +type authAccountsAuditStats_validityStatsDataDS struct { +} + +var authInternalAccountAttrTypesDS = objectAttrsTypeDSAuthInternalAccount(false) +var authInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccount(true) + +type authInternalAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + Directory types.Object `tfsdk:"directory"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var authInternalAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(false) +var authInternalAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(true) + +type authInternalAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var authInternalAccountStatusObjectAttrTypesDS = objectAttrsTypeDSAuthInternalAccountStatusObject(false) +var authInternalAccountStatusObjectAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountStatusObject(true) + +type authInternalAccountStatusObjectDataDS struct { + Status types.String `tfsdk:"status"` +} + +var authMoveInternalAccountAttrTypesDS = objectAttrsTypeDSAuthMoveInternalAccount(false) +var authMoveInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthMoveInternalAccount(true) + +type authMoveInternalAccountDataDS struct { + InternalDirectory types.Object `tfsdk:"internal_directory"` +} + +var authPermissionAttrTypesDS = objectAttrsTypeDSAuthPermission(false) +var authPermissionAttrTypesDSRecurse = objectAttrsTypeDSAuthPermission(true) + +type authPermissionDataDS struct { + Full types.String `tfsdk:"full"` + Instances types.List `tfsdk:"instances"` + Operations types.List `tfsdk:"operations"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var authStoredAccountAttributeAttrTypesDS = objectAttrsTypeDSAuthStoredAccountAttribute(false) +var authStoredAccountAttributeAttrTypesDSRecurse = objectAttrsTypeDSAuthStoredAccountAttribute(true) + +type authStoredAccountAttributeDataDS struct { + Name types.String `tfsdk:"name"` + Value types.String `tfsdk:"value"` +} + +var authStoredAccountAttributesAttrTypesDS = objectAttrsTypeDSAuthStoredAccountAttributes(false) +var authStoredAccountAttributesAttrTypesDSRecurse = objectAttrsTypeDSAuthStoredAccountAttributes(true) + +type authStoredAccountAttributesDataDS struct { + Attributes types.List `tfsdk:"attributes"` +} + +var certificateCertificateAttrTypesDS = objectAttrsTypeDSCertificateCertificate(false) +var certificateCertificateAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificate(true) + +type certificateCertificateDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + KeyData types.List `tfsdk:"key_data"` +} + +var certificateCertificateLinkableWrapperAttrTypesDS = objectAttrsTypeDSCertificateCertificateLinkableWrapper(false) +var certificateCertificateLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificateLinkableWrapper(true) + +type certificateCertificateLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var certificateCertificatePrimerAttrTypesDS = objectAttrsTypeDSCertificateCertificatePrimer(false) +var certificateCertificatePrimerAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificatePrimer(true) + +type certificateCertificatePrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` +} + +var certificateCertificate_additionalObjectsAttrTypesDS = objectAttrsTypeDSCertificateCertificate_additionalObjects(false) +var certificateCertificate_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificate_additionalObjects(true) + +type certificateCertificate_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientClientApplicationAttrTypesDS = objectAttrsTypeDSClientClientApplication(false) +var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication(true) + +type clientClientApplicationDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` +} + +var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) +var clientClientApplicationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplicationLinkableWrapper(true) + +type clientClientApplicationLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var clientClientApplicationPrimerAttrTypesDS = objectAttrsTypeDSClientClientApplicationPrimer(false) +var clientClientApplicationPrimerAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplicationPrimer(true) + +type clientClientApplicationPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` +} + +var clientClientApplication_additionalObjectsAttrTypesDS = objectAttrsTypeDSClientClientApplication_additionalObjects(false) +var clientClientApplication_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication_additionalObjects(true) + +type clientClientApplication_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Groupclients types.Object `tfsdk:"groupclients"` + Groups types.Object `tfsdk:"groups"` + Tile types.Object `tfsdk:"tile"` + VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` +} + +var clientLdapClientAttrTypesDS = objectAttrsTypeDSClientLdapClient(false) +var clientLdapClientAttrTypesDSRecurse = objectAttrsTypeDSClientLdapClient(true) + +type clientLdapClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + BindDn types.String `tfsdk:"bind_dn"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` +} + +var clientOAuth2ClientAttrTypesDS = objectAttrsTypeDSClientOAuth2Client(false) +var clientOAuth2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client(true) + +type clientOAuth2ClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_u_r_i"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` + ResourceURIs types.String `tfsdk:"resource_u_r_is"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` +} + +var clientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission(false) +var clientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission(true) + +type clientOAuth2ClientPermissionDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` +} + +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(false) +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(true) + +type clientOAuth2ClientPermissionLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermissionWithClientAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(false) +var clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(true) + +type clientOAuth2ClientPermissionWithClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` + Client types.Object `tfsdk:"client"` +} + +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(true) + +type clientOAuth2ClientPermissionWithClientLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermission_additionalObjectsAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(true) + +type clientOAuth2ClientPermission_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientOAuth2Client_attributesAttrTypesDS = objectAttrsTypeDSClientOAuth2Client_attributes(false) +var clientOAuth2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client_attributes(true) + +type clientOAuth2Client_attributesDataDS struct { +} + +var clientSaml2ClientAttrTypesDS = objectAttrsTypeDSClientSaml2Client(false) +var clientSaml2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client(true) + +type clientSaml2ClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` +} + +var clientSaml2Client_attributesAttrTypesDS = objectAttrsTypeDSClientSaml2Client_attributes(false) +var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client_attributes(true) + +type clientSaml2Client_attributesDataDS struct { +} + +var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) +var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) + +type directoryAccountDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) +var directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(true) + +type directoryAccountDirectoryLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectoryPrimerAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false) +var directoryAccountDirectoryPrimerAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryPrimer(true) + +type directoryAccountDirectoryPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var directoryAccountDirectoryStatusReportAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(false) +var directoryAccountDirectoryStatusReportAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(true) + +type directoryAccountDirectoryStatusReportDataDS struct { + Accounts types.Int64 `tfsdk:"accounts"` + Reason types.String `tfsdk:"reason"` + Status types.String `tfsdk:"status"` +} + +var directoryAccountDirectorySummaryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectorySummary(false) +var directoryAccountDirectorySummaryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectorySummary(true) + +type directoryAccountDirectorySummaryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Name types.String `tfsdk:"name"` + Status types.Object `tfsdk:"status"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(false) +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(true) + +type directoryAccountDirectorySummaryLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectory_additionalObjectsAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false) +var directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(true) + +type directoryAccountDirectory_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Markers types.Object `tfsdk:"markers"` + Status types.Object `tfsdk:"status"` +} + +var directoryInternalDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryInternalDirectory(false) +var directoryInternalDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryInternalDirectory(true) + +type directoryInternalDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + Owner types.Object `tfsdk:"owner"` +} + +var directoryLDAPDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryLDAPDirectory(false) +var directoryLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryLDAPDirectory(true) + +type directoryLDAPDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_d_n"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_d_n"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` +} + +var directoryMaintenanceDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryMaintenanceDirectory(false) +var directoryMaintenanceDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryMaintenanceDirectory(true) + +type directoryMaintenanceDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryOIDCDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryOIDCDirectory(false) +var directoryOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryOIDCDirectory(true) + +type directoryOIDCDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` +} + +var groupAccountGroupAttrTypesDS = objectAttrsTypeDSGroupAccountGroup(false) +var groupAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroup(true) + +type groupAccountGroupDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false) +var groupAccountGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(true) + +type groupAccountGroupLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupAccountGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupAccountGroup_additionalObjects(false) +var groupAccountGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroup_additionalObjects(true) + +type groupAccountGroup_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var groupAuthorizedGroupsWrapperAttrTypesDS = objectAttrsTypeDSGroupAuthorizedGroupsWrapper(false) +var groupAuthorizedGroupsWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupAuthorizedGroupsWrapper(true) + +type groupAuthorizedGroupsWrapperDataDS struct { + Items types.List `tfsdk:"items"` + GroupCount types.Int64 `tfsdk:"group_count"` +} + +var groupGroupAttrTypesDS = objectAttrsTypeDSGroupGroup(false) +var groupGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup(true) + +type groupGroupDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationAdministration types.Bool `tfsdk:"application_administration"` + AuditConfig types.Object `tfsdk:"audit_config"` + AuditRequested types.Bool `tfsdk:"audit_requested"` + Auditor types.Bool `tfsdk:"auditor"` + AuthorizingGroupAuditing types.Object `tfsdk:"authorizing_group_auditing"` + AuthorizingGroupDelegation types.Object `tfsdk:"authorizing_group_delegation"` + AuthorizingGroupMembership types.Object `tfsdk:"authorizing_group_membership"` + AuthorizingGroupProvisioning types.Object `tfsdk:"authorizing_group_provisioning"` + AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` + Classification types.Object `tfsdk:"classification"` + Description types.String `tfsdk:"description"` + ExtendedAccess types.String `tfsdk:"extended_access"` + HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` + NestedUnder types.Object `tfsdk:"nested_under"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + PrivateGroup types.Bool `tfsdk:"private_group"` + RecordTrail types.Bool `tfsdk:"record_trail"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + SingleManaged types.Bool `tfsdk:"single_managed"` + VaultRecovery types.String `tfsdk:"vault_recovery"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAccount(false) +var groupGroupAccountAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount(true) + +type groupGroupAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(false) +var groupGroupAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(true) + +type groupGroupAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAccountNestingAttrTypesDS = objectAttrsTypeDSGroupGroupAccountNesting(false) +var groupGroupAccountNestingAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountNesting(true) + +type groupGroupAccountNestingDataDS struct { + Connected types.Bool `tfsdk:"connected"` +} + +var groupGroupAccountStatusAttrTypesDS = objectAttrsTypeDSGroupGroupAccountStatus(false) +var groupGroupAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountStatus(true) + +type groupGroupAccountStatusDataDS struct { + Folder types.Object `tfsdk:"folder"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAccount_additionalObjects(false) +var groupGroupAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount_additionalObjects(true) + +type groupGroupAccount_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAdminMailAttrTypesDS = objectAttrsTypeDSGroupGroupAdminMail(false) +var groupGroupAdminMailAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAdminMail(true) + +type groupGroupAdminMailDataDS struct { + Body types.String `tfsdk:"body"` +} + +var groupGroupAuditAttrTypesDS = objectAttrsTypeDSGroupGroupAudit(false) +var groupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit(true) + +type groupGroupAuditDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var groupGroupAuditAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAuditAccount(false) +var groupGroupAuditAccountAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditAccount(true) + +type groupGroupAuditAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AccountValid types.Bool `tfsdk:"account_valid"` + Action types.String `tfsdk:"action"` + Comment types.String `tfsdk:"comment"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + DisplayName types.String `tfsdk:"display_name"` + EndDate types.String `tfsdk:"end_date"` + LastActive types.String `tfsdk:"last_active"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + Rights types.String `tfsdk:"rights"` + Username types.String `tfsdk:"username"` +} + +var groupGroupAuditConfigAttrTypesDS = objectAttrsTypeDSGroupGroupAuditConfig(false) +var groupGroupAuditConfigAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditConfig(true) + +type groupGroupAuditConfigDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Months types.List `tfsdk:"months"` +} + +var groupGroupAuditLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(false) +var groupGroupAuditLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(true) + +type groupGroupAuditLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAudit_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAudit_additionalObjects(false) +var groupGroupAudit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit_additionalObjects(true) + +type groupGroupAudit_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAuditingInfoAttrTypesDS = objectAttrsTypeDSGroupGroupAuditingInfo(false) +var groupGroupAuditingInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditingInfo(true) + +type groupGroupAuditingInfoDataDS struct { + AuditDueDate types.String `tfsdk:"audit_due_date"` + LastAuditDate types.String `tfsdk:"last_audit_date"` + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrDisabledAccounts types.Int64 `tfsdk:"nr_disabled_accounts"` + NrDisabledManagers types.Int64 `tfsdk:"nr_disabled_managers"` + NrExpiredVaultRecords types.Int64 `tfsdk:"nr_expired_vault_records"` + NrManagers types.Int64 `tfsdk:"nr_managers"` + NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` +} + +var groupGroupClassificationAttrTypesDS = objectAttrsTypeDSGroupGroupClassification(false) +var groupGroupClassificationAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification(true) + +type groupGroupClassificationDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` + AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` + AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` + AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` + DefaultClassification types.Bool `tfsdk:"default_classification"` + Description types.String `tfsdk:"description"` + MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` + MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` + RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` + RequiredMonths types.List `tfsdk:"required_months"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupClassificationInfoAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationInfo(false) +var groupGroupClassificationInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationInfo(true) + +type groupGroupClassificationInfoDataDS struct { + NrGroups types.Int64 `tfsdk:"nr_groups"` +} + +var groupGroupClassificationLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(false) +var groupGroupClassificationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(true) + +type groupGroupClassificationLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClassificationPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationPrimer(false) +var groupGroupClassificationPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationPrimer(true) + +type groupGroupClassificationPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupClassificationUpdateAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationUpdate(false) +var groupGroupClassificationUpdateAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationUpdate(true) + +type groupGroupClassificationUpdateDataDS struct { + Classificaton types.Object `tfsdk:"classificaton"` +} + +var groupGroupClassification_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClassification_additionalObjects(false) +var groupGroupClassification_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification_additionalObjects(true) + +type groupGroupClassification_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Info types.Object `tfsdk:"info"` +} + +var groupGroupClientAttrTypesDS = objectAttrsTypeDSGroupGroupClient(false) +var groupGroupClientAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient(true) + +type groupGroupClientDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Client types.Object `tfsdk:"client"` + Group types.Object `tfsdk:"group"` + Owner types.Object `tfsdk:"owner"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` +} + +var groupGroupClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClientLinkableWrapper(false) +var groupGroupClientLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClientLinkableWrapper(true) + +type groupGroupClientLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClient_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClient_additionalObjects(false) +var groupGroupClient_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient_additionalObjects(true) + +type groupGroupClient_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupFolderAttrTypesDS = objectAttrsTypeDSGroupGroupFolder(false) +var groupGroupFolderAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder(true) + +type groupGroupFolderDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` +} + +var groupGroupFolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(false) +var groupGroupFolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(true) + +type groupGroupFolderLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupFolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupFolder_additionalObjects(false) +var groupGroupFolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder_additionalObjects(true) + +type groupGroupFolder_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupInfoAttrTypesDS = objectAttrsTypeDSGroupGroupInfo(false) +var groupGroupInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupInfo(true) + +type groupGroupInfoDataDS struct { + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` + NrAudits types.Int64 `tfsdk:"nr_audits"` + NrClients types.Int64 `tfsdk:"nr_clients"` + NrProvisionedSystems types.Int64 `tfsdk:"nr_provisioned_systems"` + NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` +} + +var groupGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupLinkableWrapper(false) +var groupGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupLinkableWrapper(true) + +type groupGroupLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupPrimer(false) +var groupGroupPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupPrimer(true) + +type groupGroupPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(false) +var groupGroupPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(true) + +type groupGroupPrimerLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupSegmentedLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(false) +var groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(true) + +type groupGroupSegmentedLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` + Segments types.List `tfsdk:"segments"` +} + +var groupGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroup_additionalObjects(false) +var groupGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup_additionalObjects(true) + +type groupGroup_additionalObjectsDataDS struct { + Accounts types.Object `tfsdk:"accounts"` + AdministeredClients types.Object `tfsdk:"administered_clients"` + AdministeredSystems types.Object `tfsdk:"administered_systems"` + Admins types.Object `tfsdk:"admins"` + Audit types.Object `tfsdk:"audit"` + AuthorizedGroups types.Object `tfsdk:"authorized_groups"` + ClientPermissions types.Object `tfsdk:"client_permissions"` + Clients types.Object `tfsdk:"clients"` + ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` + Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` + Groupinfo types.Object `tfsdk:"groupinfo"` + Helpdesk types.Object `tfsdk:"helpdesk"` + Markers types.Object `tfsdk:"markers"` + Myaccount types.Object `tfsdk:"myaccount"` + Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` + NestedGroups types.Object `tfsdk:"nested_groups"` + OwnedClients types.Object `tfsdk:"owned_clients"` + OwnedDirectories types.Object `tfsdk:"owned_directories"` + OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` + OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` + OwnedSystems types.Object `tfsdk:"owned_systems"` + RecentAudits types.Object `tfsdk:"recent_audits"` + Requeststatus types.String `tfsdk:"requeststatus"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` + Systems types.Object `tfsdk:"systems"` + Vault types.Object `tfsdk:"vault"` + Webhooks types.Object `tfsdk:"webhooks"` +} + +var groupGroupsAuditStatsAttrTypesDS = objectAttrsTypeDSGroupGroupsAuditStats(false) +var groupGroupsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupsAuditStats(true) + +type groupGroupsAuditStatsDataDS struct { + AuditedGroups types.Int64 `tfsdk:"audited_groups"` + Classifications types.List `tfsdk:"classifications"` + OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` + OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` + UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` + ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` + VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` +} + +var groupProvisioningGroupAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup(false) +var groupProvisioningGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup(true) + +type groupProvisioningGroupDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Group types.Object `tfsdk:"group"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var groupProvisioningGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false) +var groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(true) + +type groupProvisioningGroupLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var groupProvisioningGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false) +var groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(true) + +type groupProvisioningGroup_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) +var launchpadDisplayedLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(true) + +type launchpadDisplayedLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + Logo types.List `tfsdk:"logo"` + Tile types.Object `tfsdk:"tile"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadDisplayedLaunchpadTilesAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(false) +var launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(true) + +type launchpadDisplayedLaunchpadTilesDataDS struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile(false) +var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile(true) + +type launchpadLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` +} + +var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) +var launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(true) + +type launchpadLaunchpadTileLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTilePrimerAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(false) +var launchpadLaunchpadTilePrimerAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(true) + +type launchpadLaunchpadTilePrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var launchpadLaunchpadTile_additionalObjectsAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false) +var launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(true) + +type launchpadLaunchpadTile_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadManualLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadManualLaunchpadTile(false) +var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadManualLaunchpadTile(true) + +type launchpadManualLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) +var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(true) + +type launchpadSsoApplicationLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadVaultRecordLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false) +var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(true) + +type launchpadVaultRecordLaunchpadTileDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` +} + +var licenseKeyHubLicenseInfoAttrTypesDS = objectAttrsTypeDSLicenseKeyHubLicenseInfo(false) +var licenseKeyHubLicenseInfoAttrTypesDSRecurse = objectAttrsTypeDSLicenseKeyHubLicenseInfo(true) + +type licenseKeyHubLicenseInfoDataDS struct { + CurrentLicenseStatus types.String `tfsdk:"current_license_status"` + CustomerCompany types.String `tfsdk:"customer_company"` + CustomerContact types.String `tfsdk:"customer_contact"` + CustomerDomains types.List `tfsdk:"customer_domains"` + Details types.List `tfsdk:"details"` + ExpirationTime types.String `tfsdk:"expiration_time"` + Features types.List `tfsdk:"features"` + IssueTime types.String `tfsdk:"issue_time"` + KeyHubDomain types.String `tfsdk:"key_hub_domain"` + LicenseKey types.String `tfsdk:"license_key"` + NotBeforeTime types.String `tfsdk:"not_before_time"` + UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` + UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` + UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` + UUID types.String `tfsdk:"uuid"` + Version types.Int64 `tfsdk:"version"` +} + +var markItemMarkerAttrTypesDS = objectAttrsTypeDSMarkItemMarker(false) +var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) + +type markItemMarkerDataDS struct { + Level types.String `tfsdk:"level"` + MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + Parameters types.Object `tfsdk:"parameters"` +} + +var markItemMarker_parametersAttrTypesDS = objectAttrsTypeDSMarkItemMarker_parameters(false) +var markItemMarker_parametersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker_parameters(true) + +type markItemMarker_parametersDataDS struct { +} + +var markItemMarkersAttrTypesDS = objectAttrsTypeDSMarkItemMarkers(false) +var markItemMarkersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarkers(true) + +type markItemMarkersDataDS struct { + Markers types.List `tfsdk:"markers"` +} + +var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) +var notificationCertificateExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationCertificateExpiredNotification(true) + +type notificationCertificateExpiredNotificationDataDS struct { + Certificate types.Object `tfsdk:"certificate"` + Directory types.Object `tfsdk:"directory"` + Expiration types.String `tfsdk:"expiration"` + LdapClient types.Object `tfsdk:"ldap_client"` + System types.Object `tfsdk:"system"` + Usage types.String `tfsdk:"usage"` + Webhook types.Object `tfsdk:"webhook"` +} + +var notificationGroupAuditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(false) +var notificationGroupAuditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(true) + +type notificationGroupAuditRequiredNotificationDataDS struct { + DueDate types.String `tfsdk:"due_date"` + Group types.Object `tfsdk:"group"` + NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` +} + +var notificationGroupEditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification(false) +var notificationGroupEditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification(true) + +type notificationGroupEditRequiredNotificationDataDS struct { + Group types.Object `tfsdk:"group"` + Parameters types.Object `tfsdk:"parameters"` + Reason types.String `tfsdk:"reason"` +} + +var notificationGroupEditRequiredNotification_parametersAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(false) +var notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(true) + +type notificationGroupEditRequiredNotification_parametersDataDS struct { +} + +var notificationInvalidSignaturesDetectedNotificationAttrTypesDS = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(false) +var notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(true) + +type notificationInvalidSignaturesDetectedNotificationDataDS struct { +} + +var notificationLicenseStatusNotificationAttrTypesDS = objectAttrsTypeDSNotificationLicenseStatusNotification(false) +var notificationLicenseStatusNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationLicenseStatusNotification(true) + +type notificationLicenseStatusNotificationDataDS struct { + ActiveAccounts types.Int64 `tfsdk:"active_accounts"` + LicenseInfo types.Object `tfsdk:"license_info"` +} + +var notificationModificationRequestNotificationAttrTypesDS = objectAttrsTypeDSNotificationModificationRequestNotification(false) +var notificationModificationRequestNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationModificationRequestNotification(true) + +type notificationModificationRequestNotificationDataDS struct { + Admins types.List `tfsdk:"admins"` + Groups types.List `tfsdk:"groups"` + Request types.Object `tfsdk:"request"` +} + +var notificationNotificationAttrTypesDS = objectAttrsTypeDSNotificationNotification(false) +var notificationNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotification(true) + +type notificationNotificationDataDS struct { +} + +var notificationNotificationsAttrTypesDS = objectAttrsTypeDSNotificationNotifications(false) +var notificationNotificationsAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotifications(true) + +type notificationNotificationsDataDS struct { + Items types.List `tfsdk:"items"` +} + +var notificationOldApiVersionUsageNotificationAttrTypesDS = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(false) +var notificationOldApiVersionUsageNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(true) + +type notificationOldApiVersionUsageNotificationDataDS struct { + ApiVersion types.Int64 `tfsdk:"api_version"` + Client types.Object `tfsdk:"client"` +} + +var notificationProvisionConfigRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(false) +var notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(true) + +type notificationProvisionConfigRequiredNotificationDataDS struct { + Systems types.List `tfsdk:"systems"` +} + +var notificationRotatingPasswordRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(false) +var notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(true) + +type notificationRotatingPasswordRequiredNotificationDataDS struct { + Groups types.List `tfsdk:"groups"` +} + +var notificationUpdateAvailableNotificationAttrTypesDS = objectAttrsTypeDSNotificationUpdateAvailableNotification(false) +var notificationUpdateAvailableNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationUpdateAvailableNotification(true) + +type notificationUpdateAvailableNotificationDataDS struct { + ReleasedAt types.String `tfsdk:"released_at"` +} + +var notificationVaultRecordExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(false) +var notificationVaultRecordExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(true) + +type notificationVaultRecordExpiredNotificationDataDS struct { + Record types.Object `tfsdk:"record"` +} + +var organizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(false) +var organizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(true) + +type organizationAccountOrganizationalUnitDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(false) +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(true) + +type organizationAccountOrganizationalUnitLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false) +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(true) + +type organizationAccountOrganizationalUnit_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit(true) + +type organizationOrganizationalUnitDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Depth types.Int64 `tfsdk:"depth"` + Description types.String `tfsdk:"description"` + Owner types.Object `tfsdk:"owner"` + Parent types.Object `tfsdk:"parent"` +} + +var organizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(false) +var organizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(true) + +type organizationOrganizationalUnitAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` +} + +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(false) +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(true) + +type organizationOrganizationalUnitAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false) +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(true) + +type organizationOrganizationalUnitAccount_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(false) +var organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(true) + +type organizationOrganizationalUnitLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitPrimerAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false) +var organizationOrganizationalUnitPrimerAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(true) + +type organizationOrganizationalUnitPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) + +type organizationOrganizationalUnitPrimerLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false) +var organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(true) + +type organizationOrganizationalUnit_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningAbstractProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false) +var provisioningAbstractProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(true) + +type provisioningAbstractProvisionedLDAPDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_d_n"` +} + +var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) +var provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(true) + +type provisioningAbstractProvisionedLDAP_attributesDataDS struct { +} + +var provisioningAccountProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatus(false) +var provisioningAccountProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatus(true) + +type provisioningAccountProvisioningStatusDataDS struct { + Description types.String `tfsdk:"description"` + Result types.String `tfsdk:"result"` + System types.Object `tfsdk:"system"` +} + +var provisioningAccountProvisioningStatusReportAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(false) +var provisioningAccountProvisioningStatusReportAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(true) + +type provisioningAccountProvisioningStatusReportDataDS struct { + Status types.List `tfsdk:"status"` +} + +var provisioningCircuitBreakerStatisticsAttrTypesDS = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false) +var provisioningCircuitBreakerStatisticsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(true) + +type provisioningCircuitBreakerStatisticsDataDS struct { + NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` + NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` + NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` + State types.String `tfsdk:"state"` +} + +var provisioningGroupOnSystemAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystem(false) +var provisioningGroupOnSystemAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystem(true) + +type provisioningGroupOnSystemDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Owner types.Object `tfsdk:"owner"` + System types.Object `tfsdk:"system"` +} + +var provisioningGroupOnSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(false) +var provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(true) + +type provisioningGroupOnSystemLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningGroupOnSystemPrimerAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemPrimer(false) +var provisioningGroupOnSystemPrimerAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemPrimer(true) + +type provisioningGroupOnSystemPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` +} + +var provisioningGroupOnSystemTypesAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemTypes(false) +var provisioningGroupOnSystemTypesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemTypes(true) + +type provisioningGroupOnSystemTypesDataDS struct { + Types types.List `tfsdk:"types"` +} + +var provisioningGroupOnSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false) +var provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(true) + +type provisioningGroupOnSystem_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Provgroups types.Object `tfsdk:"provgroups"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` +} + +var provisioningGroupProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus(false) +var provisioningGroupProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus(true) + +type provisioningGroupProvisioningStatusDataDS struct { + Folder types.Object `tfsdk:"folder"` + Group types.Object `tfsdk:"group"` + ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` + StatusReport types.Object `tfsdk:"status_report"` + VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` +} + +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(false) +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(true) + +type provisioningGroupProvisioningStatus_provisioningDurationDataDS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var provisioningOwnedGroupOnSystemsWrapperAttrTypesDS = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(false) +var provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(true) + +type provisioningOwnedGroupOnSystemsWrapperDataDS struct { + Items types.List `tfsdk:"items"` + UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` +} + +var provisioningProvisionNumberSequenceAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence(false) +var provisioningProvisionNumberSequenceAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence(true) + +type provisioningProvisionNumberSequenceDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + NextUID types.Int64 `tfsdk:"next_u_i_d"` +} + +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(false) +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(true) + +type provisioningProvisionNumberSequenceLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false) +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(true) + +type provisioningProvisionNumberSequence_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Systems types.Object `tfsdk:"systems"` +} + +var provisioningProvisionedADAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAD(false) +var provisioningProvisionedADAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAD(true) + +type provisioningProvisionedADDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_d_n"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` +} + +var provisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount(false) +var provisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount(true) + +type provisioningProvisionedAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Uid types.Int64 `tfsdk:"uid"` +} + +var provisioningProvisionedAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(false) +var provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(true) + +type provisioningProvisionedAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false) +var provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(true) + +type provisioningProvisionedAccount_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedAzureOIDCDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(true) + +type provisioningProvisionedAzureOIDCDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false) +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(true) + +type provisioningProvisionedAzureSyncLDAPDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureTenantAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureTenant(false) +var provisioningProvisionedAzureTenantAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureTenant(true) + +type provisioningProvisionedAzureTenantDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedInternalLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false) +var provisioningProvisionedInternalLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(true) + +type provisioningProvisionedInternalLDAPDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Client types.Object `tfsdk:"client"` +} + +var provisioningProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAP(false) +var provisioningProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAP(true) + +type provisioningProvisionedLDAPDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_d_n"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` +} + +var provisioningProvisionedLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false) +var provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(true) + +type provisioningProvisionedLDAPDirectoryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Directory types.Object `tfsdk:"directory"` + GroupDN types.String `tfsdk:"group_d_n"` +} + +var provisioningProvisionedSystemAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem(false) +var provisioningProvisionedSystemAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem(true) + +type provisioningProvisionedSystemDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministrator types.Object `tfsdk:"content_administrator"` + ExternalUUID types.String `tfsdk:"external_uuid"` + Owner types.Object `tfsdk:"owner"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + UsernamePrefix types.String `tfsdk:"username_prefix"` +} + +var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) +var provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(true) + +type provisioningProvisionedSystemLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemPrimerAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false) +var provisioningProvisionedSystemPrimerAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemPrimer(true) + +type provisioningProvisionedSystemPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` +} + +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(false) +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(true) + +type provisioningProvisionedSystemPrimerLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(false) +var provisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(true) + +type provisioningProvisionedSystemSyncLogDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) + +type provisioningProvisionedSystemSyncLogLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false) +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(true) + +type provisioningProvisionedSystemSyncLog_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false) +var provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(true) + +type provisioningProvisionedSystem_additionalObjectsDataDS struct { + Account types.Object `tfsdk:"account"` + Audit types.Object `tfsdk:"audit"` + IssuedPermissions types.Object `tfsdk:"issued_permissions"` + LoginName types.String `tfsdk:"login_name"` + ManagementPermissions types.Object `tfsdk:"management_permissions"` + Markers types.Object `tfsdk:"markers"` + Statistics types.Object `tfsdk:"statistics"` + SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` +} + +var provisioningProvisioningManagementPermissionsAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningManagementPermissions(false) +var provisioningProvisioningManagementPermissionsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningManagementPermissions(true) + +type provisioningProvisioningManagementPermissionsDataDS struct { + CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` + CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` + ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` +} + +var provisioningProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningStatus(false) +var provisioningProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningStatus(true) + +type provisioningProvisioningStatusDataDS struct { + Groups types.List `tfsdk:"groups"` + IgnoreErrors types.Bool `tfsdk:"ignore_errors"` + RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` +} + +var provisioningTokenPasswordAttrTypesDS = objectAttrsTypeDSProvisioningTokenPassword(false) +var provisioningTokenPasswordAttrTypesDSRecurse = objectAttrsTypeDSProvisioningTokenPassword(true) + +type provisioningTokenPasswordDataDS struct { + Password types.String `tfsdk:"password"` +} + +var requestAbstractApplicationModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false) +var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(true) + +type requestAbstractApplicationModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestAbstractOrganizationalUnitModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(true) + +type requestAbstractOrganizationalUnitModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` +} + +var requestAbstractProvisionedSystemModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false) +var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(true) + +type requestAbstractProvisionedSystemModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestAcceptGrantAccessRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(false) +var requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(true) + +type requestAcceptGrantAccessRequestParametersDataDS struct { + AccessDuration types.Object `tfsdk:"access_duration"` +} + +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(false) +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(true) + +type requestAcceptGrantAccessRequestParameters_accessDurationDataDS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var requestAcceptJoinGroupRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(false) +var requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(true) + +type requestAcceptJoinGroupRequestParametersDataDS struct { + EndDate types.String `tfsdk:"end_date"` + MakeManager types.Bool `tfsdk:"make_manager"` +} + +var requestAcceptModificationRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptModificationRequestParameters(false) +var requestAcceptModificationRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptModificationRequestParameters(true) + +type requestAcceptModificationRequestParametersDataDS struct { +} + +var requestAddGroupAdminRequestAttrTypesDS = objectAttrsTypeDSRequestAddGroupAdminRequest(false) +var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddGroupAdminRequest(true) + +type requestAddGroupAdminRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewAdmin types.Object `tfsdk:"new_admin"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var requestCreateGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false) +var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(true) + +type requestCreateGroupOnSystemRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` +} + +var requestCreateGroupRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupRequest(false) +var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupRequest(true) + +type requestCreateGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestCreateServiceAccountRequestAttrTypesDS = objectAttrsTypeDSRequestCreateServiceAccountRequest(false) +var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateServiceAccountRequest(true) + +type requestCreateServiceAccountRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` + Username types.String `tfsdk:"username"` +} + +var requestDisable2FARequestAttrTypesDS = objectAttrsTypeDSRequestDisable2FARequest(false) +var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable2FARequest(true) + +type requestDisable2FARequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Subject types.String `tfsdk:"subject"` +} + +var requestEnableTechnicalAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false) +var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(true) + +type requestEnableTechnicalAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestExtendAccessRequestAttrTypesDS = objectAttrsTypeDSRequestExtendAccessRequest(false) +var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExtendAccessRequest(true) + +type requestExtendAccessRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ExtendUntil types.String `tfsdk:"extend_until"` +} + +var requestGrantAccessRequestAttrTypesDS = objectAttrsTypeDSRequestGrantAccessRequest(false) +var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantAccessRequest(true) + +type requestGrantAccessRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestGrantApplicationRequestAttrTypesDS = objectAttrsTypeDSRequestGrantApplicationRequest(false) +var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantApplicationRequest(true) + +type requestGrantApplicationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestGrantClientPermissionRequestAttrTypesDS = objectAttrsTypeDSRequestGrantClientPermissionRequest(false) +var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantClientPermissionRequest(true) + +type requestGrantClientPermissionRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` + PermissionType types.String `tfsdk:"permission_type"` + System types.Object `tfsdk:"system"` +} + +var requestGrantGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false) +var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(true) + +type requestGrantGroupOnSystemRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantGroupOnSystemRequestRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false) +var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(true) + +type requestGrantGroupOnSystemRequestRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantServiceAccountGroupRequestAttrTypesDS = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false) +var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(true) + +type requestGrantServiceAccountGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccount types.Object `tfsdk:"service_account"` +} + +var requestJoinGroupRequestAttrTypesDS = objectAttrsTypeDSRequestJoinGroupRequest(false) +var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGroupRequest(true) + +type requestJoinGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestJoinVaultRequestAttrTypesDS = objectAttrsTypeDSRequestJoinVaultRequest(false) +var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaultRequest(true) + +type requestJoinVaultRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestAttrTypesDS = objectAttrsTypeDSRequestModificationRequest(false) +var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest(true) + +type requestModificationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) +var requestModificationRequestLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(true) + +type requestModificationRequestLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var requestModificationRequest_additionalObjectsAttrTypesDS = objectAttrsTypeDSRequestModificationRequest_additionalObjects(false) +var requestModificationRequest_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest_additionalObjects(true) + +type requestModificationRequest_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + ResetStatus types.Object `tfsdk:"reset_status"` +} + +var requestPasswordResetRequestAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequest(false) +var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequest(true) + +type requestPasswordResetRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestPasswordResetRequestStatusAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequestStatus(false) +var requestPasswordResetRequestStatusAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequestStatus(true) + +type requestPasswordResetRequestStatusDataDS struct { + CooldownEnd types.String `tfsdk:"cooldown_end"` + Managers types.List `tfsdk:"managers"` + NrAccepted types.Int64 `tfsdk:"nr_accepted"` + ResetViaMail types.String `tfsdk:"reset_via_mail"` +} + +var requestRemoveGroupRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveGroupRequest(false) +var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveGroupRequest(true) + +type requestRemoveGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestRemoveOrganizationalUnitRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false) +var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(true) + +type requestRemoveOrganizationalUnitRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` +} + +var requestRemoveProvisionedSystemRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false) +var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(true) + +type requestRemoveProvisionedSystemRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` + SystemName types.String `tfsdk:"system_name"` +} + +var requestReviewAuditRequestAttrTypesDS = objectAttrsTypeDSRequestReviewAuditRequest(false) +var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReviewAuditRequest(true) + +type requestReviewAuditRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestRevokeAdminRequestAttrTypesDS = objectAttrsTypeDSRequestRevokeAdminRequest(false) +var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevokeAdminRequest(true) + +type requestRevokeAdminRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Admin types.Object `tfsdk:"admin"` +} + +var requestSetupAuthorizingGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false) +var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(true) + +type requestSetupAuthorizingGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` +} + +var requestSetupNestedGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupNestedGroupRequest(false) +var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupNestedGroupRequest(true) + +type requestSetupNestedGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` +} + +var requestTransferApplicationAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false) +var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(true) + +type requestTransferApplicationAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestTransferApplicationOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false) +var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(true) + +type requestTransferApplicationOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Application types.Object `tfsdk:"application"` +} + +var requestTransferAuditorGroupRequestAttrTypesDS = objectAttrsTypeDSRequestTransferAuditorGroupRequest(false) +var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferAuditorGroupRequest(true) + +type requestTransferAuditorGroupRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestTransferGroupOnSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false) +var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(true) + +type requestTransferGroupOnSystemOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false) +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(true) + +type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` +} + +var requestTransferProvisionedSystemAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false) +var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(true) + +type requestTransferProvisionedSystemAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false) +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(true) + +type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestTransferProvisionedSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false) +var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(true) + +type requestTransferProvisionedSystemOwnershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + System types.Object `tfsdk:"system"` +} + +var requestTransferServiceAccountAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false) +var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(true) + +type requestTransferServiceAccountAdministrationRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ServiceAccount types.Object `tfsdk:"service_account"` +} + +var requestUpdateGroupMembershipRequestAttrTypesDS = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false) +var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(true) + +type requestUpdateGroupMembershipRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountToUpdate types.Object `tfsdk:"account_to_update"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` +} + +var requestVerifyInternalAccountRequestAttrTypesDS = objectAttrsTypeDSRequestVerifyInternalAccountRequest(false) +var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestVerifyInternalAccountRequest(true) + +type requestVerifyInternalAccountRequestDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + InternalAccountName types.String `tfsdk:"internal_account_name"` +} + +var serviceaccountServiceAccountAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount(false) +var serviceaccountServiceAccountAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount(true) + +type serviceaccountServiceAccountDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + System types.Object `tfsdk:"system"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Description types.String `tfsdk:"description"` + Password types.Object `tfsdk:"password"` + PasswordRotation types.String `tfsdk:"password_rotation"` + TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` +} + +var serviceaccountServiceAccountGroupAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroup(false) +var serviceaccountServiceAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroup(true) + +type serviceaccountServiceAccountGroupDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(false) +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(true) + +type serviceaccountServiceAccountGroupLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false) +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(true) + +type serviceaccountServiceAccountGroup_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var serviceaccountServiceAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(false) +var serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(true) + +type serviceaccountServiceAccountLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountPrimerAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountPrimer(false) +var serviceaccountServiceAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountPrimer(true) + +type serviceaccountServiceAccountPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + System types.Object `tfsdk:"system"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` +} + +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false) +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(true) + +type serviceaccountServiceAccountPrimerLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountStatusAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountStatus(false) +var serviceaccountServiceAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountStatus(true) + +type serviceaccountServiceAccountStatusDataDS struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` +} + +var serviceaccountServiceAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false) +var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(true) + +type serviceaccountServiceAccount_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` +} + +var serviceaccountServiceAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(false) +var serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(true) + +type serviceaccountServiceAccountsAuditStatsDataDS struct { + DisabledCount types.Int64 `tfsdk:"disabled_count"` + PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` + SystemStats types.Object `tfsdk:"system_stats"` +} + +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) + +type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS struct { +} + +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(false) +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(true) + +type serviceaccountServiceAccountsAuditStats_systemStatsDataDS struct { +} + +var simpleStringValueAttrTypesDS = objectAttrsTypeDSSimpleStringValue(false) +var simpleStringValueAttrTypesDSRecurse = objectAttrsTypeDSSimpleStringValue(true) + +type simpleStringValueDataDS struct { + Value types.String `tfsdk:"value"` +} + +var simpleVersionInfoAttrTypesDS = objectAttrsTypeDSSimpleVersionInfo(false) +var simpleVersionInfoAttrTypesDSRecurse = objectAttrsTypeDSSimpleVersionInfo(true) + +type simpleVersionInfoDataDS struct { + ContractVersions types.List `tfsdk:"contract_versions"` + KeyHubVersion types.String `tfsdk:"key_hub_version"` +} + +var vaultDeletedVaultHolderAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder(false) +var vaultDeletedVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder(true) + +type vaultDeletedVaultHolderDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + RecordCount types.Int64 `tfsdk:"record_count"` + VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` +} + +var vaultDeletedVaultHolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(false) +var vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(true) + +type vaultDeletedVaultHolderLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var vaultDeletedVaultHolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false) +var vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(true) + +type vaultDeletedVaultHolder_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var vaultDeletedVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultRecovery(false) +var vaultDeletedVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultRecovery(true) + +type vaultDeletedVaultRecoveryDataDS struct { + Prefix types.String `tfsdk:"prefix"` + PrivateKey types.String `tfsdk:"private_key"` + TargetGroup types.Object `tfsdk:"target_group"` +} + +var vaultMoveVaultRecordAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord(false) +var vaultMoveVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord(true) + +type vaultMoveVaultRecordDataDS struct { + Account types.Object `tfsdk:"account"` + Action types.String `tfsdk:"action"` + Group types.Object `tfsdk:"group"` + ShareDuration types.Object `tfsdk:"share_duration"` +} + +var vaultMoveVaultRecord_shareDurationAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(false) +var vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(true) + +type vaultMoveVaultRecord_shareDurationDataDS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var vaultVaultAttrTypesDS = objectAttrsTypeDSVaultVault(false) +var vaultVaultAttrTypesDSRecurse = objectAttrsTypeDSVaultVault(true) + +type vaultVaultDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccessAvailable types.Bool `tfsdk:"access_available"` + Name types.String `tfsdk:"name"` + Records types.List `tfsdk:"records"` +} + +var vaultVaultHolderAttrTypesDS = objectAttrsTypeDSVaultVaultHolder(false) +var vaultVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultHolder(true) + +type vaultVaultHolderDataDS struct { +} + +var vaultVaultRecordAttrTypesDS = objectAttrsTypeDSVaultVaultRecord(false) +var vaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord(true) + +type vaultVaultRecordDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + +var vaultVaultRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(false) +var vaultVaultRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(true) + +type vaultVaultRecordLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordPrimerAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimer(false) +var vaultVaultRecordPrimerAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimer(true) + +type vaultVaultRecordPrimerDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` +} + +var vaultVaultRecordPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false) +var vaultVaultRecordPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(true) + +type vaultVaultRecordPrimerLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordSecretsAttrTypesDS = objectAttrsTypeDSVaultVaultRecordSecrets(false) +var vaultVaultRecordSecretsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordSecrets(true) + +type vaultVaultRecordSecretsDataDS struct { + Comment types.String `tfsdk:"comment"` + File types.String `tfsdk:"file"` + Password types.String `tfsdk:"password"` + Totp types.String `tfsdk:"totp"` +} + +var vaultVaultRecordShareAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShare(false) +var vaultVaultRecordShareAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordShare(true) + +type vaultVaultRecordShareDataDS struct { + Name types.String `tfsdk:"name"` + VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` +} + +var vaultVaultRecordShareSummaryAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShareSummary(false) +var vaultVaultRecordShareSummaryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordShareSummary(true) + +type vaultVaultRecordShareSummaryDataDS struct { + Children types.List `tfsdk:"children"` + Parent types.Object `tfsdk:"parent"` +} + +var vaultVaultRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultVaultRecord_additionalObjects(false) +var vaultVaultRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord_additionalObjects(true) + +type vaultVaultRecord_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` + Parent types.Object `tfsdk:"parent"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` +} + +var vaultVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultVaultRecovery(false) +var vaultVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecovery(true) + +type vaultVaultRecoveryDataDS struct { + Account types.Object `tfsdk:"account"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var vaultVaultUnlockAttrTypesDS = objectAttrsTypeDSVaultVaultUnlock(false) +var vaultVaultUnlockAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlock(true) + +type vaultVaultUnlockDataDS struct { + Password types.String `tfsdk:"password"` +} + +var vaultVaultUnlockResponseAttrTypesDS = objectAttrsTypeDSVaultVaultUnlockResponse(false) +var vaultVaultUnlockResponseAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlockResponse(true) + +type vaultVaultUnlockResponseDataDS struct { + ExpiresAt types.String `tfsdk:"expires_at"` + SessionPassword types.String `tfsdk:"session_password"` +} + +var webhookWebhookAttrTypesDS = objectAttrsTypeDSWebhookWebhook(false) +var webhookWebhookAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook(true) + +type webhookWebhookDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Account types.Object `tfsdk:"account"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AllTypes types.Bool `tfsdk:"all_types"` + AuthenticationScheme types.String `tfsdk:"authentication_scheme"` + BasicAuthPassword types.String `tfsdk:"basic_auth_password"` + BasicAuthUsername types.String `tfsdk:"basic_auth_username"` + BearerToken types.String `tfsdk:"bearer_token"` + Client types.Object `tfsdk:"client"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + CustomHeaderName types.String `tfsdk:"custom_header_name"` + CustomHeaderValue types.String `tfsdk:"custom_header_value"` + Directory types.Object `tfsdk:"directory"` + Group types.Object `tfsdk:"group"` + Name types.String `tfsdk:"name"` + System types.Object `tfsdk:"system"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + UUID types.String `tfsdk:"uuid"` + VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` +} + +var webhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery(false) +var webhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery(true) + +type webhookWebhookDeliveryDataDS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + +var webhookWebhookDeliveryLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(false) +var webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(true) + +type webhookWebhookDeliveryLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookDelivery_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false) +var webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(true) + +type webhookWebhookDelivery_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} + +var webhookWebhookLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookLinkableWrapper(false) +var webhookWebhookLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookLinkableWrapper(true) + +type webhookWebhookLinkableWrapperDataDS struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookNameUuidAttrTypesDS = objectAttrsTypeDSWebhookWebhookNameUuid(false) +var webhookWebhookNameUuidAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookNameUuid(true) + +type webhookWebhookNameUuidDataDS struct { + Name types.String `tfsdk:"name"` + Object types.Object `tfsdk:"object"` + UUID types.String `tfsdk:"uuid"` +} + +var webhookWebhookPushAttrTypesDS = objectAttrsTypeDSWebhookWebhookPush(false) +var webhookWebhookPushAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookPush(true) + +type webhookWebhookPushDataDS struct { + Account types.Object `tfsdk:"account"` + ByParty types.Object `tfsdk:"by_party"` + Certificate types.Object `tfsdk:"certificate"` + Client types.Object `tfsdk:"client"` + Directory types.Object `tfsdk:"directory"` + Group types.Object `tfsdk:"group"` + Group2 types.Object `tfsdk:"group2"` + GroupClassification types.Object `tfsdk:"group_classification"` + ModificationRequest types.Object `tfsdk:"modification_request"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + SecurityLevel types.String `tfsdk:"security_level"` + Seq types.Int64 `tfsdk:"seq"` + ServiceAccount types.Object `tfsdk:"service_account"` + System types.Object `tfsdk:"system"` + Timestamp types.String `tfsdk:"timestamp"` + VaultRecord types.Object `tfsdk:"vault_record"` + Webhook types.Object `tfsdk:"webhook"` + WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` +} + +var webhookWebhook_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhook_additionalObjects(false) +var webhookWebhook_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook_additionalObjects(true) + +type webhookWebhook_additionalObjectsDataDS struct { + Audit types.Object `tfsdk:"audit"` +} diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go new file mode 100644 index 0000000..67e2549 --- /dev/null +++ b/internal/provider/full-data-struct-rs.go @@ -0,0 +1,3197 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/types" +) + +var auditInfoAttrTypesRS = objectAttrsTypeRSAuditInfo(false) +var auditInfoAttrTypesRSRecurse = objectAttrsTypeRSAuditInfo(true) + +type auditInfoDataRS struct { + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LastModifiedBy types.String `tfsdk:"last_modified_by"` +} + +var errorReportAttrTypesRS = objectAttrsTypeRSErrorReport(false) +var errorReportAttrTypesRSRecurse = objectAttrsTypeRSErrorReport(true) + +type errorReportDataRS struct { + ApplicationError types.String `tfsdk:"application_error"` + ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` + Code types.Int64 `tfsdk:"code"` + ErrorDetails types.List `tfsdk:"error_details"` + Exception types.String `tfsdk:"exception"` + Message types.String `tfsdk:"message"` + Reason types.String `tfsdk:"reason"` + Stacktrace types.List `tfsdk:"stacktrace"` +} + +var errorReport_applicationErrorParametersAttrTypesRS = objectAttrsTypeRSErrorReport_applicationErrorParameters(false) +var errorReport_applicationErrorParametersAttrTypesRSRecurse = objectAttrsTypeRSErrorReport_applicationErrorParameters(true) + +type errorReport_applicationErrorParametersDataRS struct { +} + +var generatedSecretAttrTypesRS = objectAttrsTypeRSGeneratedSecret(false) +var generatedSecretAttrTypesRSRecurse = objectAttrsTypeRSGeneratedSecret(true) + +type generatedSecretDataRS struct { + GeneratedSecret types.String `tfsdk:"generated_secret"` + OldSecret types.String `tfsdk:"old_secret"` + Regenerate types.Bool `tfsdk:"regenerate"` +} + +var linkableAttrTypesRS = objectAttrsTypeRSLinkable(false) +var linkableAttrTypesRSRecurse = objectAttrsTypeRSLinkable(true) + +type linkableDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var nonLinkableAttrTypesRS = objectAttrsTypeRSNonLinkable(false) +var nonLinkableAttrTypesRSRecurse = objectAttrsTypeRSNonLinkable(true) + +type nonLinkableDataRS struct { +} + +var restLinkAttrTypesRS = objectAttrsTypeRSRestLink(false) +var restLinkAttrTypesRSRecurse = objectAttrsTypeRSRestLink(true) + +type restLinkDataRS struct { + Href types.String `tfsdk:"href"` + ID types.Int64 `tfsdk:"id"` + Rel types.String `tfsdk:"rel"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var segmentCountAttrTypesRS = objectAttrsTypeRSSegmentCount(false) +var segmentCountAttrTypesRSRecurse = objectAttrsTypeRSSegmentCount(true) + +type segmentCountDataRS struct { + Count types.Int64 `tfsdk:"count"` + Name types.String `tfsdk:"name"` +} + +var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) +var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) + +type auditAuditRecordDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + DateTime types.String `tfsdk:"date_time"` + OnAccount types.String `tfsdk:"on_account"` + OnCertificate types.String `tfsdk:"on_certificate"` + OnClient types.String `tfsdk:"on_client"` + OnDirectory types.String `tfsdk:"on_directory"` + OnGroup types.String `tfsdk:"on_group"` + OnGroup2 types.String `tfsdk:"on_group2"` + OnGroupClassification types.String `tfsdk:"on_group_classification"` + OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` + OnServiceAccount types.String `tfsdk:"on_service_account"` + OnSystem types.String `tfsdk:"on_system"` + OnVaultRecord types.String `tfsdk:"on_vault_record"` + OnWebhook types.String `tfsdk:"on_webhook"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + PerformedBy types.String `tfsdk:"performed_by"` + SecurityLevel types.String `tfsdk:"security_level"` +} + +var auditAuditRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(false) +var auditAuditRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(true) + +type auditAuditRecordLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var auditAuditRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuditAuditRecord_additionalObjects(false) +var auditAuditRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord_additionalObjects(true) + +type auditAuditRecord_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var authAccountAttrTypesRS = objectAttrsTypeRSAuthAccount(false) +var authAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount(true) + +type authAccountDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` +} + +var authAccountBulkUpdateAttrTypesRS = objectAttrsTypeRSAuthAccountBulkUpdate(false) +var authAccountBulkUpdateAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountBulkUpdate(true) + +type authAccountBulkUpdateDataRS struct { + Action types.String `tfsdk:"action"` + ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` + SelectedAccounts types.List `tfsdk:"selected_accounts"` +} + +var authAccountChangeLocaleAttrTypesRS = objectAttrsTypeRSAuthAccountChangeLocale(false) +var authAccountChangeLocaleAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountChangeLocale(true) + +type authAccountChangeLocaleDataRS struct { + Locale types.String `tfsdk:"locale"` +} + +var authAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthAccountLinkableWrapper(false) +var authAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountLinkableWrapper(true) + +type authAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var authAccountPrimerAttrTypesRS = objectAttrsTypeRSAuthAccountPrimer(false) +var authAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountPrimer(true) + +type authAccountPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` +} + +var authAccountRecoveryStatusAttrTypesRS = objectAttrsTypeRSAuthAccountRecoveryStatus(false) +var authAccountRecoveryStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountRecoveryStatus(true) + +type authAccountRecoveryStatusDataRS struct { + Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` + PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` +} + +var authAccountSettingsAttrTypesRS = objectAttrsTypeRSAuthAccountSettings(false) +var authAccountSettingsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountSettings(true) + +type authAccountSettingsDataRS struct { + DefaultOrganizationalUnitUUID types.String `tfsdk:"default_organizational_unit_uuid"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryType types.String `tfsdk:"directory_type"` + InGroups types.Bool `tfsdk:"in_groups"` + InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` + KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` + MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` + PasswordMode types.String `tfsdk:"password_mode"` + SshPublicKey types.String `tfsdk:"ssh_public_key"` + TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` + UseTokenPassword types.Bool `tfsdk:"use_token_password"` + VaultStatus types.String `tfsdk:"vault_status"` +} + +var authAccountStatusAttrTypesRS = objectAttrsTypeRSAuthAccountStatus(false) +var authAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountStatus(true) + +type authAccountStatusDataRS struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` + LicenseRole types.String `tfsdk:"license_role"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` +} + +var authAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuthAccount_additionalObjects(false) +var authAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount_additionalObjects(true) + +type authAccount_additionalObjectsDataRS struct { + ActiveLogin types.Bool `tfsdk:"active_login"` + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` + Settings types.Object `tfsdk:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes"` + Vault types.Object `tfsdk:"vault"` +} + +var authAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats(false) +var authAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats(true) + +type authAccountsAuditStatsDataRS struct { + DirectoryStats types.Object `tfsdk:"directory_stats"` + TwoFAStats types.Object `tfsdk:"two_f_a_stats"` + ValidityStats types.Object `tfsdk:"validity_stats"` +} + +var authAccountsAuditStats_directoryStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(false) +var authAccountsAuditStats_directoryStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(true) + +type authAccountsAuditStats_directoryStatsDataRS struct { +} + +var authAccountsAuditStats_twoFAStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(false) +var authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(true) + +type authAccountsAuditStats_twoFAStatsDataRS struct { +} + +var authAccountsAuditStats_validityStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(false) +var authAccountsAuditStats_validityStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(true) + +type authAccountsAuditStats_validityStatsDataRS struct { +} + +var authInternalAccountAttrTypesRS = objectAttrsTypeRSAuthInternalAccount(false) +var authInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount(true) + +type authInternalAccountDataRS struct { + UUID types.String `tfsdk:"uuid"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var authInternalAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(false) +var authInternalAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(true) + +type authInternalAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var authInternalAccountStatusObjectAttrTypesRS = objectAttrsTypeRSAuthInternalAccountStatusObject(false) +var authInternalAccountStatusObjectAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountStatusObject(true) + +type authInternalAccountStatusObjectDataRS struct { + Status types.String `tfsdk:"status"` +} + +var authMoveInternalAccountAttrTypesRS = objectAttrsTypeRSAuthMoveInternalAccount(false) +var authMoveInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthMoveInternalAccount(true) + +type authMoveInternalAccountDataRS struct { + InternalDirectory types.Object `tfsdk:"internal_directory"` +} + +var authPermissionAttrTypesRS = objectAttrsTypeRSAuthPermission(false) +var authPermissionAttrTypesRSRecurse = objectAttrsTypeRSAuthPermission(true) + +type authPermissionDataRS struct { + Full types.String `tfsdk:"full"` + Instances types.List `tfsdk:"instances"` + Operations types.List `tfsdk:"operations"` + TypeEscaped types.String `tfsdk:"type_escaped"` +} + +var authStoredAccountAttributeAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttribute(false) +var authStoredAccountAttributeAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttribute(true) + +type authStoredAccountAttributeDataRS struct { + Name types.String `tfsdk:"name"` + Value types.String `tfsdk:"value"` +} + +var authStoredAccountAttributesAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttributes(false) +var authStoredAccountAttributesAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttributes(true) + +type authStoredAccountAttributesDataRS struct { + Attributes types.List `tfsdk:"attributes"` +} + +var certificateCertificateAttrTypesRS = objectAttrsTypeRSCertificateCertificate(false) +var certificateCertificateAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate(true) + +type certificateCertificateDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + KeyData types.List `tfsdk:"key_data"` +} + +var certificateCertificateLinkableWrapperAttrTypesRS = objectAttrsTypeRSCertificateCertificateLinkableWrapper(false) +var certificateCertificateLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificateLinkableWrapper(true) + +type certificateCertificateLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var certificateCertificatePrimerAttrTypesRS = objectAttrsTypeRSCertificateCertificatePrimer(false) +var certificateCertificatePrimerAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificatePrimer(true) + +type certificateCertificatePrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Alias types.String `tfsdk:"alias"` + CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateData types.List `tfsdk:"certificate_data"` + Expiration types.String `tfsdk:"expiration"` + FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` + FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` + Global types.Bool `tfsdk:"global"` + SubjectDN types.String `tfsdk:"subject_d_n"` + UUID types.String `tfsdk:"uuid"` +} + +var certificateCertificate_additionalObjectsAttrTypesRS = objectAttrsTypeRSCertificateCertificate_additionalObjects(false) +var certificateCertificate_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate_additionalObjects(true) + +type certificateCertificate_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientClientApplicationAttrTypesRS = objectAttrsTypeRSClientClientApplication(false) +var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication(true) + +type clientClientApplicationDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` +} + +var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) +var clientClientApplicationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplicationLinkableWrapper(true) + +type clientClientApplicationLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var clientClientApplicationPrimerAttrTypesRS = objectAttrsTypeRSClientClientApplicationPrimer(false) +var clientClientApplicationPrimerAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplicationPrimer(true) + +type clientClientApplicationPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` +} + +var clientClientApplication_additionalObjectsAttrTypesRS = objectAttrsTypeRSClientClientApplication_additionalObjects(false) +var clientClientApplication_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication_additionalObjects(true) + +type clientClientApplication_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + Groupclients types.Object `tfsdk:"groupclients"` + Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` + Tile types.Object `tfsdk:"tile"` + VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` +} + +var clientLdapClientAttrTypesRS = objectAttrsTypeRSClientLdapClient(false) +var clientLdapClientAttrTypesRSRecurse = objectAttrsTypeRSClientLdapClient(true) + +type clientLdapClientDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + BindDn types.String `tfsdk:"bind_dn"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` +} + +var clientOAuth2ClientAttrTypesRS = objectAttrsTypeRSClientOAuth2Client(false) +var clientOAuth2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client(true) + +type clientOAuth2ClientDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_u_r_i"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` + ResourceURIs types.String `tfsdk:"resource_u_r_is"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` +} + +var clientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission(false) +var clientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission(true) + +type clientOAuth2ClientPermissionDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` +} + +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(false) +var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(true) + +type clientOAuth2ClientPermissionLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermissionWithClientAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(false) +var clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(true) + +type clientOAuth2ClientPermissionWithClientDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` + Client types.Object `tfsdk:"client"` +} + +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) +var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(true) + +type clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var clientOAuth2ClientPermission_additionalObjectsAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false) +var clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(true) + +type clientOAuth2ClientPermission_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var clientOAuth2Client_attributesAttrTypesRS = objectAttrsTypeRSClientOAuth2Client_attributes(false) +var clientOAuth2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client_attributes(true) + +type clientOAuth2Client_attributesDataRS struct { +} + +var clientSaml2ClientAttrTypesRS = objectAttrsTypeRSClientSaml2Client(false) +var clientSaml2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client(true) + +type clientSaml2ClientDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientID types.String `tfsdk:"client_id"` + Name types.String `tfsdk:"name"` + Scopes types.List `tfsdk:"scopes"` + SsoApplication types.Bool `tfsdk:"sso_application"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` +} + +var clientSaml2Client_attributesAttrTypesRS = objectAttrsTypeRSClientSaml2Client_attributes(false) +var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client_attributes(true) + +type clientSaml2Client_attributesDataRS struct { +} + +var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) +var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) + +type directoryAccountDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) +var directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(true) + +type directoryAccountDirectoryLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectoryPrimerAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryPrimer(false) +var directoryAccountDirectoryPrimerAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryPrimer(true) + +type directoryAccountDirectoryPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var directoryAccountDirectoryStatusReportAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(false) +var directoryAccountDirectoryStatusReportAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(true) + +type directoryAccountDirectoryStatusReportDataRS struct { + Accounts types.Int64 `tfsdk:"accounts"` + Reason types.String `tfsdk:"reason"` + Status types.String `tfsdk:"status"` +} + +var directoryAccountDirectorySummaryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectorySummary(false) +var directoryAccountDirectorySummaryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectorySummary(true) + +type directoryAccountDirectorySummaryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Name types.String `tfsdk:"name"` + Status types.Object `tfsdk:"status"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(false) +var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(true) + +type directoryAccountDirectorySummaryLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var directoryAccountDirectory_additionalObjectsAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false) +var directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(true) + +type directoryAccountDirectory_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Markers types.Object `tfsdk:"markers"` + Status types.Object `tfsdk:"status"` +} + +var directoryInternalDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryInternalDirectory(false) +var directoryInternalDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryInternalDirectory(true) + +type directoryInternalDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + OwnerUUID types.String `tfsdk:"owner_uuid"` +} + +var directoryLDAPDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryLDAPDirectory(false) +var directoryLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryLDAPDirectory(true) + +type directoryLDAPDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_d_n"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_d_n"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` +} + +var directoryMaintenanceDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryMaintenanceDirectory(false) +var directoryMaintenanceDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryMaintenanceDirectory(true) + +type directoryMaintenanceDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` +} + +var directoryOIDCDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryOIDCDirectory(false) +var directoryOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryOIDCDirectory(true) + +type directoryOIDCDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` + Active types.Bool `tfsdk:"active"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` + DefaultDirectory types.Bool `tfsdk:"default_directory"` + HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` + Restrict2fa types.Bool `tfsdk:"restrict2fa"` + RotatingPassword types.String `tfsdk:"rotating_password"` + UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` +} + +var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) +var groupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup(true) + +type groupAccountGroupDataRS struct { + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(false) +var groupAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(true) + +type groupAccountGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupAccountGroup_additionalObjects(false) +var groupAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup_additionalObjects(true) + +type groupAccountGroup_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var groupAuthorizedGroupsWrapperAttrTypesRS = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(false) +var groupAuthorizedGroupsWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(true) + +type groupAuthorizedGroupsWrapperDataRS struct { + Items types.List `tfsdk:"items"` + GroupCount types.Int64 `tfsdk:"group_count"` +} + +var groupGroupAttrTypesRS = objectAttrsTypeRSGroupGroup(false) +var groupGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup(true) + +type groupGroupDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationAdministration types.Bool `tfsdk:"application_administration"` + AuditConfig types.Object `tfsdk:"audit_config"` + AuditRequested types.Bool `tfsdk:"audit_requested"` + Auditor types.Bool `tfsdk:"auditor"` + AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` + AuthorizingGroupDelegationUUID types.String `tfsdk:"authorizing_group_delegation_uuid"` + AuthorizingGroupMembershipUUID types.String `tfsdk:"authorizing_group_membership_uuid"` + AuthorizingGroupProvisioningUUID types.String `tfsdk:"authorizing_group_provisioning_uuid"` + AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` + ClassificationUUID types.String `tfsdk:"classification_uuid"` + Description types.String `tfsdk:"description"` + ExtendedAccess types.String `tfsdk:"extended_access"` + HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` + NestedUnderUUID types.String `tfsdk:"nested_under_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + PrivateGroup types.Bool `tfsdk:"private_group"` + RecordTrail types.Bool `tfsdk:"record_trail"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + SingleManaged types.Bool `tfsdk:"single_managed"` + VaultRecovery types.String `tfsdk:"vault_recovery"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAccount(false) +var groupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount(true) + +type groupGroupAccountDataRS struct { + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(false) +var groupGroupAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(true) + +type groupGroupAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAccountNestingAttrTypesRS = objectAttrsTypeRSGroupGroupAccountNesting(false) +var groupGroupAccountNestingAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountNesting(true) + +type groupGroupAccountNestingDataRS struct { + Connected types.Bool `tfsdk:"connected"` +} + +var groupGroupAccountStatusAttrTypesRS = objectAttrsTypeRSGroupGroupAccountStatus(false) +var groupGroupAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountStatus(true) + +type groupGroupAccountStatusDataRS struct { + Folder types.Object `tfsdk:"folder"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var groupGroupAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAccount_additionalObjects(false) +var groupGroupAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount_additionalObjects(true) + +type groupGroupAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAdminMailAttrTypesRS = objectAttrsTypeRSGroupGroupAdminMail(false) +var groupGroupAdminMailAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAdminMail(true) + +type groupGroupAdminMailDataRS struct { + Body types.String `tfsdk:"body"` +} + +var groupGroupAuditAttrTypesRS = objectAttrsTypeRSGroupGroupAudit(false) +var groupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit(true) + +type groupGroupAuditDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var groupGroupAuditAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAuditAccount(false) +var groupGroupAuditAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditAccount(true) + +type groupGroupAuditAccountDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AccountValid types.Bool `tfsdk:"account_valid"` + Action types.String `tfsdk:"action"` + Comment types.String `tfsdk:"comment"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + DisplayName types.String `tfsdk:"display_name"` + EndDate types.String `tfsdk:"end_date"` + LastActive types.String `tfsdk:"last_active"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + Rights types.String `tfsdk:"rights"` + Username types.String `tfsdk:"username"` +} + +var groupGroupAuditConfigAttrTypesRS = objectAttrsTypeRSGroupGroupAuditConfig(false) +var groupGroupAuditConfigAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditConfig(true) + +type groupGroupAuditConfigDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Months types.List `tfsdk:"months"` +} + +var groupGroupAuditLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(false) +var groupGroupAuditLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(true) + +type groupGroupAuditLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupAudit_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAudit_additionalObjects(false) +var groupGroupAudit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit_additionalObjects(true) + +type groupGroupAudit_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupAuditingInfoAttrTypesRS = objectAttrsTypeRSGroupGroupAuditingInfo(false) +var groupGroupAuditingInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditingInfo(true) + +type groupGroupAuditingInfoDataRS struct { + AuditDueDate types.String `tfsdk:"audit_due_date"` + LastAuditDate types.String `tfsdk:"last_audit_date"` + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrDisabledAccounts types.Int64 `tfsdk:"nr_disabled_accounts"` + NrDisabledManagers types.Int64 `tfsdk:"nr_disabled_managers"` + NrExpiredVaultRecords types.Int64 `tfsdk:"nr_expired_vault_records"` + NrManagers types.Int64 `tfsdk:"nr_managers"` + NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` +} + +var groupGroupClassificationAttrTypesRS = objectAttrsTypeRSGroupGroupClassification(false) +var groupGroupClassificationAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification(true) + +type groupGroupClassificationDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` + AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` + AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` + AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` + DefaultClassification types.Bool `tfsdk:"default_classification"` + Description types.String `tfsdk:"description"` + MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` + MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` + RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` + RequiredMonths types.List `tfsdk:"required_months"` + RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` + VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` +} + +var groupGroupClassificationInfoAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationInfo(false) +var groupGroupClassificationInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationInfo(true) + +type groupGroupClassificationInfoDataRS struct { + NrGroups types.Int64 `tfsdk:"nr_groups"` +} + +var groupGroupClassificationLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(false) +var groupGroupClassificationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(true) + +type groupGroupClassificationLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClassificationPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationPrimer(false) +var groupGroupClassificationPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationPrimer(true) + +type groupGroupClassificationPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupClassificationUpdateAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationUpdate(false) +var groupGroupClassificationUpdateAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationUpdate(true) + +type groupGroupClassificationUpdateDataRS struct { + ClassificatonUUID types.String `tfsdk:"classificaton_uuid"` +} + +var groupGroupClassification_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClassification_additionalObjects(false) +var groupGroupClassification_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification_additionalObjects(true) + +type groupGroupClassification_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Info types.Object `tfsdk:"info"` +} + +var groupGroupClientAttrTypesRS = objectAttrsTypeRSGroupGroupClient(false) +var groupGroupClientAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient(true) + +type groupGroupClientDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ClientUUID types.String `tfsdk:"client_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` +} + +var groupGroupClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClientLinkableWrapper(false) +var groupGroupClientLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClientLinkableWrapper(true) + +type groupGroupClientLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupClient_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClient_additionalObjects(false) +var groupGroupClient_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient_additionalObjects(true) + +type groupGroupClient_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupFolderAttrTypesRS = objectAttrsTypeRSGroupGroupFolder(false) +var groupGroupFolderAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder(true) + +type groupGroupFolderDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` +} + +var groupGroupFolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(false) +var groupGroupFolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(true) + +type groupGroupFolderLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupFolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupFolder_additionalObjects(false) +var groupGroupFolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder_additionalObjects(true) + +type groupGroupFolder_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var groupGroupInfoAttrTypesRS = objectAttrsTypeRSGroupGroupInfo(false) +var groupGroupInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupInfo(true) + +type groupGroupInfoDataRS struct { + NrAccounts types.Int64 `tfsdk:"nr_accounts"` + NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` + NrAudits types.Int64 `tfsdk:"nr_audits"` + NrClients types.Int64 `tfsdk:"nr_clients"` + NrProvisionedSystems types.Int64 `tfsdk:"nr_provisioned_systems"` + NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` +} + +var groupGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupLinkableWrapper(false) +var groupGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupLinkableWrapper(true) + +type groupGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupPrimer(false) +var groupGroupPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupPrimer(true) + +type groupGroupPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var groupGroupPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(false) +var groupGroupPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(true) + +type groupGroupPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupGroupSegmentedLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(false) +var groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(true) + +type groupGroupSegmentedLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` + Segments types.List `tfsdk:"segments"` +} + +var groupGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroup_additionalObjects(false) +var groupGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup_additionalObjects(true) + +type groupGroup_additionalObjectsDataRS struct { + Accounts types.Object `tfsdk:"accounts"` + AdministeredClients types.Object `tfsdk:"administered_clients"` + AdministeredSystems types.Object `tfsdk:"administered_systems"` + Admins types.Object `tfsdk:"admins"` + Audit types.Object `tfsdk:"audit"` + AuthorizedGroups types.Object `tfsdk:"authorized_groups"` + ClientPermissions types.Object `tfsdk:"client_permissions"` + Clients types.Object `tfsdk:"clients"` + ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` + Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` + Groupinfo types.Object `tfsdk:"groupinfo"` + Helpdesk types.Object `tfsdk:"helpdesk"` + Markers types.Object `tfsdk:"markers"` + Myaccount types.Object `tfsdk:"myaccount"` + Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` + NestedGroups types.Object `tfsdk:"nested_groups"` + OwnedClients types.Object `tfsdk:"owned_clients"` + OwnedDirectories types.Object `tfsdk:"owned_directories"` + OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` + OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` + OwnedSystems types.Object `tfsdk:"owned_systems"` + RecentAudits types.Object `tfsdk:"recent_audits"` + Requeststatus types.String `tfsdk:"requeststatus"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` + Systems types.Object `tfsdk:"systems"` + Vault types.Object `tfsdk:"vault"` + Webhooks types.Object `tfsdk:"webhooks"` +} + +var groupGroupsAuditStatsAttrTypesRS = objectAttrsTypeRSGroupGroupsAuditStats(false) +var groupGroupsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupsAuditStats(true) + +type groupGroupsAuditStatsDataRS struct { + AuditedGroups types.Int64 `tfsdk:"audited_groups"` + Classifications types.List `tfsdk:"classifications"` + OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` + OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` + UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` + ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` + VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` +} + +var groupProvisioningGroupAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup(false) +var groupProvisioningGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup(true) + +type groupProvisioningGroupDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + GroupUUID types.String `tfsdk:"group_uuid"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var groupProvisioningGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false) +var groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(true) + +type groupProvisioningGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var groupProvisioningGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false) +var groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(true) + +type groupProvisioningGroup_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) +var launchpadDisplayedLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(true) + +type launchpadDisplayedLaunchpadTileDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + Logo types.List `tfsdk:"logo"` + Tile types.Object `tfsdk:"tile"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadDisplayedLaunchpadTilesAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(false) +var launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(true) + +type launchpadDisplayedLaunchpadTilesDataRS struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile(false) +var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile(true) + +type launchpadLaunchpadTileDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` +} + +var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) +var launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(true) + +type launchpadLaunchpadTileLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var launchpadLaunchpadTilePrimerAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(false) +var launchpadLaunchpadTilePrimerAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(true) + +type launchpadLaunchpadTilePrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` +} + +var launchpadLaunchpadTile_additionalObjectsAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false) +var launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(true) + +type launchpadLaunchpadTile_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var launchpadManualLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadManualLaunchpadTile(false) +var launchpadManualLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadManualLaunchpadTile(true) + +type launchpadManualLaunchpadTileDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + Title types.String `tfsdk:"title"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) +var launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(true) + +type launchpadSsoApplicationLaunchpadTileDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + Uri types.String `tfsdk:"uri"` +} + +var launchpadVaultRecordLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false) +var launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(true) + +type launchpadVaultRecordLaunchpadTileDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` +} + +var licenseKeyHubLicenseInfoAttrTypesRS = objectAttrsTypeRSLicenseKeyHubLicenseInfo(false) +var licenseKeyHubLicenseInfoAttrTypesRSRecurse = objectAttrsTypeRSLicenseKeyHubLicenseInfo(true) + +type licenseKeyHubLicenseInfoDataRS struct { + CurrentLicenseStatus types.String `tfsdk:"current_license_status"` + CustomerCompany types.String `tfsdk:"customer_company"` + CustomerContact types.String `tfsdk:"customer_contact"` + CustomerDomains types.List `tfsdk:"customer_domains"` + Details types.List `tfsdk:"details"` + ExpirationTime types.String `tfsdk:"expiration_time"` + Features types.List `tfsdk:"features"` + IssueTime types.String `tfsdk:"issue_time"` + KeyHubDomain types.String `tfsdk:"key_hub_domain"` + LicenseKey types.String `tfsdk:"license_key"` + NotBeforeTime types.String `tfsdk:"not_before_time"` + UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` + UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` + UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` + UUID types.String `tfsdk:"uuid"` + Version types.Int64 `tfsdk:"version"` +} + +var markItemMarkerAttrTypesRS = objectAttrsTypeRSMarkItemMarker(false) +var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) + +type markItemMarkerDataRS struct { + Level types.String `tfsdk:"level"` + MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + Parameters types.Object `tfsdk:"parameters"` +} + +var markItemMarker_parametersAttrTypesRS = objectAttrsTypeRSMarkItemMarker_parameters(false) +var markItemMarker_parametersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker_parameters(true) + +type markItemMarker_parametersDataRS struct { +} + +var markItemMarkersAttrTypesRS = objectAttrsTypeRSMarkItemMarkers(false) +var markItemMarkersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarkers(true) + +type markItemMarkersDataRS struct { + Markers types.List `tfsdk:"markers"` +} + +var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) +var notificationCertificateExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationCertificateExpiredNotification(true) + +type notificationCertificateExpiredNotificationDataRS struct { + Certificate types.Object `tfsdk:"certificate"` + Directory types.Object `tfsdk:"directory"` + Expiration types.String `tfsdk:"expiration"` + LdapClient types.Object `tfsdk:"ldap_client"` + System types.Object `tfsdk:"system"` + Usage types.String `tfsdk:"usage"` + Webhook types.Object `tfsdk:"webhook"` +} + +var notificationGroupAuditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(false) +var notificationGroupAuditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(true) + +type notificationGroupAuditRequiredNotificationDataRS struct { + DueDate types.String `tfsdk:"due_date"` + Group types.Object `tfsdk:"group"` + NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` +} + +var notificationGroupEditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification(false) +var notificationGroupEditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification(true) + +type notificationGroupEditRequiredNotificationDataRS struct { + Group types.Object `tfsdk:"group"` + Parameters types.Object `tfsdk:"parameters"` + Reason types.String `tfsdk:"reason"` +} + +var notificationGroupEditRequiredNotification_parametersAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(false) +var notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(true) + +type notificationGroupEditRequiredNotification_parametersDataRS struct { +} + +var notificationInvalidSignaturesDetectedNotificationAttrTypesRS = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(false) +var notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(true) + +type notificationInvalidSignaturesDetectedNotificationDataRS struct { +} + +var notificationLicenseStatusNotificationAttrTypesRS = objectAttrsTypeRSNotificationLicenseStatusNotification(false) +var notificationLicenseStatusNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationLicenseStatusNotification(true) + +type notificationLicenseStatusNotificationDataRS struct { + ActiveAccounts types.Int64 `tfsdk:"active_accounts"` + LicenseInfo types.Object `tfsdk:"license_info"` +} + +var notificationModificationRequestNotificationAttrTypesRS = objectAttrsTypeRSNotificationModificationRequestNotification(false) +var notificationModificationRequestNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationModificationRequestNotification(true) + +type notificationModificationRequestNotificationDataRS struct { + Admins types.List `tfsdk:"admins"` + Groups types.List `tfsdk:"groups"` + Request types.Object `tfsdk:"request"` +} + +var notificationNotificationAttrTypesRS = objectAttrsTypeRSNotificationNotification(false) +var notificationNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotification(true) + +type notificationNotificationDataRS struct { +} + +var notificationNotificationsAttrTypesRS = objectAttrsTypeRSNotificationNotifications(false) +var notificationNotificationsAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotifications(true) + +type notificationNotificationsDataRS struct { + Items types.List `tfsdk:"items"` +} + +var notificationOldApiVersionUsageNotificationAttrTypesRS = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(false) +var notificationOldApiVersionUsageNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(true) + +type notificationOldApiVersionUsageNotificationDataRS struct { + ApiVersion types.Int64 `tfsdk:"api_version"` + Client types.Object `tfsdk:"client"` +} + +var notificationProvisionConfigRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(false) +var notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(true) + +type notificationProvisionConfigRequiredNotificationDataRS struct { + Systems types.List `tfsdk:"systems"` +} + +var notificationRotatingPasswordRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(false) +var notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(true) + +type notificationRotatingPasswordRequiredNotificationDataRS struct { + Groups types.List `tfsdk:"groups"` +} + +var notificationUpdateAvailableNotificationAttrTypesRS = objectAttrsTypeRSNotificationUpdateAvailableNotification(false) +var notificationUpdateAvailableNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationUpdateAvailableNotification(true) + +type notificationUpdateAvailableNotificationDataRS struct { + ReleasedAt types.String `tfsdk:"released_at"` +} + +var notificationVaultRecordExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(false) +var notificationVaultRecordExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(true) + +type notificationVaultRecordExpiredNotificationDataRS struct { + Record types.Object `tfsdk:"record"` +} + +var organizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(false) +var organizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(true) + +type organizationAccountOrganizationalUnitDataRS struct { + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(false) +var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(true) + +type organizationAccountOrganizationalUnitLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false) +var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(true) + +type organizationAccountOrganizationalUnit_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit(true) + +type organizationOrganizationalUnitDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Depth types.Int64 `tfsdk:"depth"` + Description types.String `tfsdk:"description"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + ParentUUID types.String `tfsdk:"parent_uuid"` +} + +var organizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(false) +var organizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(true) + +type organizationOrganizationalUnitAccountDataRS struct { + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` +} + +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(false) +var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(true) + +type organizationOrganizationalUnitAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false) +var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(true) + +type organizationOrganizationalUnitAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var organizationOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(false) +var organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(true) + +type organizationOrganizationalUnitLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnitPrimerAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(false) +var organizationOrganizationalUnitPrimerAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(true) + +type organizationOrganizationalUnitPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` +} + +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) +var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) + +type organizationOrganizationalUnitPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var organizationOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false) +var organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(true) + +type organizationOrganizationalUnit_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` +} + +var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false) +var provisioningAbstractProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(true) + +type provisioningAbstractProvisionedLDAPDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_d_n"` +} + +var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) +var provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(true) + +type provisioningAbstractProvisionedLDAP_attributesDataRS struct { +} + +var provisioningAccountProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatus(false) +var provisioningAccountProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatus(true) + +type provisioningAccountProvisioningStatusDataRS struct { + Description types.String `tfsdk:"description"` + Result types.String `tfsdk:"result"` + System types.Object `tfsdk:"system"` +} + +var provisioningAccountProvisioningStatusReportAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(false) +var provisioningAccountProvisioningStatusReportAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(true) + +type provisioningAccountProvisioningStatusReportDataRS struct { + Status types.List `tfsdk:"status"` +} + +var provisioningCircuitBreakerStatisticsAttrTypesRS = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false) +var provisioningCircuitBreakerStatisticsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(true) + +type provisioningCircuitBreakerStatisticsDataRS struct { + NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` + NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` + NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` + State types.String `tfsdk:"state"` +} + +var provisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystem(false) +var provisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystem(true) + +type provisioningGroupOnSystemDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var provisioningGroupOnSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(false) +var provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(true) + +type provisioningGroupOnSystemLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningGroupOnSystemPrimerAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemPrimer(false) +var provisioningGroupOnSystemPrimerAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemPrimer(true) + +type provisioningGroupOnSystemPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` +} + +var provisioningGroupOnSystemTypesAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemTypes(false) +var provisioningGroupOnSystemTypesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemTypes(true) + +type provisioningGroupOnSystemTypesDataRS struct { + Types types.List `tfsdk:"types"` +} + +var provisioningGroupOnSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false) +var provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(true) + +type provisioningGroupOnSystem_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Provgroups types.Object `tfsdk:"provgroups"` + ServiceAccounts types.Object `tfsdk:"service_accounts"` +} + +var provisioningGroupProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus(false) +var provisioningGroupProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus(true) + +type provisioningGroupProvisioningStatusDataRS struct { + Folder types.Object `tfsdk:"folder"` + Group types.Object `tfsdk:"group"` + ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` + StatusReport types.Object `tfsdk:"status_report"` + VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` +} + +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(false) +var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(true) + +type provisioningGroupProvisioningStatus_provisioningDurationDataRS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var provisioningOwnedGroupOnSystemsWrapperAttrTypesRS = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(false) +var provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(true) + +type provisioningOwnedGroupOnSystemsWrapperDataRS struct { + Items types.List `tfsdk:"items"` + UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` +} + +var provisioningProvisionNumberSequenceAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence(false) +var provisioningProvisionNumberSequenceAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence(true) + +type provisioningProvisionNumberSequenceDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + NextUID types.Int64 `tfsdk:"next_u_i_d"` +} + +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(false) +var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(true) + +type provisioningProvisionNumberSequenceLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false) +var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(true) + +type provisioningProvisionNumberSequence_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Systems types.Object `tfsdk:"systems"` +} + +var provisioningProvisionedADAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAD(false) +var provisioningProvisionedADAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAD(true) + +type provisioningProvisionedADDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_d_n"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` +} + +var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount(false) +var provisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount(true) + +type provisioningProvisionedAccountDataRS struct { + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Uid types.Int64 `tfsdk:"uid"` +} + +var provisioningProvisionedAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(false) +var provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(true) + +type provisioningProvisionedAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false) +var provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(true) + +type provisioningProvisionedAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedAzureOIDCDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false) +var provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(true) + +type provisioningProvisionedAzureOIDCDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false) +var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(true) + +type provisioningProvisionedAzureSyncLDAPDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedAzureTenantAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureTenant(false) +var provisioningProvisionedAzureTenantAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureTenant(true) + +type provisioningProvisionedAzureTenantDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` +} + +var provisioningProvisionedInternalLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false) +var provisioningProvisionedInternalLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(true) + +type provisioningProvisionedInternalLDAPDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Client types.Object `tfsdk:"client"` +} + +var provisioningProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAP(false) +var provisioningProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAP(true) + +type provisioningProvisionedLDAPDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_d_n"` + BindDN types.String `tfsdk:"bind_d_n"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_d_n"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` +} + +var provisioningProvisionedLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false) +var provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(true) + +type provisioningProvisionedLDAPDirectoryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupDN types.String `tfsdk:"group_d_n"` +} + +var provisioningProvisionedSystemAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem(false) +var provisioningProvisionedSystemAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem(true) + +type provisioningProvisionedSystemDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` + AccountCount types.Int64 `tfsdk:"account_count"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` + ExternalUUID types.String `tfsdk:"external_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` + SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` + SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` + ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + UsernamePrefix types.String `tfsdk:"username_prefix"` +} + +var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) +var provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(true) + +type provisioningProvisionedSystemLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemPrimerAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemPrimer(false) +var provisioningProvisionedSystemPrimerAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemPrimer(true) + +type provisioningProvisionedSystemPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + UUID types.String `tfsdk:"uuid"` +} + +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(false) +var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(true) + +type provisioningProvisionedSystemPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(false) +var provisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(true) + +type provisioningProvisionedSystemSyncLogDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) +var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) + +type provisioningProvisionedSystemSyncLogLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false) +var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(true) + +type provisioningProvisionedSystemSyncLog_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var provisioningProvisionedSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false) +var provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(true) + +type provisioningProvisionedSystem_additionalObjectsDataRS struct { + Account types.Object `tfsdk:"account"` + Audit types.Object `tfsdk:"audit"` + IssuedPermissions types.Object `tfsdk:"issued_permissions"` + LoginName types.String `tfsdk:"login_name"` + ManagementPermissions types.Object `tfsdk:"management_permissions"` + Markers types.Object `tfsdk:"markers"` + Statistics types.Object `tfsdk:"statistics"` + SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` +} + +var provisioningProvisioningManagementPermissionsAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningManagementPermissions(false) +var provisioningProvisioningManagementPermissionsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningManagementPermissions(true) + +type provisioningProvisioningManagementPermissionsDataRS struct { + CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` + CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` + ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` +} + +var provisioningProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningStatus(false) +var provisioningProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningStatus(true) + +type provisioningProvisioningStatusDataRS struct { + Groups types.List `tfsdk:"groups"` + IgnoreErrors types.Bool `tfsdk:"ignore_errors"` + RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` +} + +var provisioningTokenPasswordAttrTypesRS = objectAttrsTypeRSProvisioningTokenPassword(false) +var provisioningTokenPasswordAttrTypesRSRecurse = objectAttrsTypeRSProvisioningTokenPassword(true) + +type provisioningTokenPasswordDataRS struct { + Password types.String `tfsdk:"password"` +} + +var requestAbstractApplicationModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false) +var requestAbstractApplicationModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(true) + +type requestAbstractApplicationModificationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestAbstractOrganizationalUnitModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false) +var requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(true) + +type requestAbstractOrganizationalUnitModificationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` +} + +var requestAbstractProvisionedSystemModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false) +var requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(true) + +type requestAbstractProvisionedSystemModificationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestAcceptGrantAccessRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(false) +var requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(true) + +type requestAcceptGrantAccessRequestParametersDataRS struct { + AccessDuration types.Object `tfsdk:"access_duration"` +} + +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(false) +var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(true) + +type requestAcceptGrantAccessRequestParameters_accessDurationDataRS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var requestAcceptJoinGroupRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(false) +var requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(true) + +type requestAcceptJoinGroupRequestParametersDataRS struct { + EndDate types.String `tfsdk:"end_date"` + MakeManager types.Bool `tfsdk:"make_manager"` +} + +var requestAcceptModificationRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptModificationRequestParameters(false) +var requestAcceptModificationRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptModificationRequestParameters(true) + +type requestAcceptModificationRequestParametersDataRS struct { +} + +var requestAddGroupAdminRequestAttrTypesRS = objectAttrsTypeRSRequestAddGroupAdminRequest(false) +var requestAddGroupAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAddGroupAdminRequest(true) + +type requestAddGroupAdminRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewAdminUUID types.String `tfsdk:"new_admin_uuid"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var requestCreateGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false) +var requestCreateGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(true) + +type requestCreateGroupOnSystemRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` +} + +var requestCreateGroupRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupRequest(false) +var requestCreateGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupRequest(true) + +type requestCreateGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestCreateServiceAccountRequestAttrTypesRS = objectAttrsTypeRSRequestCreateServiceAccountRequest(false) +var requestCreateServiceAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateServiceAccountRequest(true) + +type requestCreateServiceAccountRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` + Username types.String `tfsdk:"username"` +} + +var requestDisable2FARequestAttrTypesRS = objectAttrsTypeRSRequestDisable2FARequest(false) +var requestDisable2FARequestAttrTypesRSRecurse = objectAttrsTypeRSRequestDisable2FARequest(true) + +type requestDisable2FARequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + Subject types.String `tfsdk:"subject"` +} + +var requestEnableTechnicalAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false) +var requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(true) + +type requestEnableTechnicalAdministrationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestExtendAccessRequestAttrTypesRS = objectAttrsTypeRSRequestExtendAccessRequest(false) +var requestExtendAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestExtendAccessRequest(true) + +type requestExtendAccessRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ExtendUntil types.String `tfsdk:"extend_until"` +} + +var requestGrantAccessRequestAttrTypesRS = objectAttrsTypeRSRequestGrantAccessRequest(false) +var requestGrantAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantAccessRequest(true) + +type requestGrantAccessRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestGrantApplicationRequestAttrTypesRS = objectAttrsTypeRSRequestGrantApplicationRequest(false) +var requestGrantApplicationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantApplicationRequest(true) + +type requestGrantApplicationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestGrantClientPermissionRequestAttrTypesRS = objectAttrsTypeRSRequestGrantClientPermissionRequest(false) +var requestGrantClientPermissionRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantClientPermissionRequest(true) + +type requestGrantClientPermissionRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + PermissionType types.String `tfsdk:"permission_type"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestGrantGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false) +var requestGrantGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(true) + +type requestGrantGroupOnSystemRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantGroupOnSystemRequestRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false) +var requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(true) + +type requestGrantGroupOnSystemRequestRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestGrantServiceAccountGroupRequestAttrTypesRS = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false) +var requestGrantServiceAccountGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(true) + +type requestGrantServiceAccountGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` +} + +var requestJoinGroupRequestAttrTypesRS = objectAttrsTypeRSRequestJoinGroupRequest(false) +var requestJoinGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinGroupRequest(true) + +type requestJoinGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestJoinVaultRequestAttrTypesRS = objectAttrsTypeRSRequestJoinVaultRequest(false) +var requestJoinVaultRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinVaultRequest(true) + +type requestJoinVaultRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestAttrTypesRS = objectAttrsTypeRSRequestModificationRequest(false) +var requestModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest(true) + +type requestModificationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) +var requestModificationRequestLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(true) + +type requestModificationRequestLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var requestModificationRequest_additionalObjectsAttrTypesRS = objectAttrsTypeRSRequestModificationRequest_additionalObjects(false) +var requestModificationRequest_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest_additionalObjects(true) + +type requestModificationRequest_additionalObjectsDataRS struct { + AcceptParams types.Object `tfsdk:"accept_params"` + Audit types.Object `tfsdk:"audit"` + ResetStatus types.Object `tfsdk:"reset_status"` +} + +var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequest(false) +var requestPasswordResetRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequest(true) + +type requestPasswordResetRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` + NewVaultPassword types.String `tfsdk:"new_vault_password"` + UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` +} + +var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) +var requestPasswordResetRequestStatusAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequestStatus(true) + +type requestPasswordResetRequestStatusDataRS struct { + CooldownEnd types.String `tfsdk:"cooldown_end"` + Managers types.List `tfsdk:"managers"` + NrAccepted types.Int64 `tfsdk:"nr_accepted"` + ResetViaMail types.String `tfsdk:"reset_via_mail"` +} + +var requestRemoveGroupRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveGroupRequest(false) +var requestRemoveGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveGroupRequest(true) + +type requestRemoveGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupName types.String `tfsdk:"group_name"` +} + +var requestRemoveOrganizationalUnitRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false) +var requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(true) + +type requestRemoveOrganizationalUnitRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` +} + +var requestRemoveProvisionedSystemRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false) +var requestRemoveProvisionedSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(true) + +type requestRemoveProvisionedSystemRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` + SystemName types.String `tfsdk:"system_name"` +} + +var requestReviewAuditRequestAttrTypesRS = objectAttrsTypeRSRequestReviewAuditRequest(false) +var requestReviewAuditRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestReviewAuditRequest(true) + +type requestReviewAuditRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestRevokeAdminRequestAttrTypesRS = objectAttrsTypeRSRequestRevokeAdminRequest(false) +var requestRevokeAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRevokeAdminRequest(true) + +type requestRevokeAdminRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AdminUUID types.String `tfsdk:"admin_uuid"` +} + +var requestSetupAuthorizingGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false) +var requestSetupAuthorizingGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(true) + +type requestSetupAuthorizingGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` +} + +var requestSetupNestedGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupNestedGroupRequest(false) +var requestSetupNestedGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupNestedGroupRequest(true) + +type requestSetupNestedGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` +} + +var requestTransferApplicationAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false) +var requestTransferApplicationAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(true) + +type requestTransferApplicationAdministrationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestTransferApplicationOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false) +var requestTransferApplicationOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(true) + +type requestTransferApplicationOwnershipRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ApplicationUUID types.String `tfsdk:"application_uuid"` +} + +var requestTransferAuditorGroupRequestAttrTypesRS = objectAttrsTypeRSRequestTransferAuditorGroupRequest(false) +var requestTransferAuditorGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferAuditorGroupRequest(true) + +type requestTransferAuditorGroupRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` +} + +var requestTransferGroupOnSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false) +var requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(true) + +type requestTransferGroupOnSystemOwnershipRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` +} + +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false) +var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(true) + +type requestTransferOrganizationalUnitOwnershipRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` +} + +var requestTransferProvisionedSystemAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false) +var requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(true) + +type requestTransferProvisionedSystemAdministrationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false) +var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(true) + +type requestTransferProvisionedSystemContentAdministrationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestTransferProvisionedSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false) +var requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(true) + +type requestTransferProvisionedSystemOwnershipRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var requestTransferServiceAccountAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false) +var requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(true) + +type requestTransferServiceAccountAdministrationRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` +} + +var requestUpdateGroupMembershipRequestAttrTypesRS = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false) +var requestUpdateGroupMembershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(true) + +type requestUpdateGroupMembershipRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` +} + +var requestVerifyInternalAccountRequestAttrTypesRS = objectAttrsTypeRSRequestVerifyInternalAccountRequest(false) +var requestVerifyInternalAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestVerifyInternalAccountRequest(true) + +type requestVerifyInternalAccountRequestDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + InternalAccountName types.String `tfsdk:"internal_account_name"` +} + +var serviceaccountServiceAccountAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount(false) +var serviceaccountServiceAccountAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount(true) + +type serviceaccountServiceAccountDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + SystemUUID types.String `tfsdk:"system_uuid"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Description types.String `tfsdk:"description"` + PasswordUUID types.String `tfsdk:"password_uuid"` + PasswordRotation types.String `tfsdk:"password_rotation"` + TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` +} + +var serviceaccountServiceAccountGroupAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroup(false) +var serviceaccountServiceAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroup(true) + +type serviceaccountServiceAccountGroupDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(false) +var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(true) + +type serviceaccountServiceAccountGroupLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false) +var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(true) + +type serviceaccountServiceAccountGroup_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var serviceaccountServiceAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(false) +var serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(true) + +type serviceaccountServiceAccountLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountPrimerAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountPrimer(false) +var serviceaccountServiceAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountPrimer(true) + +type serviceaccountServiceAccountPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Active types.Bool `tfsdk:"active"` + Name types.String `tfsdk:"name"` + SystemUUID types.String `tfsdk:"system_uuid"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` +} + +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false) +var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(true) + +type serviceaccountServiceAccountPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var serviceaccountServiceAccountStatusAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountStatus(false) +var serviceaccountServiceAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountStatus(true) + +type serviceaccountServiceAccountStatusDataRS struct { + AccountEnabled types.Bool `tfsdk:"account_enabled"` +} + +var serviceaccountServiceAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false) +var serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(true) + +type serviceaccountServiceAccount_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` +} + +var serviceaccountServiceAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(false) +var serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(true) + +type serviceaccountServiceAccountsAuditStatsDataRS struct { + DisabledCount types.Int64 `tfsdk:"disabled_count"` + PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` + SystemStats types.Object `tfsdk:"system_stats"` +} + +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) +var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) + +type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS struct { +} + +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(false) +var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(true) + +type serviceaccountServiceAccountsAuditStats_systemStatsDataRS struct { +} + +var simpleStringValueAttrTypesRS = objectAttrsTypeRSSimpleStringValue(false) +var simpleStringValueAttrTypesRSRecurse = objectAttrsTypeRSSimpleStringValue(true) + +type simpleStringValueDataRS struct { + Value types.String `tfsdk:"value"` +} + +var simpleVersionInfoAttrTypesRS = objectAttrsTypeRSSimpleVersionInfo(false) +var simpleVersionInfoAttrTypesRSRecurse = objectAttrsTypeRSSimpleVersionInfo(true) + +type simpleVersionInfoDataRS struct { + ContractVersions types.List `tfsdk:"contract_versions"` + KeyHubVersion types.String `tfsdk:"key_hub_version"` +} + +var vaultDeletedVaultHolderAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder(false) +var vaultDeletedVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder(true) + +type vaultDeletedVaultHolderDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Name types.String `tfsdk:"name"` + RecordCount types.Int64 `tfsdk:"record_count"` + VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` +} + +var vaultDeletedVaultHolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(false) +var vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(true) + +type vaultDeletedVaultHolderLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var vaultDeletedVaultHolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false) +var vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(true) + +type vaultDeletedVaultHolder_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + Vault types.Object `tfsdk:"vault"` +} + +var vaultDeletedVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultRecovery(false) +var vaultDeletedVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultRecovery(true) + +type vaultDeletedVaultRecoveryDataRS struct { + Prefix types.String `tfsdk:"prefix"` + PrivateKey types.String `tfsdk:"private_key"` + TargetGroupUUID types.String `tfsdk:"target_group_uuid"` +} + +var vaultMoveVaultRecordAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord(false) +var vaultMoveVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord(true) + +type vaultMoveVaultRecordDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Action types.String `tfsdk:"action"` + GroupUUID types.String `tfsdk:"group_uuid"` + ShareDuration types.Object `tfsdk:"share_duration"` +} + +var vaultMoveVaultRecord_shareDurationAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(false) +var vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(true) + +type vaultMoveVaultRecord_shareDurationDataRS struct { + Nanos types.Int64 `tfsdk:"nanos"` + Seconds types.Int64 `tfsdk:"seconds"` +} + +var vaultVaultAttrTypesRS = objectAttrsTypeRSVaultVault(false) +var vaultVaultAttrTypesRSRecurse = objectAttrsTypeRSVaultVault(true) + +type vaultVaultDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccessAvailable types.Bool `tfsdk:"access_available"` + Name types.String `tfsdk:"name"` + Records types.List `tfsdk:"records"` +} + +var vaultVaultHolderAttrTypesRS = objectAttrsTypeRSVaultVaultHolder(false) +var vaultVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultHolder(true) + +type vaultVaultHolderDataRS struct { +} + +var vaultVaultRecordAttrTypesRS = objectAttrsTypeRSVaultVaultRecord(false) +var vaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord(true) + +type vaultVaultRecordDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + +var vaultVaultRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(false) +var vaultVaultRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(true) + +type vaultVaultRecordLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordPrimerAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimer(false) +var vaultVaultRecordPrimerAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimer(true) + +type vaultVaultRecordPrimerDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` +} + +var vaultVaultRecordPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false) +var vaultVaultRecordPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(true) + +type vaultVaultRecordPrimerLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var vaultVaultRecordSecretsAttrTypesRS = objectAttrsTypeRSVaultVaultRecordSecrets(false) +var vaultVaultRecordSecretsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordSecrets(true) + +type vaultVaultRecordSecretsDataRS struct { + Comment types.String `tfsdk:"comment"` + File types.String `tfsdk:"file"` + Password types.String `tfsdk:"password"` + Totp types.String `tfsdk:"totp"` + WriteTotp types.Bool `tfsdk:"write_totp"` +} + +var vaultVaultRecordShareAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShare(false) +var vaultVaultRecordShareAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordShare(true) + +type vaultVaultRecordShareDataRS struct { + Name types.String `tfsdk:"name"` + VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` +} + +var vaultVaultRecordShareSummaryAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShareSummary(false) +var vaultVaultRecordShareSummaryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordShareSummary(true) + +type vaultVaultRecordShareSummaryDataRS struct { + Children types.List `tfsdk:"children"` + Parent types.Object `tfsdk:"parent"` +} + +var vaultVaultRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultVaultRecord_additionalObjects(false) +var vaultVaultRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord_additionalObjects(true) + +type vaultVaultRecord_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + ParentUUID types.String `tfsdk:"parent_uuid"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` +} + +var vaultVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultVaultRecovery(false) +var vaultVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecovery(true) + +type vaultVaultRecoveryDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + PrivateKey types.String `tfsdk:"private_key"` +} + +var vaultVaultUnlockAttrTypesRS = objectAttrsTypeRSVaultVaultUnlock(false) +var vaultVaultUnlockAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlock(true) + +type vaultVaultUnlockDataRS struct { + Password types.String `tfsdk:"password"` +} + +var vaultVaultUnlockResponseAttrTypesRS = objectAttrsTypeRSVaultVaultUnlockResponse(false) +var vaultVaultUnlockResponseAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlockResponse(true) + +type vaultVaultUnlockResponseDataRS struct { + ExpiresAt types.String `tfsdk:"expires_at"` + SessionPassword types.String `tfsdk:"session_password"` +} + +var webhookWebhookAttrTypesRS = objectAttrsTypeRSWebhookWebhook(false) +var webhookWebhookAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook(true) + +type webhookWebhookDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + AllTypes types.Bool `tfsdk:"all_types"` + AuthenticationScheme types.String `tfsdk:"authentication_scheme"` + BasicAuthPassword types.String `tfsdk:"basic_auth_password"` + BasicAuthUsername types.String `tfsdk:"basic_auth_username"` + BearerToken types.String `tfsdk:"bearer_token"` + ClientUUID types.String `tfsdk:"client_uuid"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + CustomHeaderName types.String `tfsdk:"custom_header_name"` + CustomHeaderValue types.String `tfsdk:"custom_header_value"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + Name types.String `tfsdk:"name"` + SystemUUID types.String `tfsdk:"system_uuid"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + UUID types.String `tfsdk:"uuid"` + VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` +} + +var webhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery(false) +var webhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery(true) + +type webhookWebhookDeliveryDataRS struct { + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + +var webhookWebhookDeliveryLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(false) +var webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(true) + +type webhookWebhookDeliveryLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookDelivery_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false) +var webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(true) + +type webhookWebhookDelivery_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} + +var webhookWebhookLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookLinkableWrapper(false) +var webhookWebhookLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookLinkableWrapper(true) + +type webhookWebhookLinkableWrapperDataRS struct { + Items types.List `tfsdk:"items"` +} + +var webhookWebhookNameUuidAttrTypesRS = objectAttrsTypeRSWebhookWebhookNameUuid(false) +var webhookWebhookNameUuidAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookNameUuid(true) + +type webhookWebhookNameUuidDataRS struct { + Name types.String `tfsdk:"name"` + Object types.Object `tfsdk:"object"` + UUID types.String `tfsdk:"uuid"` +} + +var webhookWebhookPushAttrTypesRS = objectAttrsTypeRSWebhookWebhookPush(false) +var webhookWebhookPushAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookPush(true) + +type webhookWebhookPushDataRS struct { + Account types.Object `tfsdk:"account"` + ByParty types.Object `tfsdk:"by_party"` + Certificate types.Object `tfsdk:"certificate"` + Client types.Object `tfsdk:"client"` + Directory types.Object `tfsdk:"directory"` + Group types.Object `tfsdk:"group"` + Group2 types.Object `tfsdk:"group2"` + GroupClassification types.Object `tfsdk:"group_classification"` + ModificationRequest types.Object `tfsdk:"modification_request"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + Parameter1 types.String `tfsdk:"parameter1"` + Parameter2 types.String `tfsdk:"parameter2"` + Parameter3 types.String `tfsdk:"parameter3"` + SecurityLevel types.String `tfsdk:"security_level"` + Seq types.Int64 `tfsdk:"seq"` + ServiceAccount types.Object `tfsdk:"service_account"` + System types.Object `tfsdk:"system"` + Timestamp types.String `tfsdk:"timestamp"` + VaultRecord types.Object `tfsdk:"vault_record"` + Webhook types.Object `tfsdk:"webhook"` + WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` +} + +var webhookWebhook_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhook_additionalObjects(false) +var webhookWebhook_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook_additionalObjects(true) + +type webhookWebhook_additionalObjectsDataRS struct { + Audit types.Object `tfsdk:"audit"` +} diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go new file mode 100644 index 0000000..eb10120 --- /dev/null +++ b/internal/provider/full-helpers.go @@ -0,0 +1,307 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "context" + "fmt" + "time" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubaccount "github.com/topicuskeyhub/sdk-go/account" + keyhubcertificate "github.com/topicuskeyhub/sdk-go/certificate" + keyhubclient "github.com/topicuskeyhub/sdk-go/client" + keyhubdirectory "github.com/topicuskeyhub/sdk-go/directory" + keyhubgroup "github.com/topicuskeyhub/sdk-go/group" + keyhubgroupclassification "github.com/topicuskeyhub/sdk-go/groupclassification" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" + keyhuborganizationalunit "github.com/topicuskeyhub/sdk-go/organizationalunit" + keyhubserviceaccount "github.com/topicuskeyhub/sdk-go/serviceaccount" + keyhubsystem "github.com/topicuskeyhub/sdk-go/system" + keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" +) + +type contextKey int + +const ( + keyHubClientKey contextKey = iota +) + +func sliceToTF[T any](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { + var diags diag.Diagnostics + ret := make([]attr.Value, 0, len(vals)) + for _, curVal := range vals { + ret = append(ret, toValue(curVal, &diags)) + } + return types.ListValue(elemType, ret) +} + +func tfToSlice[T any](val basetypes.ListValue, toValue func(attr.Value, *diag.Diagnostics) T) ([]T, diag.Diagnostics) { + var diags diag.Diagnostics + vals := val.Elements() + ret := make([]T, 0, len(vals)) + for _, curVal := range vals { + ret = append(ret, toValue(curVal, &diags)) + } + return ret, diags +} + +func int32PToInt64P(in *int32) *int64 { + if in == nil { + return nil + } + ret := int64(*in) + return &ret +} + +func int64PToInt32P(in *int64) *int32 { + if in == nil { + return nil + } + ret := int32(*in) + return &ret +} + +func stringerToTF[T fmt.Stringer](val *T) attr.Value { + if val == nil { + return types.StringNull() + } + return types.StringValue((*val).String()) +} + +func timeToTF(val time.Time) attr.Value { + ret, _ := val.MarshalText() + return types.StringValue(string(ret)) +} + +func timePointerToTF(val *time.Time) attr.Value { + if val == nil { + return types.StringNull() + } + ret, _ := val.MarshalText() + return types.StringValue(string(ret)) +} + +func tfToTime(val basetypes.StringValue) (time.Time, diag.Diagnostics) { + var diags diag.Diagnostics + parsed, err := time.Parse(time.RFC3339, val.ValueString()) + if err != nil { + diags.AddError("Conversion error", fmt.Sprintf("Unable to parse time: %s", err)) + } + return parsed, diags +} + +func tfToTimePointer(val basetypes.StringValue) (*time.Time, diag.Diagnostics) { + if val.IsNull() || val.IsUnknown() { + return nil, diag.Diagnostics{} + } + parsed, diags := tfToTime(val) + return &parsed, diags +} + +func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { + if val == nil { + return types.StringNull() + } + return types.StringPointerValue(val.GetUuid()) +} + +func parsePointer[T any](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { + if val.IsNull() || val.IsUnknown() { + return nil, diag.Diagnostics{} + } + parsed, diags := parse(val, parser) + return &parsed, diags +} + +func parsePointer2[T any](val basetypes.StringValue, parser func(string) (*T, error)) (*T, diag.Diagnostics) { + if val.IsNull() || val.IsUnknown() { + return nil, diag.Diagnostics{} + } + parsed, diags := parse(val, parser) + return parsed, diags +} + +func parse[T any](val basetypes.StringValue, parser func(string) (T, error)) (T, diag.Diagnostics) { + var diags diag.Diagnostics + parsed, err := parser(val.ValueString()) + if err != nil { + diags.AddError("Conversion error", fmt.Sprintf("Unable to parse %s: %s", val.ValueString(), err)) + } + return parsed, diags +} + +func parseCastPointer[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (*T, diag.Diagnostics) { + if val.IsNull() || val.IsUnknown() { + return nil, diag.Diagnostics{} + } + parsed, diags := parseCast(val, parser, caster) + return &parsed, diags +} + +func parseCast[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (T, diag.Diagnostics) { + parsed, diags := parse(val, parser) + var ret T + if diags.HasError() { + return ret, diags + } + return caster(parsed), diags +} + +func findFirst[T keyhubmodel.Linkableable](wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { + var diags diag.Diagnostics + var noVal T + if err != nil { + diags.AddError("Client Error", fmt.Sprintf("Unable to read %s, got error: %s", name, err)) + return noVal, diags + } + if len(wrapper.GetItems()) == 0 { + diags.AddError("Client Error", fmt.Sprintf("Unable to find %s with UUID %s", name, *uuid)) + return noVal, diags + } + return wrapper.GetItems()[0], nil + +} + +func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.GroupGroupable](wrapper, "group", uuid, err) +} + +func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Directory().Get(ctx, &keyhubdirectory.DirectoryRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubdirectory.DirectoryRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.DirectoryAccountDirectoryable](wrapper, "directory", uuid, err) +} + +func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Organizationalunit().Get(ctx, &keyhuborganizationalunit.OrganizationalunitRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhuborganizationalunit.OrganizationalunitRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.OrganizationOrganizationalUnitable](wrapper, "organizational unit", uuid, err) +} + +func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Certificate().Get(ctx, &keyhubcertificate.CertificateRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubcertificate.CertificateRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.CertificateCertificateable](wrapper, "certificate", uuid, err) +} + +func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.System().Get(ctx, &keyhubsystem.SystemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubsystem.SystemRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.ProvisioningProvisionedSystemable](wrapper, "provisioned system", uuid, err) +} + +func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Groupclassification().Get(ctx, &keyhubgroupclassification.GroupclassificationRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubgroupclassification.GroupclassificationRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.GroupGroupClassificationable](wrapper, "group classification", uuid, err) +} + +func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Client().Get(ctx, &keyhubclient.ClientRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubclient.ClientRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) +} + +func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + account, diag := findAuthAccountByUUID(ctx, uuid) + if account == nil { + return account, diag + } + return &account.(*keyhubmodel.AuthAccount).AuthAccountPrimer, diag +} + +func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Account().Get(ctx, &keyhubaccount.AccountRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubaccount.AccountRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.AuthAccountable](wrapper, "account", uuid, err) +} + +func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Serviceaccount().Get(ctx, &keyhubserviceaccount.ServiceaccountRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubserviceaccount.ServiceaccountRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.ServiceaccountServiceAccountable](wrapper, "service account", uuid, err) +} + +func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + if uuid == nil { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodel.VaultVaultRecordable](wrapper, "vault record", uuid, err) +} diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go new file mode 100644 index 0000000..b17bcc8 --- /dev/null +++ b/internal/provider/full-object-attrs-ds.go @@ -0,0 +1,3152 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func objectAttrsTypeDSAuditInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["last_modified_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSErrorReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["application_error"] = types.StringType + objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse)} + objectAttrs["code"] = types.Int64Type + objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} + objectAttrs["exception"] = types.StringType + objectAttrs["message"] = types.StringType + objectAttrs["reason"] = types.StringType + objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSGeneratedSecret(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["generated_secret"] = types.StringType + objectAttrs["old_secret"] = types.StringType + objectAttrs["regenerate"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSNonLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSRestLink(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["href"] = types.StringType + objectAttrs["id"] = types.Int64Type + objectAttrs["rel"] = types.StringType + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["count"] = types.Int64Type + objectAttrs["name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["date_time"] = types.StringType + objectAttrs["on_account"] = types.StringType + objectAttrs["on_certificate"] = types.StringType + objectAttrs["on_client"] = types.StringType + objectAttrs["on_directory"] = types.StringType + objectAttrs["on_group"] = types.StringType + objectAttrs["on_group2"] = types.StringType + objectAttrs["on_group_classification"] = types.StringType + objectAttrs["on_organizational_unit"] = types.StringType + objectAttrs["on_service_account"] = types.StringType + objectAttrs["on_system"] = types.StringType + objectAttrs["on_vault_record"] = types.StringType + objectAttrs["on_webhook"] = types.StringType + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["performed_by"] = types.StringType + objectAttrs["security_level"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["action"] = types.StringType + objectAttrs["exclusive_selection"] = types.BoolType + objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["locale"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["pending2_f_a_recovery_request"] = types.BoolType + objectAttrs["pending_password_recovery_request"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountSettings(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["default_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["in_groups"] = types.BoolType + objectAttrs["in_multiple_organizational_units"] = types.BoolType + objectAttrs["key_hub_admin"] = types.BoolType + objectAttrs["multiple_organizational_units_exist"] = types.BoolType + objectAttrs["password_mode"] = types.StringType + objectAttrs["ssh_public_key"] = types.StringType + objectAttrs["two_factor_authentication"] = types.StringType + objectAttrs["use_token_password"] = types.BoolType + objectAttrs["vault_status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["decline_recovery_requests"] = types.BoolType + objectAttrs["license_role"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["two_factor_authentication_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(recurse)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(recurse)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse)} + objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthInternalAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSAuthPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["full"] = types.StringType + objectAttrs["instances"] = types.ListType{ElemType: types.StringType} + objectAttrs["operations"] = types.ListType{ElemType: types.StringType} + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttribute(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSClientClientApplicationPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} + objectAttrs["vault_record_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["bind_dn"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["used_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(false)} + objectAttrs["callback_u_r_i"] = types.StringType + objectAttrs["confidential"] = types.BoolType + objectAttrs["debug_mode"] = types.BoolType + objectAttrs["id_token_claims"] = types.StringType + objectAttrs["initiate_login_u_r_i"] = types.StringType + objectAttrs["resource_u_r_is"] = types.StringType + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["show_landing_page"] = types.BoolType + objectAttrs["use_client_credentials"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["value"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(false)} + objectAttrs["metadata"] = types.StringType + objectAttrs["metadata_url"] = types.StringType + objectAttrs["subject_format"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.Int64Type + objectAttrs["reason"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse)} + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["base_d_n"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["dialect"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["host"] = types.StringType + objectAttrs["password_recovery"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["search_bind_d_n"] = types.StringType + objectAttrs["search_bind_password"] = types.StringType + objectAttrs["search_filter"] = types.StringType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["acr_values"] = types.StringType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["enforces2fa"] = types.BoolType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["issuer"] = types.StringType + objectAttrs["logout_url"] = types.StringType + objectAttrs["send_login_hint"] = types.BoolType + objectAttrs["vendor_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} + objectAttrs["group_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["application_administration"] = types.BoolType + objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditConfig(false)} + objectAttrs["audit_requested"] = types.BoolType + objectAttrs["auditor"] = types.BoolType + objectAttrs["authorizing_group_auditing"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_delegation"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_membership"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_provisioning"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} + objectAttrs["classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(false)} + objectAttrs["description"] = types.StringType + objectAttrs["extended_access"] = types.StringType + objectAttrs["hide_audit_trail"] = types.BoolType + objectAttrs["nested_under"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["private_group"] = types.BoolType + objectAttrs["record_trail"] = types.BoolType + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["single_managed"] = types.BoolType + objectAttrs["vault_recovery"] = types.StringType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["connected"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAdminMail(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["body"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAuditAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["account_valid"] = types.BoolType + objectAttrs["action"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["display_name"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["rights"] = types.StringType + objectAttrs["username"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAuditConfig(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["months"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit_due_date"] = types.StringType + objectAttrs["last_audit_date"] = types.StringType + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_disabled_accounts"] = types.Int64Type + objectAttrs["nr_disabled_managers"] = types.Int64Type + objectAttrs["nr_expired_vault_records"] = types.Int64Type + objectAttrs["nr_managers"] = types.Int64Type + objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["authorizing_group_auditing_required"] = types.BoolType + objectAttrs["authorizing_group_delegation_required"] = types.BoolType + objectAttrs["authorizing_group_membership_required"] = types.BoolType + objectAttrs["authorizing_group_provisioning_required"] = types.BoolType + objectAttrs["default_classification"] = types.BoolType + objectAttrs["description"] = types.StringType + objectAttrs["maximum_audit_interval"] = types.Int64Type + objectAttrs["minimum_nr_managers"] = types.Int64Type + objectAttrs["record_trail_required"] = types.BoolType + objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_groups"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["classificaton"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupFolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_accounts_with_vault"] = types.Int64Type + objectAttrs["nr_audits"] = types.Int64Type + objectAttrs["nr_clients"] = types.Int64Type + objectAttrs["nr_provisioned_systems"] = types.Int64Type + objectAttrs["nr_vault_records"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} + objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSSegmentCount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse)} + objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditingInfo(recurse)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupInfo(recurse)} + objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} + objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse)} + objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse)} + objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse)} + objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse)} + objectAttrs["requeststatus"] = types.StringType + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} + objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audited_groups"] = types.Int64Type + objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} + objectAttrs["overdue_audit_groups"] = types.Int64Type + objectAttrs["overdue_vault_policies"] = types.Int64Type + objectAttrs["unaudited_groups"] = types.Int64Type + objectAttrs["valid_vault_policies"] = types.Int64Type + objectAttrs["vaults_without_policies"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSGroupProvisioningGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse)} + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["current_license_status"] = types.StringType + objectAttrs["customer_company"] = types.StringType + objectAttrs["customer_contact"] = types.StringType + objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} + objectAttrs["details"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration_time"] = types.StringType + objectAttrs["features"] = types.ListType{ElemType: types.StringType} + objectAttrs["issue_time"] = types.StringType + objectAttrs["key_hub_domain"] = types.StringType + objectAttrs["license_key"] = types.StringType + objectAttrs["not_before_time"] = types.StringType + objectAttrs["users_hard_limit"] = types.Int64Type + objectAttrs["users_pro_limit"] = types.Int64Type + objectAttrs["users_soft_limit"] = types.Int64Type + objectAttrs["uuid"] = types.StringType + objectAttrs["version"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["level"] = types.StringType + objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker_parameters(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(recurse)} + objectAttrs["expiration"] = types.StringType + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)} + objectAttrs["usage"] = types.StringType + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["due_date"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} + objectAttrs["notification_group_audit_required_notification_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse)} + objectAttrs["reason"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_accounts"] = types.Int64Type + objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["admins"] = types.ListType{ElemType: types.StringType} + objectAttrs["groups"] = types.ListType{ElemType: types.StringType} + objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSNotificationNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSNotificationNotifications(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationNotification(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["api_version"] = types.Int64Type + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["systems"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["released_at"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["user_d_n"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["description"] = types.StringType + objectAttrs["result"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["number_of_failed_calls"] = types.Int64Type + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} + objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["provisioning_permission_end_time"] = types.StringType + objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse)} + objectAttrs["visible_on_dashboard"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_u_i_d"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["user_d_n"] = types.StringType + objectAttrs["sam_account_name_scheme"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["user_d_n"] = types.StringType + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(false)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["group_d_n"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["create_new_groups_allowed"] = types.BoolType + objectAttrs["create_service_accounts_allowed"] = types.BoolType + objectAttrs["reuse_existing_groups_allowed"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse)}} + objectAttrs["ignore_errors"] = types.BoolType + objectAttrs["restricted_by_license"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningTokenPassword(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["end_date"] = types.StringType + objectAttrs["make_manager"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["private_key"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system_type"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["group_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["username"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["subject"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["extend_until"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["permission_type"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["cooldown_end"] = types.StringType + objectAttrs["managers"] = types.ListType{ElemType: types.StringType} + objectAttrs["nr_accepted"] = types.Int64Type + objectAttrs["reset_via_mail"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["organizational_unit_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["system_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["authorizing_group_type"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_action"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["current_end_date"] = types.StringType + objectAttrs["current_rights"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["update_group_membership_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["internal_account_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["password"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_rotation"] = types.StringType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["disabled_count"] = types.Int64Type + objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} + objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSSimpleStringValue(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSSimpleVersionInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} + objectAttrs["key_hub_version"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["record_count"] = types.Int64Type + objectAttrs["vault_deleted_vault_holder_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["prefix"] = types.StringType + objectAttrs["private_key"] = types.StringType + objectAttrs["target_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} + objectAttrs["action"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSVaultVault(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["access_available"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["comment"] = types.StringType + objectAttrs["file"] = types.StringType + objectAttrs["password"] = types.StringType + objectAttrs["totp"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordShare(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["vault_vault_record_share_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShare(recurse)}} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShare(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} + objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} + objectAttrs["private_key"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultUnlock(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["expires_at"] = types.StringType + objectAttrs["session_password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["active"] = types.BoolType + objectAttrs["all_types"] = types.BoolType + objectAttrs["authentication_scheme"] = types.StringType + objectAttrs["basic_auth_password"] = types.StringType + objectAttrs["basic_auth_username"] = types.StringType + objectAttrs["bearer_token"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["custom_header_name"] = types.StringType + objectAttrs["custom_header_value"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["name"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["verbose_payloads"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)}} + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLinkable(recurse)} + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhookPush(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["security_level"] = types.StringType + objectAttrs["seq"] = types.Int64Type + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["timestamp"] = types.StringType + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook_webhook_push_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + return objectAttrs +} diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go new file mode 100644 index 0000000..21b1afe --- /dev/null +++ b/internal/provider/full-object-attrs-rs.go @@ -0,0 +1,3110 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func objectAttrsTypeRSAuditInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["last_modified_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSErrorReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["application_error"] = types.StringType + objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse)} + objectAttrs["code"] = types.Int64Type + objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} + objectAttrs["exception"] = types.StringType + objectAttrs["message"] = types.StringType + objectAttrs["reason"] = types.StringType + objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSGeneratedSecret(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["generated_secret"] = types.StringType + objectAttrs["old_secret"] = types.StringType + objectAttrs["regenerate"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSNonLinkable(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSRestLink(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["href"] = types.StringType + objectAttrs["id"] = types.Int64Type + objectAttrs["rel"] = types.StringType + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["count"] = types.Int64Type + objectAttrs["name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["date_time"] = types.StringType + objectAttrs["on_account"] = types.StringType + objectAttrs["on_certificate"] = types.StringType + objectAttrs["on_client"] = types.StringType + objectAttrs["on_directory"] = types.StringType + objectAttrs["on_group"] = types.StringType + objectAttrs["on_group2"] = types.StringType + objectAttrs["on_group_classification"] = types.StringType + objectAttrs["on_organizational_unit"] = types.StringType + objectAttrs["on_service_account"] = types.StringType + objectAttrs["on_system"] = types.StringType + objectAttrs["on_vault_record"] = types.StringType + objectAttrs["on_webhook"] = types.StringType + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["performed_by"] = types.StringType + objectAttrs["security_level"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["action"] = types.StringType + objectAttrs["exclusive_selection"] = types.BoolType + objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["locale"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["pending2_f_a_recovery_request"] = types.BoolType + objectAttrs["pending_password_recovery_request"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountSettings(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["default_organizational_unit_uuid"] = types.StringType + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["in_groups"] = types.BoolType + objectAttrs["in_multiple_organizational_units"] = types.BoolType + objectAttrs["key_hub_admin"] = types.BoolType + objectAttrs["multiple_organizational_units_exist"] = types.BoolType + objectAttrs["password_mode"] = types.StringType + objectAttrs["ssh_public_key"] = types.StringType + objectAttrs["two_factor_authentication"] = types.StringType + objectAttrs["use_token_password"] = types.BoolType + objectAttrs["vault_status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["decline_recovery_requests"] = types.BoolType + objectAttrs["license_role"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["two_factor_authentication_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(recurse)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(recurse)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse)} + objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["uuid"] = types.StringType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthInternalAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSAuthPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["full"] = types.StringType + objectAttrs["instances"] = types.ListType{ElemType: types.StringType} + objectAttrs["operations"] = types.ListType{ElemType: types.StringType} + objectAttrs["type_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttribute(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["alias"] = types.StringType + objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration"] = types.StringType + objectAttrs["fingerprint_sha1"] = types.StringType + objectAttrs["fingerprint_sha256"] = types.StringType + objectAttrs["global"] = types.BoolType + objectAttrs["subject_d_n"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSClientClientApplicationPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse)} + objectAttrs["vault_record_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["bind_dn"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret_uuid"] = types.StringType + objectAttrs["used_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(false)} + objectAttrs["callback_u_r_i"] = types.StringType + objectAttrs["confidential"] = types.BoolType + objectAttrs["debug_mode"] = types.BoolType + objectAttrs["id_token_claims"] = types.StringType + objectAttrs["initiate_login_u_r_i"] = types.StringType + objectAttrs["resource_u_r_is"] = types.StringType + objectAttrs["share_secret_in_vault"] = types.BoolType + objectAttrs["shared_secret_uuid"] = types.StringType + objectAttrs["show_landing_page"] = types.BoolType + objectAttrs["use_client_credentials"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["for_group_uuid"] = types.StringType + objectAttrs["for_system_uuid"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["for_group_uuid"] = types.StringType + objectAttrs["for_system_uuid"] = types.StringType + objectAttrs["value"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSClientSaml2Client(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} + objectAttrs["sso_application"] = types.BoolType + objectAttrs["uuid"] = types.StringType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(false)} + objectAttrs["metadata"] = types.StringType + objectAttrs["metadata_url"] = types.StringType + objectAttrs["subject_format"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.Int64Type + objectAttrs["reason"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse)} + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["owner_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["base_d_n"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["dialect"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["password_recovery"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["search_bind_d_n"] = types.StringType + objectAttrs["search_bind_password"] = types.StringType + objectAttrs["search_filter"] = types.StringType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_validity_supported"] = types.BoolType + objectAttrs["active"] = types.BoolType + objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["base_organizational_unit_uuid"] = types.StringType + objectAttrs["default_directory"] = types.BoolType + objectAttrs["helpdesk_group_uuid"] = types.StringType + objectAttrs["restrict2fa"] = types.BoolType + objectAttrs["rotating_password"] = types.StringType + objectAttrs["username_customizable"] = types.BoolType + objectAttrs["acr_values"] = types.StringType + objectAttrs["attributes_to_store"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["domain_restriction"] = types.StringType + objectAttrs["enforces2fa"] = types.BoolType + objectAttrs["fully_resolved_issuer"] = types.StringType + objectAttrs["issuer"] = types.StringType + objectAttrs["logout_url"] = types.StringType + objectAttrs["send_login_hint"] = types.BoolType + objectAttrs["vendor_escaped"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["uuid"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} + objectAttrs["group_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSGroupGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["application_administration"] = types.BoolType + objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditConfig(false)} + objectAttrs["audit_requested"] = types.BoolType + objectAttrs["auditor"] = types.BoolType + objectAttrs["authorizing_group_auditing_uuid"] = types.StringType + objectAttrs["authorizing_group_delegation_uuid"] = types.StringType + objectAttrs["authorizing_group_membership_uuid"] = types.StringType + objectAttrs["authorizing_group_provisioning_uuid"] = types.StringType + objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} + objectAttrs["classification_uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["extended_access"] = types.StringType + objectAttrs["hide_audit_trail"] = types.BoolType + objectAttrs["nested_under_uuid"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["private_group"] = types.BoolType + objectAttrs["record_trail"] = types.BoolType + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["single_managed"] = types.BoolType + objectAttrs["vault_recovery"] = types.StringType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["connected"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAdminMail(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["body"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAuditAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["account_valid"] = types.BoolType + objectAttrs["action"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["display_name"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["rights"] = types.StringType + objectAttrs["username"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAuditConfig(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["months"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit_due_date"] = types.StringType + objectAttrs["last_audit_date"] = types.StringType + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_disabled_accounts"] = types.Int64Type + objectAttrs["nr_disabled_managers"] = types.Int64Type + objectAttrs["nr_expired_vault_records"] = types.Int64Type + objectAttrs["nr_managers"] = types.Int64Type + objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["authorizing_group_auditing_required"] = types.BoolType + objectAttrs["authorizing_group_delegation_required"] = types.BoolType + objectAttrs["authorizing_group_membership_required"] = types.BoolType + objectAttrs["authorizing_group_provisioning_required"] = types.BoolType + objectAttrs["default_classification"] = types.BoolType + objectAttrs["description"] = types.StringType + objectAttrs["maximum_audit_interval"] = types.Int64Type + objectAttrs["minimum_nr_managers"] = types.Int64Type + objectAttrs["record_trail_required"] = types.BoolType + objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} + objectAttrs["rotating_password_required"] = types.BoolType + objectAttrs["vault_requires_activation"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_groups"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["classificaton_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassificationInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClient(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["client_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupFolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nr_accounts"] = types.Int64Type + objectAttrs["nr_accounts_with_vault"] = types.Int64Type + objectAttrs["nr_audits"] = types.Int64Type + objectAttrs["nr_clients"] = types.Int64Type + objectAttrs["nr_provisioned_systems"] = types.Int64Type + objectAttrs["nr_vault_records"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} + objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSSegmentCount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse)} + objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} + objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditingInfo(recurse)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupInfo(recurse)} + objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} + objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse)} + objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} + objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse)} + objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse)} + objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse)} + objectAttrs["requeststatus"] = types.StringType + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audited_groups"] = types.Int64Type + objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} + objectAttrs["overdue_audit_groups"] = types.Int64Type + objectAttrs["overdue_vault_policies"] = types.Int64Type + objectAttrs["unaudited_groups"] = types.Int64Type + objectAttrs["valid_vault_policies"] = types.Int64Type + objectAttrs["vaults_without_policies"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSGroupProvisioningGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse)} + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["title"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["uri"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["application_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["identicon_code"] = types.Int64Type + objectAttrs["launchpad_launchpad_tile_type"] = types.StringType + objectAttrs["logo"] = types.ListType{ElemType: types.StringType} + objectAttrs["vault_record_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["current_license_status"] = types.StringType + objectAttrs["customer_company"] = types.StringType + objectAttrs["customer_contact"] = types.StringType + objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} + objectAttrs["details"] = types.ListType{ElemType: types.StringType} + objectAttrs["expiration_time"] = types.StringType + objectAttrs["features"] = types.ListType{ElemType: types.StringType} + objectAttrs["issue_time"] = types.StringType + objectAttrs["key_hub_domain"] = types.StringType + objectAttrs["license_key"] = types.StringType + objectAttrs["not_before_time"] = types.StringType + objectAttrs["users_hard_limit"] = types.Int64Type + objectAttrs["users_pro_limit"] = types.Int64Type + objectAttrs["users_soft_limit"] = types.Int64Type + objectAttrs["uuid"] = types.StringType + objectAttrs["version"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["level"] = types.StringType + objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker_parameters(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSMarkItemMarkers(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(recurse)} + objectAttrs["expiration"] = types.StringType + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)} + objectAttrs["usage"] = types.StringType + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["due_date"] = types.StringType + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} + objectAttrs["notification_group_audit_required_notification_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} + objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse)} + objectAttrs["reason"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["active_accounts"] = types.Int64Type + objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["admins"] = types.ListType{ElemType: types.StringType} + objectAttrs["groups"] = types.ListType{ElemType: types.StringType} + objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSNotificationNotifications(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationNotification(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["api_version"] = types.Int64Type + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["systems"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["released_at"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["parent_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["description"] = types.StringType + objectAttrs["result"] = types.StringType + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["number_of_failed_calls"] = types.Int64Type + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} + objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["provisioning_permission_end_time"] = types.StringType + objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse)} + objectAttrs["visible_on_dashboard"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_u_i_d"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + objectAttrs["sam_account_name_scheme"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["uuid"] = types.StringType + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["base_d_n"] = types.StringType + objectAttrs["bind_d_n"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["user_d_n"] = types.StringType + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(false)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_d_n"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["create_new_groups_allowed"] = types.BoolType + objectAttrs["create_service_accounts_allowed"] = types.BoolType + objectAttrs["reuse_existing_groups_allowed"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse)}} + objectAttrs["ignore_errors"] = types.BoolType + objectAttrs["restricted_by_license"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningTokenPassword(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["end_date"] = types.StringType + objectAttrs["make_manager"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_admin_uuid"] = types.StringType + objectAttrs["private_key"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system_type"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["group_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestDisable2FARequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["subject"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["extend_until"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + objectAttrs["permission_type"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["activation_required"] = types.BoolType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["service_account_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["new_vault_and_directory_password"] = types.StringType + objectAttrs["new_vault_password"] = types.StringType + objectAttrs["unsynced_password"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["cooldown_end"] = types.StringType + objectAttrs["managers"] = types.ListType{ElemType: types.StringType} + objectAttrs["nr_accepted"] = types.Int64Type + objectAttrs["reset_via_mail"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["organizational_unit_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["system_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["admin_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["authorizing_group_type"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_action"] = types.StringType + objectAttrs["connect"] = types.BoolType + objectAttrs["requesting_group_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["application_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["service_account_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["account_to_update_uuid"] = types.StringType + objectAttrs["current_end_date"] = types.StringType + objectAttrs["current_rights"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["update_group_membership_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["comment"] = types.StringType + objectAttrs["feedback"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["mail_key"] = types.StringType + objectAttrs["request_modification_request_type"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["internal_account_name"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["description"] = types.StringType + objectAttrs["password_uuid"] = types.StringType + objectAttrs["password_rotation"] = types.StringType + objectAttrs["technical_administrator_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_enabled"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["disabled_count"] = types.Int64Type + objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} + objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSSimpleStringValue(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSSimpleVersionInfo(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} + objectAttrs["key_hub_version"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["record_count"] = types.Int64Type + objectAttrs["vault_deleted_vault_holder_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["prefix"] = types.StringType + objectAttrs["private_key"] = types.StringType + objectAttrs["target_group_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_uuid"] = types.StringType + objectAttrs["action"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["nanos"] = types.Int64Type + objectAttrs["seconds"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSVaultVault(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["access_available"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultHolder(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["comment"] = types.StringType + objectAttrs["file"] = types.StringType + objectAttrs["password"] = types.StringType + objectAttrs["totp"] = types.StringType + objectAttrs["write_totp"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordShare(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["vault_vault_record_share_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShare(recurse)}} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShare(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(recurse)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(recurse)} + objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultRecovery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_uuid"] = types.StringType + objectAttrs["private_key"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultUnlock(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["expires_at"] = types.StringType + objectAttrs["session_password"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_uuid"] = types.StringType + objectAttrs["active"] = types.BoolType + objectAttrs["all_types"] = types.BoolType + objectAttrs["authentication_scheme"] = types.StringType + objectAttrs["basic_auth_password"] = types.StringType + objectAttrs["basic_auth_username"] = types.StringType + objectAttrs["bearer_token"] = types.StringType + objectAttrs["client_uuid"] = types.StringType + objectAttrs["client_certificate_uuid"] = types.StringType + objectAttrs["custom_header_name"] = types.StringType + objectAttrs["custom_header_value"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_uuid"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate_uuid"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["verbose_payloads"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["name"] = types.StringType + objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLinkable(recurse)} + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhookPush(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["parameter1"] = types.StringType + objectAttrs["parameter2"] = types.StringType + objectAttrs["parameter3"] = types.StringType + objectAttrs["security_level"] = types.StringType + objectAttrs["seq"] = types.Int64Type + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["timestamp"] = types.StringType + objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} + objectAttrs["webhook_webhook_push_type"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + return objectAttrs +} diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go new file mode 100644 index 0000000..ac983be --- /dev/null +++ b/internal/provider/full-schema-ds.go @@ -0,0 +1,7570 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func dataSourceSchemaAttrsAuditInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_by"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsErrorReport(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["application_error"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application_error_parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), + Computed: true, + } + schemaAttrs["code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["error_details"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["exception"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["message"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["stacktrace"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsGeneratedSecret(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["generated_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["old_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["regenerate"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLinkable(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNonLinkable(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRestLink(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["href"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["rel"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["type_escaped"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["date_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_account"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_certificate"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_client"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group2"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group_classification"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_organizational_unit"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_service_account"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_vault_record"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_webhook"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter2"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter3"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["performed_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["security_level"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuditAuditRecord(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["email"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["exclusive_selection"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["selected_accounts"] = dsschema.ListAttribute{ + ElementType: types.Int64Type, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthAccount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["pending2_f_a_recovery_request"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["pending_password_recovery_request"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["default_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["in_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["in_multiple_organizational_units"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["key_hub_admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["multiple_organizational_units_exist"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["password_mode"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["two_factor_authentication"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["use_token_password"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vault_status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["decline_recovery_requests"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_authentication_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["active_login"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["pending_recovery_requests"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse), + Computed: true, + } + schemaAttrs["settings"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountSettings(recurse), + Computed: true, + } + schemaAttrs["stored_attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["directory_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), + Computed: true, + } + schemaAttrs["two_f_a_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), + Computed: true, + } + schemaAttrs["validity_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["email"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["activation_code"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["first_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["telephone"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthInternalAccount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthPermission(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["full"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["instances"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["operations"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["type_escaped"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["attributes"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["alias"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_data"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["expiration"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["key_data"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["alias"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["certificate_data"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["expiration"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsClientClientApplication(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groupclients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + Computed: true, + } + schemaAttrs["vault_record_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["bind_dn"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), + Computed: true, + } + schemaAttrs["callback_u_r_i"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["confidential"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["debug_mode"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["id_token_claims"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["initiate_login_u_r_i"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["resource_u_r_is"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["use_client_credentials"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["scopes"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["sso_application"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(false), + Computed: true, + } + schemaAttrs["metadata"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["metadata_url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["subject_format"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["directory_account_directory_summary_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["dialect"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password_recovery"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["search_bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["search_filter"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["acr_values"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["issuer"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logout_url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, + } + schemaAttrs["group_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["application_administration"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), + Computed: true, + } + schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["auditor"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_auditing"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["authorizing_group_delegation"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["authorizing_group_membership"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["authorizing_group_provisioning"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["authorizing_group_types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["classification"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(false), + Computed: true, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["extended_access"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["hide_audit_trail"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["nested_under"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["private_group"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["record_trail"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rotating_password_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["single_managed"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vault_recovery"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["vault_requires_activation"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["connected"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["body"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_valid"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["months"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit_due_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_audit_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nr_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_disabled_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_disabled_managers"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_expired_vault_records"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_managers"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_vault_records_with_end_date"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["authorizing_group_auditing_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_delegation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_membership_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_provisioning_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["default_classification"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["maximum_audit_interval"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["minimum_nr_managers"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["record_trail_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["required_months"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["rotating_password_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["vault_requires_activation"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nr_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["classificaton"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["info"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupClient(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nr_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_accounts_with_vault"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_audits"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_clients"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_provisioned_systems"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["nr_vault_records"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, + } + schemaAttrs["segments"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsSegmentCount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["accounts"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["administered_clients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["administered_systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["admins"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Computed: true, + DeprecationMessage: "This property will be removed in a future version.", + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["authorized_groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + Computed: true, + } + schemaAttrs["client_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["clients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["content_administered_systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["groupauditinginfo"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse), + Computed: true, + } + schemaAttrs["groupinfo"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupInfo(recurse), + Computed: true, + } + schemaAttrs["helpdesk"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["myaccount"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + Computed: true, + } + schemaAttrs["mydelegatedaccount"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + Computed: true, + } + schemaAttrs["nested_groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_clients"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_directories"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_groups_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_organizational_units"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["recent_audits"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["requeststatus"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + schemaAttrs["webhooks"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audited_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["classifications"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), + }, + Computed: true, + } + schemaAttrs["overdue_audit_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["overdue_vault_policies"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["unaudited_groups"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["valid_vault_policies"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["vaults_without_policies"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + Computed: true, + } + schemaAttrs["title"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + schemaAttrs["title"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["logo"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["current_license_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["customer_company"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["customer_contact"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["customer_domains"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["details"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["expiration_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["features"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["issue_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["not_before_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["version"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["markers"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse), + Computed: true, + } + schemaAttrs["expiration"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + Computed: true, + } + schemaAttrs["usage"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["due_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + Computed: true, + } + schemaAttrs["notification_group_audit_required_notification_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + Computed: true, + } + schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), + Computed: true, + } + schemaAttrs["reason"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["active_accounts"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["license_info"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["admins"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["groups"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationNotifications(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsNotificationNotification(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["api_version"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["systems"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["groups"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["released_at"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["depth"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["result"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["status"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["number_of_failed_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_of_not_permitted_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_of_successful_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["state"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["provgroups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + Computed: true, + } + schemaAttrs["provisioning_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_permission_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status_report"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), + Computed: true, + } + schemaAttrs["visible_on_dashboard"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["seconds"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Computed: true, + } + schemaAttrs["unlinked_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["next_u_i_d"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uid"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_id"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_secret"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["idp_domain"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Computed: true, + } + schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["failover_host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["gid"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + Computed: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["errors"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["log"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["modifications"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + Computed: true, + } + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["login_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + Computed: true, + } + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["groups"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), + }, + Computed: true, + } + schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["password"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["seconds"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["make_manager"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["private_key"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["subject"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["extend_until"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["permission_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["managers"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["system_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["connect"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["connect"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["current_end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["current_rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["feedback"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["mail_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["internal_account_name"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["description"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Computed: true, + } + schemaAttrs["password_rotation"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["disabled_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["password_scheme_enabled_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), + Computed: true, + } + schemaAttrs["system_stats"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsSimpleStringValue(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["contract_versions"] = dsschema.ListAttribute{ + ElementType: types.Int64Type, + Computed: true, + } + schemaAttrs["key_hub_version"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["record_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["vault_deleted_vault_holder_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["prefix"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["private_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["target_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, + } + schemaAttrs["action"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, + } + schemaAttrs["share_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["seconds"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["access_available"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["records"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["file"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["totp"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["vault_vault_record_share_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["children"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), + }, + Computed: true, + } + schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + Computed: true, + } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), + Computed: true, + } + schemaAttrs["share_summary"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse), + Computed: true, + } + schemaAttrs["shares"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), + Computed: true, + } + schemaAttrs["vaultholder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultHolder(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, + } + schemaAttrs["private_key"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["password"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["expires_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["session_password"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["all_types"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authentication_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["basic_auth_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["basic_auth_username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bearer_token"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + Computed: true, + } + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["custom_header_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["custom_header_value"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["verbose_payloads"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), + Computed: true, + } + schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_headers"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["response"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["time"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["trigger_time"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLinkable(recurse), + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["by_party"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["group2"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["group_classification"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["parameter1"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter2"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter3"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["security_level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["seq"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["timestamp"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Computed: true, + } + schemaAttrs["webhook_webhook_push_type"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go new file mode 100644 index 0000000..e69cc6f --- /dev/null +++ b/internal/provider/full-schema-rs.go @@ -0,0 +1,7509 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/types" +) + +func resourceSchemaAttrsAuditInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_modified_by"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["application_error"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_error_parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), + Optional: true, + } + schemaAttrs["code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["error_details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["exception"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["message"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["stacktrace"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsGeneratedSecret(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["generated_secret"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["old_secret"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["regenerate"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["href"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["id"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["rel"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["type_escaped"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditAuditRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["date_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_account"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_certificate"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_client"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_directory"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group2"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_group_classification"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_organizational_unit"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_service_account"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_system"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_vault_record"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["on_webhook"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter2"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameter3"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["performed_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["security_level"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuditAuditRecord(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["email"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["locale"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["action"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["exclusive_selection"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["selected_accounts"] = rsschema.ListAttribute{ + ElementType: types.Int64Type, + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["locale"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["pending2_f_a_recovery_request"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["pending_password_recovery_request"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["in_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["in_multiple_organizational_units"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["key_hub_admin"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["multiple_organizational_units_exist"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["password_mode"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["two_factor_authentication"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["use_token_password"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["decline_recovery_requests"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["license_role"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["two_factor_authentication_enabled"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["active_login"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["pending_recovery_requests"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), + Computed: true, + } + schemaAttrs["settings"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), + Computed: true, + } + schemaAttrs["stored_attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), + Computed: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["directory_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), + Optional: true, + } + schemaAttrs["two_f_a_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), + Optional: true, + } + schemaAttrs["validity_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["activation_code"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["first_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["last_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["telephone"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthInternalAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["status"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(recurse), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["full"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["instances"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["operations"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["type_escaped"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["attributes"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthStoredAccountAttribute(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsCertificateCertificate_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["alias"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsCertificateCertificate(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["alias"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["certificate_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientClientApplication(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["groupclients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + Optional: true, + } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + Optional: true, + } + schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(false), + Optional: true, + } + schemaAttrs["callback_u_r_i"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["confidential"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["debug_mode"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["initiate_login_u_r_i"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["resource_u_r_is"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["use_client_credentials"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientSaml2Client_attributes(false), + Optional: true, + } + schemaAttrs["metadata"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["metadata_url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["subject_format"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Optional: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["dialect"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["password_recovery"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["search_bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_filter"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["acr_values"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["issuer"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["logout_url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + Optional: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, + } + schemaAttrs["group_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["application_administration"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), + Optional: true, + } + schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["auditor"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["extended_access"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NOT_ALLOWED"), + } + schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["private_group"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["record_trail"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["single_managed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("FULL"), + } + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["connected"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + Optional: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["body"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["submitted_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_valid"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["action"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["months"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAudit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit_due_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_audit_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_disabled_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_disabled_managers"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_expired_vault_records"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_managers"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_vault_records_with_end_date"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassification_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["authorizing_group_auditing_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authorizing_group_delegation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authorizing_group_membership_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authorizing_group_provisioning_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["default_classification"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["maximum_audit_interval"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["minimum_nr_managers"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(1), + } + schemaAttrs["record_trail_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["required_months"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nr_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["info"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClient_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClient(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_accounts_with_vault"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_audits"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_clients"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_provisioned_systems"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["nr_vault_records"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, + } + schemaAttrs["segments"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsSegmentCount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accounts"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["administered_clients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["administered_systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["admins"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), + Optional: true, + DeprecationMessage: "This property will be removed in a future version.", + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["authorized_groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + Computed: true, + } + schemaAttrs["client_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["clients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["content_administered_systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["groupauditinginfo"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), + Computed: true, + } + schemaAttrs["groupinfo"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), + Computed: true, + } + schemaAttrs["helpdesk"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["myaccount"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + Computed: true, + } + schemaAttrs["mydelegatedaccount"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + Computed: true, + } + schemaAttrs["nested_groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_clients"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_directories"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_groups_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_organizational_units"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["owned_systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["recent_audits"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["requeststatus"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + schemaAttrs["webhooks"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audited_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["classifications"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), + }, + Optional: true, + } + schemaAttrs["overdue_audit_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["overdue_vault_policies"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["unaudited_groups"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["valid_vault_policies"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["vaults_without_policies"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Computed: true, + PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + Optional: true, + } + schemaAttrs["title"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["title"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MANUAL"), + } + schemaAttrs["logo"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["current_license_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_contact"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_domains"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["features"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["issue_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["license_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["not_before_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["version"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["level"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["markers"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsMarkItemMarker(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsCertificateCertificate(recurse), + Optional: true, + } + schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(recurse), + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + Optional: true, + } + schemaAttrs["system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + Optional: true, + } + schemaAttrs["usage"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhook(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["due_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + Optional: true, + } + schemaAttrs["notification_group_audit_required_notification_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + Optional: true, + } + schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), + Optional: true, + } + schemaAttrs["reason"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["active_accounts"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["license_info"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["admins"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["groups"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsNotificationNotifications(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsNotificationNotification(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["api_version"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["systems"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["groups"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["released_at"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["record"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["depth"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["create_as_parent_of"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["object_classes"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["result"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["status"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["number_of_failed_calls"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["number_of_not_permitted_calls"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["number_of_successful_calls"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["state"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["provgroups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), + Optional: true, + } + schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + Optional: true, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + Optional: true, + } + schemaAttrs["provisioning_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), + Optional: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_permission_end_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status_report"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), + Optional: true, + } + schemaAttrs["visible_on_dashboard"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["seconds"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Optional: true, + } + schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["next_u_i_d"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(2000), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["object_classes"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["idp_domain"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Optional: true, + } + schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["host"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["object_classes"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["gid"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["errors"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["log"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["modifications"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + Computed: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["login_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + Computed: true, + } + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["groups"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), + }, + Optional: true, + } + schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["password"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["seconds"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["make_manager"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["private_key"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["subject"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["extend_until"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["permission_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + Optional: true, + } + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["managers"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_name"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_action"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["current_end_date"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["current_rights"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["update_group_membership_type"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["feedback"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mail_key"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["password_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["password_rotation"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccount(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["disabled_count"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["password_scheme_enabled_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), + Optional: true, + } + schemaAttrs["system_stats"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsSimpleStringValue(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["value"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["contract_versions"] = rsschema.ListAttribute{ + ElementType: types.Int64Type, + Optional: true, + } + schemaAttrs["key_hub_version"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["record_count"] = rsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["vault_deleted_vault_holder_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultDeletedVaultHolder(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["prefix"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["private_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["action"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("MOVE"), + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["seconds"] = rsschema.Int64Attribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["access_available"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["records"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["file"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["totp"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["write_totp"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["vault_vault_record_share_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["children"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), + }, + Optional: true, + } + schemaAttrs["parent"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ + Optional: true, + } + schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), + Optional: true, + } + schemaAttrs["share_summary"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordShareSummary(recurse), + Computed: true, + } + schemaAttrs["shares"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), + Computed: true, + } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), + Optional: true, + } + schemaAttrs["vaultholder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultHolder(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["private_key"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["password"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["expires_at"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["session_password"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhook_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), + } + schemaAttrs["all_types"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["authentication_scheme"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["basic_auth_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["basic_auth_username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["bearer_token"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["custom_header_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["custom_header_value"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tls"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("SECURE"), + } + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Optional: true, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Optional: true, + } + schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookPush(false), + Optional: true, + } + schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["request_headers"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["response"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["status"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["time"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["trigger_time"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsWebhookWebhook(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["object"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLinkable(recurse), + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["by_party"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["group"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["group2"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["group_classification"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["organizational_unit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["parameter1"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameter2"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameter3"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["security_level"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["seq"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["service_account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["timestamp"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["vault_record"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + Optional: true, + } + schemaAttrs["webhook_webhook_push_type"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go new file mode 100644 index 0000000..1a3fa84 --- /dev/null +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -0,0 +1,2458 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +func fillDataStructFromTFObjectDSAuditInfo(data *auditInfoDataDS, obj types.Object) { + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSErrorReport(data *errorReportDataDS, obj types.Object) { + data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) + data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) + data.Code = obj.Attributes()["code"].(basetypes.Int64Value) + data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) + data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) + data.Message = obj.Attributes()["message"].(basetypes.StringValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSGeneratedSecret(data *generatedSecretDataDS, obj types.Object) { + data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) + data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) + data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSLinkable(data *linkableDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSNonLinkable(data *nonLinkableDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRestLink(data *restLinkDataDS, obj types.Object) { + data.Href = obj.Attributes()["href"].(basetypes.StringValue) + data.ID = obj.Attributes()["id"].(basetypes.Int64Value) + data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj types.Object) { + data.Count = obj.Attributes()["count"].(basetypes.Int64Value) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) + data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) + data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) + data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) + data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) + data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) + data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) + data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) + data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) + data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) + data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) + data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) + data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataDS, obj types.Object) { + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) + data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthAccountChangeLocale(data *authAccountChangeLocaleDataDS, obj types.Object) { + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthAccountPrimer(data *authAccountPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataDS, obj types.Object) { + data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSAuthAccountSettings(data *authAccountSettingsDataDS, obj types.Object) { + data.DefaultOrganizationalUnit = obj.Attributes()["default_organizational_unit"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) + data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) + data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) + data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) + data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) + data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) + data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) + data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) + data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthAccountStatus(data *authAccountStatusDataDS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataDS, obj types.Object) { + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats(data *authAccountsAuditStatsDataDS, obj types.Object) { + data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSAuthInternalAccount(data *authInternalAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataDS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthMoveInternalAccount(data *authMoveInternalAccountDataDS, obj types.Object) { + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSAuthPermission(data *authPermissionDataDS, obj types.Object) { + data.Full = obj.Attributes()["full"].(basetypes.StringValue) + data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) + data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataDS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataDS, obj types.Object) { + data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertificateDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateCertificatePrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) + data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) + data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) + data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) + data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) + data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) + data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) + data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) + data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) + data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportDataDS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSDirectoryInternalDirectory(data *directoryInternalDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) + data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) + data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) + data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) + data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupAccountGroup(data *groupAccountGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroup(data *groupGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) + data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) + data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) + data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) + data.AuthorizingGroupAuditing = obj.Attributes()["authorizing_group_auditing"].(basetypes.ObjectValue) + data.AuthorizingGroupDelegation = obj.Attributes()["authorizing_group_delegation"].(basetypes.ObjectValue) + data.AuthorizingGroupMembership = obj.Attributes()["authorizing_group_membership"].(basetypes.ObjectValue) + data.AuthorizingGroupProvisioning = obj.Attributes()["authorizing_group_provisioning"].(basetypes.ObjectValue) + data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) + data.Classification = obj.Attributes()["classification"].(basetypes.ObjectValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) + data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) + data.NestedUnder = obj.Attributes()["nested_under"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) + data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) + data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccount(data *groupGroupAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccountNesting(data *groupGroupAccountNestingDataDS, obj types.Object) { + data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccountStatus(data *groupGroupAccountStatusDataDS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAdminMail(data *groupGroupAdminMailDataDS, obj types.Object) { + data.Body = obj.Attributes()["body"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAudit(data *groupGroupAuditDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditAccount(data *groupGroupAuditAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditConfig(data *groupGroupAuditConfigDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Months = obj.Attributes()["months"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupAuditingInfo(data *groupGroupAuditingInfoDataDS, obj types.Object) { + data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) + data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) + data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) + data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) + data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) + data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupClassification(data *groupGroupClassificationDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) + data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) + data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) + data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) + data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) + data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) + data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) + data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataDS, obj types.Object) { + data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataDS, obj types.Object) { + data.Classificaton = obj.Attributes()["classificaton"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClient(data *groupGroupClientDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupFolder(data *groupGroupFolderDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupInfo(data *groupGroupInfoDataDS, obj types.Object) { + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) + data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) + data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) + data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) + data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupPrimer(data *groupGroupPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataDS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataDS, obj types.Object) { + data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) + data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) + data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) + data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) + data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) + data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) + data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSGroupProvisioningGroup(data *groupProvisioningGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataDS, obj types.Object) { + data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) + data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) + data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) + data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) + data.Details = obj.Attributes()["details"].(basetypes.ListValue) + data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) + data.Features = obj.Attributes()["features"].(basetypes.ListValue) + data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) + data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) + data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) + data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) + data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) + data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) + data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Version = obj.Attributes()["version"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { + data.Level = obj.Attributes()["level"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSMarkItemMarker_parameters(data *markItemMarker_parametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, obj types.Object) { + data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataDS, obj types.Object) { + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataDS, obj types.Object) { + data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataDS, obj types.Object) { + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataDS, obj types.Object) { + data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) + data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataDS, obj types.Object) { + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationNotification(data *notificationNotificationDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSNotificationNotifications(data *notificationNotificationsDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataDS, obj types.Object) { + data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataDS, obj types.Object) { + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataDS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataDS, obj types.Object) { + data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataDS, obj types.Object) { + data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataDS, obj types.Object) { + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Result = obj.Attributes()["result"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataDS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataDS, obj types.Object) { + data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) + data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) + data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) + data.State = obj.Attributes()["state"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGroupOnSystemDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesDataDS, obj types.Object) { + data.Types = obj.Attributes()["types"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataDS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) + data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) + data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataDS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningProvisionedADDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsDataDS, obj types.Object) { + data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) + data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) + data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataDS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) + data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTokenPasswordDataDS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataDS, obj types.Object) { + data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataDS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataDS, obj types.Object) { + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewAdmin = obj.Attributes()["new_admin"].(basetypes.ObjectValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataDS, obj types.Object) { + data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) + data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) + data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) + data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Admin = obj.Attributes()["admin"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountToUpdate = obj.Attributes()["account_to_update"].(basetypes.ObjectValue) + data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) + data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Password = obj.Attributes()["password"].(basetypes.ObjectValue) + data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) + data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataDS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataDS, obj types.Object) { + data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) + data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) + data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSSimpleStringValue(data *simpleStringValueDataDS, obj types.Object) { + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSSimpleVersionInfo(data *simpleVersionInfoDataDS, obj types.Object) { + data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) + data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) + data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataDS, obj types.Object) { + data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) + data.TargetGroup = obj.Attributes()["target_group"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataDS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSVaultVault(data *vaultVaultDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Records = obj.Attributes()["records"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSVaultVaultHolder(data *vaultVaultHolderDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSVaultVaultRecord(data *vaultVaultRecordDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordSecrets(data *vaultVaultRecordSecretsDataDS, obj types.Object) { + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.File = obj.Attributes()["file"].(basetypes.StringValue) + data.Password = obj.Attributes()["password"].(basetypes.StringValue) + data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordShare(data *vaultVaultRecordShareDataDS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataDS, obj types.Object) { + data.Children = obj.Attributes()["children"].(basetypes.ListValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSVaultVaultRecovery(data *vaultVaultRecoveryDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultUnlock(data *vaultVaultUnlockDataDS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataDS, obj types.Object) { + data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) + data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) + data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) + data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) + data.BasicAuthUsername = obj.Attributes()["basic_auth_username"].(basetypes.StringValue) + data.BearerToken = obj.Attributes()["bearer_token"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) + data.CustomHeaderName = obj.Attributes()["custom_header_name"].(basetypes.StringValue) + data.CustomHeaderValue = obj.Attributes()["custom_header_value"].(basetypes.StringValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataDS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataDS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhookPush(data *webhookWebhookPushDataDS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) + data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) + data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) + data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) + data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataDS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go new file mode 100644 index 0000000..a658b0b --- /dev/null +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -0,0 +1,2418 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" +) + +func fillDataStructFromTFObjectRSAuditInfo(data *auditInfoDataRS, obj types.Object) { + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSErrorReport(data *errorReportDataRS, obj types.Object) { + data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) + data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) + data.Code = obj.Attributes()["code"].(basetypes.Int64Value) + data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) + data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) + data.Message = obj.Attributes()["message"].(basetypes.StringValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSGeneratedSecret(data *generatedSecretDataRS, obj types.Object) { + data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) + data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) + data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSLinkable(data *linkableDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNonLinkable(data *nonLinkableDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSRestLink(data *restLinkDataRS, obj types.Object) { + data.Href = obj.Attributes()["href"].(basetypes.StringValue) + data.ID = obj.Attributes()["id"].(basetypes.Int64Value) + data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSSegmentCount(data *segmentCountDataRS, obj types.Object) { + data.Count = obj.Attributes()["count"].(basetypes.Int64Value) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) + data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) + data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) + data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) + data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) + data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) + data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) + data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) + data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) + data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) + data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) + data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) + data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthAccount(data *authAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataRS, obj types.Object) { + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) + data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuthAccountChangeLocale(data *authAccountChangeLocaleDataRS, obj types.Object) { + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuthAccountPrimer(data *authAccountPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataRS, obj types.Object) { + data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSAuthAccountSettings(data *authAccountSettingsDataRS, obj types.Object) { + data.DefaultOrganizationalUnitUUID = obj.Attributes()["default_organizational_unit_uuid"].(basetypes.StringValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) + data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) + data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) + data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) + data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) + data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) + data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) + data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) + data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthAccountStatus(data *authAccountStatusDataRS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataRS, obj types.Object) { + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats(data *authAccountsAuditStatsDataRS, obj types.Object) { + data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSAuthInternalAccount(data *authInternalAccountDataRS, obj types.Object) { + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataRS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthMoveInternalAccount(data *authMoveInternalAccountDataRS, obj types.Object) { + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSAuthPermission(data *authPermissionDataRS, obj types.Object) { + data.Full = obj.Attributes()["full"].(basetypes.StringValue) + data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) + data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) + data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataRS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataRS, obj types.Object) { + data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertificateDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateCertificatePrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) + data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) + data.Global = obj.Attributes()["global"].(basetypes.BoolValue) + data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) + data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) + data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) + data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) + data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) + data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) + data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) + data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) + data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) + data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportDataRS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSDirectoryInternalDirectory(data *directoryInternalDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) + data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) + data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) + data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) + data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) + data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) + data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) + data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) + data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) + data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) + data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) + data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) + data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) + data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupAccountGroup(data *groupAccountGroupDataRS, obj types.Object) { + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroup(data *groupGroupDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) + data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) + data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) + data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) + data.AuthorizingGroupAuditingUUID = obj.Attributes()["authorizing_group_auditing_uuid"].(basetypes.StringValue) + data.AuthorizingGroupDelegationUUID = obj.Attributes()["authorizing_group_delegation_uuid"].(basetypes.StringValue) + data.AuthorizingGroupMembershipUUID = obj.Attributes()["authorizing_group_membership_uuid"].(basetypes.StringValue) + data.AuthorizingGroupProvisioningUUID = obj.Attributes()["authorizing_group_provisioning_uuid"].(basetypes.StringValue) + data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) + data.ClassificationUUID = obj.Attributes()["classification_uuid"].(basetypes.StringValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) + data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) + data.NestedUnderUUID = obj.Attributes()["nested_under_uuid"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) + data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) + data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccount(data *groupGroupAccountDataRS, obj types.Object) { + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccountNesting(data *groupGroupAccountNestingDataRS, obj types.Object) { + data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccountStatus(data *groupGroupAccountStatusDataRS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAdminMail(data *groupGroupAdminMailDataRS, obj types.Object) { + data.Body = obj.Attributes()["body"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAudit(data *groupGroupAuditDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditAccount(data *groupGroupAuditAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditConfig(data *groupGroupAuditConfigDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Months = obj.Attributes()["months"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupAuditingInfo(data *groupGroupAuditingInfoDataRS, obj types.Object) { + data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) + data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) + data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) + data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) + data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) + data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroupClassification(data *groupGroupClassificationDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) + data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) + data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) + data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) + data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) + data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) + data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) + data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) + data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) + data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataRS, obj types.Object) { + data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataRS, obj types.Object) { + data.ClassificatonUUID = obj.Attributes()["classificaton_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClient(data *groupGroupClientDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupFolder(data *groupGroupFolderDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupInfo(data *groupGroupInfoDataRS, obj types.Object) { + data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) + data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) + data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) + data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) + data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) + data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupPrimer(data *groupGroupPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataRS, obj types.Object) { + data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataRS, obj types.Object) { + data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) + data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) + data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) + data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) + data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) + data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) + data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSGroupProvisioningGroup(data *groupProvisioningGroupDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.Title = obj.Attributes()["title"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) + data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) + data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) + data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataRS, obj types.Object) { + data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) + data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) + data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) + data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) + data.Details = obj.Attributes()["details"].(basetypes.ListValue) + data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) + data.Features = obj.Attributes()["features"].(basetypes.ListValue) + data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) + data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) + data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) + data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) + data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) + data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) + data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Version = obj.Attributes()["version"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { + data.Level = obj.Attributes()["level"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSMarkItemMarker_parameters(data *markItemMarker_parametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, obj types.Object) { + data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataRS, obj types.Object) { + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) + data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataRS, obj types.Object) { + data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataRS, obj types.Object) { + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) + data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataRS, obj types.Object) { + data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) + data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataRS, obj types.Object) { + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationNotification(data *notificationNotificationDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSNotificationNotifications(data *notificationNotificationsDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataRS, obj types.Object) { + data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataRS, obj types.Object) { + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataRS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataRS, obj types.Object) { + data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataRS, obj types.Object) { + data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataRS, obj types.Object) { + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataRS, obj types.Object) { + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataRS, obj types.Object) { + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.Result = obj.Attributes()["result"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataRS, obj types.Object) { + data.Status = obj.Attributes()["status"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataRS, obj types.Object) { + data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) + data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) + data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) + data.State = obj.Attributes()["state"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGroupOnSystemDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesDataRS, obj types.Object) { + data.Types = obj.Attributes()["types"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataRS, obj types.Object) { + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) + data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) + data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataRS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) + data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningProvisionedADDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataRS, obj types.Object) { + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) + data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.Host = obj.Attributes()["host"].(basetypes.StringValue) + data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) + data.Port = obj.Attributes()["port"].(basetypes.Int64Value) + data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) + data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) + data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) + data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) + data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataRS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsDataRS, obj types.Object) { + data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) + data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) + data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataRS, obj types.Object) { + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) + data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSProvisioningTokenPassword(data *provisioningTokenPasswordDataRS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataRS, obj types.Object) { + data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataRS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataRS, obj types.Object) { + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestCreateGroupRequest(data *requestCreateGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestDisable2FARequest(data *requestDisable2FARequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestExtendAccessRequest(data *requestExtendAccessRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestGrantAccessRequest(data *requestGrantAccessRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestJoinGroupRequest(data *requestJoinGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestJoinVaultRequest(data *requestJoinVaultRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModificationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataRS, obj types.Object) { + data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSRequestPasswordResetRequest(data *requestPasswordResetRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) + data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) + data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataRS, obj types.Object) { + data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) + data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) + data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) + data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestReviewAuditRequest(data *requestReviewAuditRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) + data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) + data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) + data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) + data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) + data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Description = obj.Attributes()["description"].(basetypes.StringValue) + data.PasswordUUID = obj.Attributes()["password_uuid"].(basetypes.StringValue) + data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) + data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataRS, obj types.Object) { + data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataRS, obj types.Object) { + data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) + data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) + data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSSimpleStringValue(data *simpleStringValueDataRS, obj types.Object) { + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSSimpleVersionInfo(data *simpleVersionInfoDataRS, obj types.Object) { + data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) + data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) + data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataRS, obj types.Object) { + data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) + data.TargetGroupUUID = obj.Attributes()["target_group_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Action = obj.Attributes()["action"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataRS, obj types.Object) { + data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) + data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSVaultVault(data *vaultVaultDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Records = obj.Attributes()["records"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSVaultVaultHolder(data *vaultVaultHolderDataRS, obj types.Object) { +} + +func fillDataStructFromTFObjectRSVaultVaultRecord(data *vaultVaultRecordDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordSecrets(data *vaultVaultRecordSecretsDataRS, obj types.Object) { + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.File = obj.Attributes()["file"].(basetypes.StringValue) + data.Password = obj.Attributes()["password"].(basetypes.StringValue) + data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) + data.WriteTotp = obj.Attributes()["write_totp"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordShare(data *vaultVaultRecordShareDataRS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataRS, obj types.Object) { + data.Children = obj.Attributes()["children"].(basetypes.ListValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSVaultVaultRecovery(data *vaultVaultRecoveryDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultUnlock(data *vaultVaultUnlockDataRS, obj types.Object) { + data.Password = obj.Attributes()["password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataRS, obj types.Object) { + data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) + data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) + data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) + data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) + data.BasicAuthUsername = obj.Attributes()["basic_auth_username"].(basetypes.StringValue) + data.BearerToken = obj.Attributes()["bearer_token"].(basetypes.StringValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) + data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) + data.CustomHeaderName = obj.Attributes()["custom_header_name"].(basetypes.StringValue) + data.CustomHeaderValue = obj.Attributes()["custom_header_value"].(basetypes.StringValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) + data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) + data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataRS, obj types.Object) { + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataRS, obj types.Object) { + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhookPush(data *webhookWebhookPushDataRS, obj types.Object) { + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) + data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) + data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) + data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) + data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) + data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) + data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) + data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) + data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) + data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) + data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) + data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) + data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) + data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataRS, obj types.Object) { + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) +} diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go new file mode 100644 index 0000000..045d320 --- /dev/null +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -0,0 +1,9912 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "context" + "github.com/google/uuid" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/microsoft/kiota-abstractions-go/serialization" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" +) + +func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditInfo() + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewErrorReport() + tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplicationErrorParameters(val) + } + tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetErrorDetails(val) + } + tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetStacktrace(val) + } + return tkh, diags +} + +func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + return tkh, diags +} + +func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGeneratedSecret() + tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLinkable() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNonLinkable() + return tkh, diags +} + +func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRestLink() + tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSegmentCount() + tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetAuditAuditRecordType(val) + } + { + val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDateTime(val) + } + tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + if recurse { + { + val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { + tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountBulkUpdate() + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { + return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { + return val.(basetypes.Int64Value).ValueInt64() + }) + diags.Append(d...) + tkh.SetSelectedAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountChangeLocale() + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { + tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountSettings() + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["default_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDefaultOrganizationalUnit(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) + diags.Append(d...) + tkh.SetPasswordMode(val) + } + tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorAuthentication(val) + } + tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) + diags.Append(d...) + tkh.SetVaultStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountStatus() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccount_additionalObjects() + tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHDSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPendingRecoveryRequests(val) + } + { + val, d := tfObjectToTKHDSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSettings(val) + } + { + val, d := tfObjectToTKHDSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStoredAttributes(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountsAuditStats() + { + val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectoryStats(val) + } + { + val, d := tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTwoFAStats(val) + } + { + val, d := tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetValidityStats(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + return tkh, diags +} + +func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { + tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthMoveInternalAccount() + { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInternalDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthPermission() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetInstances(val) + } + { + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetOperations(val) + } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttribute() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttributes() + { + val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { + tkh, d := tfObjectToTKHDSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAttributes(val) + } + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificate() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return *val.(*keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetKeyData(val) + } + if recurse { + { + val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { + tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificatePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return *val.(*keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplication() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { + tkh, d := tfObjectToTKHDSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupclients(val) + } + { + val, d := tfObjectToTKHDSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientLdapClient() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2Client() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermission() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { + tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { + tkh, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewClientOAuth2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientSaml2Client() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) + diags.Append(d...) + tkh.SetSubjectFormat(val) + } + if recurse { + { + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewClientSaml2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { + tkh, d := tfObjectToTKHDSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { + return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectorySummaryType(val) + } + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { + tkh, d := tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryInternalDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryLDAPDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + { + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) + diags.Append(d...) + tkh.SetDialect(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) + diags.Append(d...) + tkh.SetPasswordRecovery(val) + } + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryOIDCDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) + diags.Append(d...) + tkh.SetVendorEscaped(val) + } + if recurse { + { + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { + tkh, d := tfObjectToTKHDSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuditConfig(val) + } + tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_auditing"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupAuditing(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_delegation"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupDelegation(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_membership"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupMembership(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_provisioning"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizingGroupProvisioning(val) + } + { + val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAuthorizingGroupTypes(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, false, objAttrs["classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClassification(val) + } + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { + return *val.(*keyhubmodel.GroupGroupExtendedAccess) + }) + diags.Append(d...) + tkh.SetExtendedAccess(val) + } + tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["nested_under"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedUnder(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { + return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) + }) + diags.Append(d...) + tkh.SetVaultRecovery(val) + } + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { + tkh, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountNesting() + tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountStatus() + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAdminMail() + tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAudit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHDSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditConfig() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMonths(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { + tkh, d := tfObjectToTKHDSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditingInfo() + { + val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetAuditDueDate(val) + } + { + val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastAuditDate(val) + } + tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassification() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRequiredMonths(val) + } + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationInfo() + tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + { + val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClassificaton(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClient() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { + tkh, d := tfObjectToTKHDSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolder() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { + tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupInfo() + tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + { + val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { + tkh, d := tfObjectToTKHDSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSegments(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroup_additionalObjects() + { + val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccounts(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredClients(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredSystems(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizedGroups(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClients(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministeredSystems(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupauditinginfo(val) + } + { + val, d := tfObjectToTKHDSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupinfo(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdesk(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMyaccount(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMydelegatedaccount(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedGroups(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedClients(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedDirectories(val) + } + { + val, d := tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedGroupsOnSystem(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedOrganizationalUnits(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedSystems(val) + } + { + val, d := tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecentAudits(val) + } + { + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) + diags.Append(d...) + tkh.SetRequeststatus(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + { + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhooks(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupsAuditStats() + tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetClassifications(val) + } + tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { + tkh, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { + tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { + tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + if recurse { + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarker() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarkers() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + { + val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + { + val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLdapClient(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { + return *val.(*keyhubmodel.NotificationCertificateUsage) + }) + diags.Append(d...) + tkh.SetUsage(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + { + val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDueDate(val) + } + { + val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { + return *val.(*keyhubmodel.AuditAuditRequiredSourceType) + }) + diags.Append(d...) + tkh.SetNotificationGroupAuditRequiredNotificationType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + { + val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + { + val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { + return *val.(*keyhubmodel.GroupGroupEditRequiredReason) + }) + diags.Append(d...) + tkh.SetReason(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + return tkh, diags +} + +func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + return tkh, diags +} + +func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLicenseInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationModificationRequestNotification() + { + val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequest(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNotificationNotification() + return tkh, diags +} + +func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationNotifications() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { + tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + { + val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + { + val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetReleasedAt(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + { + val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { + tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { + return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) + }) + diags.Append(d...) + tkh.SetResult(val) + } + { + val, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + { + val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { + tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystem() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvgroups(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvisioningDuration(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningPermissionEndTime(val) + } + { + val, d := tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatusReport(val) + } + tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { + tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAD() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) + diags.Append(d...) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) + } + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystem() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() + { + val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetIssuedPermissions(val) + } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetManagementPermissions(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatistics(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningStatus() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningTokenPassword() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + { + val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccessDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() + return tkh, diags +} + +func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["new_admin"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNewAdmin(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetGroupOnSystemType(val) + } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestDisable2FARequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestExtendAccessRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExtendUntil(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantAccessRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantApplicationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinVaultRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetResetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestPasswordResetRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() + { + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCooldownEnd(val) + } + { + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetManagers(val) + } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return *val.(*keyhubmodel.RequestPasswordResetEmailType) + }) + diags.Append(d...) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRemoveGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestReviewAuditRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRevokeAdminRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["admin"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmin(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + tkh.SetAuthorizingGroupType(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) + }) + diags.Append(d...) + tkh.SetAccountAction(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account_to_update"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccountToUpdate(val) + } + { + val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetCurrentEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetCurrentRights(val) + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { + return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) + }) + diags.Append(d...) + tkh.SetUpdateGroupMembershipType(val) + } + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["password"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPassword(val) + } + { + val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { + return *val.(*keyhubmodel.ServiceaccountPasswordRotationScheme) + }) + diags.Append(d...) + tkh.SetPasswordRotation(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordSchemeEnabledStats(val) + } + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystemStats(val) + } + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + return tkh, diags +} + +func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + return tkh, diags +} + +func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleStringValue() + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleVersionInfo() + { + val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { + return int32(val.(basetypes.Int64Value).ValueInt64()) + }) + diags.Append(d...) + tkh.SetContractVersions(val) + } + tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolder() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultDeletedVaultHolderType(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { + tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["target_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTargetGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord() + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { + return *val.(*keyhubmodel.VaultMoveVaultRecordAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVault() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRecords(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewVaultVaultHolder() + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { + tkh, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordSecrets() + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShare() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultVaultRecordShareType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + { + val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { + tkh, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetChildren(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareSummary(val) + } + { + val, d := tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShares(val) + } + { + val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + { + val, d := tfObjectToTKHDSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultholder(val) + } + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecovery() + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlock() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlockResponse() + { + val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiresAt(val) + } + tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhook() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { + return *val.(*keyhubmodel.WebhookWebhookAuthenticationScheme) + }) + diags.Append(d...) + tkh.SetAuthenticationScheme(val) + } + tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDelivery() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { + tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { + tkh, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookNameUuid() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetObject(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookPush() + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetByParty(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup2(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupClassification(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetModificationRequest(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTimestamp(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + { + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetWebhookWebhookPushType(val) + } + return tkh, diags +} + +func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go new file mode 100644 index 0000000..2af8dcc --- /dev/null +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -0,0 +1,9830 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "context" + "github.com/google/uuid" + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/microsoft/kiota-abstractions-go/serialization" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" +) + +func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditInfo() + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewErrorReport() + tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetApplicationErrorParameters(val) + } + tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetErrorDetails(val) + } + tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetStacktrace(val) + } + return tkh, diags +} + +func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + return tkh, diags +} + +func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGeneratedSecret() + tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLinkable() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNonLinkable() + return tkh, diags +} + +func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRestLink() + tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSegmentCount() + tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetAuditAuditRecordType(val) + } + { + val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDateTime(val) + } + tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + if recurse { + { + val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { + tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountBulkUpdate() + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { + return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { + return val.(basetypes.Int64Value).ValueInt64() + }) + diags.Append(d...) + tkh.SetSelectedAccounts(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountChangeLocale() + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { + tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountSettings() + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDefaultOrganizationalUnit(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) + diags.Append(d...) + tkh.SetPasswordMode(val) + } + tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorAuthentication(val) + } + tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) + diags.Append(d...) + tkh.SetVaultStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountStatus() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccount_additionalObjects() + tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPendingRecoveryRequests(val) + } + { + val, d := tfObjectToTKHRSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSettings(val) + } + { + val, d := tfObjectToTKHRSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStoredAttributes(val) + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthAccountsAuditStats() + { + val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectoryStats(val) + } + { + val, d := tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTwoFAStats(val) + } + { + val, d := tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetValidityStats(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + return tkh, diags +} + +func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccount() + { + val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccount = *(val.(*keyhubmodel.AuthAccount)) + tkh.SetTypeEscaped(dtype) + } + } + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { + tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthMoveInternalAccount() + { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInternalDirectory(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthPermission() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetInstances(val) + } + { + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetOperations(val) + } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttribute() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewAuthStoredAccountAttributes() + { + val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { + tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAttributes(val) + } + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificate() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return *val.(*keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetKeyData(val) + } + if recurse { + { + val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { + tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificatePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return *val.(*keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplication() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { + tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplicationPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupclients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientLdapClient() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2Client() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) + } + tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermission() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { + tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { + tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewClientOAuth2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewClientSaml2Client() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + { + val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) + diags.Append(d...) + tkh.SetSubjectFormat(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewClientSaml2Client_attributes() + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { + tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { + return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectorySummaryType(val) + } + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { + tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryInternalDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryLDAPDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + { + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) + diags.Append(d...) + tkh.SetDialect(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) + diags.Append(d...) + tkh.SetPasswordRecovery(val) + } + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewDirectoryOIDCDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetBaseOrganizationalUnit(val) + } + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) + } + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) + diags.Append(d...) + tkh.SetVendorEscaped(val) + } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroup() + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { + tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuditConfig(val) + } + tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupAuditing(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupDelegation(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupMembership(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAuthorizingGroupProvisioning(val) + } + { + val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAuthorizingGroupTypes(val) + } + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClassification(val) + } + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { + return *val.(*keyhubmodel.GroupGroupExtendedAccess) + }) + diags.Append(d...) + tkh.SetExtendedAccess(val) + } + tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNestedUnder(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { + return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) + }) + diags.Append(d...) + tkh.SetVaultRecovery(val) + } + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountNesting() + tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccountStatus() + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAdminMail() + tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAudit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditConfig() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMonths(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { + tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupAuditingInfo() + { + val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetAuditDueDate(val) + } + { + val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastAuditDate(val) + } + tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassification() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRequiredMonths(val) + } + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationInfo() + tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClassificaton(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClient() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { + tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolder() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { + tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupInfo() + tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + { + val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { + tkh, d := tfObjectToTKHRSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSegments(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroup_additionalObjects() + { + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccounts(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdministeredSystems(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdmins(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAuthorizedGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "group.AuthorizedGroupsWrapper"}) + } + } + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetContentAdministeredSystems(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupauditinginfo(val) + } + { + val, d := tfObjectToTKHRSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupinfo(val) + } + { + val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetHelpdesk(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMyaccount(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMydelegatedaccount(val) + } + { + val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNestedGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedDirectories(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedGroupsOnSystem(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "provisioning.OwnedGroupOnSystemsWrapper"}) + } + } + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedOrganizationalUnits(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwnedSystems(val) + } + { + val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecentAudits(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) + diags.Append(d...) + tkh.SetRequeststatus(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + } + { + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhooks(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupGroupsAuditStats() + tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { + tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetClassifications(val) + } + tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { + tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { + tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { + tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { + return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) + }) + diags.Append(d...) + tkh.SetLaunchpadLaunchpadTileType(val) + } + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + if recurse { + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarker() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewMarkItemMarkers() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + { + val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + { + val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLdapClient(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { + return *val.(*keyhubmodel.NotificationCertificateUsage) + }) + diags.Append(d...) + tkh.SetUsage(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + { + val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetDueDate(val) + } + { + val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { + return *val.(*keyhubmodel.AuditAuditRequiredSourceType) + }) + diags.Append(d...) + tkh.SetNotificationGroupAuditRequiredNotificationType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + { + val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + { + val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { + return *val.(*keyhubmodel.GroupGroupEditRequiredReason) + }) + diags.Append(d...) + tkh.SetReason(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + return tkh, diags +} + +func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + return tkh, diags +} + +func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetLicenseInfo(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationModificationRequestNotification() + { + val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetAdmins(val) + } + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetGroups(val) + } + { + val, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRequest(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewNotificationNotification() + return tkh, diags +} + +func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationNotifications() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { + tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + { + val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetSystems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + { + val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetReleasedAt(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + { + val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetRecord(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { + tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetParent(val) + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { + tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { + tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCreateAsParentOf(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { + return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) + }) + diags.Append(d...) + tkh.SetResult(val) + } + { + val, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + { + val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { + tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystem() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvgroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccounts(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetProvisioningDuration(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningPermissionEndTime(val) + } + { + val, d := tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatusReport(val) + } + tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { + tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystems(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAD() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) + diags.Append(d...) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystem() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) + } + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + diags.Append(d...) + tkh.SetExternalUuid(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) + } + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetIssuedPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetManagementPermissions(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) + } + { + val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatistics(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningProvisioningStatus() + { + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewProvisioningTokenPassword() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + { + val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccessDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() + return tkh, diags +} + +func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestAddGroupAdminRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNewAdmin(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetGroupOnSystemType(val) + } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestDisable2FARequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestExtendAccessRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExtendUntil(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantAccessRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantApplicationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + { + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetPermissionType(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestJoinVaultRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() + { + val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAcceptParams(val) + } + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetResetStatus(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestPasswordResetRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() + { + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCooldownEnd(val) + } + { + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetManagers(val) + } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return *val.(*keyhubmodel.RequestPasswordResetEmailType) + }) + diags.Append(d...) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRemoveGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestReviewAuditRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestRevokeAdminRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAdmin(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + tkh.SetAuthorizingGroupType(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) + }) + diags.Append(d...) + tkh.SetAccountAction(val) + } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetRequestingGroup(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetApplication(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccountToUpdate(val) + } + { + val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetCurrentEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetCurrentRights(val) + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { + return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) + }) + diags.Append(d...) + tkh.SetUpdateGroupMembershipType(val) + } + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { + return *val.(*keyhubmodel.RequestModificationRequestType) + }) + diags.Append(d...) + tkh.SetRequestModificationRequestType(val) + } + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { + return *val.(*keyhubmodel.RequestModificationRequestStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["password_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetPassword(val) + } + { + val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { + return *val.(*keyhubmodel.ServiceaccountPasswordRotationScheme) + }) + diags.Append(d...) + tkh.SetPasswordRotation(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { + tkh, d := tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { + tkh, d := tfObjectToTKHRSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordSchemeEnabledStats(val) + } + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystemStats(val) + } + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + return tkh, diags +} + +func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + return tkh, diags +} + +func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleStringValue() + tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewSimpleVersionInfo() + { + val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { + return int32(val.(basetypes.Int64Value).ValueInt64()) + }) + diags.Append(d...) + tkh.SetContractVersions(val) + } + tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolder() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultDeletedVaultHolderType(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { + tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + { + val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVault(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["target_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTargetGroup(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { + return *val.(*keyhubmodel.VaultMoveVaultRecordAction) + }) + diags.Append(d...) + tkh.SetAction(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareDuration(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVault() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetRecords(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + tkh := keyhubmodel.NewVaultVaultHolder() + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { + tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { + tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordSecrets() + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShare() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + diags.Append(d...) + tkh.SetVaultVaultRecordShareType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + { + val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { + tkh, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetChildren(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParent(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetParent(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShareSummary(val) + } + { + val, d := tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetShares(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } + { + val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + { + val, d := tfObjectToTKHRSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultholder(val) + } + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultRecovery() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlock() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewVaultVaultUnlockResponse() + { + val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiresAt(val) + } + tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhook() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetAccount(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { + return *val.(*keyhubmodel.WebhookWebhookAuthenticationScheme) + }) + diags.Append(d...) + tkh.SetAuthenticationScheme(val) + } + tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDelivery() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { + tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { + tkh, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookNameUuid() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetObject(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhookPush() + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetByParty(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetCertificate(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup2(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupClassification(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetModificationRequest(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) + diags.Append(d...) + tkh.SetSecurityLevel(val) + } + tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetServiceAccount(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) + } + { + val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTimestamp(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetVaultRecord(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetWebhook(val) + } + { + val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + diags.Append(d...) + tkh.SetWebhookWebhookPushType(val) + } + return tkh, diags +} + +func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go new file mode 100644 index 0000000..974c68c --- /dev/null +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -0,0 +1,11262 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" +) + +func tkhToTFObjectDSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditInfoAttrTypesDSRecurse + } else { + attrs = auditInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = errorReportAttrTypesDSRecurse + } else { + attrs = errorReportAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) + { + val, d := tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) + diags.Append(d...) + obj["application_error_parameters"] = val + } + obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) + { + elemType := attrs["error_details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["error_details"] = val + } + obj["exception"] = types.StringPointerValue(tkh.GetException()) + obj["message"] = types.StringPointerValue(tkh.GetMessage()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + { + elemType := attrs["stacktrace"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["stacktrace"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = errorReport_applicationErrorParametersAttrTypesDSRecurse + } else { + attrs = errorReport_applicationErrorParametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = generatedSecretAttrTypesDSRecurse + } else { + attrs = generatedSecretAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) + obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) + obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = linkableAttrTypesDSRecurse + } else { + attrs = linkableAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nonLinkableAttrTypesDSRecurse + } else { + attrs = nonLinkableAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = restLinkAttrTypesDSRecurse + } else { + attrs = restLinkAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["href"] = types.StringPointerValue(tkh.GetHref()) + obj["id"] = types.Int64PointerValue(tkh.GetId()) + obj["rel"] = types.StringPointerValue(tkh.GetRel()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = segmentCountAttrTypesDSRecurse + } else { + attrs = segmentCountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["count"] = types.Int64PointerValue(tkh.GetCount()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecordAttrTypesDSRecurse + } else { + attrs = auditAuditRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["date_time"] = timePointerToTF(tkh.GetDateTime()) + obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) + obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) + obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) + obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) + obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) + obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) + obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) + obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) + obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) + obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) + obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) + obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecordLinkableWrapperAttrTypesDSRecurse + } else { + attrs = auditAuditRecordLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuditAuditRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecord_additionalObjectsAttrTypesDSRecurse + } else { + attrs = auditAuditRecord_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountAttrTypesDSRecurse + } else { + attrs = authAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountBulkUpdateAttrTypesDSRecurse + } else { + attrs = authAccountBulkUpdateAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) + { + elemType := attrs["selected_accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(tkh) + }) + diags.Append(d...) + obj["selected_accounts"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountChangeLocaleAttrTypesDSRecurse + } else { + attrs = authAccountChangeLocaleAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = authAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountPrimerAttrTypesDSRecurse + } else { + attrs = authAccountPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountRecoveryStatusAttrTypesDSRecurse + } else { + attrs = authAccountRecoveryStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountSettingsAttrTypesDSRecurse + } else { + attrs = authAccountSettingsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetDefaultOrganizationalUnit()) + diags.Append(d...) + obj["default_organizational_unit"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) + obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) + obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) + obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) + obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) + obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) + obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) + obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) + obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountStatusAttrTypesDSRecurse + } else { + attrs = authAccountStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = authAccount_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) + diags.Append(d...) + obj["pending_recovery_requests"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountSettings(recurse, tkh.GetSettings()) + diags.Append(d...) + obj["settings"] = val + } + { + val, d := tkhToTFObjectDSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) + diags.Append(d...) + obj["stored_attributes"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStatsAttrTypesDSRecurse + } else { + attrs = authAccountsAuditStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) + diags.Append(d...) + obj["directory_stats"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) + diags.Append(d...) + obj["two_f_a_stats"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) + diags.Append(d...) + obj["validity_stats"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_directoryStatsAttrTypesDSRecurse + } else { + attrs = authAccountsAuditStats_directoryStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse + } else { + attrs = authAccountsAuditStats_twoFAStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_validityStatsAttrTypesDSRecurse + } else { + attrs = authAccountsAuditStats_validityStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountAttrTypesDSRecurse + } else { + attrs = authInternalAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = authInternalAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthInternalAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountStatusObjectAttrTypesDSRecurse + } else { + attrs = authInternalAccountStatusObjectAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authMoveInternalAccountAttrTypesDSRecurse + } else { + attrs = authMoveInternalAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) + diags.Append(d...) + obj["internal_directory"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authPermissionAttrTypesDSRecurse + } else { + attrs = authPermissionAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["full"] = types.StringPointerValue(tkh.GetFull()) + { + elemType := attrs["instances"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["instances"] = val + } + { + elemType := attrs["operations"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["operations"] = val + } + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authStoredAccountAttributeAttrTypesDSRecurse + } else { + attrs = authStoredAccountAttributeAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authStoredAccountAttributesAttrTypesDSRecurse + } else { + attrs = authStoredAccountAttributesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["attributes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthStoredAccountAttribute(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["attributes"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificateAttrTypesDSRecurse + } else { + attrs = certificateCertificateAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + elemType := attrs["key_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["key_data"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificateLinkableWrapperAttrTypesDSRecurse + } else { + attrs = certificateCertificateLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificatePrimerAttrTypesDSRecurse + } else { + attrs = certificateCertificatePrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificate_additionalObjectsAttrTypesDSRecurse + } else { + attrs = certificateCertificate_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationAttrTypesDSRecurse + } else { + attrs = clientClientApplicationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationLinkableWrapperAttrTypesDSRecurse + } else { + attrs = clientClientApplicationLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientClientApplication(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationPrimerAttrTypesDSRecurse + } else { + attrs = clientClientApplicationPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplication_additionalObjectsAttrTypesDSRecurse + } else { + attrs = clientClientApplication_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientLdapClientAttrTypesDSRecurse + } else { + attrs = clientLdapClientAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + diags.Append(d...) + obj["shared_secret"] = val + } + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientAttrTypesDSRecurse + } else { + attrs = clientOAuth2ClientAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectDSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + diags.Append(d...) + obj["shared_secret"] = val + } + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionAttrTypesDSRecurse + } else { + attrs = clientOAuth2ClientPermissionAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) + diags.Append(d...) + obj["for_group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + diags.Append(d...) + obj["for_system"] = val + } + obj["value"] = stringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse + } else { + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse + } else { + attrs = clientOAuth2ClientPermissionWithClientAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) + diags.Append(d...) + obj["for_group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + diags.Append(d...) + obj["for_system"] = val + } + obj["value"] = stringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse + } else { + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse + } else { + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2Client_attributesAttrTypesDSRecurse + } else { + attrs = clientOAuth2Client_attributesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2ClientAttrTypesDSRecurse + } else { + attrs = clientSaml2ClientAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + { + val, d := tkhToTFObjectDSClientSaml2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2Client_attributesAttrTypesDSRecurse + } else { + attrs = clientSaml2Client_attributesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) + diags.Append(d...) + obj["base_organizational_unit"] = val + } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSDirectoryAccountDirectory(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryPrimerAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectoryPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryStatusReportAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectoryStatusReportAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectorySummaryAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectorySummaryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryInternalDirectoryAttrTypesDSRecurse + } else { + attrs = directoryInternalDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) + diags.Append(d...) + obj["base_organizational_unit"] = val + } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = directoryLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) + diags.Append(d...) + obj["base_organizational_unit"] = val + } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + diags.Append(d...) + obj["failover_trusted_certificate"] = val + } + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryMaintenanceDirectoryAttrTypesDSRecurse + } else { + attrs = directoryMaintenanceDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) + diags.Append(d...) + obj["base_organizational_unit"] = val + } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryOIDCDirectoryAttrTypesDSRecurse + } else { + attrs = directoryOIDCDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) + diags.Append(d...) + obj["base_organizational_unit"] = val + } + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) + diags.Append(d...) + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroupAttrTypesDSRecurse + } else { + attrs = groupAccountGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroupLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupAccountGroupLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupAccountGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroup_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupAccountGroup_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAuthorizedGroupsWrapperAttrTypesDSRecurse + } else { + attrs = groupAuthorizedGroupsWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAttrTypesDSRecurse + } else { + attrs = groupGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) + { + val, d := tkhToTFObjectDSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) + diags.Append(d...) + obj["audit_config"] = val + } + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupAuditing()) + diags.Append(d...) + obj["authorizing_group_auditing"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) + diags.Append(d...) + obj["authorizing_group_delegation"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) + diags.Append(d...) + obj["authorizing_group_membership"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) + diags.Append(d...) + obj["authorizing_group_provisioning"] = val + } + { + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["authorizing_group_types"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(false, tkh.GetClassification()) + diags.Append(d...) + obj["classification"] = val + } + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetNestedUnder()) + diags.Append(d...) + obj["nested_under"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountAttrTypesDSRecurse + } else { + attrs = groupGroupAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountNestingAttrTypesDSRecurse + } else { + attrs = groupGroupAccountNestingAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountStatusAttrTypesDSRecurse + } else { + attrs = groupGroupAccountStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupAccount_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAdminMailAttrTypesDSRecurse + } else { + attrs = groupGroupAdminMailAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["body"] = types.StringPointerValue(tkh.GetBody()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditAttrTypesDSRecurse + } else { + attrs = groupGroupAuditAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditAccountAttrTypesDSRecurse + } else { + attrs = groupGroupAuditAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditConfigAttrTypesDSRecurse + } else { + attrs = groupGroupAuditConfigAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["months"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupAuditLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAudit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAudit_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupAudit_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditingInfoAttrTypesDSRecurse + } else { + attrs = groupGroupAuditingInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationAttrTypesDSRecurse + } else { + attrs = groupGroupClassificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) + obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) + obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) + obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) + obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) + { + elemType := attrs["required_months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["required_months"] = val + } + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationInfoAttrTypesDSRecurse + } else { + attrs = groupGroupClassificationInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupClassificationLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationPrimerAttrTypesDSRecurse + } else { + attrs = groupGroupClassificationPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationUpdateAttrTypesDSRecurse + } else { + attrs = groupGroupClassificationUpdateAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(recurse, tkh.GetClassificaton()) + diags.Append(d...) + obj["classificaton"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassification_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupClassification_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) + diags.Append(d...) + obj["info"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientAttrTypesDSRecurse + } else { + attrs = groupGroupClientAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupClientLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClient_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupClient_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolderAttrTypesDSRecurse + } else { + attrs = groupGroupFolderAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolderLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupFolderLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolder_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupFolder_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupInfoAttrTypesDSRecurse + } else { + attrs = groupGroupInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerAttrTypesDSRecurse + } else { + attrs = groupGroupPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupPrimerLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupSegmentedLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + { + elemType := attrs["segments"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSSegmentCount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["segments"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroup_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroup_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) + diags.Append(d...) + obj["accounts"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) + diags.Append(d...) + obj["administered_clients"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) + diags.Append(d...) + obj["administered_systems"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) + diags.Append(d...) + obj["admins"] = val + } + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) + diags.Append(d...) + obj["authorized_groups"] = val + } + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) + diags.Append(d...) + obj["client_permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) + diags.Append(d...) + obj["clients"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) + diags.Append(d...) + obj["content_administered_systems"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupInfo(recurse, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) + diags.Append(d...) + obj["helpdesk"] = val + } + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = val + } + { + val, d := tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = val + } + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + { + val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupsAuditStatsAttrTypesDSRecurse + } else { + attrs = groupGroupsAuditStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) + { + elemType := attrs["classifications"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["classifications"] = val + } + obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) + obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) + obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) + obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) + obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroupAttrTypesDSRecurse + } else { + attrs = groupProvisioningGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupProvisioningGroupLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesDSRecurse + } else { + attrs = markItemMarkerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesDSRecurse + } else { + attrs = markItemMarker_parametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesDSRecurse + } else { + attrs = markItemMarkersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationCertificateExpiredNotificationAttrTypesDSRecurse + } else { + attrs = notificationCertificateExpiredNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val + } + { + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + { + val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetLdapClient()) + diags.Append(d...) + obj["ldap_client"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["usage"] = stringerToTF(tkh.GetUsage()) + { + val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupAuditRequiredNotificationAttrTypesDSRecurse + } else { + attrs = notificationGroupAuditRequiredNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["due_date"] = timePointerToTF(tkh.GetDueDate()) + { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupEditRequiredNotificationAttrTypesDSRecurse + } else { + attrs = notificationGroupEditRequiredNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + obj["reason"] = stringerToTF(tkh.GetReason()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse + } else { + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse + } else { + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationLicenseStatusNotificationAttrTypesDSRecurse + } else { + attrs = notificationLicenseStatusNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) + { + val, d := tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) + diags.Append(d...) + obj["license_info"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationModificationRequestNotificationAttrTypesDSRecurse + } else { + attrs = notificationModificationRequestNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["admins"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["admins"] = val + } + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh.GetRequest()) + diags.Append(d...) + obj["request"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationNotificationAttrTypesDSRecurse + } else { + attrs = notificationNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationNotificationsAttrTypesDSRecurse + } else { + attrs = notificationNotificationsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSNotificationNotification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationOldApiVersionUsageNotificationAttrTypesDSRecurse + } else { + attrs = notificationOldApiVersionUsageNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) + { + val, d := tkhToTFObjectDSClientOAuth2Client(recurse, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse + } else { + attrs = notificationProvisionConfigRequiredNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["systems"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse + } else { + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["groups"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationUpdateAvailableNotificationAttrTypesDSRecurse + } else { + attrs = notificationUpdateAvailableNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationVaultRecordExpiredNotificationAttrTypesDSRecurse + } else { + attrs = notificationVaultRecordExpiredNotificationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh.GetRecord()) + diags.Append(d...) + obj["record"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnitAttrTypesDSRecurse + } else { + attrs = organizationAccountOrganizationalUnitAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse + } else { + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse + } else { + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetParent()) + diags.Append(d...) + obj["parent"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccountAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAPAttrTypesDSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + diags.Append(d...) + obj["failover_trusted_certificate"] = val + } + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val + } + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningAccountProvisioningStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["result"] = stringerToTF(tkh.GetResult()) + { + val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusReportAttrTypesDSRecurse + } else { + attrs = provisioningAccountProvisioningStatusReportAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["status"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningCircuitBreakerStatisticsAttrTypesDSRecurse + } else { + attrs = provisioningCircuitBreakerStatisticsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = stringerToTF(tkh.GetState()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemPrimerAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemTypesAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystemTypesAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) + diags.Append(d...) + obj["provgroups"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningGroupProvisioningStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) + diags.Append(d...) + obj["provisioning_duration"] = val + } + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) + { + val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) + diags.Append(d...) + obj["status_report"] = val + } + obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse + } else { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse + } else { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceAttrTypesDSRecurse + } else { + attrs = provisioningProvisionNumberSequenceAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedADAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedADAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + diags.Append(d...) + obj["failover_trusted_certificate"] = val + } + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val + } + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSClientLdapClient(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + diags.Append(d...) + obj["failover_trusted_certificate"] = val + } + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val + } + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) + { + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) + diags.Append(d...) + obj["numbering"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) + diags.Append(d...) + obj["content_administrator"] = val + } + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) + diags.Append(d...) + obj["issued_permissions"] = val + } + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) + { + val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) + diags.Append(d...) + obj["management_permissions"] = val + } + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) + diags.Append(d...) + obj["statistics"] = val + } + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) + diags.Append(d...) + obj["supported_group_types"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse + } else { + attrs = provisioningProvisioningManagementPermissionsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["groups"] = val + } + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesDSRecurse + } else { + attrs = provisioningTokenPasswordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) + diags.Append(d...) + obj["access_duration"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse + } else { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse + } else { + attrs = requestAcceptModificationRequestParametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAddGroupAdminRequestAttrTypesDSRecurse + } else { + attrs = requestAddGroupAdminRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetNewAdmin()) + diags.Append(d...) + obj["new_admin"] = val + } + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse + } else { + attrs = requestCreateGroupOnSystemRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupRequestAttrTypesDSRecurse + } else { + attrs = requestCreateGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse + } else { + attrs = requestCreateServiceAccountRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestDisable2FARequestAttrTypesDSRecurse + } else { + attrs = requestDisable2FARequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestExtendAccessRequestAttrTypesDSRecurse + } else { + attrs = requestExtendAccessRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantAccessRequestAttrTypesDSRecurse + } else { + attrs = requestGrantAccessRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantApplicationRequestAttrTypesDSRecurse + } else { + attrs = requestGrantApplicationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse + } else { + attrs = requestGrantServiceAccountGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinGroupRequestAttrTypesDSRecurse + } else { + attrs = requestJoinGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinVaultRequestAttrTypesDSRecurse + } else { + attrs = requestJoinVaultRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestAttrTypesDSRecurse + } else { + attrs = requestModificationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse + } else { + attrs = requestModificationRequestLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse + } else { + attrs = requestModificationRequest_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) + diags.Append(d...) + obj["reset_status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestAttrTypesDSRecurse + } else { + attrs = requestPasswordResetRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) + { + elemType := attrs["managers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["managers"] = val + } + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveGroupRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveProvisionedSystemRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestReviewAuditRequestAttrTypesDSRecurse + } else { + attrs = requestReviewAuditRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesDSRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAdmin()) + diags.Append(d...) + obj["admin"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse + } else { + attrs = requestSetupAuthorizingGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) + diags.Append(d...) + obj["requesting_group"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) + diags.Append(d...) + obj["requesting_group"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferApplicationAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferApplicationOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) + diags.Append(d...) + obj["application"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferAuditorGroupRequestAttrTypesDSRecurse + } else { + attrs = requestTransferAuditorGroupRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestUpdateGroupMembershipRequestAttrTypesDSRecurse + } else { + attrs = requestUpdateGroupMembershipRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccountToUpdate()) + diags.Append(d...) + obj["account_to_update"] = val + } + obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) + obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestVerifyInternalAccountRequestAttrTypesDSRecurse + } else { + attrs = requestVerifyInternalAccountRequestAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetPassword()) + diags.Append(d...) + obj["password"] = val + } + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + diags.Append(d...) + obj["technical_administrator"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountStatusAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountStatusAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) + diags.Append(d...) + obj["password_scheme_enabled_stats"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) + diags.Append(d...) + obj["system_stats"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleStringValueAttrTypesDSRecurse + } else { + attrs = simpleStringValueAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleVersionInfoAttrTypesDSRecurse + } else { + attrs = simpleVersionInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["contract_versions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(int64(tkh)) + }) + diags.Append(d...) + obj["contract_versions"] = val + } + obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultHolderAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) + obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultDeletedVaultHolder(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultRecoveryAttrTypesDSRecurse + } else { + attrs = vaultDeletedVaultRecoveryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetTargetGroup()) + diags.Append(d...) + obj["target_group"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecordAttrTypesDSRecurse + } else { + attrs = vaultMoveVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["action"] = stringerToTF(tkh.GetAction()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) + diags.Append(d...) + obj["share_duration"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse + } else { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultAttrTypesDSRecurse + } else { + attrs = vaultVaultAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["records"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["records"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultHolderAttrTypesDSRecurse + } else { + attrs = vaultVaultHolderAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordLinkableWrapperAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordSecretsAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordSecretsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["file"] = types.StringPointerValue(tkh.GetFile()) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["totp"] = types.StringPointerValue(tkh.GetTotp()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordShareAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareSummaryAttrTypesDSRecurse + } else { + attrs = vaultVaultRecordShareSummaryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["children"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSVaultVaultRecordShare(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["children"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordShare(recurse, tkh.GetParent()) + diags.Append(d...) + obj["parent"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecord_additionalObjectsAttrTypesDSRecurse + } else { + attrs = vaultVaultRecord_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetParent()) + diags.Append(d...) + obj["parent"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) + diags.Append(d...) + obj["share_summary"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) + diags.Append(d...) + obj["shares"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + { + val, d := tkhToTFObjectDSVaultVaultHolder(recurse, tkh.GetVaultholder()) + diags.Append(d...) + obj["vaultholder"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecoveryAttrTypesDSRecurse + } else { + attrs = vaultVaultRecoveryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockAttrTypesDSRecurse + } else { + attrs = vaultVaultUnlockAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockResponseAttrTypesDSRecurse + } else { + attrs = vaultVaultUnlockResponseAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) + obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookAttrTypesDSRecurse + } else { + attrs = webhookWebhookAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) + obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) + obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) + obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) + obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) + { + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) + obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["tls"] = stringerToTF(tkh.GetTls()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + diags.Append(d...) + obj["trusted_certificate"] = val + } + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryAttrTypesDSRecurse + } else { + attrs = webhookWebhookDeliveryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val + } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse + } else { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSWebhookWebhookDelivery(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse + } else { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookLinkableWrapperAttrTypesDSRecurse + } else { + attrs = webhookWebhookLinkableWrapperAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookNameUuidAttrTypesDSRecurse + } else { + attrs = webhookWebhookNameUuidAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSLinkable(recurse, tkh.GetObject()) + diags.Append(d...) + obj["object"] = val + } + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookPushAttrTypesDSRecurse + } else { + attrs = webhookWebhookPushAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) + diags.Append(d...) + obj["by_party"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) + diags.Append(d...) + obj["group2"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) + diags.Append(d...) + obj["group_classification"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) + diags.Append(d...) + obj["modification_request"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val + } + obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhook_additionalObjectsAttrTypesDSRecurse + } else { + attrs = webhookWebhook_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go new file mode 100644 index 0000000..155dded --- /dev/null +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -0,0 +1,10185 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +//lint:ignore U1000 Ignore unused functions in generated code +package provider + +import ( + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types" + keyhubmodel "github.com/topicuskeyhub/sdk-go/models" +) + +func tkhToTFObjectRSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditInfoAttrTypesRSRecurse + } else { + attrs = auditInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = errorReportAttrTypesRSRecurse + } else { + attrs = errorReportAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) + { + val, d := tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) + diags.Append(d...) + obj["application_error_parameters"] = val + } + obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) + { + elemType := attrs["error_details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["error_details"] = val + } + obj["exception"] = types.StringPointerValue(tkh.GetException()) + obj["message"] = types.StringPointerValue(tkh.GetMessage()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + { + elemType := attrs["stacktrace"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["stacktrace"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = errorReport_applicationErrorParametersAttrTypesRSRecurse + } else { + attrs = errorReport_applicationErrorParametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = generatedSecretAttrTypesRSRecurse + } else { + attrs = generatedSecretAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) + obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) + obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = linkableAttrTypesRSRecurse + } else { + attrs = linkableAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nonLinkableAttrTypesRSRecurse + } else { + attrs = nonLinkableAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = restLinkAttrTypesRSRecurse + } else { + attrs = restLinkAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["href"] = types.StringPointerValue(tkh.GetHref()) + obj["id"] = types.Int64PointerValue(tkh.GetId()) + obj["rel"] = types.StringPointerValue(tkh.GetRel()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = segmentCountAttrTypesRSRecurse + } else { + attrs = segmentCountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["count"] = types.Int64PointerValue(tkh.GetCount()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecordAttrTypesRSRecurse + } else { + attrs = auditAuditRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["date_time"] = timePointerToTF(tkh.GetDateTime()) + obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) + obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) + obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) + obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) + obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) + obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) + obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) + obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) + obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) + obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) + obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) + obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecordLinkableWrapperAttrTypesRSRecurse + } else { + attrs = auditAuditRecordLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuditAuditRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = auditAuditRecord_additionalObjectsAttrTypesRSRecurse + } else { + attrs = auditAuditRecord_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountAttrTypesRSRecurse + } else { + attrs = authAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountBulkUpdateAttrTypesRSRecurse + } else { + attrs = authAccountBulkUpdateAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) + { + elemType := attrs["selected_accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(tkh) + }) + diags.Append(d...) + obj["selected_accounts"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountChangeLocaleAttrTypesRSRecurse + } else { + attrs = authAccountChangeLocaleAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = authAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountPrimerAttrTypesRSRecurse + } else { + attrs = authAccountPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountRecoveryStatusAttrTypesRSRecurse + } else { + attrs = authAccountRecoveryStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountSettingsAttrTypesRSRecurse + } else { + attrs = authAccountSettingsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["default_organizational_unit_uuid"] = withUuidToTF(tkh.GetDefaultOrganizationalUnit()) + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) + obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) + obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) + obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) + obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) + obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) + obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) + obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) + obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountStatusAttrTypesRSRecurse + } else { + attrs = authAccountStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = authAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectRSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) + diags.Append(d...) + obj["pending_recovery_requests"] = val + } + { + val, d := tkhToTFObjectRSAuthAccountSettings(recurse, tkh.GetSettings()) + diags.Append(d...) + obj["settings"] = val + } + { + val, d := tkhToTFObjectRSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) + diags.Append(d...) + obj["stored_attributes"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStatsAttrTypesRSRecurse + } else { + attrs = authAccountsAuditStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) + diags.Append(d...) + obj["directory_stats"] = val + } + { + val, d := tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) + diags.Append(d...) + obj["two_f_a_stats"] = val + } + { + val, d := tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) + diags.Append(d...) + obj["validity_stats"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_directoryStatsAttrTypesRSRecurse + } else { + attrs = authAccountsAuditStats_directoryStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse + } else { + attrs = authAccountsAuditStats_twoFAStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authAccountsAuditStats_validityStatsAttrTypesRSRecurse + } else { + attrs = authAccountsAuditStats_validityStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountAttrTypesRSRecurse + } else { + attrs = authInternalAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["uuid"] = withUuidToTF(tkh) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = authInternalAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthInternalAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authInternalAccountStatusObjectAttrTypesRSRecurse + } else { + attrs = authInternalAccountStatusObjectAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authMoveInternalAccountAttrTypesRSRecurse + } else { + attrs = authMoveInternalAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) + diags.Append(d...) + obj["internal_directory"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authPermissionAttrTypesRSRecurse + } else { + attrs = authPermissionAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["full"] = types.StringPointerValue(tkh.GetFull()) + { + elemType := attrs["instances"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["instances"] = val + } + { + elemType := attrs["operations"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["operations"] = val + } + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authStoredAccountAttributeAttrTypesRSRecurse + } else { + attrs = authStoredAccountAttributeAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = authStoredAccountAttributesAttrTypesRSRecurse + } else { + attrs = authStoredAccountAttributesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["attributes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthStoredAccountAttribute(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["attributes"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificateAttrTypesRSRecurse + } else { + attrs = certificateCertificateAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + { + elemType := attrs["key_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["key_data"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificateLinkableWrapperAttrTypesRSRecurse + } else { + attrs = certificateCertificateLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificatePrimerAttrTypesRSRecurse + } else { + attrs = certificateCertificatePrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = certificateCertificate_additionalObjectsAttrTypesRSRecurse + } else { + attrs = certificateCertificate_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationAttrTypesRSRecurse + } else { + attrs = clientClientApplicationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationLinkableWrapperAttrTypesRSRecurse + } else { + attrs = clientClientApplicationLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientClientApplication(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplicationPrimerAttrTypesRSRecurse + } else { + attrs = clientClientApplicationPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientClientApplication_additionalObjectsAttrTypesRSRecurse + } else { + attrs = clientClientApplication_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + { + val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientLdapClientAttrTypesRSRecurse + } else { + attrs = clientLdapClientAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientAttrTypesRSRecurse + } else { + attrs = clientOAuth2ClientAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectRSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionAttrTypesRSRecurse + } else { + attrs = clientOAuth2ClientPermissionAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse + } else { + attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse + } else { + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse + } else { + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse + } else { + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientOAuth2Client_attributesAttrTypesRSRecurse + } else { + attrs = clientOAuth2Client_attributesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2ClientAttrTypesRSRecurse + } else { + attrs = clientSaml2ClientAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + { + val, d := tkhToTFObjectRSClientSaml2Client_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientSaml2Client_attributesAttrTypesRSRecurse + } else { + attrs = clientSaml2Client_attributesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSDirectoryAccountDirectory(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryPrimerAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectoryPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectoryStatusReportAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectoryStatusReportAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectorySummaryAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectorySummaryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse + } else { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryInternalDirectoryAttrTypesRSRecurse + } else { + attrs = directoryInternalDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = directoryLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryMaintenanceDirectoryAttrTypesRSRecurse + } else { + attrs = directoryMaintenanceDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryOIDCDirectoryAttrTypesRSRecurse + } else { + attrs = directoryOIDCDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroupAttrTypesRSRecurse + } else { + attrs = groupAccountGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["uuid"] = withUuidToTF(tkh) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroupLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupAccountGroupLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupAccountGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAccountGroup_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupAccountGroup_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupAuthorizedGroupsWrapperAttrTypesRSRecurse + } else { + attrs = groupAuthorizedGroupsWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAttrTypesRSRecurse + } else { + attrs = groupGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) + { + val, d := tkhToTFObjectRSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) + diags.Append(d...) + obj["audit_config"] = val + } + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) + obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) + obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) + obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) + { + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["authorizing_group_types"] = val + } + obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountAttrTypesRSRecurse + } else { + attrs = groupGroupAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountNestingAttrTypesRSRecurse + } else { + attrs = groupGroupAccountNestingAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccountStatusAttrTypesRSRecurse + } else { + attrs = groupGroupAccountStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAdminMailAttrTypesRSRecurse + } else { + attrs = groupGroupAdminMailAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["body"] = types.StringPointerValue(tkh.GetBody()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditAttrTypesRSRecurse + } else { + attrs = groupGroupAuditAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditAccountAttrTypesRSRecurse + } else { + attrs = groupGroupAuditAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditConfigAttrTypesRSRecurse + } else { + attrs = groupGroupAuditConfigAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + elemType := attrs["months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["months"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupAuditLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAudit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAudit_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupAudit_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAuditingInfoAttrTypesRSRecurse + } else { + attrs = groupGroupAuditingInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationAttrTypesRSRecurse + } else { + attrs = groupGroupClassificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) + obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) + obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) + obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) + obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) + { + elemType := attrs["required_months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["required_months"] = val + } + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationInfoAttrTypesRSRecurse + } else { + attrs = groupGroupClassificationInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupClassificationLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationPrimerAttrTypesRSRecurse + } else { + attrs = groupGroupClassificationPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassificationUpdateAttrTypesRSRecurse + } else { + attrs = groupGroupClassificationUpdateAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["classificaton_uuid"] = withUuidToTF(tkh.GetClassificaton()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClassification_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupClassification_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) + diags.Append(d...) + obj["info"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientAttrTypesRSRecurse + } else { + attrs = groupGroupClientAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupClientLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClient_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupClient_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolderAttrTypesRSRecurse + } else { + attrs = groupGroupFolderAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolderLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupFolderLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupFolder_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupFolder_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupInfoAttrTypesRSRecurse + } else { + attrs = groupGroupInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerAttrTypesRSRecurse + } else { + attrs = groupGroupPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupSegmentedLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + { + elemType := attrs["segments"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSSegmentCount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["segments"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroup_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroup_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) + diags.Append(d...) + obj["accounts"] = val + } + { + val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) + diags.Append(d...) + obj["administered_clients"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) + diags.Append(d...) + obj["administered_systems"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) + diags.Append(d...) + obj["admins"] = val + } + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) + diags.Append(d...) + obj["authorized_groups"] = val + } + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) + diags.Append(d...) + obj["client_permissions"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) + diags.Append(d...) + obj["clients"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) + diags.Append(d...) + obj["content_administered_systems"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupInfo(recurse, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) + diags.Append(d...) + obj["helpdesk"] = val + } + { + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = val + } + { + val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = val + } + { + val, d := tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = val + } + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + { + val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupsAuditStatsAttrTypesRSRecurse + } else { + attrs = groupGroupsAuditStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) + { + elemType := attrs["classifications"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["classifications"] = val + } + obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) + obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) + obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) + obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) + obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroupAttrTypesRSRecurse + } else { + attrs = groupProvisioningGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesRSRecurse + } else { + attrs = markItemMarkerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesRSRecurse + } else { + attrs = markItemMarker_parametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesRSRecurse + } else { + attrs = markItemMarkersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationCertificateExpiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationCertificateExpiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val + } + { + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + { + val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetLdapClient()) + diags.Append(d...) + obj["ldap_client"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["usage"] = stringerToTF(tkh.GetUsage()) + { + val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupAuditRequiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationGroupAuditRequiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["due_date"] = timePointerToTF(tkh.GetDueDate()) + { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupEditRequiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationGroupEditRequiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + obj["reason"] = stringerToTF(tkh.GetReason()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse + } else { + attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse + } else { + attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationLicenseStatusNotificationAttrTypesRSRecurse + } else { + attrs = notificationLicenseStatusNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) + { + val, d := tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) + diags.Append(d...) + obj["license_info"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationModificationRequestNotificationAttrTypesRSRecurse + } else { + attrs = notificationModificationRequestNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["admins"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["admins"] = val + } + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh.GetRequest()) + diags.Append(d...) + obj["request"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationNotificationAttrTypesRSRecurse + } else { + attrs = notificationNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationNotificationsAttrTypesRSRecurse + } else { + attrs = notificationNotificationsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSNotificationNotification(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationOldApiVersionUsageNotificationAttrTypesRSRecurse + } else { + attrs = notificationOldApiVersionUsageNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) + { + val, d := tkhToTFObjectRSClientOAuth2Client(recurse, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationProvisionConfigRequiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["systems"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["groups"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationUpdateAvailableNotificationAttrTypesRSRecurse + } else { + attrs = notificationUpdateAvailableNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = notificationVaultRecordExpiredNotificationAttrTypesRSRecurse + } else { + attrs = notificationVaultRecordExpiredNotificationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh.GetRecord()) + diags.Append(d...) + obj["record"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnitAttrTypesRSRecurse + } else { + attrs = organizationAccountOrganizationalUnitAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["uuid"] = withUuidToTF(tkh) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse + } else { + attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse + } else { + attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccountAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) + diags.Append(d...) + obj["create_as_parent_of"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAPAttrTypesRSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse + } else { + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusAttrTypesRSRecurse + } else { + attrs = provisioningAccountProvisioningStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["result"] = stringerToTF(tkh.GetResult()) + { + val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningAccountProvisioningStatusReportAttrTypesRSRecurse + } else { + attrs = provisioningAccountProvisioningStatusReportAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["status"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningCircuitBreakerStatisticsAttrTypesRSRecurse + } else { + attrs = provisioningCircuitBreakerStatisticsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = stringerToTF(tkh.GetState()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemPrimerAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystemTypesAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystemTypesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) + diags.Append(d...) + obj["provgroups"] = val + } + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatusAttrTypesRSRecurse + } else { + attrs = provisioningGroupProvisioningStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) + diags.Append(d...) + obj["provisioning_duration"] = val + } + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) + { + val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) + diags.Append(d...) + obj["status_report"] = val + } + obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse + } else { + attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse + } else { + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceAttrTypesRSRecurse + } else { + attrs = provisioningProvisionNumberSequenceAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedADAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedADAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["uuid"] = withUuidToTF(tkh) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectRSClientLdapClient(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) + { + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) + diags.Append(d...) + obj["numbering"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) + diags.Append(d...) + obj["issued_permissions"] = val + } + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) + { + val, d := tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) + diags.Append(d...) + obj["management_permissions"] = val + } + { + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) + diags.Append(d...) + obj["statistics"] = val + } + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) + diags.Append(d...) + obj["supported_group_types"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningManagementPermissionsAttrTypesRSRecurse + } else { + attrs = provisioningProvisioningManagementPermissionsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisioningStatusAttrTypesRSRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["groups"] = val + } + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesRSRecurse + } else { + attrs = provisioningTokenPasswordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesRSRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse + } else { + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse + } else { + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) + diags.Append(d...) + obj["access_duration"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse + } else { + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse + } else { + attrs = requestAcceptJoinGroupRequestParametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAcceptModificationRequestParametersAttrTypesRSRecurse + } else { + attrs = requestAcceptModificationRequestParametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAddGroupAdminRequestAttrTypesRSRecurse + } else { + attrs = requestAddGroupAdminRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupOnSystemRequestAttrTypesRSRecurse + } else { + attrs = requestCreateGroupOnSystemRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateGroupRequestAttrTypesRSRecurse + } else { + attrs = requestCreateGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestCreateServiceAccountRequestAttrTypesRSRecurse + } else { + attrs = requestCreateServiceAccountRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestDisable2FARequestAttrTypesRSRecurse + } else { + attrs = requestDisable2FARequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestEnableTechnicalAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestExtendAccessRequestAttrTypesRSRecurse + } else { + attrs = requestExtendAccessRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantAccessRequestAttrTypesRSRecurse + } else { + attrs = requestGrantAccessRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantApplicationRequestAttrTypesRSRecurse + } else { + attrs = requestGrantApplicationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestAttrTypesRSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse + } else { + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestGrantServiceAccountGroupRequestAttrTypesRSRecurse + } else { + attrs = requestGrantServiceAccountGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinGroupRequestAttrTypesRSRecurse + } else { + attrs = requestJoinGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestJoinVaultRequestAttrTypesRSRecurse + } else { + attrs = requestJoinVaultRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestAttrTypesRSRecurse + } else { + attrs = requestModificationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequestLinkableWrapperAttrTypesRSRecurse + } else { + attrs = requestModificationRequestLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestModificationRequest_additionalObjectsAttrTypesRSRecurse + } else { + attrs = requestModificationRequest_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) + diags.Append(d...) + obj["accept_params"] = val + } + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) + diags.Append(d...) + obj["reset_status"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestAttrTypesRSRecurse + } else { + attrs = requestPasswordResetRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) + obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) + obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestPasswordResetRequestStatusAttrTypesRSRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) + { + elemType := attrs["managers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["managers"] = val + } + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveGroupRequestAttrTypesRSRecurse + } else { + attrs = requestRemoveGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRemoveProvisionedSystemRequestAttrTypesRSRecurse + } else { + attrs = requestRemoveProvisionedSystemRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestReviewAuditRequestAttrTypesRSRecurse + } else { + attrs = requestReviewAuditRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesRSRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupAuthorizingGroupRequestAttrTypesRSRecurse + } else { + attrs = requestSetupAuthorizingGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesRSRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferApplicationAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferApplicationOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferApplicationOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferAuditorGroupRequestAttrTypesRSRecurse + } else { + attrs = requestTransferAuditorGroupRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse + } else { + attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse + } else { + attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestUpdateGroupMembershipRequestAttrTypesRSRecurse + } else { + attrs = requestUpdateGroupMembershipRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) + obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) + obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestVerifyInternalAccountRequestAttrTypesRSRecurse + } else { + attrs = requestVerifyInternalAccountRequestAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) + obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSServiceaccountServiceAccount(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountStatusAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountStatusAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = val + } + { + val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) + diags.Append(d...) + obj["password_scheme_enabled_stats"] = val + } + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) + diags.Append(d...) + obj["system_stats"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleStringValueAttrTypesRSRecurse + } else { + attrs = simpleStringValueAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = simpleVersionInfoAttrTypesRSRecurse + } else { + attrs = simpleVersionInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["contract_versions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { + return types.Int64Value(int64(tkh)) + }) + diags.Append(d...) + obj["contract_versions"] = val + } + obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultHolderAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) + obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultDeletedVaultHolder(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultDeletedVaultRecoveryAttrTypesRSRecurse + } else { + attrs = vaultDeletedVaultRecoveryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + obj["target_group_uuid"] = withUuidToTF(tkh.GetTargetGroup()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecordAttrTypesRSRecurse + } else { + attrs = vaultMoveVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + { + val, d := tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) + diags.Append(d...) + obj["share_duration"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse + } else { + attrs = vaultMoveVaultRecord_shareDurationAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultAttrTypesRSRecurse + } else { + attrs = vaultVaultAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["records"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["records"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultHolderAttrTypesRSRecurse + } else { + attrs = vaultVaultHolderAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordLinkableWrapperAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordPrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordSecretsAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordSecretsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["file"] = types.StringPointerValue(tkh.GetFile()) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["totp"] = types.StringPointerValue(tkh.GetTotp()) + obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordShareAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecordShareSummaryAttrTypesRSRecurse + } else { + attrs = vaultVaultRecordShareSummaryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["children"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSVaultVaultRecordShare(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["children"] = val + } + { + val, d := tkhToTFObjectRSVaultVaultRecordShare(recurse, tkh.GetParent()) + diags.Append(d...) + obj["parent"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecord_additionalObjectsAttrTypesRSRecurse + } else { + attrs = vaultVaultRecord_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) + { + val, d := tkhToTFObjectRSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectRSVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) + diags.Append(d...) + obj["share_summary"] = val + } + { + val, d := tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) + diags.Append(d...) + obj["shares"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + { + val, d := tkhToTFObjectRSVaultVaultHolder(recurse, tkh.GetVaultholder()) + diags.Append(d...) + obj["vaultholder"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultRecoveryAttrTypesRSRecurse + } else { + attrs = vaultVaultRecoveryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockAttrTypesRSRecurse + } else { + attrs = vaultVaultUnlockAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultVaultUnlockResponseAttrTypesRSRecurse + } else { + attrs = vaultVaultUnlockResponseAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) + obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookAttrTypesRSRecurse + } else { + attrs = webhookWebhookAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) + obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) + obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) + obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) + obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) + obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryAttrTypesRSRecurse + } else { + attrs = webhookWebhookDeliveryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val + } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse + } else { + attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSWebhookWebhookDelivery(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse + } else { + attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookLinkableWrapperAttrTypesRSRecurse + } else { + attrs = webhookWebhookLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookNameUuidAttrTypesRSRecurse + } else { + attrs = webhookWebhookNameUuidAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectRSLinkable(recurse, tkh.GetObject()) + diags.Append(d...) + obj["object"] = val + } + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhookPushAttrTypesRSRecurse + } else { + attrs = webhookWebhookPushAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) + diags.Append(d...) + obj["by_party"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) + diags.Append(d...) + obj["certificate"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) + diags.Append(d...) + obj["group2"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) + diags.Append(d...) + obj["group_classification"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) + diags.Append(d...) + obj["modification_request"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) + obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) + obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) + obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) + diags.Append(d...) + obj["vault_record"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) + diags.Append(d...) + obj["webhook"] = val + } + obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = webhookWebhook_additionalObjectsAttrTypesRSRecurse + } else { + attrs = webhookWebhook_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index e5f0f4a..d5a52a3 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -71,7 +71,7 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, return } - ctx = context.WithValue(ctx, "keyhub_client", r.client) + ctx = context.WithValue(ctx, keyHubClientKey, r.client) obj, diags := types.ObjectValueFrom(ctx, groupGroupAttrTypesRSRecurse, data) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { @@ -114,7 +114,7 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp } ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) - ctx = context.WithValue(ctx, "keyhub_client", r.client) + ctx = context.WithValue(ctx, keyHubClientKey, r.client) tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") groups, err := r.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ diff --git a/internal/provider/impl.go b/internal/provider/impl.go deleted file mode 100644 index 286853c..0000000 --- a/internal/provider/impl.go +++ /dev/null @@ -1,74022 +0,0 @@ -// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. - -//lint:ignore U1000 Ignore unused functions in generated code -package provider - -import ( - "context" - "fmt" - "time" - - "github.com/google/uuid" - "github.com/hashicorp/terraform-plugin-framework/attr" - dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" - "github.com/hashicorp/terraform-plugin-framework/diag" - rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" - "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/microsoft/kiota-abstractions-go/serialization" - keyhub "github.com/topicuskeyhub/sdk-go" - keyhubaccount "github.com/topicuskeyhub/sdk-go/account" - keyhubcertificate "github.com/topicuskeyhub/sdk-go/certificate" - keyhubclient "github.com/topicuskeyhub/sdk-go/client" - keyhubdirectory "github.com/topicuskeyhub/sdk-go/directory" - keyhubgroup "github.com/topicuskeyhub/sdk-go/group" - keyhubgroupclassification "github.com/topicuskeyhub/sdk-go/groupclassification" - keyhubmodel "github.com/topicuskeyhub/sdk-go/models" - keyhuborganizationalunit "github.com/topicuskeyhub/sdk-go/organizationalunit" - keyhubserviceaccount "github.com/topicuskeyhub/sdk-go/serviceaccount" - keyhubsystem "github.com/topicuskeyhub/sdk-go/system" - keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" -) - -var auditInfoAttrTypesRS = objectAttrsTypeRSAuditInfo(false) -var auditInfoAttrTypesRSRecurse = objectAttrsTypeRSAuditInfo(true) - -type auditInfoDataRS struct { - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LastModifiedBy types.String `tfsdk:"last_modified_by"` -} - -var auditInfoAttrTypesDS = objectAttrsTypeDSAuditInfo(false) -var auditInfoAttrTypesDSRecurse = objectAttrsTypeDSAuditInfo(true) - -type auditInfoDataDS struct { - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LastModifiedBy types.String `tfsdk:"last_modified_by"` -} - -var errorReportAttrTypesRS = objectAttrsTypeRSErrorReport(false) -var errorReportAttrTypesRSRecurse = objectAttrsTypeRSErrorReport(true) - -type errorReportDataRS struct { - ApplicationError types.String `tfsdk:"application_error"` - ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` - Code types.Int64 `tfsdk:"code"` - ErrorDetails types.List `tfsdk:"error_details"` - Exception types.String `tfsdk:"exception"` - Message types.String `tfsdk:"message"` - Reason types.String `tfsdk:"reason"` - Stacktrace types.List `tfsdk:"stacktrace"` -} - -var errorReportAttrTypesDS = objectAttrsTypeDSErrorReport(false) -var errorReportAttrTypesDSRecurse = objectAttrsTypeDSErrorReport(true) - -type errorReportDataDS struct { - ApplicationError types.String `tfsdk:"application_error"` - ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` - Code types.Int64 `tfsdk:"code"` - ErrorDetails types.List `tfsdk:"error_details"` - Exception types.String `tfsdk:"exception"` - Message types.String `tfsdk:"message"` - Reason types.String `tfsdk:"reason"` - Stacktrace types.List `tfsdk:"stacktrace"` -} - -var errorReport_applicationErrorParametersAttrTypesRS = objectAttrsTypeRSErrorReport_applicationErrorParameters(false) -var errorReport_applicationErrorParametersAttrTypesRSRecurse = objectAttrsTypeRSErrorReport_applicationErrorParameters(true) - -type errorReport_applicationErrorParametersDataRS struct { -} - -var errorReport_applicationErrorParametersAttrTypesDS = objectAttrsTypeDSErrorReport_applicationErrorParameters(false) -var errorReport_applicationErrorParametersAttrTypesDSRecurse = objectAttrsTypeDSErrorReport_applicationErrorParameters(true) - -type errorReport_applicationErrorParametersDataDS struct { -} - -var generatedSecretAttrTypesRS = objectAttrsTypeRSGeneratedSecret(false) -var generatedSecretAttrTypesRSRecurse = objectAttrsTypeRSGeneratedSecret(true) - -type generatedSecretDataRS struct { - GeneratedSecret types.String `tfsdk:"generated_secret"` - OldSecret types.String `tfsdk:"old_secret"` - Regenerate types.Bool `tfsdk:"regenerate"` -} - -var generatedSecretAttrTypesDS = objectAttrsTypeDSGeneratedSecret(false) -var generatedSecretAttrTypesDSRecurse = objectAttrsTypeDSGeneratedSecret(true) - -type generatedSecretDataDS struct { - GeneratedSecret types.String `tfsdk:"generated_secret"` - OldSecret types.String `tfsdk:"old_secret"` - Regenerate types.Bool `tfsdk:"regenerate"` -} - -var linkableAttrTypesRS = objectAttrsTypeRSLinkable(false) -var linkableAttrTypesRSRecurse = objectAttrsTypeRSLinkable(true) - -type linkableDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` -} - -var linkableAttrTypesDS = objectAttrsTypeDSLinkable(false) -var linkableAttrTypesDSRecurse = objectAttrsTypeDSLinkable(true) - -type linkableDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` -} - -var nonLinkableAttrTypesRS = objectAttrsTypeRSNonLinkable(false) -var nonLinkableAttrTypesRSRecurse = objectAttrsTypeRSNonLinkable(true) - -type nonLinkableDataRS struct { -} - -var nonLinkableAttrTypesDS = objectAttrsTypeDSNonLinkable(false) -var nonLinkableAttrTypesDSRecurse = objectAttrsTypeDSNonLinkable(true) - -type nonLinkableDataDS struct { -} - -var restLinkAttrTypesRS = objectAttrsTypeRSRestLink(false) -var restLinkAttrTypesRSRecurse = objectAttrsTypeRSRestLink(true) - -type restLinkDataRS struct { - Href types.String `tfsdk:"href"` - ID types.Int64 `tfsdk:"id"` - Rel types.String `tfsdk:"rel"` - TypeEscaped types.String `tfsdk:"type_escaped"` -} - -var restLinkAttrTypesDS = objectAttrsTypeDSRestLink(false) -var restLinkAttrTypesDSRecurse = objectAttrsTypeDSRestLink(true) - -type restLinkDataDS struct { - Href types.String `tfsdk:"href"` - ID types.Int64 `tfsdk:"id"` - Rel types.String `tfsdk:"rel"` - TypeEscaped types.String `tfsdk:"type_escaped"` -} - -var segmentCountAttrTypesRS = objectAttrsTypeRSSegmentCount(false) -var segmentCountAttrTypesRSRecurse = objectAttrsTypeRSSegmentCount(true) - -type segmentCountDataRS struct { - Count types.Int64 `tfsdk:"count"` - Name types.String `tfsdk:"name"` -} - -var segmentCountAttrTypesDS = objectAttrsTypeDSSegmentCount(false) -var segmentCountAttrTypesDSRecurse = objectAttrsTypeDSSegmentCount(true) - -type segmentCountDataDS struct { - Count types.Int64 `tfsdk:"count"` - Name types.String `tfsdk:"name"` -} - -var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) -var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) - -type auditAuditRecordDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` - DateTime types.String `tfsdk:"date_time"` - OnAccount types.String `tfsdk:"on_account"` - OnCertificate types.String `tfsdk:"on_certificate"` - OnClient types.String `tfsdk:"on_client"` - OnDirectory types.String `tfsdk:"on_directory"` - OnGroup types.String `tfsdk:"on_group"` - OnGroup2 types.String `tfsdk:"on_group2"` - OnGroupClassification types.String `tfsdk:"on_group_classification"` - OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` - OnServiceAccount types.String `tfsdk:"on_service_account"` - OnSystem types.String `tfsdk:"on_system"` - OnVaultRecord types.String `tfsdk:"on_vault_record"` - OnWebhook types.String `tfsdk:"on_webhook"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - PerformedBy types.String `tfsdk:"performed_by"` - SecurityLevel types.String `tfsdk:"security_level"` -} - -var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) -var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) - -type auditAuditRecordDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` - DateTime types.String `tfsdk:"date_time"` - OnAccount types.String `tfsdk:"on_account"` - OnCertificate types.String `tfsdk:"on_certificate"` - OnClient types.String `tfsdk:"on_client"` - OnDirectory types.String `tfsdk:"on_directory"` - OnGroup types.String `tfsdk:"on_group"` - OnGroup2 types.String `tfsdk:"on_group2"` - OnGroupClassification types.String `tfsdk:"on_group_classification"` - OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` - OnServiceAccount types.String `tfsdk:"on_service_account"` - OnSystem types.String `tfsdk:"on_system"` - OnVaultRecord types.String `tfsdk:"on_vault_record"` - OnWebhook types.String `tfsdk:"on_webhook"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - PerformedBy types.String `tfsdk:"performed_by"` - SecurityLevel types.String `tfsdk:"security_level"` -} - -var auditAuditRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(false) -var auditAuditRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(true) - -type auditAuditRecordLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var auditAuditRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(false) -var auditAuditRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(true) - -type auditAuditRecordLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var auditAuditRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuditAuditRecord_additionalObjects(false) -var auditAuditRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord_additionalObjects(true) - -type auditAuditRecord_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var auditAuditRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuditAuditRecord_additionalObjects(false) -var auditAuditRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord_additionalObjects(true) - -type auditAuditRecord_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var authAccountAttrTypesRS = objectAttrsTypeRSAuthAccount(false) -var authAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount(true) - -type authAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` -} - -var authAccountAttrTypesDS = objectAttrsTypeDSAuthAccount(false) -var authAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount(true) - -type authAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - Directory types.Object `tfsdk:"directory"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` -} - -var authAccountBulkUpdateAttrTypesRS = objectAttrsTypeRSAuthAccountBulkUpdate(false) -var authAccountBulkUpdateAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountBulkUpdate(true) - -type authAccountBulkUpdateDataRS struct { - Action types.String `tfsdk:"action"` - ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` - SelectedAccounts types.List `tfsdk:"selected_accounts"` -} - -var authAccountBulkUpdateAttrTypesDS = objectAttrsTypeDSAuthAccountBulkUpdate(false) -var authAccountBulkUpdateAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountBulkUpdate(true) - -type authAccountBulkUpdateDataDS struct { - Action types.String `tfsdk:"action"` - ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` - SelectedAccounts types.List `tfsdk:"selected_accounts"` -} - -var authAccountChangeLocaleAttrTypesRS = objectAttrsTypeRSAuthAccountChangeLocale(false) -var authAccountChangeLocaleAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountChangeLocale(true) - -type authAccountChangeLocaleDataRS struct { - Locale types.String `tfsdk:"locale"` -} - -var authAccountChangeLocaleAttrTypesDS = objectAttrsTypeDSAuthAccountChangeLocale(false) -var authAccountChangeLocaleAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountChangeLocale(true) - -type authAccountChangeLocaleDataDS struct { - Locale types.String `tfsdk:"locale"` -} - -var authAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthAccountLinkableWrapper(false) -var authAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountLinkableWrapper(true) - -type authAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var authAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthAccountLinkableWrapper(false) -var authAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountLinkableWrapper(true) - -type authAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var authAccountPrimerAttrTypesRS = objectAttrsTypeRSAuthAccountPrimer(false) -var authAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountPrimer(true) - -type authAccountPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` -} - -var authAccountPrimerAttrTypesDS = objectAttrsTypeDSAuthAccountPrimer(false) -var authAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountPrimer(true) - -type authAccountPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` -} - -var authAccountRecoveryStatusAttrTypesRS = objectAttrsTypeRSAuthAccountRecoveryStatus(false) -var authAccountRecoveryStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountRecoveryStatus(true) - -type authAccountRecoveryStatusDataRS struct { - Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` - PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` -} - -var authAccountRecoveryStatusAttrTypesDS = objectAttrsTypeDSAuthAccountRecoveryStatus(false) -var authAccountRecoveryStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountRecoveryStatus(true) - -type authAccountRecoveryStatusDataDS struct { - Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` - PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` -} - -var authAccountSettingsAttrTypesRS = objectAttrsTypeRSAuthAccountSettings(false) -var authAccountSettingsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountSettings(true) - -type authAccountSettingsDataRS struct { - DefaultOrganizationalUnitUUID types.String `tfsdk:"default_organizational_unit_uuid"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryType types.String `tfsdk:"directory_type"` - InGroups types.Bool `tfsdk:"in_groups"` - InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` - KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` - MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` - PasswordMode types.String `tfsdk:"password_mode"` - SshPublicKey types.String `tfsdk:"ssh_public_key"` - TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` - UseTokenPassword types.Bool `tfsdk:"use_token_password"` - VaultStatus types.String `tfsdk:"vault_status"` -} - -var authAccountSettingsAttrTypesDS = objectAttrsTypeDSAuthAccountSettings(false) -var authAccountSettingsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountSettings(true) - -type authAccountSettingsDataDS struct { - DefaultOrganizationalUnit types.Object `tfsdk:"default_organizational_unit"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryType types.String `tfsdk:"directory_type"` - InGroups types.Bool `tfsdk:"in_groups"` - InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` - KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` - MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` - PasswordMode types.String `tfsdk:"password_mode"` - SshPublicKey types.String `tfsdk:"ssh_public_key"` - TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` - UseTokenPassword types.Bool `tfsdk:"use_token_password"` - VaultStatus types.String `tfsdk:"vault_status"` -} - -var authAccountStatusAttrTypesRS = objectAttrsTypeRSAuthAccountStatus(false) -var authAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountStatus(true) - -type authAccountStatusDataRS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` - LicenseRole types.String `tfsdk:"license_role"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` -} - -var authAccountStatusAttrTypesDS = objectAttrsTypeDSAuthAccountStatus(false) -var authAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountStatus(true) - -type authAccountStatusDataDS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` - LicenseRole types.String `tfsdk:"license_role"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` -} - -var authAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuthAccount_additionalObjects(false) -var authAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount_additionalObjects(true) - -type authAccount_additionalObjectsDataRS struct { - ActiveLogin types.Bool `tfsdk:"active_login"` - Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` - PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` - Settings types.Object `tfsdk:"settings"` - StoredAttributes types.Object `tfsdk:"stored_attributes"` - Vault types.Object `tfsdk:"vault"` -} - -var authAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuthAccount_additionalObjects(false) -var authAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount_additionalObjects(true) - -type authAccount_additionalObjectsDataDS struct { - ActiveLogin types.Bool `tfsdk:"active_login"` - Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` - PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` - Settings types.Object `tfsdk:"settings"` - StoredAttributes types.Object `tfsdk:"stored_attributes"` - Vault types.Object `tfsdk:"vault"` -} - -var authAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats(false) -var authAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats(true) - -type authAccountsAuditStatsDataRS struct { - DirectoryStats types.Object `tfsdk:"directory_stats"` - TwoFAStats types.Object `tfsdk:"two_f_a_stats"` - ValidityStats types.Object `tfsdk:"validity_stats"` -} - -var authAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats(false) -var authAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats(true) - -type authAccountsAuditStatsDataDS struct { - DirectoryStats types.Object `tfsdk:"directory_stats"` - TwoFAStats types.Object `tfsdk:"two_f_a_stats"` - ValidityStats types.Object `tfsdk:"validity_stats"` -} - -var authAccountsAuditStats_directoryStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(false) -var authAccountsAuditStats_directoryStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(true) - -type authAccountsAuditStats_directoryStatsDataRS struct { -} - -var authAccountsAuditStats_directoryStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(false) -var authAccountsAuditStats_directoryStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(true) - -type authAccountsAuditStats_directoryStatsDataDS struct { -} - -var authAccountsAuditStats_twoFAStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(false) -var authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(true) - -type authAccountsAuditStats_twoFAStatsDataRS struct { -} - -var authAccountsAuditStats_twoFAStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(false) -var authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(true) - -type authAccountsAuditStats_twoFAStatsDataDS struct { -} - -var authAccountsAuditStats_validityStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(false) -var authAccountsAuditStats_validityStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(true) - -type authAccountsAuditStats_validityStatsDataRS struct { -} - -var authAccountsAuditStats_validityStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(false) -var authAccountsAuditStats_validityStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(true) - -type authAccountsAuditStats_validityStatsDataDS struct { -} - -var authInternalAccountAttrTypesRS = objectAttrsTypeRSAuthInternalAccount(false) -var authInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount(true) - -type authInternalAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` -} - -var authInternalAccountAttrTypesDS = objectAttrsTypeDSAuthInternalAccount(false) -var authInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccount(true) - -type authInternalAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - Directory types.Object `tfsdk:"directory"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` -} - -var authInternalAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(false) -var authInternalAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(true) - -type authInternalAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var authInternalAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(false) -var authInternalAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(true) - -type authInternalAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var authInternalAccountStatusObjectAttrTypesRS = objectAttrsTypeRSAuthInternalAccountStatusObject(false) -var authInternalAccountStatusObjectAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountStatusObject(true) - -type authInternalAccountStatusObjectDataRS struct { - Status types.String `tfsdk:"status"` -} - -var authInternalAccountStatusObjectAttrTypesDS = objectAttrsTypeDSAuthInternalAccountStatusObject(false) -var authInternalAccountStatusObjectAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountStatusObject(true) - -type authInternalAccountStatusObjectDataDS struct { - Status types.String `tfsdk:"status"` -} - -var authMoveInternalAccountAttrTypesRS = objectAttrsTypeRSAuthMoveInternalAccount(false) -var authMoveInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthMoveInternalAccount(true) - -type authMoveInternalAccountDataRS struct { - InternalDirectory types.Object `tfsdk:"internal_directory"` -} - -var authMoveInternalAccountAttrTypesDS = objectAttrsTypeDSAuthMoveInternalAccount(false) -var authMoveInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthMoveInternalAccount(true) - -type authMoveInternalAccountDataDS struct { - InternalDirectory types.Object `tfsdk:"internal_directory"` -} - -var authPermissionAttrTypesRS = objectAttrsTypeRSAuthPermission(false) -var authPermissionAttrTypesRSRecurse = objectAttrsTypeRSAuthPermission(true) - -type authPermissionDataRS struct { - Full types.String `tfsdk:"full"` - Instances types.List `tfsdk:"instances"` - Operations types.List `tfsdk:"operations"` - TypeEscaped types.String `tfsdk:"type_escaped"` -} - -var authPermissionAttrTypesDS = objectAttrsTypeDSAuthPermission(false) -var authPermissionAttrTypesDSRecurse = objectAttrsTypeDSAuthPermission(true) - -type authPermissionDataDS struct { - Full types.String `tfsdk:"full"` - Instances types.List `tfsdk:"instances"` - Operations types.List `tfsdk:"operations"` - TypeEscaped types.String `tfsdk:"type_escaped"` -} - -var authStoredAccountAttributeAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttribute(false) -var authStoredAccountAttributeAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttribute(true) - -type authStoredAccountAttributeDataRS struct { - Name types.String `tfsdk:"name"` - Value types.String `tfsdk:"value"` -} - -var authStoredAccountAttributeAttrTypesDS = objectAttrsTypeDSAuthStoredAccountAttribute(false) -var authStoredAccountAttributeAttrTypesDSRecurse = objectAttrsTypeDSAuthStoredAccountAttribute(true) - -type authStoredAccountAttributeDataDS struct { - Name types.String `tfsdk:"name"` - Value types.String `tfsdk:"value"` -} - -var authStoredAccountAttributesAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttributes(false) -var authStoredAccountAttributesAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttributes(true) - -type authStoredAccountAttributesDataRS struct { - Attributes types.List `tfsdk:"attributes"` -} - -var authStoredAccountAttributesAttrTypesDS = objectAttrsTypeDSAuthStoredAccountAttributes(false) -var authStoredAccountAttributesAttrTypesDSRecurse = objectAttrsTypeDSAuthStoredAccountAttributes(true) - -type authStoredAccountAttributesDataDS struct { - Attributes types.List `tfsdk:"attributes"` -} - -var certificateCertificateAttrTypesRS = objectAttrsTypeRSCertificateCertificate(false) -var certificateCertificateAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate(true) - -type certificateCertificateDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` - CertificateData types.List `tfsdk:"certificate_data"` - Expiration types.String `tfsdk:"expiration"` - FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` - FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` - Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - KeyData types.List `tfsdk:"key_data"` -} - -var certificateCertificateAttrTypesDS = objectAttrsTypeDSCertificateCertificate(false) -var certificateCertificateAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificate(true) - -type certificateCertificateDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` - CertificateData types.List `tfsdk:"certificate_data"` - Expiration types.String `tfsdk:"expiration"` - FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` - FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` - Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - KeyData types.List `tfsdk:"key_data"` -} - -var certificateCertificateLinkableWrapperAttrTypesRS = objectAttrsTypeRSCertificateCertificateLinkableWrapper(false) -var certificateCertificateLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificateLinkableWrapper(true) - -type certificateCertificateLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var certificateCertificateLinkableWrapperAttrTypesDS = objectAttrsTypeDSCertificateCertificateLinkableWrapper(false) -var certificateCertificateLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificateLinkableWrapper(true) - -type certificateCertificateLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var certificateCertificatePrimerAttrTypesRS = objectAttrsTypeRSCertificateCertificatePrimer(false) -var certificateCertificatePrimerAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificatePrimer(true) - -type certificateCertificatePrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` - CertificateData types.List `tfsdk:"certificate_data"` - Expiration types.String `tfsdk:"expiration"` - FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` - FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` - Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` - UUID types.String `tfsdk:"uuid"` -} - -var certificateCertificatePrimerAttrTypesDS = objectAttrsTypeDSCertificateCertificatePrimer(false) -var certificateCertificatePrimerAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificatePrimer(true) - -type certificateCertificatePrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` - CertificateData types.List `tfsdk:"certificate_data"` - Expiration types.String `tfsdk:"expiration"` - FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` - FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` - Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` - UUID types.String `tfsdk:"uuid"` -} - -var certificateCertificate_additionalObjectsAttrTypesRS = objectAttrsTypeRSCertificateCertificate_additionalObjects(false) -var certificateCertificate_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate_additionalObjects(true) - -type certificateCertificate_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var certificateCertificate_additionalObjectsAttrTypesDS = objectAttrsTypeDSCertificateCertificate_additionalObjects(false) -var certificateCertificate_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificate_additionalObjects(true) - -type certificateCertificate_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var clientClientApplicationAttrTypesRS = objectAttrsTypeRSClientClientApplication(false) -var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication(true) - -type clientClientApplicationDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` -} - -var clientClientApplicationAttrTypesDS = objectAttrsTypeDSClientClientApplication(false) -var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication(true) - -type clientClientApplicationDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` -} - -var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) -var clientClientApplicationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplicationLinkableWrapper(true) - -type clientClientApplicationLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) -var clientClientApplicationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplicationLinkableWrapper(true) - -type clientClientApplicationLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var clientClientApplicationPrimerAttrTypesRS = objectAttrsTypeRSClientClientApplicationPrimer(false) -var clientClientApplicationPrimerAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplicationPrimer(true) - -type clientClientApplicationPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` -} - -var clientClientApplicationPrimerAttrTypesDS = objectAttrsTypeDSClientClientApplicationPrimer(false) -var clientClientApplicationPrimerAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplicationPrimer(true) - -type clientClientApplicationPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` -} - -var clientClientApplication_additionalObjectsAttrTypesRS = objectAttrsTypeRSClientClientApplication_additionalObjects(false) -var clientClientApplication_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication_additionalObjects(true) - -type clientClientApplication_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile"` - Groupclients types.Object `tfsdk:"groupclients"` - Groups types.Object `tfsdk:"groups"` - Secret types.Object `tfsdk:"secret"` - Tile types.Object `tfsdk:"tile"` - VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` -} - -var clientClientApplication_additionalObjectsAttrTypesDS = objectAttrsTypeDSClientClientApplication_additionalObjects(false) -var clientClientApplication_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication_additionalObjects(true) - -type clientClientApplication_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Groupclients types.Object `tfsdk:"groupclients"` - Groups types.Object `tfsdk:"groups"` - Tile types.Object `tfsdk:"tile"` - VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` -} - -var clientLdapClientAttrTypesRS = objectAttrsTypeRSClientLdapClient(false) -var clientLdapClientAttrTypesRSRecurse = objectAttrsTypeRSClientLdapClient(true) - -type clientLdapClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - BindDn types.String `tfsdk:"bind_dn"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` - UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` -} - -var clientLdapClientAttrTypesDS = objectAttrsTypeDSClientLdapClient(false) -var clientLdapClientAttrTypesDSRecurse = objectAttrsTypeDSClientLdapClient(true) - -type clientLdapClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - BindDn types.String `tfsdk:"bind_dn"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecret types.Object `tfsdk:"shared_secret"` - UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` -} - -var clientOAuth2ClientAttrTypesRS = objectAttrsTypeRSClientOAuth2Client(false) -var clientOAuth2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client(true) - -type clientOAuth2ClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_u_r_i"` - Confidential types.Bool `tfsdk:"confidential"` - DebugMode types.Bool `tfsdk:"debug_mode"` - IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` - ResourceURIs types.String `tfsdk:"resource_u_r_is"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` - ShowLandingPage types.Bool `tfsdk:"show_landing_page"` - UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` -} - -var clientOAuth2ClientAttrTypesDS = objectAttrsTypeDSClientOAuth2Client(false) -var clientOAuth2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client(true) - -type clientOAuth2ClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_u_r_i"` - Confidential types.Bool `tfsdk:"confidential"` - DebugMode types.Bool `tfsdk:"debug_mode"` - IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` - ResourceURIs types.String `tfsdk:"resource_u_r_is"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecret types.Object `tfsdk:"shared_secret"` - ShowLandingPage types.Bool `tfsdk:"show_landing_page"` - UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` -} - -var clientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission(false) -var clientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission(true) - -type clientOAuth2ClientPermissionDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroupUUID types.String `tfsdk:"for_group_uuid"` - ForSystemUUID types.String `tfsdk:"for_system_uuid"` - Value types.String `tfsdk:"value"` -} - -var clientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission(false) -var clientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission(true) - -type clientOAuth2ClientPermissionDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroup types.Object `tfsdk:"for_group"` - ForSystem types.Object `tfsdk:"for_system"` - Value types.String `tfsdk:"value"` -} - -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(false) -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(true) - -type clientOAuth2ClientPermissionLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(false) -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(true) - -type clientOAuth2ClientPermissionLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var clientOAuth2ClientPermissionWithClientAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(false) -var clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(true) - -type clientOAuth2ClientPermissionWithClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroupUUID types.String `tfsdk:"for_group_uuid"` - ForSystemUUID types.String `tfsdk:"for_system_uuid"` - Value types.String `tfsdk:"value"` - Client types.Object `tfsdk:"client"` -} - -var clientOAuth2ClientPermissionWithClientAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(false) -var clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(true) - -type clientOAuth2ClientPermissionWithClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroup types.Object `tfsdk:"for_group"` - ForSystem types.Object `tfsdk:"for_system"` - Value types.String `tfsdk:"value"` - Client types.Object `tfsdk:"client"` -} - -var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) -var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(true) - -type clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) -var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(true) - -type clientOAuth2ClientPermissionWithClientLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var clientOAuth2ClientPermission_additionalObjectsAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false) -var clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(true) - -type clientOAuth2ClientPermission_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var clientOAuth2ClientPermission_additionalObjectsAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false) -var clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(true) - -type clientOAuth2ClientPermission_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var clientOAuth2Client_attributesAttrTypesRS = objectAttrsTypeRSClientOAuth2Client_attributes(false) -var clientOAuth2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client_attributes(true) - -type clientOAuth2Client_attributesDataRS struct { -} - -var clientOAuth2Client_attributesAttrTypesDS = objectAttrsTypeDSClientOAuth2Client_attributes(false) -var clientOAuth2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client_attributes(true) - -type clientOAuth2Client_attributesDataDS struct { -} - -var clientSaml2ClientAttrTypesRS = objectAttrsTypeRSClientSaml2Client(false) -var clientSaml2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client(true) - -type clientSaml2ClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - Attributes types.Object `tfsdk:"attributes"` - Metadata types.String `tfsdk:"metadata"` - MetadataURL types.String `tfsdk:"metadata_url"` - SubjectFormat types.String `tfsdk:"subject_format"` -} - -var clientSaml2ClientAttrTypesDS = objectAttrsTypeDSClientSaml2Client(false) -var clientSaml2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client(true) - -type clientSaml2ClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - Attributes types.Object `tfsdk:"attributes"` - Metadata types.String `tfsdk:"metadata"` - MetadataURL types.String `tfsdk:"metadata_url"` - SubjectFormat types.String `tfsdk:"subject_format"` -} - -var clientSaml2Client_attributesAttrTypesRS = objectAttrsTypeRSClientSaml2Client_attributes(false) -var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client_attributes(true) - -type clientSaml2Client_attributesDataRS struct { -} - -var clientSaml2Client_attributesAttrTypesDS = objectAttrsTypeDSClientSaml2Client_attributes(false) -var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client_attributes(true) - -type clientSaml2Client_attributesDataDS struct { -} - -var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) -var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) - -type directoryAccountDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` -} - -var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) -var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) - -type directoryAccountDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` -} - -var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) -var directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(true) - -type directoryAccountDirectoryLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) -var directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(true) - -type directoryAccountDirectoryLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var directoryAccountDirectoryPrimerAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryPrimer(false) -var directoryAccountDirectoryPrimerAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryPrimer(true) - -type directoryAccountDirectoryPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var directoryAccountDirectoryPrimerAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false) -var directoryAccountDirectoryPrimerAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryPrimer(true) - -type directoryAccountDirectoryPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var directoryAccountDirectoryStatusReportAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(false) -var directoryAccountDirectoryStatusReportAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(true) - -type directoryAccountDirectoryStatusReportDataRS struct { - Accounts types.Int64 `tfsdk:"accounts"` - Reason types.String `tfsdk:"reason"` - Status types.String `tfsdk:"status"` -} - -var directoryAccountDirectoryStatusReportAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(false) -var directoryAccountDirectoryStatusReportAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(true) - -type directoryAccountDirectoryStatusReportDataDS struct { - Accounts types.Int64 `tfsdk:"accounts"` - Reason types.String `tfsdk:"reason"` - Status types.String `tfsdk:"status"` -} - -var directoryAccountDirectorySummaryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectorySummary(false) -var directoryAccountDirectorySummaryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectorySummary(true) - -type directoryAccountDirectorySummaryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Name types.String `tfsdk:"name"` - Status types.Object `tfsdk:"status"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` -} - -var directoryAccountDirectorySummaryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectorySummary(false) -var directoryAccountDirectorySummaryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectorySummary(true) - -type directoryAccountDirectorySummaryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Name types.String `tfsdk:"name"` - Status types.Object `tfsdk:"status"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` -} - -var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(false) -var directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(true) - -type directoryAccountDirectorySummaryLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(false) -var directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(true) - -type directoryAccountDirectorySummaryLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var directoryAccountDirectory_additionalObjectsAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false) -var directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(true) - -type directoryAccountDirectory_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Markers types.Object `tfsdk:"markers"` - Status types.Object `tfsdk:"status"` -} - -var directoryAccountDirectory_additionalObjectsAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false) -var directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(true) - -type directoryAccountDirectory_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Markers types.Object `tfsdk:"markers"` - Status types.Object `tfsdk:"status"` -} - -var directoryInternalDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryInternalDirectory(false) -var directoryInternalDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryInternalDirectory(true) - -type directoryInternalDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - OwnerUUID types.String `tfsdk:"owner_uuid"` -} - -var directoryInternalDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryInternalDirectory(false) -var directoryInternalDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryInternalDirectory(true) - -type directoryInternalDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - Owner types.Object `tfsdk:"owner"` -} - -var directoryLDAPDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryLDAPDirectory(false) -var directoryLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryLDAPDirectory(true) - -type directoryLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_d_n"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - Dialect types.String `tfsdk:"dialect"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - Host types.String `tfsdk:"host"` - PasswordRecovery types.String `tfsdk:"password_recovery"` - Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_d_n"` - SearchBindPassword types.String `tfsdk:"search_bind_password"` - SearchFilter types.String `tfsdk:"search_filter"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` -} - -var directoryLDAPDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryLDAPDirectory(false) -var directoryLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryLDAPDirectory(true) - -type directoryLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_d_n"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - Dialect types.String `tfsdk:"dialect"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - Host types.String `tfsdk:"host"` - PasswordRecovery types.String `tfsdk:"password_recovery"` - Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_d_n"` - SearchBindPassword types.String `tfsdk:"search_bind_password"` - SearchFilter types.String `tfsdk:"search_filter"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` -} - -var directoryMaintenanceDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryMaintenanceDirectory(false) -var directoryMaintenanceDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryMaintenanceDirectory(true) - -type directoryMaintenanceDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` -} - -var directoryMaintenanceDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryMaintenanceDirectory(false) -var directoryMaintenanceDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryMaintenanceDirectory(true) - -type directoryMaintenanceDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` -} - -var directoryOIDCDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryOIDCDirectory(false) -var directoryOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryOIDCDirectory(true) - -type directoryOIDCDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` - SendLoginHint types.Bool `tfsdk:"send_login_hint"` - VendorEscaped types.String `tfsdk:"vendor_escaped"` -} - -var directoryOIDCDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryOIDCDirectory(false) -var directoryOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryOIDCDirectory(true) - -type directoryOIDCDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` - SendLoginHint types.Bool `tfsdk:"send_login_hint"` - VendorEscaped types.String `tfsdk:"vendor_escaped"` -} - -var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) -var groupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup(true) - -type groupAccountGroupDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - EndDate types.String `tfsdk:"end_date"` - Folder types.Object `tfsdk:"folder"` - LastUsed types.String `tfsdk:"last_used"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupAccountGroupAttrTypesDS = objectAttrsTypeDSGroupAccountGroup(false) -var groupAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroup(true) - -type groupAccountGroupDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - EndDate types.String `tfsdk:"end_date"` - Folder types.Object `tfsdk:"folder"` - LastUsed types.String `tfsdk:"last_used"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(false) -var groupAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(true) - -type groupAccountGroupLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false) -var groupAccountGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(true) - -type groupAccountGroupLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupAccountGroup_additionalObjects(false) -var groupAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup_additionalObjects(true) - -type groupAccountGroup_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - -var groupAccountGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupAccountGroup_additionalObjects(false) -var groupAccountGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupAccountGroup_additionalObjects(true) - -type groupAccountGroup_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - -var groupAuthorizedGroupsWrapperAttrTypesRS = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(false) -var groupAuthorizedGroupsWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(true) - -type groupAuthorizedGroupsWrapperDataRS struct { - Items types.List `tfsdk:"items"` - GroupCount types.Int64 `tfsdk:"group_count"` -} - -var groupAuthorizedGroupsWrapperAttrTypesDS = objectAttrsTypeDSGroupAuthorizedGroupsWrapper(false) -var groupAuthorizedGroupsWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupAuthorizedGroupsWrapper(true) - -type groupAuthorizedGroupsWrapperDataDS struct { - Items types.List `tfsdk:"items"` - GroupCount types.Int64 `tfsdk:"group_count"` -} - -var groupGroupAttrTypesRS = objectAttrsTypeRSGroupGroup(false) -var groupGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup(true) - -type groupGroupDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationAdministration types.Bool `tfsdk:"application_administration"` - AuditConfig types.Object `tfsdk:"audit_config"` - AuditRequested types.Bool `tfsdk:"audit_requested"` - Auditor types.Bool `tfsdk:"auditor"` - AuthorizingGroupAuditingUUID types.String `tfsdk:"authorizing_group_auditing_uuid"` - AuthorizingGroupDelegationUUID types.String `tfsdk:"authorizing_group_delegation_uuid"` - AuthorizingGroupMembershipUUID types.String `tfsdk:"authorizing_group_membership_uuid"` - AuthorizingGroupProvisioningUUID types.String `tfsdk:"authorizing_group_provisioning_uuid"` - AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` - ClassificationUUID types.String `tfsdk:"classification_uuid"` - Description types.String `tfsdk:"description"` - ExtendedAccess types.String `tfsdk:"extended_access"` - HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` - NestedUnderUUID types.String `tfsdk:"nested_under_uuid"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - PrivateGroup types.Bool `tfsdk:"private_group"` - RecordTrail types.Bool `tfsdk:"record_trail"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - SingleManaged types.Bool `tfsdk:"single_managed"` - VaultRecovery types.String `tfsdk:"vault_recovery"` - VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` -} - -var groupGroupAttrTypesDS = objectAttrsTypeDSGroupGroup(false) -var groupGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup(true) - -type groupGroupDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationAdministration types.Bool `tfsdk:"application_administration"` - AuditConfig types.Object `tfsdk:"audit_config"` - AuditRequested types.Bool `tfsdk:"audit_requested"` - Auditor types.Bool `tfsdk:"auditor"` - AuthorizingGroupAuditing types.Object `tfsdk:"authorizing_group_auditing"` - AuthorizingGroupDelegation types.Object `tfsdk:"authorizing_group_delegation"` - AuthorizingGroupMembership types.Object `tfsdk:"authorizing_group_membership"` - AuthorizingGroupProvisioning types.Object `tfsdk:"authorizing_group_provisioning"` - AuthorizingGroupTypes types.List `tfsdk:"authorizing_group_types"` - Classification types.Object `tfsdk:"classification"` - Description types.String `tfsdk:"description"` - ExtendedAccess types.String `tfsdk:"extended_access"` - HideAuditTrail types.Bool `tfsdk:"hide_audit_trail"` - NestedUnder types.Object `tfsdk:"nested_under"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - PrivateGroup types.Bool `tfsdk:"private_group"` - RecordTrail types.Bool `tfsdk:"record_trail"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - SingleManaged types.Bool `tfsdk:"single_managed"` - VaultRecovery types.String `tfsdk:"vault_recovery"` - VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` -} - -var groupGroupAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAccount(false) -var groupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount(true) - -type groupGroupAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` - EndDate types.String `tfsdk:"end_date"` - LastUsed types.String `tfsdk:"last_used"` - Nested types.Bool `tfsdk:"nested"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupGroupAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAccount(false) -var groupGroupAccountAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount(true) - -type groupGroupAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Directory types.Object `tfsdk:"directory"` - DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` - EndDate types.String `tfsdk:"end_date"` - LastUsed types.String `tfsdk:"last_used"` - Nested types.Bool `tfsdk:"nested"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupGroupAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(false) -var groupGroupAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(true) - -type groupGroupAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(false) -var groupGroupAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(true) - -type groupGroupAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupAccountNestingAttrTypesRS = objectAttrsTypeRSGroupGroupAccountNesting(false) -var groupGroupAccountNestingAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountNesting(true) - -type groupGroupAccountNestingDataRS struct { - Connected types.Bool `tfsdk:"connected"` -} - -var groupGroupAccountNestingAttrTypesDS = objectAttrsTypeDSGroupGroupAccountNesting(false) -var groupGroupAccountNestingAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountNesting(true) - -type groupGroupAccountNestingDataDS struct { - Connected types.Bool `tfsdk:"connected"` -} - -var groupGroupAccountStatusAttrTypesRS = objectAttrsTypeRSGroupGroupAccountStatus(false) -var groupGroupAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountStatus(true) - -type groupGroupAccountStatusDataRS struct { - Folder types.Object `tfsdk:"folder"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupGroupAccountStatusAttrTypesDS = objectAttrsTypeDSGroupGroupAccountStatus(false) -var groupGroupAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountStatus(true) - -type groupGroupAccountStatusDataDS struct { - Folder types.Object `tfsdk:"folder"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupGroupAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAccount_additionalObjects(false) -var groupGroupAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount_additionalObjects(true) - -type groupGroupAccount_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAccount_additionalObjects(false) -var groupGroupAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount_additionalObjects(true) - -type groupGroupAccount_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupAdminMailAttrTypesRS = objectAttrsTypeRSGroupGroupAdminMail(false) -var groupGroupAdminMailAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAdminMail(true) - -type groupGroupAdminMailDataRS struct { - Body types.String `tfsdk:"body"` -} - -var groupGroupAdminMailAttrTypesDS = objectAttrsTypeDSGroupGroupAdminMail(false) -var groupGroupAdminMailAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAdminMail(true) - -type groupGroupAdminMailDataDS struct { - Body types.String `tfsdk:"body"` -} - -var groupGroupAuditAttrTypesRS = objectAttrsTypeRSGroupGroupAudit(false) -var groupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit(true) - -type groupGroupAuditDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Accounts types.List `tfsdk:"accounts"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` -} - -var groupGroupAuditAttrTypesDS = objectAttrsTypeDSGroupGroupAudit(false) -var groupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit(true) - -type groupGroupAuditDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Accounts types.List `tfsdk:"accounts"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` -} - -var groupGroupAuditAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAuditAccount(false) -var groupGroupAuditAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditAccount(true) - -type groupGroupAuditAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AccountValid types.Bool `tfsdk:"account_valid"` - Action types.String `tfsdk:"action"` - Comment types.String `tfsdk:"comment"` - DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` - DisplayName types.String `tfsdk:"display_name"` - EndDate types.String `tfsdk:"end_date"` - LastActive types.String `tfsdk:"last_active"` - LastUsed types.String `tfsdk:"last_used"` - Nested types.Bool `tfsdk:"nested"` - Rights types.String `tfsdk:"rights"` - Username types.String `tfsdk:"username"` -} - -var groupGroupAuditAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAuditAccount(false) -var groupGroupAuditAccountAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditAccount(true) - -type groupGroupAuditAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AccountValid types.Bool `tfsdk:"account_valid"` - Action types.String `tfsdk:"action"` - Comment types.String `tfsdk:"comment"` - DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` - DisplayName types.String `tfsdk:"display_name"` - EndDate types.String `tfsdk:"end_date"` - LastActive types.String `tfsdk:"last_active"` - LastUsed types.String `tfsdk:"last_used"` - Nested types.Bool `tfsdk:"nested"` - Rights types.String `tfsdk:"rights"` - Username types.String `tfsdk:"username"` -} - -var groupGroupAuditConfigAttrTypesRS = objectAttrsTypeRSGroupGroupAuditConfig(false) -var groupGroupAuditConfigAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditConfig(true) - -type groupGroupAuditConfigDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Months types.List `tfsdk:"months"` -} - -var groupGroupAuditConfigAttrTypesDS = objectAttrsTypeDSGroupGroupAuditConfig(false) -var groupGroupAuditConfigAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditConfig(true) - -type groupGroupAuditConfigDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Months types.List `tfsdk:"months"` -} - -var groupGroupAuditLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(false) -var groupGroupAuditLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(true) - -type groupGroupAuditLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupAuditLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(false) -var groupGroupAuditLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(true) - -type groupGroupAuditLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupAudit_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAudit_additionalObjects(false) -var groupGroupAudit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit_additionalObjects(true) - -type groupGroupAudit_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupAudit_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAudit_additionalObjects(false) -var groupGroupAudit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit_additionalObjects(true) - -type groupGroupAudit_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupAuditingInfoAttrTypesRS = objectAttrsTypeRSGroupGroupAuditingInfo(false) -var groupGroupAuditingInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAuditingInfo(true) - -type groupGroupAuditingInfoDataRS struct { - AuditDueDate types.String `tfsdk:"audit_due_date"` - LastAuditDate types.String `tfsdk:"last_audit_date"` - NrAccounts types.Int64 `tfsdk:"nr_accounts"` - NrDisabledAccounts types.Int64 `tfsdk:"nr_disabled_accounts"` - NrDisabledManagers types.Int64 `tfsdk:"nr_disabled_managers"` - NrExpiredVaultRecords types.Int64 `tfsdk:"nr_expired_vault_records"` - NrManagers types.Int64 `tfsdk:"nr_managers"` - NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` -} - -var groupGroupAuditingInfoAttrTypesDS = objectAttrsTypeDSGroupGroupAuditingInfo(false) -var groupGroupAuditingInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAuditingInfo(true) - -type groupGroupAuditingInfoDataDS struct { - AuditDueDate types.String `tfsdk:"audit_due_date"` - LastAuditDate types.String `tfsdk:"last_audit_date"` - NrAccounts types.Int64 `tfsdk:"nr_accounts"` - NrDisabledAccounts types.Int64 `tfsdk:"nr_disabled_accounts"` - NrDisabledManagers types.Int64 `tfsdk:"nr_disabled_managers"` - NrExpiredVaultRecords types.Int64 `tfsdk:"nr_expired_vault_records"` - NrManagers types.Int64 `tfsdk:"nr_managers"` - NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` -} - -var groupGroupClassificationAttrTypesRS = objectAttrsTypeRSGroupGroupClassification(false) -var groupGroupClassificationAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification(true) - -type groupGroupClassificationDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` - AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` - AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` - AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` - DefaultClassification types.Bool `tfsdk:"default_classification"` - Description types.String `tfsdk:"description"` - MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` - MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` - RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` - RequiredMonths types.List `tfsdk:"required_months"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` -} - -var groupGroupClassificationAttrTypesDS = objectAttrsTypeDSGroupGroupClassification(false) -var groupGroupClassificationAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification(true) - -type groupGroupClassificationDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` - AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` - AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` - AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` - DefaultClassification types.Bool `tfsdk:"default_classification"` - Description types.String `tfsdk:"description"` - MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` - MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` - RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` - RequiredMonths types.List `tfsdk:"required_months"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` -} - -var groupGroupClassificationInfoAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationInfo(false) -var groupGroupClassificationInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationInfo(true) - -type groupGroupClassificationInfoDataRS struct { - NrGroups types.Int64 `tfsdk:"nr_groups"` -} - -var groupGroupClassificationInfoAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationInfo(false) -var groupGroupClassificationInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationInfo(true) - -type groupGroupClassificationInfoDataDS struct { - NrGroups types.Int64 `tfsdk:"nr_groups"` -} - -var groupGroupClassificationLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(false) -var groupGroupClassificationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(true) - -type groupGroupClassificationLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupClassificationLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(false) -var groupGroupClassificationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(true) - -type groupGroupClassificationLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupClassificationPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationPrimer(false) -var groupGroupClassificationPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationPrimer(true) - -type groupGroupClassificationPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var groupGroupClassificationPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationPrimer(false) -var groupGroupClassificationPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationPrimer(true) - -type groupGroupClassificationPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var groupGroupClassificationUpdateAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationUpdate(false) -var groupGroupClassificationUpdateAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationUpdate(true) - -type groupGroupClassificationUpdateDataRS struct { - ClassificatonUUID types.String `tfsdk:"classificaton_uuid"` -} - -var groupGroupClassificationUpdateAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationUpdate(false) -var groupGroupClassificationUpdateAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationUpdate(true) - -type groupGroupClassificationUpdateDataDS struct { - Classificaton types.Object `tfsdk:"classificaton"` -} - -var groupGroupClassification_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClassification_additionalObjects(false) -var groupGroupClassification_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification_additionalObjects(true) - -type groupGroupClassification_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Info types.Object `tfsdk:"info"` -} - -var groupGroupClassification_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClassification_additionalObjects(false) -var groupGroupClassification_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification_additionalObjects(true) - -type groupGroupClassification_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Info types.Object `tfsdk:"info"` -} - -var groupGroupClientAttrTypesRS = objectAttrsTypeRSGroupGroupClient(false) -var groupGroupClientAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient(true) - -type groupGroupClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ClientUUID types.String `tfsdk:"client_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` -} - -var groupGroupClientAttrTypesDS = objectAttrsTypeDSGroupGroupClient(false) -var groupGroupClientAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient(true) - -type groupGroupClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Client types.Object `tfsdk:"client"` - Group types.Object `tfsdk:"group"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` -} - -var groupGroupClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClientLinkableWrapper(false) -var groupGroupClientLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClientLinkableWrapper(true) - -type groupGroupClientLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClientLinkableWrapper(false) -var groupGroupClientLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClientLinkableWrapper(true) - -type groupGroupClientLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupClient_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClient_additionalObjects(false) -var groupGroupClient_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient_additionalObjects(true) - -type groupGroupClient_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupClient_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClient_additionalObjects(false) -var groupGroupClient_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient_additionalObjects(true) - -type groupGroupClient_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupFolderAttrTypesRS = objectAttrsTypeRSGroupGroupFolder(false) -var groupGroupFolderAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder(true) - -type groupGroupFolderDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` -} - -var groupGroupFolderAttrTypesDS = objectAttrsTypeDSGroupGroupFolder(false) -var groupGroupFolderAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder(true) - -type groupGroupFolderDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` -} - -var groupGroupFolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(false) -var groupGroupFolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(true) - -type groupGroupFolderLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupFolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(false) -var groupGroupFolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(true) - -type groupGroupFolderLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupFolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupFolder_additionalObjects(false) -var groupGroupFolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder_additionalObjects(true) - -type groupGroupFolder_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupFolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupFolder_additionalObjects(false) -var groupGroupFolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder_additionalObjects(true) - -type groupGroupFolder_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupGroupInfoAttrTypesRS = objectAttrsTypeRSGroupGroupInfo(false) -var groupGroupInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupInfo(true) - -type groupGroupInfoDataRS struct { - NrAccounts types.Int64 `tfsdk:"nr_accounts"` - NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` - NrAudits types.Int64 `tfsdk:"nr_audits"` - NrClients types.Int64 `tfsdk:"nr_clients"` - NrProvisionedSystems types.Int64 `tfsdk:"nr_provisioned_systems"` - NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` -} - -var groupGroupInfoAttrTypesDS = objectAttrsTypeDSGroupGroupInfo(false) -var groupGroupInfoAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupInfo(true) - -type groupGroupInfoDataDS struct { - NrAccounts types.Int64 `tfsdk:"nr_accounts"` - NrAccountsWithVault types.Int64 `tfsdk:"nr_accounts_with_vault"` - NrAudits types.Int64 `tfsdk:"nr_audits"` - NrClients types.Int64 `tfsdk:"nr_clients"` - NrProvisionedSystems types.Int64 `tfsdk:"nr_provisioned_systems"` - NrVaultRecords types.Int64 `tfsdk:"nr_vault_records"` -} - -var groupGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupLinkableWrapper(false) -var groupGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupLinkableWrapper(true) - -type groupGroupLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupLinkableWrapper(false) -var groupGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupLinkableWrapper(true) - -type groupGroupLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupPrimer(false) -var groupGroupPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupPrimer(true) - -type groupGroupPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var groupGroupPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupPrimer(false) -var groupGroupPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupPrimer(true) - -type groupGroupPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var groupGroupPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(false) -var groupGroupPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(true) - -type groupGroupPrimerLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(false) -var groupGroupPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(true) - -type groupGroupPrimerLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupSegmentedLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(false) -var groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(true) - -type groupGroupSegmentedLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` - Segments types.List `tfsdk:"segments"` -} - -var groupGroupSegmentedLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(false) -var groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(true) - -type groupGroupSegmentedLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` - Segments types.List `tfsdk:"segments"` -} - -var groupGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroup_additionalObjects(false) -var groupGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup_additionalObjects(true) - -type groupGroup_additionalObjectsDataRS struct { - Accounts types.Object `tfsdk:"accounts"` - AdministeredClients types.Object `tfsdk:"administered_clients"` - AdministeredSystems types.Object `tfsdk:"administered_systems"` - Admins types.Object `tfsdk:"admins"` - Audit types.Object `tfsdk:"audit"` - AuthorizedGroups types.Object `tfsdk:"authorized_groups"` - ClientPermissions types.Object `tfsdk:"client_permissions"` - Clients types.Object `tfsdk:"clients"` - ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` - Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` - Groupinfo types.Object `tfsdk:"groupinfo"` - Helpdesk types.Object `tfsdk:"helpdesk"` - Markers types.Object `tfsdk:"markers"` - Myaccount types.Object `tfsdk:"myaccount"` - Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` - NestedGroups types.Object `tfsdk:"nested_groups"` - OwnedClients types.Object `tfsdk:"owned_clients"` - OwnedDirectories types.Object `tfsdk:"owned_directories"` - OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` - OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` - OwnedSystems types.Object `tfsdk:"owned_systems"` - RecentAudits types.Object `tfsdk:"recent_audits"` - Requeststatus types.String `tfsdk:"requeststatus"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` - Systems types.Object `tfsdk:"systems"` - Vault types.Object `tfsdk:"vault"` - Webhooks types.Object `tfsdk:"webhooks"` -} - -var groupGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroup_additionalObjects(false) -var groupGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup_additionalObjects(true) - -type groupGroup_additionalObjectsDataDS struct { - Accounts types.Object `tfsdk:"accounts"` - AdministeredClients types.Object `tfsdk:"administered_clients"` - AdministeredSystems types.Object `tfsdk:"administered_systems"` - Admins types.Object `tfsdk:"admins"` - Audit types.Object `tfsdk:"audit"` - AuthorizedGroups types.Object `tfsdk:"authorized_groups"` - ClientPermissions types.Object `tfsdk:"client_permissions"` - Clients types.Object `tfsdk:"clients"` - ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` - Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` - Groupinfo types.Object `tfsdk:"groupinfo"` - Helpdesk types.Object `tfsdk:"helpdesk"` - Markers types.Object `tfsdk:"markers"` - Myaccount types.Object `tfsdk:"myaccount"` - Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` - NestedGroups types.Object `tfsdk:"nested_groups"` - OwnedClients types.Object `tfsdk:"owned_clients"` - OwnedDirectories types.Object `tfsdk:"owned_directories"` - OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` - OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` - OwnedSystems types.Object `tfsdk:"owned_systems"` - RecentAudits types.Object `tfsdk:"recent_audits"` - Requeststatus types.String `tfsdk:"requeststatus"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` - Systems types.Object `tfsdk:"systems"` - Vault types.Object `tfsdk:"vault"` - Webhooks types.Object `tfsdk:"webhooks"` -} - -var groupGroupsAuditStatsAttrTypesRS = objectAttrsTypeRSGroupGroupsAuditStats(false) -var groupGroupsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupsAuditStats(true) - -type groupGroupsAuditStatsDataRS struct { - AuditedGroups types.Int64 `tfsdk:"audited_groups"` - Classifications types.List `tfsdk:"classifications"` - OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` - OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` - UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` - ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` - VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` -} - -var groupGroupsAuditStatsAttrTypesDS = objectAttrsTypeDSGroupGroupsAuditStats(false) -var groupGroupsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupsAuditStats(true) - -type groupGroupsAuditStatsDataDS struct { - AuditedGroups types.Int64 `tfsdk:"audited_groups"` - Classifications types.List `tfsdk:"classifications"` - OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` - OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` - UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` - ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` - VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` -} - -var groupProvisioningGroupAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup(false) -var groupProvisioningGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup(true) - -type groupProvisioningGroupDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - GroupUUID types.String `tfsdk:"group_uuid"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var groupProvisioningGroupAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup(false) -var groupProvisioningGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup(true) - -type groupProvisioningGroupDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Group types.Object `tfsdk:"group"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var groupProvisioningGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false) -var groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(true) - -type groupProvisioningGroupLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupProvisioningGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false) -var groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(true) - -type groupProvisioningGroupLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var groupProvisioningGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false) -var groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(true) - -type groupProvisioningGroup_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var groupProvisioningGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false) -var groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(true) - -type groupProvisioningGroup_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) -var launchpadDisplayedLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(true) - -type launchpadDisplayedLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - Logo types.List `tfsdk:"logo"` - Tile types.Object `tfsdk:"tile"` - Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` -} - -var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) -var launchpadDisplayedLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(true) - -type launchpadDisplayedLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - Logo types.List `tfsdk:"logo"` - Tile types.Object `tfsdk:"tile"` - Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` -} - -var launchpadDisplayedLaunchpadTilesAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(false) -var launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(true) - -type launchpadDisplayedLaunchpadTilesDataRS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadDisplayedLaunchpadTilesAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(false) -var launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(true) - -type launchpadDisplayedLaunchpadTilesDataDS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile(false) -var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile(true) - -type launchpadLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` -} - -var launchpadLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile(false) -var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile(true) - -type launchpadLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` -} - -var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) -var launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(true) - -type launchpadLaunchpadTileLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) -var launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(true) - -type launchpadLaunchpadTileLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTilePrimerAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(false) -var launchpadLaunchpadTilePrimerAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(true) - -type launchpadLaunchpadTilePrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` -} - -var launchpadLaunchpadTilePrimerAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(false) -var launchpadLaunchpadTilePrimerAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(true) - -type launchpadLaunchpadTilePrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` -} - -var launchpadLaunchpadTile_additionalObjectsAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false) -var launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(true) - -type launchpadLaunchpadTile_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var launchpadLaunchpadTile_additionalObjectsAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false) -var launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(true) - -type launchpadLaunchpadTile_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var launchpadManualLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadManualLaunchpadTile(false) -var launchpadManualLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadManualLaunchpadTile(true) - -type launchpadManualLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` -} - -var launchpadManualLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadManualLaunchpadTile(false) -var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadManualLaunchpadTile(true) - -type launchpadManualLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` -} - -var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) -var launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(true) - -type launchpadSsoApplicationLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - Uri types.String `tfsdk:"uri"` -} - -var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) -var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(true) - -type launchpadSsoApplicationLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - Uri types.String `tfsdk:"uri"` -} - -var launchpadVaultRecordLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false) -var launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(true) - -type launchpadVaultRecordLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` -} - -var launchpadVaultRecordLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false) -var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(true) - -type launchpadVaultRecordLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` -} - -var licenseKeyHubLicenseInfoAttrTypesRS = objectAttrsTypeRSLicenseKeyHubLicenseInfo(false) -var licenseKeyHubLicenseInfoAttrTypesRSRecurse = objectAttrsTypeRSLicenseKeyHubLicenseInfo(true) - -type licenseKeyHubLicenseInfoDataRS struct { - CurrentLicenseStatus types.String `tfsdk:"current_license_status"` - CustomerCompany types.String `tfsdk:"customer_company"` - CustomerContact types.String `tfsdk:"customer_contact"` - CustomerDomains types.List `tfsdk:"customer_domains"` - Details types.List `tfsdk:"details"` - ExpirationTime types.String `tfsdk:"expiration_time"` - Features types.List `tfsdk:"features"` - IssueTime types.String `tfsdk:"issue_time"` - KeyHubDomain types.String `tfsdk:"key_hub_domain"` - LicenseKey types.String `tfsdk:"license_key"` - NotBeforeTime types.String `tfsdk:"not_before_time"` - UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` - UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` - UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` - UUID types.String `tfsdk:"uuid"` - Version types.Int64 `tfsdk:"version"` -} - -var licenseKeyHubLicenseInfoAttrTypesDS = objectAttrsTypeDSLicenseKeyHubLicenseInfo(false) -var licenseKeyHubLicenseInfoAttrTypesDSRecurse = objectAttrsTypeDSLicenseKeyHubLicenseInfo(true) - -type licenseKeyHubLicenseInfoDataDS struct { - CurrentLicenseStatus types.String `tfsdk:"current_license_status"` - CustomerCompany types.String `tfsdk:"customer_company"` - CustomerContact types.String `tfsdk:"customer_contact"` - CustomerDomains types.List `tfsdk:"customer_domains"` - Details types.List `tfsdk:"details"` - ExpirationTime types.String `tfsdk:"expiration_time"` - Features types.List `tfsdk:"features"` - IssueTime types.String `tfsdk:"issue_time"` - KeyHubDomain types.String `tfsdk:"key_hub_domain"` - LicenseKey types.String `tfsdk:"license_key"` - NotBeforeTime types.String `tfsdk:"not_before_time"` - UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` - UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` - UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` - UUID types.String `tfsdk:"uuid"` - Version types.Int64 `tfsdk:"version"` -} - -var markItemMarkerAttrTypesRS = objectAttrsTypeRSMarkItemMarker(false) -var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) - -type markItemMarkerDataRS struct { - Level types.String `tfsdk:"level"` - MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` - Parameters types.Object `tfsdk:"parameters"` -} - -var markItemMarkerAttrTypesDS = objectAttrsTypeDSMarkItemMarker(false) -var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) - -type markItemMarkerDataDS struct { - Level types.String `tfsdk:"level"` - MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` - Parameters types.Object `tfsdk:"parameters"` -} - -var markItemMarker_parametersAttrTypesRS = objectAttrsTypeRSMarkItemMarker_parameters(false) -var markItemMarker_parametersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker_parameters(true) - -type markItemMarker_parametersDataRS struct { -} - -var markItemMarker_parametersAttrTypesDS = objectAttrsTypeDSMarkItemMarker_parameters(false) -var markItemMarker_parametersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker_parameters(true) - -type markItemMarker_parametersDataDS struct { -} - -var markItemMarkersAttrTypesRS = objectAttrsTypeRSMarkItemMarkers(false) -var markItemMarkersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarkers(true) - -type markItemMarkersDataRS struct { - Markers types.List `tfsdk:"markers"` -} - -var markItemMarkersAttrTypesDS = objectAttrsTypeDSMarkItemMarkers(false) -var markItemMarkersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarkers(true) - -type markItemMarkersDataDS struct { - Markers types.List `tfsdk:"markers"` -} - -var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) -var notificationCertificateExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationCertificateExpiredNotification(true) - -type notificationCertificateExpiredNotificationDataRS struct { - Certificate types.Object `tfsdk:"certificate"` - Directory types.Object `tfsdk:"directory"` - Expiration types.String `tfsdk:"expiration"` - LdapClient types.Object `tfsdk:"ldap_client"` - System types.Object `tfsdk:"system"` - Usage types.String `tfsdk:"usage"` - Webhook types.Object `tfsdk:"webhook"` -} - -var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) -var notificationCertificateExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationCertificateExpiredNotification(true) - -type notificationCertificateExpiredNotificationDataDS struct { - Certificate types.Object `tfsdk:"certificate"` - Directory types.Object `tfsdk:"directory"` - Expiration types.String `tfsdk:"expiration"` - LdapClient types.Object `tfsdk:"ldap_client"` - System types.Object `tfsdk:"system"` - Usage types.String `tfsdk:"usage"` - Webhook types.Object `tfsdk:"webhook"` -} - -var notificationGroupAuditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(false) -var notificationGroupAuditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(true) - -type notificationGroupAuditRequiredNotificationDataRS struct { - DueDate types.String `tfsdk:"due_date"` - Group types.Object `tfsdk:"group"` - NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` -} - -var notificationGroupAuditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(false) -var notificationGroupAuditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(true) - -type notificationGroupAuditRequiredNotificationDataDS struct { - DueDate types.String `tfsdk:"due_date"` - Group types.Object `tfsdk:"group"` - NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` -} - -var notificationGroupEditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification(false) -var notificationGroupEditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification(true) - -type notificationGroupEditRequiredNotificationDataRS struct { - Group types.Object `tfsdk:"group"` - Parameters types.Object `tfsdk:"parameters"` - Reason types.String `tfsdk:"reason"` -} - -var notificationGroupEditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification(false) -var notificationGroupEditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification(true) - -type notificationGroupEditRequiredNotificationDataDS struct { - Group types.Object `tfsdk:"group"` - Parameters types.Object `tfsdk:"parameters"` - Reason types.String `tfsdk:"reason"` -} - -var notificationGroupEditRequiredNotification_parametersAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(false) -var notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(true) - -type notificationGroupEditRequiredNotification_parametersDataRS struct { -} - -var notificationGroupEditRequiredNotification_parametersAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(false) -var notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(true) - -type notificationGroupEditRequiredNotification_parametersDataDS struct { -} - -var notificationInvalidSignaturesDetectedNotificationAttrTypesRS = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(false) -var notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(true) - -type notificationInvalidSignaturesDetectedNotificationDataRS struct { -} - -var notificationInvalidSignaturesDetectedNotificationAttrTypesDS = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(false) -var notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(true) - -type notificationInvalidSignaturesDetectedNotificationDataDS struct { -} - -var notificationLicenseStatusNotificationAttrTypesRS = objectAttrsTypeRSNotificationLicenseStatusNotification(false) -var notificationLicenseStatusNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationLicenseStatusNotification(true) - -type notificationLicenseStatusNotificationDataRS struct { - ActiveAccounts types.Int64 `tfsdk:"active_accounts"` - LicenseInfo types.Object `tfsdk:"license_info"` -} - -var notificationLicenseStatusNotificationAttrTypesDS = objectAttrsTypeDSNotificationLicenseStatusNotification(false) -var notificationLicenseStatusNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationLicenseStatusNotification(true) - -type notificationLicenseStatusNotificationDataDS struct { - ActiveAccounts types.Int64 `tfsdk:"active_accounts"` - LicenseInfo types.Object `tfsdk:"license_info"` -} - -var notificationModificationRequestNotificationAttrTypesRS = objectAttrsTypeRSNotificationModificationRequestNotification(false) -var notificationModificationRequestNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationModificationRequestNotification(true) - -type notificationModificationRequestNotificationDataRS struct { - Admins types.List `tfsdk:"admins"` - Groups types.List `tfsdk:"groups"` - Request types.Object `tfsdk:"request"` -} - -var notificationModificationRequestNotificationAttrTypesDS = objectAttrsTypeDSNotificationModificationRequestNotification(false) -var notificationModificationRequestNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationModificationRequestNotification(true) - -type notificationModificationRequestNotificationDataDS struct { - Admins types.List `tfsdk:"admins"` - Groups types.List `tfsdk:"groups"` - Request types.Object `tfsdk:"request"` -} - -var notificationNotificationAttrTypesRS = objectAttrsTypeRSNotificationNotification(false) -var notificationNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotification(true) - -type notificationNotificationDataRS struct { -} - -var notificationNotificationAttrTypesDS = objectAttrsTypeDSNotificationNotification(false) -var notificationNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotification(true) - -type notificationNotificationDataDS struct { -} - -var notificationNotificationsAttrTypesRS = objectAttrsTypeRSNotificationNotifications(false) -var notificationNotificationsAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotifications(true) - -type notificationNotificationsDataRS struct { - Items types.List `tfsdk:"items"` -} - -var notificationNotificationsAttrTypesDS = objectAttrsTypeDSNotificationNotifications(false) -var notificationNotificationsAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotifications(true) - -type notificationNotificationsDataDS struct { - Items types.List `tfsdk:"items"` -} - -var notificationOldApiVersionUsageNotificationAttrTypesRS = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(false) -var notificationOldApiVersionUsageNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(true) - -type notificationOldApiVersionUsageNotificationDataRS struct { - ApiVersion types.Int64 `tfsdk:"api_version"` - Client types.Object `tfsdk:"client"` -} - -var notificationOldApiVersionUsageNotificationAttrTypesDS = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(false) -var notificationOldApiVersionUsageNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(true) - -type notificationOldApiVersionUsageNotificationDataDS struct { - ApiVersion types.Int64 `tfsdk:"api_version"` - Client types.Object `tfsdk:"client"` -} - -var notificationProvisionConfigRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(false) -var notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(true) - -type notificationProvisionConfigRequiredNotificationDataRS struct { - Systems types.List `tfsdk:"systems"` -} - -var notificationProvisionConfigRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(false) -var notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(true) - -type notificationProvisionConfigRequiredNotificationDataDS struct { - Systems types.List `tfsdk:"systems"` -} - -var notificationRotatingPasswordRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(false) -var notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(true) - -type notificationRotatingPasswordRequiredNotificationDataRS struct { - Groups types.List `tfsdk:"groups"` -} - -var notificationRotatingPasswordRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(false) -var notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(true) - -type notificationRotatingPasswordRequiredNotificationDataDS struct { - Groups types.List `tfsdk:"groups"` -} - -var notificationUpdateAvailableNotificationAttrTypesRS = objectAttrsTypeRSNotificationUpdateAvailableNotification(false) -var notificationUpdateAvailableNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationUpdateAvailableNotification(true) - -type notificationUpdateAvailableNotificationDataRS struct { - ReleasedAt types.String `tfsdk:"released_at"` -} - -var notificationUpdateAvailableNotificationAttrTypesDS = objectAttrsTypeDSNotificationUpdateAvailableNotification(false) -var notificationUpdateAvailableNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationUpdateAvailableNotification(true) - -type notificationUpdateAvailableNotificationDataDS struct { - ReleasedAt types.String `tfsdk:"released_at"` -} - -var notificationVaultRecordExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(false) -var notificationVaultRecordExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(true) - -type notificationVaultRecordExpiredNotificationDataRS struct { - Record types.Object `tfsdk:"record"` -} - -var notificationVaultRecordExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(false) -var notificationVaultRecordExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(true) - -type notificationVaultRecordExpiredNotificationDataDS struct { - Record types.Object `tfsdk:"record"` -} - -var organizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(false) -var organizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(true) - -type organizationAccountOrganizationalUnitDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` -} - -var organizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(false) -var organizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(true) - -type organizationAccountOrganizationalUnitDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` -} - -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(false) -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(true) - -type organizationAccountOrganizationalUnitLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(false) -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(true) - -type organizationAccountOrganizationalUnitLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false) -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(true) - -type organizationAccountOrganizationalUnit_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false) -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(true) - -type organizationAccountOrganizationalUnit_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var organizationOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit(false) -var organizationOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit(true) - -type organizationOrganizationalUnitDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Depth types.Int64 `tfsdk:"depth"` - Description types.String `tfsdk:"description"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - ParentUUID types.String `tfsdk:"parent_uuid"` -} - -var organizationOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit(false) -var organizationOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit(true) - -type organizationOrganizationalUnitDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Depth types.Int64 `tfsdk:"depth"` - Description types.String `tfsdk:"description"` - Owner types.Object `tfsdk:"owner"` - Parent types.Object `tfsdk:"parent"` -} - -var organizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(false) -var organizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(true) - -type organizationOrganizationalUnitAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` -} - -var organizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(false) -var organizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(true) - -type organizationOrganizationalUnitAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Directory types.Object `tfsdk:"directory"` -} - -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(false) -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(true) - -type organizationOrganizationalUnitAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(false) -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(true) - -type organizationOrganizationalUnitAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false) -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(true) - -type organizationOrganizationalUnitAccount_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false) -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(true) - -type organizationOrganizationalUnitAccount_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var organizationOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(false) -var organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(true) - -type organizationOrganizationalUnitLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(false) -var organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(true) - -type organizationOrganizationalUnitLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitPrimerAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(false) -var organizationOrganizationalUnitPrimerAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(true) - -type organizationOrganizationalUnitPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var organizationOrganizationalUnitPrimerAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false) -var organizationOrganizationalUnitPrimerAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(true) - -type organizationOrganizationalUnitPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` -} - -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) - -type organizationOrganizationalUnitPrimerLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) - -type organizationOrganizationalUnitPrimerLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false) -var organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(true) - -type organizationOrganizationalUnit_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` -} - -var organizationOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false) -var organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(true) - -type organizationOrganizationalUnit_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false) -var provisioningAbstractProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(true) - -type provisioningAbstractProvisionedLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_d_n"` -} - -var provisioningAbstractProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false) -var provisioningAbstractProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(true) - -type provisioningAbstractProvisionedLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_d_n"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_d_n"` -} - -var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) -var provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(true) - -type provisioningAbstractProvisionedLDAP_attributesDataRS struct { -} - -var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) -var provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(true) - -type provisioningAbstractProvisionedLDAP_attributesDataDS struct { -} - -var provisioningAccountProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatus(false) -var provisioningAccountProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatus(true) - -type provisioningAccountProvisioningStatusDataRS struct { - Description types.String `tfsdk:"description"` - Result types.String `tfsdk:"result"` - System types.Object `tfsdk:"system"` -} - -var provisioningAccountProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatus(false) -var provisioningAccountProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatus(true) - -type provisioningAccountProvisioningStatusDataDS struct { - Description types.String `tfsdk:"description"` - Result types.String `tfsdk:"result"` - System types.Object `tfsdk:"system"` -} - -var provisioningAccountProvisioningStatusReportAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(false) -var provisioningAccountProvisioningStatusReportAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(true) - -type provisioningAccountProvisioningStatusReportDataRS struct { - Status types.List `tfsdk:"status"` -} - -var provisioningAccountProvisioningStatusReportAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(false) -var provisioningAccountProvisioningStatusReportAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(true) - -type provisioningAccountProvisioningStatusReportDataDS struct { - Status types.List `tfsdk:"status"` -} - -var provisioningCircuitBreakerStatisticsAttrTypesRS = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false) -var provisioningCircuitBreakerStatisticsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(true) - -type provisioningCircuitBreakerStatisticsDataRS struct { - NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` - NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` - NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` - State types.String `tfsdk:"state"` -} - -var provisioningCircuitBreakerStatisticsAttrTypesDS = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false) -var provisioningCircuitBreakerStatisticsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(true) - -type provisioningCircuitBreakerStatisticsDataDS struct { - NumberOfFailedCalls types.Int64 `tfsdk:"number_of_failed_calls"` - NumberOfNotPermittedCalls types.Int64 `tfsdk:"number_of_not_permitted_calls"` - NumberOfSuccessfulCalls types.Int64 `tfsdk:"number_of_successful_calls"` - State types.String `tfsdk:"state"` -} - -var provisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystem(false) -var provisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystem(true) - -type provisioningGroupOnSystemDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var provisioningGroupOnSystemAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystem(false) -var provisioningGroupOnSystemAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystem(true) - -type provisioningGroupOnSystemDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Owner types.Object `tfsdk:"owner"` - System types.Object `tfsdk:"system"` -} - -var provisioningGroupOnSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(false) -var provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(true) - -type provisioningGroupOnSystemLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningGroupOnSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(false) -var provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(true) - -type provisioningGroupOnSystemLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningGroupOnSystemPrimerAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemPrimer(false) -var provisioningGroupOnSystemPrimerAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemPrimer(true) - -type provisioningGroupOnSystemPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` -} - -var provisioningGroupOnSystemPrimerAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemPrimer(false) -var provisioningGroupOnSystemPrimerAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemPrimer(true) - -type provisioningGroupOnSystemPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` -} - -var provisioningGroupOnSystemTypesAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemTypes(false) -var provisioningGroupOnSystemTypesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystemTypes(true) - -type provisioningGroupOnSystemTypesDataRS struct { - Types types.List `tfsdk:"types"` -} - -var provisioningGroupOnSystemTypesAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemTypes(false) -var provisioningGroupOnSystemTypesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystemTypes(true) - -type provisioningGroupOnSystemTypesDataDS struct { - Types types.List `tfsdk:"types"` -} - -var provisioningGroupOnSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false) -var provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(true) - -type provisioningGroupOnSystem_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Provgroups types.Object `tfsdk:"provgroups"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` -} - -var provisioningGroupOnSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false) -var provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(true) - -type provisioningGroupOnSystem_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Provgroups types.Object `tfsdk:"provgroups"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` -} - -var provisioningGroupProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus(false) -var provisioningGroupProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus(true) - -type provisioningGroupProvisioningStatusDataRS struct { - Folder types.Object `tfsdk:"folder"` - Group types.Object `tfsdk:"group"` - ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` - StatusReport types.Object `tfsdk:"status_report"` - VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` -} - -var provisioningGroupProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus(false) -var provisioningGroupProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus(true) - -type provisioningGroupProvisioningStatusDataDS struct { - Folder types.Object `tfsdk:"folder"` - Group types.Object `tfsdk:"group"` - ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` - StatusReport types.Object `tfsdk:"status_report"` - VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` -} - -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(false) -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(true) - -type provisioningGroupProvisioningStatus_provisioningDurationDataRS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(false) -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(true) - -type provisioningGroupProvisioningStatus_provisioningDurationDataDS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var provisioningOwnedGroupOnSystemsWrapperAttrTypesRS = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(false) -var provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(true) - -type provisioningOwnedGroupOnSystemsWrapperDataRS struct { - Items types.List `tfsdk:"items"` - UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` -} - -var provisioningOwnedGroupOnSystemsWrapperAttrTypesDS = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(false) -var provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(true) - -type provisioningOwnedGroupOnSystemsWrapperDataDS struct { - Items types.List `tfsdk:"items"` - UnlinkedCount types.Int64 `tfsdk:"unlinked_count"` -} - -var provisioningProvisionNumberSequenceAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence(false) -var provisioningProvisionNumberSequenceAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence(true) - -type provisioningProvisionNumberSequenceDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` - NextUID types.Int64 `tfsdk:"next_u_i_d"` -} - -var provisioningProvisionNumberSequenceAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence(false) -var provisioningProvisionNumberSequenceAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence(true) - -type provisioningProvisionNumberSequenceDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` - NextUID types.Int64 `tfsdk:"next_u_i_d"` -} - -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(false) -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(true) - -type provisioningProvisionNumberSequenceLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(false) -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(true) - -type provisioningProvisionNumberSequenceLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false) -var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(true) - -type provisioningProvisionNumberSequence_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Systems types.Object `tfsdk:"systems"` -} - -var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false) -var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(true) - -type provisioningProvisionNumberSequence_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Systems types.Object `tfsdk:"systems"` -} - -var provisioningProvisionedADAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAD(false) -var provisioningProvisionedADAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAD(true) - -type provisioningProvisionedADDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_d_n"` - SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` -} - -var provisioningProvisionedADAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAD(false) -var provisioningProvisionedADAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAD(true) - -type provisioningProvisionedADDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_d_n"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_d_n"` - SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` -} - -var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount(false) -var provisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount(true) - -type provisioningProvisionedAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Uid types.Int64 `tfsdk:"uid"` -} - -var provisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount(false) -var provisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount(true) - -type provisioningProvisionedAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Uid types.Int64 `tfsdk:"uid"` -} - -var provisioningProvisionedAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(false) -var provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(true) - -type provisioningProvisionedAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(false) -var provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(true) - -type provisioningProvisionedAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false) -var provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(true) - -type provisioningProvisionedAccount_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var provisioningProvisionedAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false) -var provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(true) - -type provisioningProvisionedAccount_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var provisioningProvisionedAzureOIDCDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false) -var provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(true) - -type provisioningProvisionedAzureOIDCDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - Tenant types.String `tfsdk:"tenant"` -} - -var provisioningProvisionedAzureOIDCDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false) -var provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(true) - -type provisioningProvisionedAzureOIDCDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Directory types.Object `tfsdk:"directory"` - Tenant types.String `tfsdk:"tenant"` -} - -var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false) -var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(true) - -type provisioningProvisionedAzureSyncLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - Tenant types.String `tfsdk:"tenant"` -} - -var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false) -var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(true) - -type provisioningProvisionedAzureSyncLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - Directory types.Object `tfsdk:"directory"` - Tenant types.String `tfsdk:"tenant"` -} - -var provisioningProvisionedAzureTenantAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureTenant(false) -var provisioningProvisionedAzureTenantAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureTenant(true) - -type provisioningProvisionedAzureTenantDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - IDpDomain types.String `tfsdk:"idp_domain"` - Tenant types.String `tfsdk:"tenant"` -} - -var provisioningProvisionedAzureTenantAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureTenant(false) -var provisioningProvisionedAzureTenantAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureTenant(true) - -type provisioningProvisionedAzureTenantDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - IDpDomain types.String `tfsdk:"idp_domain"` - Tenant types.String `tfsdk:"tenant"` -} - -var provisioningProvisionedInternalLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false) -var provisioningProvisionedInternalLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(true) - -type provisioningProvisionedInternalLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Client types.Object `tfsdk:"client"` -} - -var provisioningProvisionedInternalLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false) -var provisioningProvisionedInternalLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(true) - -type provisioningProvisionedInternalLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Client types.Object `tfsdk:"client"` -} - -var provisioningProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAP(false) -var provisioningProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAP(true) - -type provisioningProvisionedLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_d_n"` - Gid types.Int64 `tfsdk:"gid"` - HashingScheme types.String `tfsdk:"hashing_scheme"` - Numbering types.Object `tfsdk:"numbering"` -} - -var provisioningProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAP(false) -var provisioningProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAP(true) - -type provisioningProvisionedLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_d_n"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_d_n"` - Gid types.Int64 `tfsdk:"gid"` - HashingScheme types.String `tfsdk:"hashing_scheme"` - Numbering types.Object `tfsdk:"numbering"` -} - -var provisioningProvisionedLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false) -var provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(true) - -type provisioningProvisionedLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` -} - -var provisioningProvisionedLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false) -var provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(true) - -type provisioningProvisionedLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Directory types.Object `tfsdk:"directory"` - GroupDN types.String `tfsdk:"group_d_n"` -} - -var provisioningProvisionedSystemAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem(false) -var provisioningProvisionedSystemAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem(true) - -type provisioningProvisionedSystemDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` -} - -var provisioningProvisionedSystemAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem(false) -var provisioningProvisionedSystemAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem(true) - -type provisioningProvisionedSystemDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` -} - -var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) -var provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(true) - -type provisioningProvisionedSystemLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) -var provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(true) - -type provisioningProvisionedSystemLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemPrimerAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemPrimer(false) -var provisioningProvisionedSystemPrimerAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemPrimer(true) - -type provisioningProvisionedSystemPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` -} - -var provisioningProvisionedSystemPrimerAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false) -var provisioningProvisionedSystemPrimerAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemPrimer(true) - -type provisioningProvisionedSystemPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` -} - -var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(false) -var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(true) - -type provisioningProvisionedSystemPrimerLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(false) -var provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(true) - -type provisioningProvisionedSystemPrimerLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(false) -var provisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(true) - -type provisioningProvisionedSystemSyncLogDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` -} - -var provisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(false) -var provisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(true) - -type provisioningProvisionedSystemSyncLogDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` -} - -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) - -type provisioningProvisionedSystemSyncLogLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) - -type provisioningProvisionedSystemSyncLogLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false) -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(true) - -type provisioningProvisionedSystemSyncLog_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false) -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(true) - -type provisioningProvisionedSystemSyncLog_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var provisioningProvisionedSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false) -var provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(true) - -type provisioningProvisionedSystem_additionalObjectsDataRS struct { - Account types.Object `tfsdk:"account"` - Audit types.Object `tfsdk:"audit"` - IssuedPermissions types.Object `tfsdk:"issued_permissions"` - LoginName types.String `tfsdk:"login_name"` - ManagementPermissions types.Object `tfsdk:"management_permissions"` - Markers types.Object `tfsdk:"markers"` - Statistics types.Object `tfsdk:"statistics"` - SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` -} - -var provisioningProvisionedSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false) -var provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(true) - -type provisioningProvisionedSystem_additionalObjectsDataDS struct { - Account types.Object `tfsdk:"account"` - Audit types.Object `tfsdk:"audit"` - IssuedPermissions types.Object `tfsdk:"issued_permissions"` - LoginName types.String `tfsdk:"login_name"` - ManagementPermissions types.Object `tfsdk:"management_permissions"` - Markers types.Object `tfsdk:"markers"` - Statistics types.Object `tfsdk:"statistics"` - SupportedGroupTypes types.Object `tfsdk:"supported_group_types"` -} - -var provisioningProvisioningManagementPermissionsAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningManagementPermissions(false) -var provisioningProvisioningManagementPermissionsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningManagementPermissions(true) - -type provisioningProvisioningManagementPermissionsDataRS struct { - CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` - CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` - ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` -} - -var provisioningProvisioningManagementPermissionsAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningManagementPermissions(false) -var provisioningProvisioningManagementPermissionsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningManagementPermissions(true) - -type provisioningProvisioningManagementPermissionsDataDS struct { - CreateNewGroupsAllowed types.Bool `tfsdk:"create_new_groups_allowed"` - CreateServiceAccountsAllowed types.Bool `tfsdk:"create_service_accounts_allowed"` - ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` -} - -var provisioningProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningStatus(false) -var provisioningProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningStatus(true) - -type provisioningProvisioningStatusDataRS struct { - Groups types.List `tfsdk:"groups"` - IgnoreErrors types.Bool `tfsdk:"ignore_errors"` - RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` -} - -var provisioningProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningStatus(false) -var provisioningProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningStatus(true) - -type provisioningProvisioningStatusDataDS struct { - Groups types.List `tfsdk:"groups"` - IgnoreErrors types.Bool `tfsdk:"ignore_errors"` - RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` -} - -var provisioningTokenPasswordAttrTypesRS = objectAttrsTypeRSProvisioningTokenPassword(false) -var provisioningTokenPasswordAttrTypesRSRecurse = objectAttrsTypeRSProvisioningTokenPassword(true) - -type provisioningTokenPasswordDataRS struct { - Password types.String `tfsdk:"password"` -} - -var provisioningTokenPasswordAttrTypesDS = objectAttrsTypeDSProvisioningTokenPassword(false) -var provisioningTokenPasswordAttrTypesDSRecurse = objectAttrsTypeDSProvisioningTokenPassword(true) - -type provisioningTokenPasswordDataDS struct { - Password types.String `tfsdk:"password"` -} - -var requestAbstractApplicationModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false) -var requestAbstractApplicationModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(true) - -type requestAbstractApplicationModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` -} - -var requestAbstractApplicationModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false) -var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(true) - -type requestAbstractApplicationModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` -} - -var requestAbstractOrganizationalUnitModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false) -var requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(true) - -type requestAbstractOrganizationalUnitModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` -} - -var requestAbstractOrganizationalUnitModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false) -var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(true) - -type requestAbstractOrganizationalUnitModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` -} - -var requestAbstractProvisionedSystemModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false) -var requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(true) - -type requestAbstractProvisionedSystemModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestAbstractProvisionedSystemModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false) -var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(true) - -type requestAbstractProvisionedSystemModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` -} - -var requestAcceptGrantAccessRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(false) -var requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(true) - -type requestAcceptGrantAccessRequestParametersDataRS struct { - AccessDuration types.Object `tfsdk:"access_duration"` -} - -var requestAcceptGrantAccessRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(false) -var requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(true) - -type requestAcceptGrantAccessRequestParametersDataDS struct { - AccessDuration types.Object `tfsdk:"access_duration"` -} - -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(false) -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(true) - -type requestAcceptGrantAccessRequestParameters_accessDurationDataRS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(false) -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(true) - -type requestAcceptGrantAccessRequestParameters_accessDurationDataDS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var requestAcceptJoinGroupRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(false) -var requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(true) - -type requestAcceptJoinGroupRequestParametersDataRS struct { - EndDate types.String `tfsdk:"end_date"` - MakeManager types.Bool `tfsdk:"make_manager"` -} - -var requestAcceptJoinGroupRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(false) -var requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(true) - -type requestAcceptJoinGroupRequestParametersDataDS struct { - EndDate types.String `tfsdk:"end_date"` - MakeManager types.Bool `tfsdk:"make_manager"` -} - -var requestAcceptModificationRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptModificationRequestParameters(false) -var requestAcceptModificationRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptModificationRequestParameters(true) - -type requestAcceptModificationRequestParametersDataRS struct { -} - -var requestAcceptModificationRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptModificationRequestParameters(false) -var requestAcceptModificationRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptModificationRequestParameters(true) - -type requestAcceptModificationRequestParametersDataDS struct { -} - -var requestAddGroupAdminRequestAttrTypesRS = objectAttrsTypeRSRequestAddGroupAdminRequest(false) -var requestAddGroupAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAddGroupAdminRequest(true) - -type requestAddGroupAdminRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewAdminUUID types.String `tfsdk:"new_admin_uuid"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var requestAddGroupAdminRequestAttrTypesDS = objectAttrsTypeDSRequestAddGroupAdminRequest(false) -var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddGroupAdminRequest(true) - -type requestAddGroupAdminRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewAdmin types.Object `tfsdk:"new_admin"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var requestCreateGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false) -var requestCreateGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(true) - -type requestCreateGroupOnSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` -} - -var requestCreateGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false) -var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(true) - -type requestCreateGroupOnSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` -} - -var requestCreateGroupRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupRequest(false) -var requestCreateGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupRequest(true) - -type requestCreateGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - GroupName types.String `tfsdk:"group_name"` -} - -var requestCreateGroupRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupRequest(false) -var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupRequest(true) - -type requestCreateGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - GroupName types.String `tfsdk:"group_name"` -} - -var requestCreateServiceAccountRequestAttrTypesRS = objectAttrsTypeRSRequestCreateServiceAccountRequest(false) -var requestCreateServiceAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateServiceAccountRequest(true) - -type requestCreateServiceAccountRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - Username types.String `tfsdk:"username"` -} - -var requestCreateServiceAccountRequestAttrTypesDS = objectAttrsTypeDSRequestCreateServiceAccountRequest(false) -var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateServiceAccountRequest(true) - -type requestCreateServiceAccountRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - Username types.String `tfsdk:"username"` -} - -var requestDisable2FARequestAttrTypesRS = objectAttrsTypeRSRequestDisable2FARequest(false) -var requestDisable2FARequestAttrTypesRSRecurse = objectAttrsTypeRSRequestDisable2FARequest(true) - -type requestDisable2FARequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Subject types.String `tfsdk:"subject"` -} - -var requestDisable2FARequestAttrTypesDS = objectAttrsTypeDSRequestDisable2FARequest(false) -var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable2FARequest(true) - -type requestDisable2FARequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Subject types.String `tfsdk:"subject"` -} - -var requestEnableTechnicalAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false) -var requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(true) - -type requestEnableTechnicalAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestEnableTechnicalAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false) -var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(true) - -type requestEnableTechnicalAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestExtendAccessRequestAttrTypesRS = objectAttrsTypeRSRequestExtendAccessRequest(false) -var requestExtendAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestExtendAccessRequest(true) - -type requestExtendAccessRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ExtendUntil types.String `tfsdk:"extend_until"` -} - -var requestExtendAccessRequestAttrTypesDS = objectAttrsTypeDSRequestExtendAccessRequest(false) -var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExtendAccessRequest(true) - -type requestExtendAccessRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ExtendUntil types.String `tfsdk:"extend_until"` -} - -var requestGrantAccessRequestAttrTypesRS = objectAttrsTypeRSRequestGrantAccessRequest(false) -var requestGrantAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantAccessRequest(true) - -type requestGrantAccessRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestGrantAccessRequestAttrTypesDS = objectAttrsTypeDSRequestGrantAccessRequest(false) -var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantAccessRequest(true) - -type requestGrantAccessRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestGrantApplicationRequestAttrTypesRS = objectAttrsTypeRSRequestGrantApplicationRequest(false) -var requestGrantApplicationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantApplicationRequest(true) - -type requestGrantApplicationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` -} - -var requestGrantApplicationRequestAttrTypesDS = objectAttrsTypeDSRequestGrantApplicationRequest(false) -var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantApplicationRequest(true) - -type requestGrantApplicationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` -} - -var requestGrantClientPermissionRequestAttrTypesRS = objectAttrsTypeRSRequestGrantClientPermissionRequest(false) -var requestGrantClientPermissionRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantClientPermissionRequest(true) - -type requestGrantClientPermissionRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - PermissionType types.String `tfsdk:"permission_type"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestGrantClientPermissionRequestAttrTypesDS = objectAttrsTypeDSRequestGrantClientPermissionRequest(false) -var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantClientPermissionRequest(true) - -type requestGrantClientPermissionRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` - PermissionType types.String `tfsdk:"permission_type"` - System types.Object `tfsdk:"system"` -} - -var requestGrantGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false) -var requestGrantGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(true) - -type requestGrantGroupOnSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false) -var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(true) - -type requestGrantGroupOnSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantGroupOnSystemRequestRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false) -var requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(true) - -type requestGrantGroupOnSystemRequestRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantGroupOnSystemRequestRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false) -var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(true) - -type requestGrantGroupOnSystemRequestRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantServiceAccountGroupRequestAttrTypesRS = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false) -var requestGrantServiceAccountGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(true) - -type requestGrantServiceAccountGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` -} - -var requestGrantServiceAccountGroupRequestAttrTypesDS = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false) -var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(true) - -type requestGrantServiceAccountGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccount types.Object `tfsdk:"service_account"` -} - -var requestJoinGroupRequestAttrTypesRS = objectAttrsTypeRSRequestJoinGroupRequest(false) -var requestJoinGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinGroupRequest(true) - -type requestJoinGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestJoinGroupRequestAttrTypesDS = objectAttrsTypeDSRequestJoinGroupRequest(false) -var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGroupRequest(true) - -type requestJoinGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestJoinVaultRequestAttrTypesRS = objectAttrsTypeRSRequestJoinVaultRequest(false) -var requestJoinVaultRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinVaultRequest(true) - -type requestJoinVaultRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestJoinVaultRequestAttrTypesDS = objectAttrsTypeDSRequestJoinVaultRequest(false) -var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaultRequest(true) - -type requestJoinVaultRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestModificationRequestAttrTypesRS = objectAttrsTypeRSRequestModificationRequest(false) -var requestModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest(true) - -type requestModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestModificationRequestAttrTypesDS = objectAttrsTypeDSRequestModificationRequest(false) -var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest(true) - -type requestModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) -var requestModificationRequestLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(true) - -type requestModificationRequestLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) -var requestModificationRequestLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(true) - -type requestModificationRequestLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var requestModificationRequest_additionalObjectsAttrTypesRS = objectAttrsTypeRSRequestModificationRequest_additionalObjects(false) -var requestModificationRequest_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest_additionalObjects(true) - -type requestModificationRequest_additionalObjectsDataRS struct { - AcceptParams types.Object `tfsdk:"accept_params"` - Audit types.Object `tfsdk:"audit"` - ResetStatus types.Object `tfsdk:"reset_status"` -} - -var requestModificationRequest_additionalObjectsAttrTypesDS = objectAttrsTypeDSRequestModificationRequest_additionalObjects(false) -var requestModificationRequest_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest_additionalObjects(true) - -type requestModificationRequest_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - ResetStatus types.Object `tfsdk:"reset_status"` -} - -var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequest(false) -var requestPasswordResetRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequest(true) - -type requestPasswordResetRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` - NewVaultPassword types.String `tfsdk:"new_vault_password"` - UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` -} - -var requestPasswordResetRequestAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequest(false) -var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequest(true) - -type requestPasswordResetRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) -var requestPasswordResetRequestStatusAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequestStatus(true) - -type requestPasswordResetRequestStatusDataRS struct { - CooldownEnd types.String `tfsdk:"cooldown_end"` - Managers types.List `tfsdk:"managers"` - NrAccepted types.Int64 `tfsdk:"nr_accepted"` - ResetViaMail types.String `tfsdk:"reset_via_mail"` -} - -var requestPasswordResetRequestStatusAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequestStatus(false) -var requestPasswordResetRequestStatusAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequestStatus(true) - -type requestPasswordResetRequestStatusDataDS struct { - CooldownEnd types.String `tfsdk:"cooldown_end"` - Managers types.List `tfsdk:"managers"` - NrAccepted types.Int64 `tfsdk:"nr_accepted"` - ResetViaMail types.String `tfsdk:"reset_via_mail"` -} - -var requestRemoveGroupRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveGroupRequest(false) -var requestRemoveGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveGroupRequest(true) - -type requestRemoveGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupName types.String `tfsdk:"group_name"` -} - -var requestRemoveGroupRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveGroupRequest(false) -var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveGroupRequest(true) - -type requestRemoveGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupName types.String `tfsdk:"group_name"` -} - -var requestRemoveOrganizationalUnitRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false) -var requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(true) - -type requestRemoveOrganizationalUnitRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` -} - -var requestRemoveOrganizationalUnitRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false) -var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(true) - -type requestRemoveOrganizationalUnitRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` -} - -var requestRemoveProvisionedSystemRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false) -var requestRemoveProvisionedSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(true) - -type requestRemoveProvisionedSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - SystemName types.String `tfsdk:"system_name"` -} - -var requestRemoveProvisionedSystemRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false) -var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(true) - -type requestRemoveProvisionedSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - SystemName types.String `tfsdk:"system_name"` -} - -var requestReviewAuditRequestAttrTypesRS = objectAttrsTypeRSRequestReviewAuditRequest(false) -var requestReviewAuditRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestReviewAuditRequest(true) - -type requestReviewAuditRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestReviewAuditRequestAttrTypesDS = objectAttrsTypeDSRequestReviewAuditRequest(false) -var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReviewAuditRequest(true) - -type requestReviewAuditRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestRevokeAdminRequestAttrTypesRS = objectAttrsTypeRSRequestRevokeAdminRequest(false) -var requestRevokeAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRevokeAdminRequest(true) - -type requestRevokeAdminRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AdminUUID types.String `tfsdk:"admin_uuid"` -} - -var requestRevokeAdminRequestAttrTypesDS = objectAttrsTypeDSRequestRevokeAdminRequest(false) -var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevokeAdminRequest(true) - -type requestRevokeAdminRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Admin types.Object `tfsdk:"admin"` -} - -var requestSetupAuthorizingGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false) -var requestSetupAuthorizingGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(true) - -type requestSetupAuthorizingGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` -} - -var requestSetupAuthorizingGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false) -var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(true) - -type requestSetupAuthorizingGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` -} - -var requestSetupNestedGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupNestedGroupRequest(false) -var requestSetupNestedGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupNestedGroupRequest(true) - -type requestSetupNestedGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` -} - -var requestSetupNestedGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupNestedGroupRequest(false) -var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupNestedGroupRequest(true) - -type requestSetupNestedGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` -} - -var requestTransferApplicationAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false) -var requestTransferApplicationAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(true) - -type requestTransferApplicationAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` -} - -var requestTransferApplicationAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false) -var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(true) - -type requestTransferApplicationAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` -} - -var requestTransferApplicationOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false) -var requestTransferApplicationOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(true) - -type requestTransferApplicationOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` -} - -var requestTransferApplicationOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false) -var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(true) - -type requestTransferApplicationOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` -} - -var requestTransferAuditorGroupRequestAttrTypesRS = objectAttrsTypeRSRequestTransferAuditorGroupRequest(false) -var requestTransferAuditorGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferAuditorGroupRequest(true) - -type requestTransferAuditorGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestTransferAuditorGroupRequestAttrTypesDS = objectAttrsTypeDSRequestTransferAuditorGroupRequest(false) -var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferAuditorGroupRequest(true) - -type requestTransferAuditorGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` -} - -var requestTransferGroupOnSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false) -var requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(true) - -type requestTransferGroupOnSystemOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestTransferGroupOnSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false) -var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(true) - -type requestTransferGroupOnSystemOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false) -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(true) - -type requestTransferOrganizationalUnitOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` -} - -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false) -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(true) - -type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` -} - -var requestTransferProvisionedSystemAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false) -var requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(true) - -type requestTransferProvisionedSystemAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestTransferProvisionedSystemAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false) -var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(true) - -type requestTransferProvisionedSystemAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` -} - -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false) -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(true) - -type requestTransferProvisionedSystemContentAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false) -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(true) - -type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` -} - -var requestTransferProvisionedSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false) -var requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(true) - -type requestTransferProvisionedSystemOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestTransferProvisionedSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false) -var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(true) - -type requestTransferProvisionedSystemOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` -} - -var requestTransferServiceAccountAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false) -var requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(true) - -type requestTransferServiceAccountAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` -} - -var requestTransferServiceAccountAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false) -var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(true) - -type requestTransferServiceAccountAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ServiceAccount types.Object `tfsdk:"service_account"` -} - -var requestUpdateGroupMembershipRequestAttrTypesRS = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false) -var requestUpdateGroupMembershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(true) - -type requestUpdateGroupMembershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` -} - -var requestUpdateGroupMembershipRequestAttrTypesDS = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false) -var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(true) - -type requestUpdateGroupMembershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountToUpdate types.Object `tfsdk:"account_to_update"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` -} - -var requestVerifyInternalAccountRequestAttrTypesRS = objectAttrsTypeRSRequestVerifyInternalAccountRequest(false) -var requestVerifyInternalAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestVerifyInternalAccountRequest(true) - -type requestVerifyInternalAccountRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - InternalAccountName types.String `tfsdk:"internal_account_name"` -} - -var requestVerifyInternalAccountRequestAttrTypesDS = objectAttrsTypeDSRequestVerifyInternalAccountRequest(false) -var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestVerifyInternalAccountRequest(true) - -type requestVerifyInternalAccountRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - InternalAccountName types.String `tfsdk:"internal_account_name"` -} - -var serviceaccountServiceAccountAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount(false) -var serviceaccountServiceAccountAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount(true) - -type serviceaccountServiceAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - SystemUUID types.String `tfsdk:"system_uuid"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Description types.String `tfsdk:"description"` - PasswordUUID types.String `tfsdk:"password_uuid"` - PasswordRotation types.String `tfsdk:"password_rotation"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` -} - -var serviceaccountServiceAccountAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount(false) -var serviceaccountServiceAccountAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount(true) - -type serviceaccountServiceAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - System types.Object `tfsdk:"system"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Description types.String `tfsdk:"description"` - Password types.Object `tfsdk:"password"` - PasswordRotation types.String `tfsdk:"password_rotation"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` -} - -var serviceaccountServiceAccountGroupAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroup(false) -var serviceaccountServiceAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroup(true) - -type serviceaccountServiceAccountGroupDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` -} - -var serviceaccountServiceAccountGroupAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroup(false) -var serviceaccountServiceAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroup(true) - -type serviceaccountServiceAccountGroupDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` -} - -var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(false) -var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(true) - -type serviceaccountServiceAccountGroupLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(false) -var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(true) - -type serviceaccountServiceAccountGroupLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false) -var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(true) - -type serviceaccountServiceAccountGroup_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false) -var serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(true) - -type serviceaccountServiceAccountGroup_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var serviceaccountServiceAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(false) -var serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(true) - -type serviceaccountServiceAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var serviceaccountServiceAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(false) -var serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(true) - -type serviceaccountServiceAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var serviceaccountServiceAccountPrimerAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountPrimer(false) -var serviceaccountServiceAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountPrimer(true) - -type serviceaccountServiceAccountPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - SystemUUID types.String `tfsdk:"system_uuid"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` -} - -var serviceaccountServiceAccountPrimerAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountPrimer(false) -var serviceaccountServiceAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountPrimer(true) - -type serviceaccountServiceAccountPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - System types.Object `tfsdk:"system"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` -} - -var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false) -var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(true) - -type serviceaccountServiceAccountPrimerLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false) -var serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(true) - -type serviceaccountServiceAccountPrimerLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var serviceaccountServiceAccountStatusAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountStatus(false) -var serviceaccountServiceAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountStatus(true) - -type serviceaccountServiceAccountStatusDataRS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` -} - -var serviceaccountServiceAccountStatusAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountStatus(false) -var serviceaccountServiceAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountStatus(true) - -type serviceaccountServiceAccountStatusDataDS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` -} - -var serviceaccountServiceAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false) -var serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(true) - -type serviceaccountServiceAccount_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` - Secret types.Object `tfsdk:"secret"` -} - -var serviceaccountServiceAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false) -var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(true) - -type serviceaccountServiceAccount_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` -} - -var serviceaccountServiceAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(false) -var serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(true) - -type serviceaccountServiceAccountsAuditStatsDataRS struct { - DisabledCount types.Int64 `tfsdk:"disabled_count"` - PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` - SystemStats types.Object `tfsdk:"system_stats"` -} - -var serviceaccountServiceAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(false) -var serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(true) - -type serviceaccountServiceAccountsAuditStatsDataDS struct { - DisabledCount types.Int64 `tfsdk:"disabled_count"` - PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` - SystemStats types.Object `tfsdk:"system_stats"` -} - -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) - -type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS struct { -} - -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) - -type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS struct { -} - -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(false) -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(true) - -type serviceaccountServiceAccountsAuditStats_systemStatsDataRS struct { -} - -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(false) -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(true) - -type serviceaccountServiceAccountsAuditStats_systemStatsDataDS struct { -} - -var simpleStringValueAttrTypesRS = objectAttrsTypeRSSimpleStringValue(false) -var simpleStringValueAttrTypesRSRecurse = objectAttrsTypeRSSimpleStringValue(true) - -type simpleStringValueDataRS struct { - Value types.String `tfsdk:"value"` -} - -var simpleStringValueAttrTypesDS = objectAttrsTypeDSSimpleStringValue(false) -var simpleStringValueAttrTypesDSRecurse = objectAttrsTypeDSSimpleStringValue(true) - -type simpleStringValueDataDS struct { - Value types.String `tfsdk:"value"` -} - -var simpleVersionInfoAttrTypesRS = objectAttrsTypeRSSimpleVersionInfo(false) -var simpleVersionInfoAttrTypesRSRecurse = objectAttrsTypeRSSimpleVersionInfo(true) - -type simpleVersionInfoDataRS struct { - ContractVersions types.List `tfsdk:"contract_versions"` - KeyHubVersion types.String `tfsdk:"key_hub_version"` -} - -var simpleVersionInfoAttrTypesDS = objectAttrsTypeDSSimpleVersionInfo(false) -var simpleVersionInfoAttrTypesDSRecurse = objectAttrsTypeDSSimpleVersionInfo(true) - -type simpleVersionInfoDataDS struct { - ContractVersions types.List `tfsdk:"contract_versions"` - KeyHubVersion types.String `tfsdk:"key_hub_version"` -} - -var vaultDeletedVaultHolderAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder(false) -var vaultDeletedVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder(true) - -type vaultDeletedVaultHolderDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` - RecordCount types.Int64 `tfsdk:"record_count"` - VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` -} - -var vaultDeletedVaultHolderAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder(false) -var vaultDeletedVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder(true) - -type vaultDeletedVaultHolderDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` - RecordCount types.Int64 `tfsdk:"record_count"` - VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` -} - -var vaultDeletedVaultHolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(false) -var vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(true) - -type vaultDeletedVaultHolderLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var vaultDeletedVaultHolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(false) -var vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(true) - -type vaultDeletedVaultHolderLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var vaultDeletedVaultHolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false) -var vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(true) - -type vaultDeletedVaultHolder_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - -var vaultDeletedVaultHolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false) -var vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(true) - -type vaultDeletedVaultHolder_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - -var vaultDeletedVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultRecovery(false) -var vaultDeletedVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultRecovery(true) - -type vaultDeletedVaultRecoveryDataRS struct { - Prefix types.String `tfsdk:"prefix"` - PrivateKey types.String `tfsdk:"private_key"` - TargetGroupUUID types.String `tfsdk:"target_group_uuid"` -} - -var vaultDeletedVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultRecovery(false) -var vaultDeletedVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultRecovery(true) - -type vaultDeletedVaultRecoveryDataDS struct { - Prefix types.String `tfsdk:"prefix"` - PrivateKey types.String `tfsdk:"private_key"` - TargetGroup types.Object `tfsdk:"target_group"` -} - -var vaultMoveVaultRecordAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord(false) -var vaultMoveVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord(true) - -type vaultMoveVaultRecordDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Action types.String `tfsdk:"action"` - GroupUUID types.String `tfsdk:"group_uuid"` - ShareDuration types.Object `tfsdk:"share_duration"` -} - -var vaultMoveVaultRecordAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord(false) -var vaultMoveVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord(true) - -type vaultMoveVaultRecordDataDS struct { - Account types.Object `tfsdk:"account"` - Action types.String `tfsdk:"action"` - Group types.Object `tfsdk:"group"` - ShareDuration types.Object `tfsdk:"share_duration"` -} - -var vaultMoveVaultRecord_shareDurationAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(false) -var vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(true) - -type vaultMoveVaultRecord_shareDurationDataRS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var vaultMoveVaultRecord_shareDurationAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(false) -var vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(true) - -type vaultMoveVaultRecord_shareDurationDataDS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var vaultVaultAttrTypesRS = objectAttrsTypeRSVaultVault(false) -var vaultVaultAttrTypesRSRecurse = objectAttrsTypeRSVaultVault(true) - -type vaultVaultDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccessAvailable types.Bool `tfsdk:"access_available"` - Name types.String `tfsdk:"name"` - Records types.List `tfsdk:"records"` -} - -var vaultVaultAttrTypesDS = objectAttrsTypeDSVaultVault(false) -var vaultVaultAttrTypesDSRecurse = objectAttrsTypeDSVaultVault(true) - -type vaultVaultDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccessAvailable types.Bool `tfsdk:"access_available"` - Name types.String `tfsdk:"name"` - Records types.List `tfsdk:"records"` -} - -var vaultVaultHolderAttrTypesRS = objectAttrsTypeRSVaultVaultHolder(false) -var vaultVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultHolder(true) - -type vaultVaultHolderDataRS struct { -} - -var vaultVaultHolderAttrTypesDS = objectAttrsTypeDSVaultVaultHolder(false) -var vaultVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultHolder(true) - -type vaultVaultHolderDataDS struct { -} - -var vaultVaultRecordAttrTypesRS = objectAttrsTypeRSVaultVaultRecord(false) -var vaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord(true) - -type vaultVaultRecordDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - -var vaultVaultRecordAttrTypesDS = objectAttrsTypeDSVaultVaultRecord(false) -var vaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord(true) - -type vaultVaultRecordDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - -var vaultVaultRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(false) -var vaultVaultRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(true) - -type vaultVaultRecordLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var vaultVaultRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(false) -var vaultVaultRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(true) - -type vaultVaultRecordLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var vaultVaultRecordPrimerAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimer(false) -var vaultVaultRecordPrimerAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimer(true) - -type vaultVaultRecordPrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` -} - -var vaultVaultRecordPrimerAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimer(false) -var vaultVaultRecordPrimerAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimer(true) - -type vaultVaultRecordPrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` -} - -var vaultVaultRecordPrimerLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false) -var vaultVaultRecordPrimerLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(true) - -type vaultVaultRecordPrimerLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var vaultVaultRecordPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false) -var vaultVaultRecordPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(true) - -type vaultVaultRecordPrimerLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var vaultVaultRecordSecretsAttrTypesRS = objectAttrsTypeRSVaultVaultRecordSecrets(false) -var vaultVaultRecordSecretsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordSecrets(true) - -type vaultVaultRecordSecretsDataRS struct { - Comment types.String `tfsdk:"comment"` - File types.String `tfsdk:"file"` - Password types.String `tfsdk:"password"` - Totp types.String `tfsdk:"totp"` - WriteTotp types.Bool `tfsdk:"write_totp"` -} - -var vaultVaultRecordSecretsAttrTypesDS = objectAttrsTypeDSVaultVaultRecordSecrets(false) -var vaultVaultRecordSecretsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordSecrets(true) - -type vaultVaultRecordSecretsDataDS struct { - Comment types.String `tfsdk:"comment"` - File types.String `tfsdk:"file"` - Password types.String `tfsdk:"password"` - Totp types.String `tfsdk:"totp"` -} - -var vaultVaultRecordShareAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShare(false) -var vaultVaultRecordShareAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordShare(true) - -type vaultVaultRecordShareDataRS struct { - Name types.String `tfsdk:"name"` - VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` -} - -var vaultVaultRecordShareAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShare(false) -var vaultVaultRecordShareAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordShare(true) - -type vaultVaultRecordShareDataDS struct { - Name types.String `tfsdk:"name"` - VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` -} - -var vaultVaultRecordShareSummaryAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShareSummary(false) -var vaultVaultRecordShareSummaryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordShareSummary(true) - -type vaultVaultRecordShareSummaryDataRS struct { - Children types.List `tfsdk:"children"` - Parent types.Object `tfsdk:"parent"` -} - -var vaultVaultRecordShareSummaryAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShareSummary(false) -var vaultVaultRecordShareSummaryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordShareSummary(true) - -type vaultVaultRecordShareSummaryDataDS struct { - Children types.List `tfsdk:"children"` - Parent types.Object `tfsdk:"parent"` -} - -var vaultVaultRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultVaultRecord_additionalObjects(false) -var vaultVaultRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord_additionalObjects(true) - -type vaultVaultRecord_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile"` - ParentUUID types.String `tfsdk:"parent_uuid"` - Secret types.Object `tfsdk:"secret"` - ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` - Tile types.Object `tfsdk:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder"` -} - -var vaultVaultRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultVaultRecord_additionalObjects(false) -var vaultVaultRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord_additionalObjects(true) - -type vaultVaultRecord_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Parent types.Object `tfsdk:"parent"` - Secret types.Object `tfsdk:"secret"` - ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` - Tile types.Object `tfsdk:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder"` -} - -var vaultVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultVaultRecovery(false) -var vaultVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecovery(true) - -type vaultVaultRecoveryDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var vaultVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultVaultRecovery(false) -var vaultVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecovery(true) - -type vaultVaultRecoveryDataDS struct { - Account types.Object `tfsdk:"account"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var vaultVaultUnlockAttrTypesRS = objectAttrsTypeRSVaultVaultUnlock(false) -var vaultVaultUnlockAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlock(true) - -type vaultVaultUnlockDataRS struct { - Password types.String `tfsdk:"password"` -} - -var vaultVaultUnlockAttrTypesDS = objectAttrsTypeDSVaultVaultUnlock(false) -var vaultVaultUnlockAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlock(true) - -type vaultVaultUnlockDataDS struct { - Password types.String `tfsdk:"password"` -} - -var vaultVaultUnlockResponseAttrTypesRS = objectAttrsTypeRSVaultVaultUnlockResponse(false) -var vaultVaultUnlockResponseAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlockResponse(true) - -type vaultVaultUnlockResponseDataRS struct { - ExpiresAt types.String `tfsdk:"expires_at"` - SessionPassword types.String `tfsdk:"session_password"` -} - -var vaultVaultUnlockResponseAttrTypesDS = objectAttrsTypeDSVaultVaultUnlockResponse(false) -var vaultVaultUnlockResponseAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlockResponse(true) - -type vaultVaultUnlockResponseDataDS struct { - ExpiresAt types.String `tfsdk:"expires_at"` - SessionPassword types.String `tfsdk:"session_password"` -} - -var webhookWebhookAttrTypesRS = objectAttrsTypeRSWebhookWebhook(false) -var webhookWebhookAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook(true) - -type webhookWebhookDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - AllTypes types.Bool `tfsdk:"all_types"` - AuthenticationScheme types.String `tfsdk:"authentication_scheme"` - BasicAuthPassword types.String `tfsdk:"basic_auth_password"` - BasicAuthUsername types.String `tfsdk:"basic_auth_username"` - BearerToken types.String `tfsdk:"bearer_token"` - ClientUUID types.String `tfsdk:"client_uuid"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - CustomHeaderName types.String `tfsdk:"custom_header_name"` - CustomHeaderValue types.String `tfsdk:"custom_header_value"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - Name types.String `tfsdk:"name"` - SystemUUID types.String `tfsdk:"system_uuid"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - UUID types.String `tfsdk:"uuid"` - VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` -} - -var webhookWebhookAttrTypesDS = objectAttrsTypeDSWebhookWebhook(false) -var webhookWebhookAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook(true) - -type webhookWebhookDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Account types.Object `tfsdk:"account"` - Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - AllTypes types.Bool `tfsdk:"all_types"` - AuthenticationScheme types.String `tfsdk:"authentication_scheme"` - BasicAuthPassword types.String `tfsdk:"basic_auth_password"` - BasicAuthUsername types.String `tfsdk:"basic_auth_username"` - BearerToken types.String `tfsdk:"bearer_token"` - Client types.Object `tfsdk:"client"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - CustomHeaderName types.String `tfsdk:"custom_header_name"` - CustomHeaderValue types.String `tfsdk:"custom_header_value"` - Directory types.Object `tfsdk:"directory"` - Group types.Object `tfsdk:"group"` - Name types.String `tfsdk:"name"` - System types.Object `tfsdk:"system"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - UUID types.String `tfsdk:"uuid"` - VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` -} - -var webhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery(false) -var webhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery(true) - -type webhookWebhookDeliveryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` -} - -var webhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery(false) -var webhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery(true) - -type webhookWebhookDeliveryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` -} - -var webhookWebhookDeliveryLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(false) -var webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(true) - -type webhookWebhookDeliveryLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var webhookWebhookDeliveryLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(false) -var webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(true) - -type webhookWebhookDeliveryLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var webhookWebhookDelivery_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false) -var webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(true) - -type webhookWebhookDelivery_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var webhookWebhookDelivery_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false) -var webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(true) - -type webhookWebhookDelivery_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var webhookWebhookLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookLinkableWrapper(false) -var webhookWebhookLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookLinkableWrapper(true) - -type webhookWebhookLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var webhookWebhookLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookLinkableWrapper(false) -var webhookWebhookLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookLinkableWrapper(true) - -type webhookWebhookLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var webhookWebhookNameUuidAttrTypesRS = objectAttrsTypeRSWebhookWebhookNameUuid(false) -var webhookWebhookNameUuidAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookNameUuid(true) - -type webhookWebhookNameUuidDataRS struct { - Name types.String `tfsdk:"name"` - Object types.Object `tfsdk:"object"` - UUID types.String `tfsdk:"uuid"` -} - -var webhookWebhookNameUuidAttrTypesDS = objectAttrsTypeDSWebhookWebhookNameUuid(false) -var webhookWebhookNameUuidAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookNameUuid(true) - -type webhookWebhookNameUuidDataDS struct { - Name types.String `tfsdk:"name"` - Object types.Object `tfsdk:"object"` - UUID types.String `tfsdk:"uuid"` -} - -var webhookWebhookPushAttrTypesRS = objectAttrsTypeRSWebhookWebhookPush(false) -var webhookWebhookPushAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookPush(true) - -type webhookWebhookPushDataRS struct { - Account types.Object `tfsdk:"account"` - ByParty types.Object `tfsdk:"by_party"` - Certificate types.Object `tfsdk:"certificate"` - Client types.Object `tfsdk:"client"` - Directory types.Object `tfsdk:"directory"` - Group types.Object `tfsdk:"group"` - Group2 types.Object `tfsdk:"group2"` - GroupClassification types.Object `tfsdk:"group_classification"` - ModificationRequest types.Object `tfsdk:"modification_request"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - SecurityLevel types.String `tfsdk:"security_level"` - Seq types.Int64 `tfsdk:"seq"` - ServiceAccount types.Object `tfsdk:"service_account"` - System types.Object `tfsdk:"system"` - Timestamp types.String `tfsdk:"timestamp"` - VaultRecord types.Object `tfsdk:"vault_record"` - Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` -} - -var webhookWebhookPushAttrTypesDS = objectAttrsTypeDSWebhookWebhookPush(false) -var webhookWebhookPushAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookPush(true) - -type webhookWebhookPushDataDS struct { - Account types.Object `tfsdk:"account"` - ByParty types.Object `tfsdk:"by_party"` - Certificate types.Object `tfsdk:"certificate"` - Client types.Object `tfsdk:"client"` - Directory types.Object `tfsdk:"directory"` - Group types.Object `tfsdk:"group"` - Group2 types.Object `tfsdk:"group2"` - GroupClassification types.Object `tfsdk:"group_classification"` - ModificationRequest types.Object `tfsdk:"modification_request"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - SecurityLevel types.String `tfsdk:"security_level"` - Seq types.Int64 `tfsdk:"seq"` - ServiceAccount types.Object `tfsdk:"service_account"` - System types.Object `tfsdk:"system"` - Timestamp types.String `tfsdk:"timestamp"` - VaultRecord types.Object `tfsdk:"vault_record"` - Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` -} - -var webhookWebhook_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhook_additionalObjects(false) -var webhookWebhook_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook_additionalObjects(true) - -type webhookWebhook_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var webhookWebhook_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhook_additionalObjects(false) -var webhookWebhook_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook_additionalObjects(true) - -type webhookWebhook_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -func objectAttrsTypeRSAuditInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["created_at"] = types.StringType - objectAttrs["created_by"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["last_modified_by"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuditInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["created_at"] = types.StringType - objectAttrs["created_by"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["last_modified_by"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSErrorReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["application_error"] = types.StringType - objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse)} - objectAttrs["code"] = types.Int64Type - objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} - objectAttrs["exception"] = types.StringType - objectAttrs["message"] = types.StringType - objectAttrs["reason"] = types.StringType - objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSErrorReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["application_error"] = types.StringType - objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse)} - objectAttrs["code"] = types.Int64Type - objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} - objectAttrs["exception"] = types.StringType - objectAttrs["message"] = types.StringType - objectAttrs["reason"] = types.StringType - objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSGeneratedSecret(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["generated_secret"] = types.StringType - objectAttrs["old_secret"] = types.StringType - objectAttrs["regenerate"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGeneratedSecret(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["generated_secret"] = types.StringType - objectAttrs["old_secret"] = types.StringType - objectAttrs["regenerate"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSLinkable(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLinkable(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSNonLinkable(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNonLinkable(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSRestLink(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["href"] = types.StringType - objectAttrs["id"] = types.Int64Type - objectAttrs["rel"] = types.StringType - objectAttrs["type_escaped"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRestLink(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["href"] = types.StringType - objectAttrs["id"] = types.Int64Type - objectAttrs["rel"] = types.StringType - objectAttrs["type_escaped"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["count"] = types.Int64Type - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["count"] = types.Int64Type - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["audit_audit_record_type"] = types.StringType - objectAttrs["date_time"] = types.StringType - objectAttrs["on_account"] = types.StringType - objectAttrs["on_certificate"] = types.StringType - objectAttrs["on_client"] = types.StringType - objectAttrs["on_directory"] = types.StringType - objectAttrs["on_group"] = types.StringType - objectAttrs["on_group2"] = types.StringType - objectAttrs["on_group_classification"] = types.StringType - objectAttrs["on_organizational_unit"] = types.StringType - objectAttrs["on_service_account"] = types.StringType - objectAttrs["on_system"] = types.StringType - objectAttrs["on_vault_record"] = types.StringType - objectAttrs["on_webhook"] = types.StringType - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["performed_by"] = types.StringType - objectAttrs["security_level"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["audit_audit_record_type"] = types.StringType - objectAttrs["date_time"] = types.StringType - objectAttrs["on_account"] = types.StringType - objectAttrs["on_certificate"] = types.StringType - objectAttrs["on_client"] = types.StringType - objectAttrs["on_directory"] = types.StringType - objectAttrs["on_group"] = types.StringType - objectAttrs["on_group2"] = types.StringType - objectAttrs["on_group_classification"] = types.StringType - objectAttrs["on_organizational_unit"] = types.StringType - objectAttrs["on_service_account"] = types.StringType - objectAttrs["on_system"] = types.StringType - objectAttrs["on_vault_record"] = types.StringType - objectAttrs["on_webhook"] = types.StringType - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["performed_by"] = types.StringType - objectAttrs["security_level"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["action"] = types.StringType - objectAttrs["exclusive_selection"] = types.BoolType - objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["action"] = types.StringType - objectAttrs["exclusive_selection"] = types.BoolType - objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["locale"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["locale"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["pending2_f_a_recovery_request"] = types.BoolType - objectAttrs["pending_password_recovery_request"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["pending2_f_a_recovery_request"] = types.BoolType - objectAttrs["pending_password_recovery_request"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountSettings(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["default_organizational_unit_uuid"] = types.StringType - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["in_groups"] = types.BoolType - objectAttrs["in_multiple_organizational_units"] = types.BoolType - objectAttrs["key_hub_admin"] = types.BoolType - objectAttrs["multiple_organizational_units_exist"] = types.BoolType - objectAttrs["password_mode"] = types.StringType - objectAttrs["ssh_public_key"] = types.StringType - objectAttrs["two_factor_authentication"] = types.StringType - objectAttrs["use_token_password"] = types.BoolType - objectAttrs["vault_status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountSettings(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["default_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["in_groups"] = types.BoolType - objectAttrs["in_multiple_organizational_units"] = types.BoolType - objectAttrs["key_hub_admin"] = types.BoolType - objectAttrs["multiple_organizational_units_exist"] = types.BoolType - objectAttrs["password_mode"] = types.StringType - objectAttrs["ssh_public_key"] = types.StringType - objectAttrs["two_factor_authentication"] = types.StringType - objectAttrs["use_token_password"] = types.BoolType - objectAttrs["vault_status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["decline_recovery_requests"] = types.BoolType - objectAttrs["license_role"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["two_factor_authentication_enabled"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["decline_recovery_requests"] = types.BoolType - objectAttrs["license_role"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["two_factor_authentication_enabled"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_login"] = types.BoolType - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse)} - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(recurse)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(recurse)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_login"] = types.BoolType - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse)} - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(recurse)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(recurse)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse)} - objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse)} - objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSAuthInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["uuid"] = types.StringType - objectAttrs["activation_code"] = types.StringType - objectAttrs["activation_deadline"] = types.StringType - objectAttrs["company"] = types.StringType - objectAttrs["first_name"] = types.StringType - objectAttrs["last_name"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["telephone"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType - objectAttrs["activation_code"] = types.StringType - objectAttrs["activation_deadline"] = types.StringType - objectAttrs["company"] = types.StringType - objectAttrs["first_name"] = types.StringType - objectAttrs["last_name"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["telephone"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthInternalAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthInternalAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthPermission(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["full"] = types.StringType - objectAttrs["instances"] = types.ListType{ElemType: types.StringType} - objectAttrs["operations"] = types.ListType{ElemType: types.StringType} - objectAttrs["type_escaped"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthPermission(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["full"] = types.StringType - objectAttrs["instances"] = types.ListType{ElemType: types.StringType} - objectAttrs["operations"] = types.ListType{ElemType: types.StringType} - objectAttrs["type_escaped"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttribute(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttribute(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType - objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration"] = types.StringType - objectAttrs["fingerprint_sha1"] = types.StringType - objectAttrs["fingerprint_sha256"] = types.StringType - objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType - objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration"] = types.StringType - objectAttrs["fingerprint_sha1"] = types.StringType - objectAttrs["fingerprint_sha256"] = types.StringType - objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType - objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration"] = types.StringType - objectAttrs["fingerprint_sha1"] = types.StringType - objectAttrs["fingerprint_sha256"] = types.StringType - objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType - objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration"] = types.StringType - objectAttrs["fingerprint_sha1"] = types.StringType - objectAttrs["fingerprint_sha256"] = types.StringType - objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSClientClientApplicationPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSClientClientApplicationPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["delete_tile"] = types.BoolType - objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupLinkableWrapper(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse)} - objectAttrs["vault_record_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} - objectAttrs["vault_record_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret_uuid"] = types.StringType - objectAttrs["used_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["bind_dn"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["used_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(false)} - objectAttrs["callback_u_r_i"] = types.StringType - objectAttrs["confidential"] = types.BoolType - objectAttrs["debug_mode"] = types.BoolType - objectAttrs["id_token_claims"] = types.StringType - objectAttrs["initiate_login_u_r_i"] = types.StringType - objectAttrs["resource_u_r_is"] = types.StringType - objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret_uuid"] = types.StringType - objectAttrs["show_landing_page"] = types.BoolType - objectAttrs["use_client_credentials"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(false)} - objectAttrs["callback_u_r_i"] = types.StringType - objectAttrs["confidential"] = types.BoolType - objectAttrs["debug_mode"] = types.BoolType - objectAttrs["id_token_claims"] = types.StringType - objectAttrs["initiate_login_u_r_i"] = types.StringType - objectAttrs["resource_u_r_is"] = types.StringType - objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["show_landing_page"] = types.BoolType - objectAttrs["use_client_credentials"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["for_group_uuid"] = types.StringType - objectAttrs["for_system_uuid"] = types.StringType - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["for_group_uuid"] = types.StringType - objectAttrs["for_system_uuid"] = types.StringType - objectAttrs["value"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["value"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSClientSaml2Client(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(false)} - objectAttrs["metadata"] = types.StringType - objectAttrs["metadata_url"] = types.StringType - objectAttrs["subject_format"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(false)} - objectAttrs["metadata"] = types.StringType - objectAttrs["metadata_url"] = types.StringType - objectAttrs["subject_format"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.Int64Type - objectAttrs["reason"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.Int64Type - objectAttrs["reason"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["directory_account_directory_summary_type"] = types.StringType - objectAttrs["domain_restriction"] = types.StringType - objectAttrs["fully_resolved_issuer"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse)} - objectAttrs["username_customizable"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["directory_account_directory_summary_type"] = types.StringType - objectAttrs["domain_restriction"] = types.StringType - objectAttrs["fully_resolved_issuer"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse)} - objectAttrs["username_customizable"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} - objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} - objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["owner_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["attributes_to_store"] = types.StringType - objectAttrs["base_d_n"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["dialect"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["password_recovery"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["search_bind_d_n"] = types.StringType - objectAttrs["search_bind_password"] = types.StringType - objectAttrs["search_filter"] = types.StringType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["attributes_to_store"] = types.StringType - objectAttrs["base_d_n"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["dialect"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["host"] = types.StringType - objectAttrs["password_recovery"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["search_bind_d_n"] = types.StringType - objectAttrs["search_bind_password"] = types.StringType - objectAttrs["search_filter"] = types.StringType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["acr_values"] = types.StringType - objectAttrs["attributes_to_store"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["domain_restriction"] = types.StringType - objectAttrs["enforces2fa"] = types.BoolType - objectAttrs["fully_resolved_issuer"] = types.StringType - objectAttrs["issuer"] = types.StringType - objectAttrs["logout_url"] = types.StringType - objectAttrs["send_login_hint"] = types.BoolType - objectAttrs["vendor_escaped"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["acr_values"] = types.StringType - objectAttrs["attributes_to_store"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["domain_restriction"] = types.StringType - objectAttrs["enforces2fa"] = types.BoolType - objectAttrs["fully_resolved_issuer"] = types.StringType - objectAttrs["issuer"] = types.StringType - objectAttrs["logout_url"] = types.StringType - objectAttrs["send_login_hint"] = types.BoolType - objectAttrs["vendor_escaped"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} - objectAttrs["last_used"] = types.StringType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} - objectAttrs["last_used"] = types.StringType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} - objectAttrs["group_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} - objectAttrs["group_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSGroupGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["application_administration"] = types.BoolType - objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditConfig(false)} - objectAttrs["audit_requested"] = types.BoolType - objectAttrs["auditor"] = types.BoolType - objectAttrs["authorizing_group_auditing_uuid"] = types.StringType - objectAttrs["authorizing_group_delegation_uuid"] = types.StringType - objectAttrs["authorizing_group_membership_uuid"] = types.StringType - objectAttrs["authorizing_group_provisioning_uuid"] = types.StringType - objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} - objectAttrs["classification_uuid"] = types.StringType - objectAttrs["description"] = types.StringType - objectAttrs["extended_access"] = types.StringType - objectAttrs["hide_audit_trail"] = types.BoolType - objectAttrs["nested_under_uuid"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["private_group"] = types.BoolType - objectAttrs["record_trail"] = types.BoolType - objectAttrs["rotating_password_required"] = types.BoolType - objectAttrs["single_managed"] = types.BoolType - objectAttrs["vault_recovery"] = types.StringType - objectAttrs["vault_requires_activation"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["application_administration"] = types.BoolType - objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditConfig(false)} - objectAttrs["audit_requested"] = types.BoolType - objectAttrs["auditor"] = types.BoolType - objectAttrs["authorizing_group_auditing"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["authorizing_group_delegation"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["authorizing_group_membership"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["authorizing_group_provisioning"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["authorizing_group_types"] = types.ListType{ElemType: types.StringType} - objectAttrs["classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(false)} - objectAttrs["description"] = types.StringType - objectAttrs["extended_access"] = types.StringType - objectAttrs["hide_audit_trail"] = types.BoolType - objectAttrs["nested_under"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["private_group"] = types.BoolType - objectAttrs["record_trail"] = types.BoolType - objectAttrs["rotating_password_required"] = types.BoolType - objectAttrs["single_managed"] = types.BoolType - objectAttrs["vault_recovery"] = types.StringType - objectAttrs["vault_requires_activation"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["disconnected_nested"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["last_used"] = types.StringType - objectAttrs["nested"] = types.BoolType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["disconnected_nested"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["last_used"] = types.StringType - objectAttrs["nested"] = types.BoolType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["connected"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["connected"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAdminMail(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["body"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAdminMail(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["body"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAudit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditAccount(false)}} - objectAttrs["comment"] = types.StringType - objectAttrs["created_at"] = types.StringType - objectAttrs["created_by"] = types.StringType - objectAttrs["group_name"] = types.StringType - objectAttrs["name_on_audit"] = types.StringType - objectAttrs["reviewed_at"] = types.StringType - objectAttrs["reviewed_by"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["submitted_at"] = types.StringType - objectAttrs["submitted_by"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAudit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} - objectAttrs["comment"] = types.StringType - objectAttrs["created_at"] = types.StringType - objectAttrs["created_by"] = types.StringType - objectAttrs["group_name"] = types.StringType - objectAttrs["name_on_audit"] = types.StringType - objectAttrs["reviewed_at"] = types.StringType - objectAttrs["reviewed_by"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["submitted_at"] = types.StringType - objectAttrs["submitted_by"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAuditAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["account_valid"] = types.BoolType - objectAttrs["action"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["disconnected_nested"] = types.BoolType - objectAttrs["display_name"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["last_used"] = types.StringType - objectAttrs["nested"] = types.BoolType - objectAttrs["rights"] = types.StringType - objectAttrs["username"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAuditAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["account_valid"] = types.BoolType - objectAttrs["action"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["disconnected_nested"] = types.BoolType - objectAttrs["display_name"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["last_used"] = types.StringType - objectAttrs["nested"] = types.BoolType - objectAttrs["rights"] = types.StringType - objectAttrs["username"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAuditConfig(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["months"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAuditConfig(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["months"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAudit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit_due_date"] = types.StringType - objectAttrs["last_audit_date"] = types.StringType - objectAttrs["nr_accounts"] = types.Int64Type - objectAttrs["nr_disabled_accounts"] = types.Int64Type - objectAttrs["nr_disabled_managers"] = types.Int64Type - objectAttrs["nr_expired_vault_records"] = types.Int64Type - objectAttrs["nr_managers"] = types.Int64Type - objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit_due_date"] = types.StringType - objectAttrs["last_audit_date"] = types.StringType - objectAttrs["nr_accounts"] = types.Int64Type - objectAttrs["nr_disabled_accounts"] = types.Int64Type - objectAttrs["nr_disabled_managers"] = types.Int64Type - objectAttrs["nr_expired_vault_records"] = types.Int64Type - objectAttrs["nr_managers"] = types.Int64Type - objectAttrs["nr_vault_records_with_end_date"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["authorizing_group_auditing_required"] = types.BoolType - objectAttrs["authorizing_group_delegation_required"] = types.BoolType - objectAttrs["authorizing_group_membership_required"] = types.BoolType - objectAttrs["authorizing_group_provisioning_required"] = types.BoolType - objectAttrs["default_classification"] = types.BoolType - objectAttrs["description"] = types.StringType - objectAttrs["maximum_audit_interval"] = types.Int64Type - objectAttrs["minimum_nr_managers"] = types.Int64Type - objectAttrs["record_trail_required"] = types.BoolType - objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} - objectAttrs["rotating_password_required"] = types.BoolType - objectAttrs["vault_requires_activation"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClassification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["authorizing_group_auditing_required"] = types.BoolType - objectAttrs["authorizing_group_delegation_required"] = types.BoolType - objectAttrs["authorizing_group_membership_required"] = types.BoolType - objectAttrs["authorizing_group_provisioning_required"] = types.BoolType - objectAttrs["default_classification"] = types.BoolType - objectAttrs["description"] = types.StringType - objectAttrs["maximum_audit_interval"] = types.Int64Type - objectAttrs["minimum_nr_managers"] = types.Int64Type - objectAttrs["record_trail_required"] = types.BoolType - objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} - objectAttrs["rotating_password_required"] = types.BoolType - objectAttrs["vault_requires_activation"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nr_groups"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nr_groups"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["classificaton_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["classificaton"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassificationInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClient(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["activation_required"] = types.BoolType - objectAttrs["client_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClient(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["activation_required"] = types.BoolType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupClient_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupFolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupFolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nr_accounts"] = types.Int64Type - objectAttrs["nr_accounts_with_vault"] = types.Int64Type - objectAttrs["nr_audits"] = types.Int64Type - objectAttrs["nr_clients"] = types.Int64Type - objectAttrs["nr_provisioned_systems"] = types.Int64Type - objectAttrs["nr_vault_records"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nr_accounts"] = types.Int64Type - objectAttrs["nr_accounts_with_vault"] = types.Int64Type - objectAttrs["nr_audits"] = types.Int64Type - objectAttrs["nr_clients"] = types.Int64Type - objectAttrs["nr_provisioned_systems"] = types.Int64Type - objectAttrs["nr_vault_records"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} - objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSSegmentCount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} - objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSSegmentCount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse)} - objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditingInfo(recurse)} - objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupInfo(recurse)} - objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} - objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} - objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} - objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse)} - objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse)} - objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse)} - objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse)} - objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse)} - objectAttrs["requeststatus"] = types.StringType - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse)} - objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditingInfo(recurse)} - objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupInfo(recurse)} - objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} - objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} - objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} - objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse)} - objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse)} - objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse)} - objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse)} - objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse)} - objectAttrs["requeststatus"] = types.StringType - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} - objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audited_groups"] = types.Int64Type - objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} - objectAttrs["overdue_audit_groups"] = types.Int64Type - objectAttrs["overdue_vault_policies"] = types.Int64Type - objectAttrs["unaudited_groups"] = types.Int64Type - objectAttrs["valid_vault_policies"] = types.Int64Type - objectAttrs["vaults_without_policies"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audited_groups"] = types.Int64Type - objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} - objectAttrs["overdue_audit_groups"] = types.Int64Type - objectAttrs["overdue_vault_policies"] = types.Int64Type - objectAttrs["unaudited_groups"] = types.Int64Type - objectAttrs["valid_vault_policies"] = types.Int64Type - objectAttrs["vaults_without_policies"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSGroupProvisioningGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeDSGroupProvisioningGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse)} - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse)} - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["current_license_status"] = types.StringType - objectAttrs["customer_company"] = types.StringType - objectAttrs["customer_contact"] = types.StringType - objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} - objectAttrs["details"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration_time"] = types.StringType - objectAttrs["features"] = types.ListType{ElemType: types.StringType} - objectAttrs["issue_time"] = types.StringType - objectAttrs["key_hub_domain"] = types.StringType - objectAttrs["license_key"] = types.StringType - objectAttrs["not_before_time"] = types.StringType - objectAttrs["users_hard_limit"] = types.Int64Type - objectAttrs["users_pro_limit"] = types.Int64Type - objectAttrs["users_soft_limit"] = types.Int64Type - objectAttrs["uuid"] = types.StringType - objectAttrs["version"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["current_license_status"] = types.StringType - objectAttrs["customer_company"] = types.StringType - objectAttrs["customer_contact"] = types.StringType - objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} - objectAttrs["details"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration_time"] = types.StringType - objectAttrs["features"] = types.ListType{ElemType: types.StringType} - objectAttrs["issue_time"] = types.StringType - objectAttrs["key_hub_domain"] = types.StringType - objectAttrs["license_key"] = types.StringType - objectAttrs["not_before_time"] = types.StringType - objectAttrs["users_hard_limit"] = types.Int64Type - objectAttrs["users_pro_limit"] = types.Int64Type - objectAttrs["users_soft_limit"] = types.Int64Type - objectAttrs["uuid"] = types.StringType - objectAttrs["version"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["level"] = types.StringType - objectAttrs["mark_item_marker_type"] = types.StringType - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker_parameters(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["level"] = types.StringType - objectAttrs["mark_item_marker_type"] = types.StringType - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker_parameters(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSMarkItemMarkers(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["markers"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(recurse)} - objectAttrs["expiration"] = types.StringType - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)} - objectAttrs["usage"] = types.StringType - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(recurse)} - objectAttrs["expiration"] = types.StringType - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)} - objectAttrs["usage"] = types.StringType - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["due_date"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} - objectAttrs["notification_group_audit_required_notification_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["due_date"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} - objectAttrs["notification_group_audit_required_notification_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse)} - objectAttrs["reason"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse)} - objectAttrs["reason"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_accounts"] = types.Int64Type - objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_accounts"] = types.Int64Type - objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["admins"] = types.ListType{ElemType: types.StringType} - objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["admins"] = types.ListType{ElemType: types.StringType} - objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNotificationNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSNotificationNotifications(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationNotification(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSNotificationNotifications(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationNotification(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["api_version"] = types.Int64Type - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["api_version"] = types.Int64Type - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["systems"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["systems"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["released_at"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["released_at"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} - } - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["depth"] = types.Int64Type - objectAttrs["description"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["parent_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["depth"] = types.Int64Type - objectAttrs["description"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_d_n"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["description"] = types.StringType - objectAttrs["result"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["description"] = types.StringType - objectAttrs["result"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["number_of_failed_calls"] = types.Int64Type - objectAttrs["number_of_not_permitted_calls"] = types.Int64Type - objectAttrs["number_of_successful_calls"] = types.Int64Type - objectAttrs["state"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["number_of_failed_calls"] = types.Int64Type - objectAttrs["number_of_not_permitted_calls"] = types.Int64Type - objectAttrs["number_of_successful_calls"] = types.Int64Type - objectAttrs["state"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} - objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["provisioning_permission_end_time"] = types.StringType - objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse)} - objectAttrs["visible_on_dashboard"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} - objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["provisioning_permission_end_time"] = types.StringType - objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse)} - objectAttrs["visible_on_dashboard"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} - objectAttrs["unlinked_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} - objectAttrs["unlinked_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["name"] = types.StringType - objectAttrs["next_u_i_d"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["name"] = types.StringType - objectAttrs["next_u_i_d"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType - objectAttrs["sam_account_name_scheme"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_d_n"] = types.StringType - objectAttrs["sam_account_name_scheme"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_d_n"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_d_n"] = types.StringType - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["group_d_n"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["created_at"] = types.StringType - objectAttrs["errors"] = types.Int64Type - objectAttrs["log"] = types.StringType - objectAttrs["modifications"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["created_at"] = types.StringType - objectAttrs["errors"] = types.Int64Type - objectAttrs["log"] = types.StringType - objectAttrs["modifications"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["create_new_groups_allowed"] = types.BoolType - objectAttrs["create_service_accounts_allowed"] = types.BoolType - objectAttrs["reuse_existing_groups_allowed"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["create_new_groups_allowed"] = types.BoolType - objectAttrs["create_service_accounts_allowed"] = types.BoolType - objectAttrs["reuse_existing_groups_allowed"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse)}} - objectAttrs["ignore_errors"] = types.BoolType - objectAttrs["restricted_by_license"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse)}} - objectAttrs["ignore_errors"] = types.BoolType - objectAttrs["restricted_by_license"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningTokenPassword(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningTokenPassword(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["end_date"] = types.StringType - objectAttrs["make_manager"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["end_date"] = types.StringType - objectAttrs["make_manager"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["new_admin_uuid"] = types.StringType - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system_type"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system_type"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["group_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["group_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["username"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["username"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestDisable2FARequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["subject"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["subject"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["extend_until"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["extend_until"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType - objectAttrs["permission_type"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["permission_type"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - objectAttrs["service_account_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["new_vault_and_directory_password"] = types.StringType - objectAttrs["new_vault_password"] = types.StringType - objectAttrs["unsynced_password"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["cooldown_end"] = types.StringType - objectAttrs["managers"] = types.ListType{ElemType: types.StringType} - objectAttrs["nr_accepted"] = types.Int64Type - objectAttrs["reset_via_mail"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["cooldown_end"] = types.StringType - objectAttrs["managers"] = types.ListType{ElemType: types.StringType} - objectAttrs["nr_accepted"] = types.Int64Type - objectAttrs["reset_via_mail"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["organizational_unit_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["organizational_unit_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["system_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["system_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["admin_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["authorizing_group_type"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["authorizing_group_type"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["account_action"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["account_action"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["service_account_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["account_to_update_uuid"] = types.StringType - objectAttrs["current_end_date"] = types.StringType - objectAttrs["current_rights"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["update_group_membership_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["current_end_date"] = types.StringType - objectAttrs["current_rights"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["update_group_membership_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["internal_account_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["internal_account_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["description"] = types.StringType - objectAttrs["password_uuid"] = types.StringType - objectAttrs["password_rotation"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["description"] = types.StringType - objectAttrs["password"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["password_rotation"] = types.StringType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["disabled_count"] = types.Int64Type - objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} - objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["disabled_count"] = types.Int64Type - objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} - objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSSimpleStringValue(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSSimpleStringValue(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSSimpleVersionInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} - objectAttrs["key_hub_version"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSSimpleVersionInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} - objectAttrs["key_hub_version"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["record_count"] = types.Int64Type - objectAttrs["vault_deleted_vault_holder_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["record_count"] = types.Int64Type - objectAttrs["vault_deleted_vault_holder_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["prefix"] = types.StringType - objectAttrs["private_key"] = types.StringType - objectAttrs["target_group_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["prefix"] = types.StringType - objectAttrs["private_key"] = types.StringType - objectAttrs["target_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_uuid"] = types.StringType - objectAttrs["action"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} - objectAttrs["action"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} - objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSVaultVault(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["access_available"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSVaultVault(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["access_available"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultHolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultHolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["comment"] = types.StringType - objectAttrs["file"] = types.StringType - objectAttrs["password"] = types.StringType - objectAttrs["totp"] = types.StringType - objectAttrs["write_totp"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["comment"] = types.StringType - objectAttrs["file"] = types.StringType - objectAttrs["password"] = types.StringType - objectAttrs["totp"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecordShare(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["vault_vault_record_share_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecordShare(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["vault_vault_record_share_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShare(recurse)}} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShare(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecordShareSummary(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["children"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShare(recurse)}} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShare(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["delete_tile"] = types.BoolType - objectAttrs["parent_uuid"] = types.StringType - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(recurse)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(recurse)} - objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} - objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_uuid"] = types.StringType - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultUnlock(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultUnlock(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["expires_at"] = types.StringType - objectAttrs["session_password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["expires_at"] = types.StringType - objectAttrs["session_password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["active"] = types.BoolType - objectAttrs["all_types"] = types.BoolType - objectAttrs["authentication_scheme"] = types.StringType - objectAttrs["basic_auth_password"] = types.StringType - objectAttrs["basic_auth_username"] = types.StringType - objectAttrs["bearer_token"] = types.StringType - objectAttrs["client_uuid"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["custom_header_name"] = types.StringType - objectAttrs["custom_header_value"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["verbose_payloads"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["active"] = types.BoolType - objectAttrs["all_types"] = types.BoolType - objectAttrs["authentication_scheme"] = types.StringType - objectAttrs["basic_auth_password"] = types.StringType - objectAttrs["basic_auth_username"] = types.StringType - objectAttrs["bearer_token"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["custom_header_name"] = types.StringType - objectAttrs["custom_header_value"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["name"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["verbose_payloads"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} - objectAttrs["reponse_headers"] = types.StringType - objectAttrs["request_headers"] = types.StringType - objectAttrs["response"] = types.StringType - objectAttrs["status"] = types.Int64Type - objectAttrs["time"] = types.Int64Type - objectAttrs["trigger_time"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} - objectAttrs["reponse_headers"] = types.StringType - objectAttrs["request_headers"] = types.StringType - objectAttrs["response"] = types.StringType - objectAttrs["status"] = types.Int64Type - objectAttrs["time"] = types.Int64Type - objectAttrs["trigger_time"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLinkable(recurse)} - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLinkable(recurse)} - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookPush(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["security_level"] = types.StringType - objectAttrs["seq"] = types.Int64Type - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["timestamp"] = types.StringType - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook_webhook_push_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookPush(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["security_level"] = types.StringType - objectAttrs["seq"] = types.Int64Type - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["timestamp"] = types.StringType - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook_webhook_push_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func tkhToTFObjectRSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditInfoAttrTypesRSRecurse - } else { - attrs = auditInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditInfoAttrTypesDSRecurse - } else { - attrs = auditInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["last_modified_by"] = types.StringPointerValue(tkh.GetLastModifiedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = errorReportAttrTypesRSRecurse - } else { - attrs = errorReportAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) - { - val, d := tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) - diags.Append(d...) - obj["application_error_parameters"] = val - } - obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) - { - elemType := attrs["error_details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["error_details"] = val - } - obj["exception"] = types.StringPointerValue(tkh.GetException()) - obj["message"] = types.StringPointerValue(tkh.GetMessage()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - { - elemType := attrs["stacktrace"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["stacktrace"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = errorReportAttrTypesDSRecurse - } else { - attrs = errorReportAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) - { - val, d := tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) - diags.Append(d...) - obj["application_error_parameters"] = val - } - obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) - { - elemType := attrs["error_details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["error_details"] = val - } - obj["exception"] = types.StringPointerValue(tkh.GetException()) - obj["message"] = types.StringPointerValue(tkh.GetMessage()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - { - elemType := attrs["stacktrace"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["stacktrace"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = errorReport_applicationErrorParametersAttrTypesRSRecurse - } else { - attrs = errorReport_applicationErrorParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = errorReport_applicationErrorParametersAttrTypesDSRecurse - } else { - attrs = errorReport_applicationErrorParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = generatedSecretAttrTypesRSRecurse - } else { - attrs = generatedSecretAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) - obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) - obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = generatedSecretAttrTypesDSRecurse - } else { - attrs = generatedSecretAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) - obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) - obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = linkableAttrTypesRSRecurse - } else { - attrs = linkableAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = linkableAttrTypesDSRecurse - } else { - attrs = linkableAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nonLinkableAttrTypesRSRecurse - } else { - attrs = nonLinkableAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nonLinkableAttrTypesDSRecurse - } else { - attrs = nonLinkableAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = restLinkAttrTypesRSRecurse - } else { - attrs = restLinkAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["href"] = types.StringPointerValue(tkh.GetHref()) - obj["id"] = types.Int64PointerValue(tkh.GetId()) - obj["rel"] = types.StringPointerValue(tkh.GetRel()) - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = restLinkAttrTypesDSRecurse - } else { - attrs = restLinkAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["href"] = types.StringPointerValue(tkh.GetHref()) - obj["id"] = types.Int64PointerValue(tkh.GetId()) - obj["rel"] = types.StringPointerValue(tkh.GetRel()) - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = segmentCountAttrTypesRSRecurse - } else { - attrs = segmentCountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["count"] = types.Int64PointerValue(tkh.GetCount()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = segmentCountAttrTypesDSRecurse - } else { - attrs = segmentCountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["count"] = types.Int64PointerValue(tkh.GetCount()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecordAttrTypesRSRecurse - } else { - attrs = auditAuditRecordAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) - obj["date_time"] = timePointerToTF(tkh.GetDateTime()) - obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) - obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) - obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) - obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) - obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) - obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) - obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) - obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) - obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) - obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) - obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) - obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecordAttrTypesDSRecurse - } else { - attrs = auditAuditRecordAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) - obj["date_time"] = timePointerToTF(tkh.GetDateTime()) - obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) - obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) - obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) - obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) - obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) - obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) - obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) - obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) - obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) - obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) - obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) - obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecordLinkableWrapperAttrTypesRSRecurse - } else { - attrs = auditAuditRecordLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuditAuditRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecordLinkableWrapperAttrTypesDSRecurse - } else { - attrs = auditAuditRecordLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuditAuditRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecord_additionalObjectsAttrTypesRSRecurse - } else { - attrs = auditAuditRecord_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecord_additionalObjectsAttrTypesDSRecurse - } else { - attrs = auditAuditRecord_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountAttrTypesRSRecurse - } else { - attrs = authAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountAttrTypesDSRecurse - } else { - attrs = authAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountBulkUpdateAttrTypesRSRecurse - } else { - attrs = authAccountBulkUpdateAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) - { - elemType := attrs["selected_accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(tkh) - }) - diags.Append(d...) - obj["selected_accounts"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountBulkUpdateAttrTypesDSRecurse - } else { - attrs = authAccountBulkUpdateAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) - { - elemType := attrs["selected_accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(tkh) - }) - diags.Append(d...) - obj["selected_accounts"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountChangeLocaleAttrTypesRSRecurse - } else { - attrs = authAccountChangeLocaleAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountChangeLocaleAttrTypesDSRecurse - } else { - attrs = authAccountChangeLocaleAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = authAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = authAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountPrimerAttrTypesRSRecurse - } else { - attrs = authAccountPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountPrimerAttrTypesDSRecurse - } else { - attrs = authAccountPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountRecoveryStatusAttrTypesRSRecurse - } else { - attrs = authAccountRecoveryStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) - obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountRecoveryStatusAttrTypesDSRecurse - } else { - attrs = authAccountRecoveryStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) - obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountSettingsAttrTypesRSRecurse - } else { - attrs = authAccountSettingsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["default_organizational_unit_uuid"] = withUuidToTF(tkh.GetDefaultOrganizationalUnit()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) - obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) - obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) - obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) - obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) - obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) - obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) - obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) - obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountSettingsAttrTypesDSRecurse - } else { - attrs = authAccountSettingsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetDefaultOrganizationalUnit()) - diags.Append(d...) - obj["default_organizational_unit"] = val - } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) - obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) - obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) - obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) - obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) - obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) - obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) - obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) - obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountStatusAttrTypesRSRecurse - } else { - attrs = authAccountStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountStatusAttrTypesDSRecurse - } else { - attrs = authAccountStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = authAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) - diags.Append(d...) - obj["pending_recovery_requests"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountSettings(recurse, tkh.GetSettings()) - diags.Append(d...) - obj["settings"] = val - } - { - val, d := tkhToTFObjectRSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) - diags.Append(d...) - obj["stored_attributes"] = val - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = authAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) - diags.Append(d...) - obj["pending_recovery_requests"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountSettings(recurse, tkh.GetSettings()) - diags.Append(d...) - obj["settings"] = val - } - { - val, d := tkhToTFObjectDSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) - diags.Append(d...) - obj["stored_attributes"] = val - } - { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStatsAttrTypesRSRecurse - } else { - attrs = authAccountsAuditStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) - diags.Append(d...) - obj["directory_stats"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) - diags.Append(d...) - obj["two_f_a_stats"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) - diags.Append(d...) - obj["validity_stats"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStatsAttrTypesDSRecurse - } else { - attrs = authAccountsAuditStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) - diags.Append(d...) - obj["directory_stats"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) - diags.Append(d...) - obj["two_f_a_stats"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) - diags.Append(d...) - obj["validity_stats"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStats_directoryStatsAttrTypesRSRecurse - } else { - attrs = authAccountsAuditStats_directoryStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStats_directoryStatsAttrTypesDSRecurse - } else { - attrs = authAccountsAuditStats_directoryStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse - } else { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse - } else { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStats_validityStatsAttrTypesRSRecurse - } else { - attrs = authAccountsAuditStats_validityStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authAccountsAuditStats_validityStatsAttrTypesDSRecurse - } else { - attrs = authAccountsAuditStats_validityStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccountAttrTypesRSRecurse - } else { - attrs = authInternalAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["uuid"] = withUuidToTF(tkh) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccountAttrTypesDSRecurse - } else { - attrs = authInternalAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = authInternalAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthInternalAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = authInternalAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthInternalAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccountStatusObjectAttrTypesRSRecurse - } else { - attrs = authInternalAccountStatusObjectAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authInternalAccountStatusObjectAttrTypesDSRecurse - } else { - attrs = authInternalAccountStatusObjectAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authMoveInternalAccountAttrTypesRSRecurse - } else { - attrs = authMoveInternalAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) - diags.Append(d...) - obj["internal_directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authMoveInternalAccountAttrTypesDSRecurse - } else { - attrs = authMoveInternalAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) - diags.Append(d...) - obj["internal_directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authPermissionAttrTypesRSRecurse - } else { - attrs = authPermissionAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["full"] = types.StringPointerValue(tkh.GetFull()) - { - elemType := attrs["instances"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["instances"] = val - } - { - elemType := attrs["operations"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["operations"] = val - } - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authPermissionAttrTypesDSRecurse - } else { - attrs = authPermissionAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["full"] = types.StringPointerValue(tkh.GetFull()) - { - elemType := attrs["instances"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["instances"] = val - } - { - elemType := attrs["operations"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["operations"] = val - } - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authStoredAccountAttributeAttrTypesRSRecurse - } else { - attrs = authStoredAccountAttributeAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["value"] = types.StringPointerValue(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authStoredAccountAttributeAttrTypesDSRecurse - } else { - attrs = authStoredAccountAttributeAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["value"] = types.StringPointerValue(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authStoredAccountAttributesAttrTypesRSRecurse - } else { - attrs = authStoredAccountAttributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["attributes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthStoredAccountAttribute(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["attributes"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = authStoredAccountAttributesAttrTypesDSRecurse - } else { - attrs = authStoredAccountAttributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["attributes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthStoredAccountAttribute(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["attributes"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificateAttrTypesRSRecurse - } else { - attrs = certificateCertificateAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - elemType := attrs["key_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["key_data"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificateAttrTypesDSRecurse - } else { - attrs = certificateCertificateAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - elemType := attrs["key_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["key_data"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificateLinkableWrapperAttrTypesRSRecurse - } else { - attrs = certificateCertificateLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificateLinkableWrapperAttrTypesDSRecurse - } else { - attrs = certificateCertificateLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificatePrimerAttrTypesRSRecurse - } else { - attrs = certificateCertificatePrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificatePrimerAttrTypesDSRecurse - } else { - attrs = certificateCertificatePrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificate_additionalObjectsAttrTypesRSRecurse - } else { - attrs = certificateCertificate_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = certificateCertificate_additionalObjectsAttrTypesDSRecurse - } else { - attrs = certificateCertificate_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplicationAttrTypesRSRecurse - } else { - attrs = clientClientApplicationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplicationAttrTypesDSRecurse - } else { - attrs = clientClientApplicationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplicationLinkableWrapperAttrTypesRSRecurse - } else { - attrs = clientClientApplicationLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSClientClientApplication(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplicationLinkableWrapperAttrTypesDSRecurse - } else { - attrs = clientClientApplicationLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSClientClientApplication(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplicationPrimerAttrTypesRSRecurse - } else { - attrs = clientClientApplicationPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplicationPrimerAttrTypesDSRecurse - } else { - attrs = clientClientApplicationPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplication_additionalObjectsAttrTypesRSRecurse - } else { - attrs = clientClientApplication_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) - { - val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) - diags.Append(d...) - obj["groupclients"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } - { - val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplication_additionalObjectsAttrTypesDSRecurse - } else { - attrs = clientClientApplication_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) - diags.Append(d...) - obj["groupclients"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientLdapClientAttrTypesRSRecurse - } else { - attrs = clientLdapClientAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) - obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientLdapClientAttrTypesDSRecurse - } else { - attrs = clientLdapClientAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) - diags.Append(d...) - obj["shared_secret"] = val - } - obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2Client_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) - obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) - obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) - obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) - obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) - obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientAttrTypesDSRecurse - } else { - attrs = clientOAuth2ClientAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2Client_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) - obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) - obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) - obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) - diags.Append(d...) - obj["shared_secret"] = val - } - obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) - obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientPermissionAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionAttrTypesDSRecurse - } else { - attrs = clientOAuth2ClientPermissionAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) - diags.Append(d...) - obj["for_group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) - diags.Append(d...) - obj["for_system"] = val - } - obj["value"] = stringerToTF(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse - } else { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) - { - val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse - } else { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) - diags.Append(d...) - obj["for_group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) - diags.Append(d...) - obj["for_system"] = val - } - obj["value"] = stringerToTF(tkh.GetValue()) - { - val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse - } else { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse - } else { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2Client_attributesAttrTypesRSRecurse - } else { - attrs = clientOAuth2Client_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2Client_attributesAttrTypesDSRecurse - } else { - attrs = clientOAuth2Client_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2ClientAttrTypesRSRecurse - } else { - attrs = clientSaml2ClientAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - { - val, d := tkhToTFObjectRSClientSaml2Client_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) - obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) - obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2ClientAttrTypesDSRecurse - } else { - attrs = clientSaml2ClientAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - { - val, d := tkhToTFObjectDSClientSaml2Client_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) - obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) - obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesRSRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesDSRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSDirectoryAccountDirectory(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSDirectoryAccountDirectory(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryPrimerAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryPrimerAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectoryPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryStatusReportAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryStatusReportAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryStatusReportAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectoryStatusReportAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectorySummaryAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectorySummaryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectorySummaryAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectorySummaryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse - } else { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryInternalDirectoryAttrTypesRSRecurse - } else { - attrs = directoryInternalDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryInternalDirectoryAttrTypesDSRecurse - } else { - attrs = directoryInternalDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryLDAPDirectoryAttrTypesRSRecurse - } else { - attrs = directoryLDAPDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) - obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) - obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryLDAPDirectoryAttrTypesDSRecurse - } else { - attrs = directoryLDAPDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) - obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) - obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryMaintenanceDirectoryAttrTypesRSRecurse - } else { - attrs = directoryMaintenanceDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryMaintenanceDirectoryAttrTypesDSRecurse - } else { - attrs = directoryMaintenanceDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryOIDCDirectoryAttrTypesRSRecurse - } else { - attrs = directoryOIDCDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) - obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) - obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) - obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryOIDCDirectoryAttrTypesDSRecurse - } else { - attrs = directoryOIDCDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) - obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) - obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) - obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroupAttrTypesRSRecurse - } else { - attrs = groupAccountGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroupAttrTypesDSRecurse - } else { - attrs = groupAccountGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupAccountGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupAccountGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupAccountGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupAccountGroup_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAuthorizedGroupsWrapperAttrTypesRSRecurse - } else { - attrs = groupAuthorizedGroupsWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAuthorizedGroupsWrapperAttrTypesDSRecurse - } else { - attrs = groupAuthorizedGroupsWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAttrTypesRSRecurse - } else { - attrs = groupGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) - { - val, d := tkhToTFObjectRSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) - diags.Append(d...) - obj["audit_config"] = val - } - obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) - obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) - obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) - obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) - obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) - obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) - { - elemType := attrs["authorizing_group_types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["authorizing_group_types"] = val - } - obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) - obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) - obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) - obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAttrTypesDSRecurse - } else { - attrs = groupGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) - { - val, d := tkhToTFObjectDSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) - diags.Append(d...) - obj["audit_config"] = val - } - obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) - obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupAuditing()) - diags.Append(d...) - obj["authorizing_group_auditing"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) - diags.Append(d...) - obj["authorizing_group_delegation"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) - diags.Append(d...) - obj["authorizing_group_membership"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) - diags.Append(d...) - obj["authorizing_group_provisioning"] = val - } - { - elemType := attrs["authorizing_group_types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["authorizing_group_types"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(false, tkh.GetClassification()) - diags.Append(d...) - obj["classification"] = val - } - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) - obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetNestedUnder()) - diags.Append(d...) - obj["nested_under"] = val - } - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) - obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) - obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountAttrTypesRSRecurse - } else { - attrs = groupGroupAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountAttrTypesDSRecurse - } else { - attrs = groupGroupAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountNestingAttrTypesRSRecurse - } else { - attrs = groupGroupAccountNestingAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountNestingAttrTypesDSRecurse - } else { - attrs = groupGroupAccountNestingAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountStatusAttrTypesRSRecurse - } else { - attrs = groupGroupAccountStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountStatusAttrTypesDSRecurse - } else { - attrs = groupGroupAccountStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAdminMailAttrTypesRSRecurse - } else { - attrs = groupGroupAdminMailAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["body"] = types.StringPointerValue(tkh.GetBody()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAdminMailAttrTypesDSRecurse - } else { - attrs = groupGroupAdminMailAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["body"] = types.StringPointerValue(tkh.GetBody()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAttrTypesRSRecurse - } else { - attrs = groupGroupAuditAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["accounts"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAttrTypesDSRecurse - } else { - attrs = groupGroupAuditAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["accounts"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAccountAttrTypesRSRecurse - } else { - attrs = groupGroupAuditAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) - obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAccountAttrTypesDSRecurse - } else { - attrs = groupGroupAuditAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) - obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditConfigAttrTypesRSRecurse - } else { - attrs = groupGroupAuditConfigAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["months"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditConfigAttrTypesDSRecurse - } else { - attrs = groupGroupAuditConfigAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["months"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupAuditLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAudit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupAuditLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAudit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAudit_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupAudit_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAudit_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupAudit_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditingInfoAttrTypesRSRecurse - } else { - attrs = groupGroupAuditingInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) - obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) - obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) - obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) - obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) - obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) - obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) - obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditingInfoAttrTypesDSRecurse - } else { - attrs = groupGroupAuditingInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) - obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) - obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) - obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) - obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) - obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) - obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) - obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) - obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) - obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) - obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) - obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) - obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) - obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) - { - elemType := attrs["required_months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["required_months"] = val - } - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) - obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) - obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) - obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) - obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) - obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) - obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) - { - elemType := attrs["required_months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["required_months"] = val - } - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationInfoAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationInfoAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationPrimerAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationPrimerAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationUpdateAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationUpdateAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["classificaton_uuid"] = withUuidToTF(tkh.GetClassificaton()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationUpdateAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationUpdateAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(recurse, tkh.GetClassificaton()) - diags.Append(d...) - obj["classificaton"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassification_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupClassification_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) - diags.Append(d...) - obj["info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassification_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupClassification_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) - diags.Append(d...) - obj["info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientAttrTypesRSRecurse - } else { - attrs = groupGroupClientAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["client_uuid"] = withUuidToTF(tkh.GetClient()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientAttrTypesDSRecurse - } else { - attrs = groupGroupClientAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupClientLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupClientLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClient_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupClient_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClient_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupClient_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderAttrTypesRSRecurse - } else { - attrs = groupGroupFolderAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderAttrTypesDSRecurse - } else { - attrs = groupGroupFolderAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupFolderLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupFolderLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolder_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupFolder_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolder_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupFolder_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupInfoAttrTypesRSRecurse - } else { - attrs = groupGroupInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) - obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) - obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) - obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) - obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) - obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupInfoAttrTypesDSRecurse - } else { - attrs = groupGroupInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) - obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) - obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) - obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) - obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) - obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerAttrTypesRSRecurse - } else { - attrs = groupGroupPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerAttrTypesDSRecurse - } else { - attrs = groupGroupPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - { - elemType := attrs["segments"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSSegmentCount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["segments"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - { - elemType := attrs["segments"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSSegmentCount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["segments"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) - diags.Append(d...) - obj["accounts"] = val - } - { - val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) - diags.Append(d...) - obj["administered_clients"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) - diags.Append(d...) - obj["administered_systems"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) - diags.Append(d...) - obj["admins"] = val - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) - diags.Append(d...) - obj["authorized_groups"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) - diags.Append(d...) - obj["client_permissions"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) - diags.Append(d...) - obj["clients"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) - diags.Append(d...) - obj["content_administered_systems"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) - diags.Append(d...) - obj["groupauditinginfo"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupInfo(recurse, tkh.GetGroupinfo()) - diags.Append(d...) - obj["groupinfo"] = val - } - { - val, d := tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) - diags.Append(d...) - obj["helpdesk"] = val - } - { - val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMyaccount()) - diags.Append(d...) - obj["myaccount"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) - diags.Append(d...) - obj["mydelegatedaccount"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) - diags.Append(d...) - obj["nested_groups"] = val - } - { - val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) - diags.Append(d...) - obj["owned_clients"] = val - } - { - val, d := tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) - diags.Append(d...) - obj["owned_directories"] = val - } - { - val, d := tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) - diags.Append(d...) - obj["owned_groups_on_system"] = val - } - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) - diags.Append(d...) - obj["owned_organizational_units"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) - diags.Append(d...) - obj["owned_systems"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) - diags.Append(d...) - obj["recent_audits"] = val - } - obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = val - } - { - val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = val - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) - diags.Append(d...) - obj["webhooks"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroup_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) - diags.Append(d...) - obj["accounts"] = val - } - { - val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) - diags.Append(d...) - obj["administered_clients"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) - diags.Append(d...) - obj["administered_systems"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) - diags.Append(d...) - obj["admins"] = val - } - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) - diags.Append(d...) - obj["authorized_groups"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) - diags.Append(d...) - obj["client_permissions"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) - diags.Append(d...) - obj["clients"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) - diags.Append(d...) - obj["content_administered_systems"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) - diags.Append(d...) - obj["groupauditinginfo"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupInfo(recurse, tkh.GetGroupinfo()) - diags.Append(d...) - obj["groupinfo"] = val - } - { - val, d := tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) - diags.Append(d...) - obj["helpdesk"] = val - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMyaccount()) - diags.Append(d...) - obj["myaccount"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) - diags.Append(d...) - obj["mydelegatedaccount"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) - diags.Append(d...) - obj["nested_groups"] = val - } - { - val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) - diags.Append(d...) - obj["owned_clients"] = val - } - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) - diags.Append(d...) - obj["owned_directories"] = val - } - { - val, d := tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) - diags.Append(d...) - obj["owned_groups_on_system"] = val - } - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) - diags.Append(d...) - obj["owned_organizational_units"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) - diags.Append(d...) - obj["owned_systems"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) - diags.Append(d...) - obj["recent_audits"] = val - } - obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = val - } - { - val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = val - } - { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) - diags.Append(d...) - obj["webhooks"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupsAuditStatsAttrTypesRSRecurse - } else { - attrs = groupGroupsAuditStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) - { - elemType := attrs["classifications"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["classifications"] = val - } - obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) - obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) - obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) - obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) - obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupsAuditStatsAttrTypesDSRecurse - } else { - attrs = groupGroupsAuditStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) - { - elemType := attrs["classifications"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["classifications"] = val - } - obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) - obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) - obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) - obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) - obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupAttrTypesRSRecurse - } else { - attrs = groupProvisioningGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupAttrTypesDSRecurse - } else { - attrs = groupProvisioningGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadManualLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadManualLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val - } - { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["details"] = val - } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) - { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["features"] = val - } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val - } - { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["details"] = val - } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) - { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["features"] = val - } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesRSRecurse - } else { - attrs = markItemMarkerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) - { - val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesDSRecurse - } else { - attrs = markItemMarkerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) - { - val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarker_parametersAttrTypesRSRecurse - } else { - attrs = markItemMarker_parametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarker_parametersAttrTypesDSRecurse - } else { - attrs = markItemMarker_parametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkersAttrTypesRSRecurse - } else { - attrs = markItemMarkersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["markers"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkersAttrTypesDSRecurse - } else { - attrs = markItemMarkersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["markers"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationCertificateExpiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationCertificateExpiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectRSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - { - val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetLdapClient()) - diags.Append(d...) - obj["ldap_client"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["usage"] = stringerToTF(tkh.GetUsage()) - { - val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationCertificateExpiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationCertificateExpiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectDSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - { - val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetLdapClient()) - diags.Append(d...) - obj["ldap_client"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["usage"] = stringerToTF(tkh.GetUsage()) - { - val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupAuditRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationGroupAuditRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["due_date"] = timePointerToTF(tkh.GetDueDate()) - { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupAuditRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationGroupAuditRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["due_date"] = timePointerToTF(tkh.GetDueDate()) - { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationGroupEditRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - obj["reason"] = stringerToTF(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationGroupEditRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - obj["reason"] = stringerToTF(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse - } else { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse - } else { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse - } else { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse - } else { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationLicenseStatusNotificationAttrTypesRSRecurse - } else { - attrs = notificationLicenseStatusNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) - { - val, d := tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) - diags.Append(d...) - obj["license_info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationLicenseStatusNotificationAttrTypesDSRecurse - } else { - attrs = notificationLicenseStatusNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) - { - val, d := tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) - diags.Append(d...) - obj["license_info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationModificationRequestNotificationAttrTypesRSRecurse - } else { - attrs = notificationModificationRequestNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["admins"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["admins"] = val - } - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh.GetRequest()) - diags.Append(d...) - obj["request"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationModificationRequestNotificationAttrTypesDSRecurse - } else { - attrs = notificationModificationRequestNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["admins"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["admins"] = val - } - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh.GetRequest()) - diags.Append(d...) - obj["request"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationAttrTypesRSRecurse - } else { - attrs = notificationNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationAttrTypesDSRecurse - } else { - attrs = notificationNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationsAttrTypesRSRecurse - } else { - attrs = notificationNotificationsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSNotificationNotification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationsAttrTypesDSRecurse - } else { - attrs = notificationNotificationsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSNotificationNotification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationOldApiVersionUsageNotificationAttrTypesRSRecurse - } else { - attrs = notificationOldApiVersionUsageNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) - { - val, d := tkhToTFObjectRSClientOAuth2Client(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationOldApiVersionUsageNotificationAttrTypesDSRecurse - } else { - attrs = notificationOldApiVersionUsageNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) - { - val, d := tkhToTFObjectDSClientOAuth2Client(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["systems"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["systems"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["systems"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["systems"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["groups"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationUpdateAvailableNotificationAttrTypesRSRecurse - } else { - attrs = notificationUpdateAvailableNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationUpdateAvailableNotificationAttrTypesDSRecurse - } else { - attrs = notificationUpdateAvailableNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationVaultRecordExpiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationVaultRecordExpiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh.GetRecord()) - diags.Append(d...) - obj["record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationVaultRecordExpiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationVaultRecordExpiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh.GetRecord()) - diags.Append(d...) - obj["record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitAttrTypesRSRecurse - } else { - attrs = organizationAccountOrganizationalUnitAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - obj["uuid"] = withUuidToTF(tkh) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitAttrTypesDSRecurse - } else { - attrs = organizationAccountOrganizationalUnitAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse - } else { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse - } else { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetParent()) - diags.Append(d...) - obj["parent"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) - diags.Append(d...) - obj["create_as_parent_of"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAPAttrTypesRSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAPAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAPAttrTypesDSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAPAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusAttrTypesRSRecurse - } else { - attrs = provisioningAccountProvisioningStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["result"] = stringerToTF(tkh.GetResult()) - { - val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusAttrTypesDSRecurse - } else { - attrs = provisioningAccountProvisioningStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["result"] = stringerToTF(tkh.GetResult()) - { - val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusReportAttrTypesRSRecurse - } else { - attrs = provisioningAccountProvisioningStatusReportAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["status"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusReportAttrTypesDSRecurse - } else { - attrs = provisioningAccountProvisioningStatusReportAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["status"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningCircuitBreakerStatisticsAttrTypesRSRecurse - } else { - attrs = provisioningCircuitBreakerStatisticsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) - obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) - obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) - obj["state"] = stringerToTF(tkh.GetState()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningCircuitBreakerStatisticsAttrTypesDSRecurse - } else { - attrs = provisioningCircuitBreakerStatisticsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) - obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) - obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) - obj["state"] = stringerToTF(tkh.GetState()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemPrimerAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemPrimerAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemTypesAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemTypesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemTypesAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemTypesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) - diags.Append(d...) - obj["provgroups"] = val - } - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) - diags.Append(d...) - obj["provgroups"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatusAttrTypesRSRecurse - } else { - attrs = provisioningGroupProvisioningStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) - diags.Append(d...) - obj["provisioning_duration"] = val - } - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) - { - val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) - diags.Append(d...) - obj["status_report"] = val - } - obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatusAttrTypesDSRecurse - } else { - attrs = provisioningGroupProvisioningStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) - diags.Append(d...) - obj["provisioning_duration"] = val - } - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) - { - val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) - diags.Append(d...) - obj["status_report"] = val - } - obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse - } else { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse - } else { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse - } else { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse - } else { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceAttrTypesRSRecurse - } else { - attrs = provisioningProvisionNumberSequenceAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceAttrTypesDSRecurse - } else { - attrs = provisioningProvisionNumberSequenceAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedADAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedADAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedADAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedADAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAzureTenantAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAzureTenantAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSClientLdapClient(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSClientLdapClient(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedLDAPAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) - { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) - diags.Append(d...) - obj["numbering"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedLDAPAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) - { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) - diags.Append(d...) - obj["numbering"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) - diags.Append(d...) - obj["supported_group_types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) - diags.Append(d...) - obj["supported_group_types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesRSRecurse - } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse - } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningStatusAttrTypesRSRecurse - } else { - attrs = provisioningProvisioningStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningStatusAttrTypesDSRecurse - } else { - attrs = provisioningProvisioningStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningTokenPasswordAttrTypesRSRecurse - } else { - attrs = provisioningTokenPasswordAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningTokenPasswordAttrTypesDSRecurse - } else { - attrs = provisioningTokenPasswordAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesRSRecurse - } else { - attrs = requestAbstractApplicationModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse - } else { - attrs = requestAbstractApplicationModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse - } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse - } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse - } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse - } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) - diags.Append(d...) - obj["access_duration"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) - diags.Append(d...) - obj["access_duration"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse - } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse - } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesRSRecurse - } else { - attrs = requestAcceptModificationRequestParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse - } else { - attrs = requestAcceptModificationRequestParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAddGroupAdminRequestAttrTypesRSRecurse - } else { - attrs = requestAddGroupAdminRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAddGroupAdminRequestAttrTypesDSRecurse - } else { - attrs = requestAddGroupAdminRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetNewAdmin()) - diags.Append(d...) - obj["new_admin"] = val - } - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesRSRecurse - } else { - attrs = requestCreateGroupOnSystemRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse - } else { - attrs = requestCreateGroupOnSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupRequestAttrTypesRSRecurse - } else { - attrs = requestCreateGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupRequestAttrTypesDSRecurse - } else { - attrs = requestCreateGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesRSRecurse - } else { - attrs = requestCreateServiceAccountRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse - } else { - attrs = requestCreateServiceAccountRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestDisable2FARequestAttrTypesRSRecurse - } else { - attrs = requestDisable2FARequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestDisable2FARequestAttrTypesDSRecurse - } else { - attrs = requestDisable2FARequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse - } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestExtendAccessRequestAttrTypesRSRecurse - } else { - attrs = requestExtendAccessRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestExtendAccessRequestAttrTypesDSRecurse - } else { - attrs = requestExtendAccessRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantAccessRequestAttrTypesRSRecurse - } else { - attrs = requestGrantAccessRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantAccessRequestAttrTypesDSRecurse - } else { - attrs = requestGrantAccessRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantApplicationRequestAttrTypesRSRecurse - } else { - attrs = requestGrantApplicationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantApplicationRequestAttrTypesDSRecurse - } else { - attrs = requestGrantApplicationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesRSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesRSRecurse - } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse - } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinGroupRequestAttrTypesRSRecurse - } else { - attrs = requestJoinGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinGroupRequestAttrTypesDSRecurse - } else { - attrs = requestJoinGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinVaultRequestAttrTypesRSRecurse - } else { - attrs = requestJoinVaultRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinVaultRequestAttrTypesDSRecurse - } else { - attrs = requestJoinVaultRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestAttrTypesRSRecurse - } else { - attrs = requestModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestAttrTypesDSRecurse - } else { - attrs = requestModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesRSRecurse - } else { - attrs = requestModificationRequestLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse - } else { - attrs = requestModificationRequestLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesRSRecurse - } else { - attrs = requestModificationRequest_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) - diags.Append(d...) - obj["accept_params"] = val - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) - diags.Append(d...) - obj["reset_status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse - } else { - attrs = requestModificationRequest_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) - diags.Append(d...) - obj["reset_status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestAttrTypesRSRecurse - } else { - attrs = requestPasswordResetRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) - obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) - obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestAttrTypesDSRecurse - } else { - attrs = requestPasswordResetRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesRSRecurse - } else { - attrs = requestPasswordResetRequestStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) - { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["managers"] = val - } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse - } else { - attrs = requestPasswordResetRequestStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) - { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["managers"] = val - } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveGroupRequestAttrTypesRSRecurse - } else { - attrs = requestRemoveGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveGroupRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse - } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesRSRecurse - } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestReviewAuditRequestAttrTypesRSRecurse - } else { - attrs = requestReviewAuditRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestReviewAuditRequestAttrTypesDSRecurse - } else { - attrs = requestReviewAuditRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRevokeAdminRequestAttrTypesRSRecurse - } else { - attrs = requestRevokeAdminRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRevokeAdminRequestAttrTypesDSRecurse - } else { - attrs = requestRevokeAdminRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAdmin()) - diags.Append(d...) - obj["admin"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesRSRecurse - } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse - } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) - diags.Append(d...) - obj["requesting_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesRSRecurse - } else { - attrs = requestSetupNestedGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse - } else { - attrs = requestSetupNestedGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) - diags.Append(d...) - obj["requesting_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesRSRecurse - } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferApplicationOwnershipRequestAttrTypesRSRecurse - } else { - attrs = requestTransferApplicationOwnershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferApplicationOwnershipRequestAttrTypesDSRecurse - } else { - attrs = requestTransferApplicationOwnershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferAuditorGroupRequestAttrTypesRSRecurse - } else { - attrs = requestTransferAuditorGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferAuditorGroupRequestAttrTypesDSRecurse - } else { - attrs = requestTransferAuditorGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse - } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse - } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse - } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse - } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse - } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse - } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse - } else { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse - } else { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse - } else { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestUpdateGroupMembershipRequestAttrTypesRSRecurse - } else { - attrs = requestUpdateGroupMembershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) - obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) - obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestUpdateGroupMembershipRequestAttrTypesDSRecurse - } else { - attrs = requestUpdateGroupMembershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccountToUpdate()) - diags.Append(d...) - obj["account_to_update"] = val - } - obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) - obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestVerifyInternalAccountRequestAttrTypesRSRecurse - } else { - attrs = requestVerifyInternalAccountRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestVerifyInternalAccountRequestAttrTypesDSRecurse - } else { - attrs = requestVerifyInternalAccountRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) - obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetPassword()) - diags.Append(d...) - obj["password"] = val - } - obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSServiceaccountServiceAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSServiceaccountServiceAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountPrimerAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountPrimerAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountStatusAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountStatusAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) - diags.Append(d...) - obj["password_scheme_enabled_stats"] = val - } - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) - diags.Append(d...) - obj["system_stats"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) - diags.Append(d...) - obj["password_scheme_enabled_stats"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) - diags.Append(d...) - obj["system_stats"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = simpleStringValueAttrTypesRSRecurse - } else { - attrs = simpleStringValueAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["value"] = types.StringPointerValue(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = simpleStringValueAttrTypesDSRecurse - } else { - attrs = simpleStringValueAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["value"] = types.StringPointerValue(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = simpleVersionInfoAttrTypesRSRecurse - } else { - attrs = simpleVersionInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["contract_versions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(int64(tkh)) - }) - diags.Append(d...) - obj["contract_versions"] = val - } - obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = simpleVersionInfoAttrTypesDSRecurse - } else { - attrs = simpleVersionInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["contract_versions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(int64(tkh)) - }) - diags.Append(d...) - obj["contract_versions"] = val - } - obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultHolderAttrTypesRSRecurse - } else { - attrs = vaultDeletedVaultHolderAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) - obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultHolderAttrTypesDSRecurse - } else { - attrs = vaultDeletedVaultHolderAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) - obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse - } else { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultDeletedVaultHolder(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse - } else { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultDeletedVaultHolder(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse - } else { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse - } else { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultRecoveryAttrTypesRSRecurse - } else { - attrs = vaultDeletedVaultRecoveryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - obj["target_group_uuid"] = withUuidToTF(tkh.GetTargetGroup()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultDeletedVaultRecoveryAttrTypesDSRecurse - } else { - attrs = vaultDeletedVaultRecoveryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetTargetGroup()) - diags.Append(d...) - obj["target_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultMoveVaultRecordAttrTypesRSRecurse - } else { - attrs = vaultMoveVaultRecordAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - { - val, d := tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) - diags.Append(d...) - obj["share_duration"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultMoveVaultRecordAttrTypesDSRecurse - } else { - attrs = vaultMoveVaultRecordAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["action"] = stringerToTF(tkh.GetAction()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) - diags.Append(d...) - obj["share_duration"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse - } else { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse - } else { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultAttrTypesRSRecurse - } else { - attrs = vaultVaultAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["records"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["records"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultAttrTypesDSRecurse - } else { - attrs = vaultVaultAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["access_available"] = types.BoolPointerValue(tkh.GetAccessAvailable()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["records"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["records"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultHolderAttrTypesRSRecurse - } else { - attrs = vaultVaultHolderAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultHolder(recurse bool, tkh keyhubmodel.VaultVaultHolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultHolderAttrTypesDSRecurse - } else { - attrs = vaultVaultHolderAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordLinkableWrapperAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordLinkableWrapperAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordPrimerAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordPrimerAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordSecretsAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordSecretsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["file"] = types.StringPointerValue(tkh.GetFile()) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - obj["totp"] = types.StringPointerValue(tkh.GetTotp()) - obj["write_totp"] = types.BoolPointerValue(tkh.GetWriteTotp()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecordSecrets(recurse bool, tkh keyhubmodel.VaultVaultRecordSecretsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordSecretsAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordSecretsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["file"] = types.StringPointerValue(tkh.GetFile()) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - obj["totp"] = types.StringPointerValue(tkh.GetTotp()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordShareAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordShareAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVaultRecordShareable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordShareAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordShareAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordShareSummaryAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordShareSummaryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["children"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultVaultRecordShare(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["children"] = val - } - { - val, d := tkhToTFObjectRSVaultVaultRecordShare(recurse, tkh.GetParent()) - diags.Append(d...) - obj["parent"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecordShareSummary(recurse bool, tkh keyhubmodel.VaultVaultRecordShareSummaryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordShareSummaryAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordShareSummaryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["children"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetChildren(), func(tkh keyhubmodel.VaultVaultRecordShareable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultVaultRecordShare(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["children"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordShare(recurse, tkh.GetParent()) - diags.Append(d...) - obj["parent"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecord_additionalObjectsAttrTypesRSRecurse - } else { - attrs = vaultVaultRecord_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) - obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) - { - val, d := tkhToTFObjectRSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } - { - val, d := tkhToTFObjectRSVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) - diags.Append(d...) - obj["share_summary"] = val - } - { - val, d := tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) - diags.Append(d...) - obj["shares"] = val - } - { - val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - { - val, d := tkhToTFObjectRSVaultVaultHolder(recurse, tkh.GetVaultholder()) - diags.Append(d...) - obj["vaultholder"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubmodel.VaultVaultRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecord_additionalObjectsAttrTypesDSRecurse - } else { - attrs = vaultVaultRecord_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetParent()) - diags.Append(d...) - obj["parent"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) - diags.Append(d...) - obj["secret"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordShareSummary(recurse, tkh.GetShareSummary()) - diags.Append(d...) - obj["share_summary"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) - diags.Append(d...) - obj["shares"] = val - } - { - val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultHolder(recurse, tkh.GetVaultholder()) - diags.Append(d...) - obj["vaultholder"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecoveryAttrTypesRSRecurse - } else { - attrs = vaultVaultRecoveryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecoveryAttrTypesDSRecurse - } else { - attrs = vaultVaultRecoveryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockAttrTypesRSRecurse - } else { - attrs = vaultVaultUnlockAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockAttrTypesDSRecurse - } else { - attrs = vaultVaultUnlockAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockResponseAttrTypesRSRecurse - } else { - attrs = vaultVaultUnlockResponseAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) - obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockResponseAttrTypesDSRecurse - } else { - attrs = vaultVaultUnlockResponseAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) - obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookAttrTypesRSRecurse - } else { - attrs = webhookWebhookAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) - obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) - obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) - obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) - obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) - obj["client_uuid"] = withUuidToTF(tkh.GetClient()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) - obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookAttrTypesDSRecurse - } else { - attrs = webhookWebhookAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["all_types"] = types.BoolPointerValue(tkh.GetAllTypes()) - obj["authentication_scheme"] = stringerToTF(tkh.GetAuthenticationScheme()) - obj["basic_auth_password"] = types.StringPointerValue(tkh.GetBasicAuthPassword()) - obj["basic_auth_username"] = types.StringPointerValue(tkh.GetBasicAuthUsername()) - obj["bearer_token"] = types.StringPointerValue(tkh.GetBearerToken()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["custom_header_name"] = types.StringPointerValue(tkh.GetCustomHeaderName()) - obj["custom_header_value"] = types.StringPointerValue(tkh.GetCustomHeaderValue()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.AuditAuditRecordType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["verbose_payloads"] = types.BoolPointerValue(tkh.GetVerbosePayloads()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryAttrTypesRSRecurse - } else { - attrs = webhookWebhookDeliveryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) - diags.Append(d...) - obj["payload"] = val - } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryAttrTypesDSRecurse - } else { - attrs = webhookWebhookDeliveryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) - diags.Append(d...) - obj["payload"] = val - } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse - } else { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSWebhookWebhookDelivery(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse - } else { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSWebhookWebhookDelivery(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse - } else { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse - } else { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookLinkableWrapperAttrTypesRSRecurse - } else { - attrs = webhookWebhookLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookLinkableWrapperAttrTypesDSRecurse - } else { - attrs = webhookWebhookLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookNameUuidAttrTypesRSRecurse - } else { - attrs = webhookWebhookNameUuidAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectRSLinkable(recurse, tkh.GetObject()) - diags.Append(d...) - obj["object"] = val - } - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookNameUuidAttrTypesDSRecurse - } else { - attrs = webhookWebhookNameUuidAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSLinkable(recurse, tkh.GetObject()) - diags.Append(d...) - obj["object"] = val - } - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookPushAttrTypesRSRecurse - } else { - attrs = webhookWebhookPushAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) - diags.Append(d...) - obj["by_party"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) - diags.Append(d...) - obj["group2"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) - diags.Append(d...) - obj["group_classification"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) - diags.Append(d...) - obj["modification_request"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookPushAttrTypesDSRecurse - } else { - attrs = webhookWebhookPushAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) - diags.Append(d...) - obj["by_party"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) - diags.Append(d...) - obj["group2"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) - diags.Append(d...) - obj["group_classification"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) - diags.Append(d...) - obj["modification_request"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhook_additionalObjectsAttrTypesRSRecurse - } else { - attrs = webhookWebhook_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhook_additionalObjectsAttrTypesDSRecurse - } else { - attrs = webhookWebhook_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditInfo() - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditInfo() - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - tkh.SetLastModifiedBy(objAttrs["last_modified_by"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewErrorReport() - tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplicationErrorParameters(val) - } - tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetErrorDetails(val) - } - tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetStacktrace(val) - } - return tkh, diags -} - -func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewErrorReport() - tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplicationErrorParameters(val) - } - tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetErrorDetails(val) - } - tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetStacktrace(val) - } - return tkh, diags -} - -func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() - return tkh, diags -} - -func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() - return tkh, diags -} - -func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGeneratedSecret() - tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGeneratedSecret() - tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLinkable() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLinkable() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNonLinkable() - return tkh, diags -} - -func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNonLinkable() - return tkh, diags -} - -func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRestLink() - tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRestLink() - tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSegmentCount() - tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSegmentCount() - tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetAuditAuditRecordType(val) - } - { - val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDateTime(val) - } - tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - if recurse { - { - val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetAuditAuditRecordType(val) - } - { - val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDateTime(val) - } - tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - if recurse { - { - val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { - tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { - tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) - } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) - } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountBulkUpdate() - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) - }) - diags.Append(d...) - tkh.SetAction(val) - } - tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { - return val.(basetypes.Int64Value).ValueInt64() - }) - diags.Append(d...) - tkh.SetSelectedAccounts(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountBulkUpdate() - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) - }) - diags.Append(d...) - tkh.SetAction(val) - } - tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { - return val.(basetypes.Int64Value).ValueInt64() - }) - diags.Append(d...) - tkh.SetSelectedAccounts(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountChangeLocale() - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountChangeLocale() - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { - tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { - tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() - tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() - tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountSettings() - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDefaultOrganizationalUnit(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) - diags.Append(d...) - tkh.SetPasswordMode(val) - } - tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorAuthentication(val) - } - tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) - diags.Append(d...) - tkh.SetVaultStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountSettings() - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["default_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDefaultOrganizationalUnit(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) - diags.Append(d...) - tkh.SetPasswordMode(val) - } - tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorAuthentication(val) - } - tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) - diags.Append(d...) - tkh.SetVaultStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount_additionalObjects() - tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPendingRecoveryRequests(val) - } - { - val, d := tfObjectToTKHRSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSettings(val) - } - { - val, d := tfObjectToTKHRSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStoredAttributes(val) - } - { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount_additionalObjects() - tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHDSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPendingRecoveryRequests(val) - } - { - val, d := tfObjectToTKHDSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSettings(val) - } - { - val, d := tfObjectToTKHDSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStoredAttributes(val) - } - { - val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountsAuditStats() - { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectoryStats(val) - } - { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTwoFAStats(val) - } - { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetValidityStats(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountsAuditStats() - { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectoryStats(val) - } - { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTwoFAStats(val) - } - { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetValidityStats(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() - return tkh, diags -} - -func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccount() - { - val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.AuthAccount = *(val.(*keyhubmodel.AuthAccount)) - tkh.SetTypeEscaped(dtype) - } - } - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetActivationDeadline(val) - } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) - } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetActivationDeadline(val) - } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { - tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { - tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthMoveInternalAccount() - { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetInternalDirectory(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthMoveInternalAccount() - { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetInternalDirectory(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthPermission() - tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetInstances(val) - } - { - val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetOperations(val) - } - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthPermission() - tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetInstances(val) - } - { - val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetOperations(val) - } - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttribute() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttribute() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttributes() - { - val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { - tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAttributes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttributes() - { - val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { - tkh, d := tfObjectToTKHDSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAttributes(val) - } - return tkh, diags -} - -func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return *val.(*keyhubmodel.CertificateCertificateType) - }) - diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) - } - { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCertificateData(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetKeyData(val) - } - if recurse { - { - val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return *val.(*keyhubmodel.CertificateCertificateType) - }) - diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) - } - { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCertificateData(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetKeyData(val) - } - if recurse { - { - val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { - tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { - tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificatePrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return *val.(*keyhubmodel.CertificateCertificateType) - }) - diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) - } - { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCertificateData(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificatePrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return *val.(*keyhubmodel.CertificateCertificateType) - }) - diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) - } - { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCertificateData(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { - tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { - tkh, d := tfObjectToTKHDSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupclients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupclients(val) - } - { - val, d := tfObjectToTKHDSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientLdapClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSharedSecret(val) - } - tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientLdapClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSharedSecret(val) - } - tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSharedSecret(val) - } - tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSharedSecret(val) - } - tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetValue(val) - } - if recurse { - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetValue(val) - } - if recurse { - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { - tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { - tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetValue(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - if recurse { - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetValue(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - if recurse { - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { - tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { - tkh, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() - return tkh, diags -} - -func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() - return tkh, diags -} - -func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientSaml2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - { - val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) - diags.Append(d...) - tkh.SetSubjectFormat(val) - } - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientSaml2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - { - val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) - diags.Append(d...) - tkh.SetSubjectFormat(val) - } - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewClientSaml2Client_attributes() - return tkh, diags -} - -func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewClientSaml2Client_attributes() - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { - tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { - tkh, d := tfObjectToTKHDSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() - tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { - return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() - tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { - return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectorySummaryType(val) - } - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectorySummaryType(val) - } - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { - tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { - tkh, d := tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryInternalDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryInternalDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) - diags.Append(d...) - tkh.SetDialect(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) - diags.Append(d...) - tkh.SetPasswordRecovery(val) - } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) - diags.Append(d...) - tkh.SetDialect(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) - diags.Append(d...) - tkh.SetPasswordRecovery(val) - } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) - diags.Append(d...) - tkh.SetVendorEscaped(val) - } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) - diags.Append(d...) - tkh.SetVendorEscaped(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup() - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := tfObjectToTKHDSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { - tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { - tkh, d := tfObjectToTKHDSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuditConfig(val) - } - tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupAuditing(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupDelegation(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupMembership(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupProvisioning(val) - } - { - val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAuthorizingGroupTypes(val) - } - { - val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClassification(val) - } - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { - return *val.(*keyhubmodel.GroupGroupExtendedAccess) - }) - diags.Append(d...) - tkh.SetExtendedAccess(val) - } - tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNestedUnder(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { - return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) - }) - diags.Append(d...) - tkh.SetVaultRecovery(val) - } - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuditConfig(val) - } - tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_auditing"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizingGroupAuditing(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_delegation"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizingGroupDelegation(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_membership"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizingGroupMembership(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["authorizing_group_provisioning"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizingGroupProvisioning(val) - } - { - val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAuthorizingGroupTypes(val) - } - { - val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, false, objAttrs["classification"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClassification(val) - } - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { - return *val.(*keyhubmodel.GroupGroupExtendedAccess) - }) - diags.Append(d...) - tkh.SetExtendedAccess(val) - } - tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["nested_under"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNestedUnder(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { - return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) - }) - diags.Append(d...) - tkh.SetVaultRecovery(val) - } - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { - tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { - tkh, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountNesting() - tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountNesting() - tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountStatus() - { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountStatus() - { - val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAdminMail() - tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAdminMail() - tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { - tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccounts(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetReviewedAt(val) - } - tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetSubmittedAt(val) - } - tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { - tkh, d := tfObjectToTKHDSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccounts(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetReviewedAt(val) - } - tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetSubmittedAt(val) - } - tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) - diags.Append(d...) - tkh.SetAction(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) - diags.Append(d...) - tkh.SetAction(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditConfig() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetMonths(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditConfig() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetMonths(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { - tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { - tkh, d := tfObjectToTKHDSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditingInfo() - { - val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetAuditDueDate(val) - } - { - val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastAuditDate(val) - } - tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditingInfo() - { - val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetAuditDueDate(val) - } - { - val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastAuditDate(val) - } - tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetRequiredMonths(val) - } - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetRequiredMonths(val) - } - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationInfo() - tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationInfo() - tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() - { - val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClassificaton(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() - { - val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClassificaton(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { - tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { - tkh, d := tfObjectToTKHDSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { - tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { - tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupInfo() - tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupInfo() - tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - { - val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { - tkh, d := tfObjectToTKHRSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSegments(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - { - val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { - tkh, d := tfObjectToTKHDSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSegments(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup_additionalObjects() - { - val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccounts(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdministeredClients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdministeredSystems(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmins(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizedGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "group.AuthorizedGroupsWrapper"}) - } - } - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientPermissions(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministeredSystems(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupauditinginfo(val) - } - { - val, d := tfObjectToTKHRSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupinfo(val) - } - { - val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdesk(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMyaccount(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMydelegatedaccount(val) - } - { - val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNestedGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedClients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedDirectories(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedGroupsOnSystem(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "provisioning.OwnedGroupOnSystemsWrapper"}) - } - } - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedOrganizationalUnits(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedSystems(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecentAudits(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) - diags.Append(d...) - tkh.SetRequeststatus(val) - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccounts(val) - } - { - val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystems(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhooks(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup_additionalObjects() - { - val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccounts(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdministeredClients(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdministeredSystems(val) - } - { - val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmins(val) - } - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizedGroups(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientPermissions(val) - } - { - val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClients(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministeredSystems(val) - } - { - val, d := tfObjectToTKHDSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupauditinginfo(val) - } - { - val, d := tfObjectToTKHDSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupinfo(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdesk(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMyaccount(val) - } - { - val, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMydelegatedaccount(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNestedGroups(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedClients(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedDirectories(val) - } - { - val, d := tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedGroupsOnSystem(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedOrganizationalUnits(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedSystems(val) - } - { - val, d := tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecentAudits(val) - } - { - val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) - diags.Append(d...) - tkh.SetRequeststatus(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccounts(val) - } - { - val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystems(val) - } - { - val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhooks(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupsAuditStats() - tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetClassifications(val) - } - tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupsAuditStats() - tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetClassifications(val) - } - tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { - tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { - tkh, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { - tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { - tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { - tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { - tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() - { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) - } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCustomerDomains(val) - } - { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetDetails(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpirationTime(val) - } - { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetFeatures(val) - } - { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetIssueTime(val) - } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetNotBeforeTime(val) - } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() - { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) - } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCustomerDomains(val) - } - { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetDetails(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpirationTime(val) - } - { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetFeatures(val) - } - { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetIssueTime(val) - } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetNotBeforeTime(val) - } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarker() - { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) - diags.Append(d...) - tkh.SetLevel(val) - } - { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) - diags.Append(d...) - tkh.SetMarkItemMarkerType(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarker() - { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) - diags.Append(d...) - tkh.SetLevel(val) - } - { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) - diags.Append(d...) - tkh.SetMarkItemMarkerType(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewMarkItemMarker_parameters() - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewMarkItemMarker_parameters() - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarkers() - { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetMarkers(val) - } - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarkers() - { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetMarkers(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() - { - val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - { - val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLdapClient(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return *val.(*keyhubmodel.NotificationCertificateUsage) - }) - diags.Append(d...) - tkh.SetUsage(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() - { - val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - { - val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLdapClient(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return *val.(*keyhubmodel.NotificationCertificateUsage) - }) - diags.Append(d...) - tkh.SetUsage(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() - { - val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDueDate(val) - } - { - val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return *val.(*keyhubmodel.AuditAuditRequiredSourceType) - }) - diags.Append(d...) - tkh.SetNotificationGroupAuditRequiredNotificationType(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() - { - val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDueDate(val) - } - { - val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return *val.(*keyhubmodel.AuditAuditRequiredSourceType) - }) - diags.Append(d...) - tkh.SetNotificationGroupAuditRequiredNotificationType(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() - { - val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - { - val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return *val.(*keyhubmodel.GroupGroupEditRequiredReason) - }) - diags.Append(d...) - tkh.SetReason(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() - { - val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - { - val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return *val.(*keyhubmodel.GroupGroupEditRequiredReason) - }) - diags.Append(d...) - tkh.SetReason(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() - return tkh, diags -} - -func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() - return tkh, diags -} - -func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() - return tkh, diags -} - -func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() - return tkh, diags -} - -func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() - tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLicenseInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() - tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLicenseInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationModificationRequestNotification() - { - val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetAdmins(val) - } - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequest(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationModificationRequestNotification() - { - val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetAdmins(val) - } - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequest(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNotificationNotification() - return tkh, diags -} - -func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewNotificationNotification() - return tkh, diags -} - -func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationNotifications() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { - tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationNotifications() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { - tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() - tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() - tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() - { - val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() - { - val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() - { - val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetReleasedAt(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() - { - val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetReleasedAt(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() - { - val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecord(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() - { - val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecord(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { - tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { - tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetParent(val) - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["parent"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParent(val) - } - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { - tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { - tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { - tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { - tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { - tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { - tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCreateAsParentOf(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) - }) - diags.Append(d...) - tkh.SetResult(val) - } - { - val, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) - }) - diags.Append(d...) - tkh.SetResult(val) - } - { - val, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() - { - val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { - tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() - { - val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { - tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() - tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) - }) - diags.Append(d...) - tkh.SetState(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() - tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) - }) - diags.Append(d...) - tkh.SetState(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetProvgroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccounts(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetProvgroups(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccounts(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() - { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetProvisioningDuration(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningPermissionEndTime(val) - } - { - val, d := tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatusReport(val) - } - tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() - { - val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetProvisioningDuration(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningPermissionEndTime(val) - } - { - val, d := tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatusReport(val) - } - tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { - tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { - tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystems(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAD() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAD() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) - diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) - diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningStatus() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningStatus() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - { - val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - { - val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["new_admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestDisable2FARequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestDisable2FARequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinVaultRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinVaultRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAcceptParams(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestReviewAuditRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestReviewAuditRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAdmin(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmin(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccountToUpdate(val) - } - { - val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetCurrentEndDate(val) - } - { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetCurrentRights(val) - } - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - { - val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) - }) - diags.Append(d...) - tkh.SetUpdateGroupMembershipType(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account_to_update"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccountToUpdate(val) - } - { - val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetCurrentEndDate(val) - } - { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetCurrentRights(val) - } - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - { - val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) - }) - diags.Append(d...) - tkh.SetUpdateGroupMembershipType(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["password_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetPassword(val) - } - { - val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { - return *val.(*keyhubmodel.ServiceaccountPasswordRotationScheme) - }) - diags.Append(d...) - tkh.SetPasswordRotation(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["password"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPassword(val) - } - { - val, d := parseCastPointer(objAttrs["password_rotation"].(basetypes.StringValue), keyhubmodel.ParseServiceaccountPasswordRotationScheme, func(val any) keyhubmodel.ServiceaccountPasswordRotationScheme { - return *val.(*keyhubmodel.ServiceaccountPasswordRotationScheme) - }) - diags.Append(d...) - tkh.SetPasswordRotation(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { - tkh, d := tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { - tkh, d := tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { - tkh, d := tfObjectToTKHRSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { - tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { - tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { - tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroups(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() - tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPasswordSchemeEnabledStats(val) - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystemStats(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() - tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPasswordSchemeEnabledStats(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystemStats(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() - return tkh, diags -} - -func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleStringValue() - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleStringValue() - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleVersionInfo() - { - val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { - return int32(val.(basetypes.Int64Value).ValueInt64()) - }) - diags.Append(d...) - tkh.SetContractVersions(val) - } - tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleVersionInfo() - { - val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { - return int32(val.(basetypes.Int64Value).ValueInt64()) - }) - diags.Append(d...) - tkh.SetContractVersions(val) - } - tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) - diags.Append(d...) - tkh.SetVaultDeletedVaultHolderType(val) - } - if recurse { - { - val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) - diags.Append(d...) - tkh.SetVaultDeletedVaultHolderType(val) - } - if recurse { - { - val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { - tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { - tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() - tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["target_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTargetGroup(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() - tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["target_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTargetGroup(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return *val.(*keyhubmodel.VaultMoveVaultRecordAction) - }) - diags.Append(d...) - tkh.SetAction(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShareDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord() - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return *val.(*keyhubmodel.VaultMoveVaultRecordAction) - }) - diags.Append(d...) - tkh.SetAction(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShareDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVault() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetRecords(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVault() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccessAvailable(objAttrs["access_available"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetRecords(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewVaultVaultHolder() - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewVaultVaultHolder() - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { - tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { - tkh, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordSecrets() - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetWriteTotp(objAttrs["write_totp"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordSecrets() - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTotp(objAttrs["totp"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShare() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) - diags.Append(d...) - tkh.SetVaultVaultRecordShareType(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShare() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) - diags.Append(d...) - tkh.SetVaultVaultRecordShareType(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() - { - val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { - tkh, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetChildren(val) - } - { - val, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParent(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() - { - val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { - tkh, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetChildren(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParent(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetParent(val) - } - { - val, d := tfObjectToTKHRSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - { - val, d := tfObjectToTKHRSVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShareSummary(val) - } - { - val, d := tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShares(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - { - val, d := tfObjectToTKHRSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultholder(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["parent"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParent(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordShareSummary(ctx, recurse, objAttrs["share_summary"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShareSummary(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetShares(val) - } - { - val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - { - val, d := tfObjectToTKHDSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultholder(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecovery() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecovery() - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlock() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlock() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlockResponse() - { - val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiresAt(val) - } - tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlockResponse() - { - val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiresAt(val) - } - tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { - return *val.(*keyhubmodel.WebhookWebhookAuthenticationScheme) - }) - diags.Append(d...) - tkh.SetAuthenticationScheme(val) - } - tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAllTypes(objAttrs["all_types"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["authentication_scheme"].(basetypes.StringValue), keyhubmodel.ParseWebhookWebhookAuthenticationScheme, func(val any) keyhubmodel.WebhookWebhookAuthenticationScheme { - return *val.(*keyhubmodel.WebhookWebhookAuthenticationScheme) - }) - diags.Append(d...) - tkh.SetAuthenticationScheme(val) - } - tkh.SetBasicAuthPassword(objAttrs["basic_auth_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBasicAuthUsername(objAttrs["basic_auth_username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBearerToken(objAttrs["bearer_token"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetCustomHeaderName(objAttrs["custom_header_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomHeaderValue(objAttrs["custom_header_value"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPayload(val) - } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTriggerTime(val) - } - if recurse { - { - val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPayload(val) - } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTriggerTime(val) - } - if recurse { - { - val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { - tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { - tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { - tkh, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { - tkh, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookNameUuid() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetObject(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookNameUuid() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetObject(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookPush() - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetByParty(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup2(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupClassification(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetModificationRequest(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTimestamp(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetWebhookWebhookPushType(val) - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookPush() - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetByParty(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup2(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupClassification(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetModificationRequest(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTimestamp(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetWebhookWebhookPushType(val) - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func fillDataStructFromTFObjectRSAuditInfo(data *auditInfoDataRS, obj types.Object) { - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuditInfo(data *auditInfoDataDS, obj types.Object) { - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSErrorReport(data *errorReportDataRS, obj types.Object) { - data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) - data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) - data.Code = obj.Attributes()["code"].(basetypes.Int64Value) - data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) - data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) - data.Message = obj.Attributes()["message"].(basetypes.StringValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSErrorReport(data *errorReportDataDS, obj types.Object) { - data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) - data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) - data.Code = obj.Attributes()["code"].(basetypes.Int64Value) - data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) - data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) - data.Message = obj.Attributes()["message"].(basetypes.StringValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSGeneratedSecret(data *generatedSecretDataRS, obj types.Object) { - data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) - data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) - data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGeneratedSecret(data *generatedSecretDataDS, obj types.Object) { - data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) - data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) - data.Regenerate = obj.Attributes()["regenerate"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSLinkable(data *linkableDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLinkable(data *linkableDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNonLinkable(data *nonLinkableDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNonLinkable(data *nonLinkableDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRestLink(data *restLinkDataRS, obj types.Object) { - data.Href = obj.Attributes()["href"].(basetypes.StringValue) - data.ID = obj.Attributes()["id"].(basetypes.Int64Value) - data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRestLink(data *restLinkDataDS, obj types.Object) { - data.Href = obj.Attributes()["href"].(basetypes.StringValue) - data.ID = obj.Attributes()["id"].(basetypes.Int64Value) - data.Rel = obj.Attributes()["rel"].(basetypes.StringValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSSegmentCount(data *segmentCountDataRS, obj types.Object) { - data.Count = obj.Attributes()["count"].(basetypes.Int64Value) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj types.Object) { - data.Count = obj.Attributes()["count"].(basetypes.Int64Value) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) - data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) - data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) - data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) - data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) - data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) - data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) - data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) - data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) - data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) - data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) - data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) - data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) - data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) - data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) - data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) - data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) - data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) - data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) - data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) - data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) - data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) - data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) - data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) - data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) - data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) - data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthAccount(data *authAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataRS, obj types.Object) { - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) - data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataDS, obj types.Object) { - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) - data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuthAccountChangeLocale(data *authAccountChangeLocaleDataRS, obj types.Object) { - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthAccountChangeLocale(data *authAccountChangeLocaleDataDS, obj types.Object) { - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuthAccountPrimer(data *authAccountPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthAccountPrimer(data *authAccountPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataRS, obj types.Object) { - data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) - data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataDS, obj types.Object) { - data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) - data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSAuthAccountSettings(data *authAccountSettingsDataRS, obj types.Object) { - data.DefaultOrganizationalUnitUUID = obj.Attributes()["default_organizational_unit_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) - data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) - data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) - data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) - data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) - data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) - data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) - data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) - data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthAccountSettings(data *authAccountSettingsDataDS, obj types.Object) { - data.DefaultOrganizationalUnit = obj.Attributes()["default_organizational_unit"].(basetypes.ObjectValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) - data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) - data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) - data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) - data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) - data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) - data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) - data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) - data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthAccountStatus(data *authAccountStatusDataRS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSAuthAccountStatus(data *authAccountStatusDataDS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataRS, obj types.Object) { - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataDS, obj types.Object) { - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats(data *authAccountsAuditStatsDataRS, obj types.Object) { - data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) - data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats(data *authAccountsAuditStatsDataDS, obj types.Object) { - data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) - data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSAuthInternalAccount(data *authInternalAccountDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthInternalAccount(data *authInternalAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataRS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataDS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthMoveInternalAccount(data *authMoveInternalAccountDataRS, obj types.Object) { - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSAuthMoveInternalAccount(data *authMoveInternalAccountDataDS, obj types.Object) { - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthPermission(data *authPermissionDataRS, obj types.Object) { - data.Full = obj.Attributes()["full"].(basetypes.StringValue) - data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) - data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthPermission(data *authPermissionDataDS, obj types.Object) { - data.Full = obj.Attributes()["full"].(basetypes.StringValue) - data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) - data.Operations = obj.Attributes()["operations"].(basetypes.ListValue) - data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataRS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataDS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataRS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataDS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertificateDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertificateDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateCertificatePrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateCertificatePrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) - data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) - data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) - data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) - data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) - data.UsedForProvisioning = obj.Attributes()["used_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) - data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) - data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) - data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) - data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) - data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) - data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) - data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) - data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) - data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) - data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) - data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) - data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) - data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) - data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) - data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) - data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) - data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) - data.UseClientCredentials = obj.Attributes()["use_client_credentials"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) - data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) - data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) - data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) - data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSClientOAuth2ClientPermission_additionalObjects(data *clientOAuth2ClientPermission_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) - data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) - data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) - data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) - data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectoryPrimer(data *directoryAccountDirectoryPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportDataRS, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectoryStatusReport(data *directoryAccountDirectoryStatusReportDataDS, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.Int64Value) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) - data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) - data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) - data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) - data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(data *directoryAccountDirectorySummaryLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSDirectoryAccountDirectory_additionalObjects(data *directoryAccountDirectory_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSDirectoryInternalDirectory(data *directoryInternalDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSDirectoryInternalDirectory(data *directoryInternalDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) - data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) - data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) - data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) - data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) - data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) - data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) - data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) - data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) - data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) - data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) - data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) - data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) - data.Enforces2fa = obj.Attributes()["enforces2fa"].(basetypes.BoolValue) - data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) - data.Issuer = obj.Attributes()["issuer"].(basetypes.StringValue) - data.LogoutURL = obj.Attributes()["logout_url"].(basetypes.StringValue) - data.SendLoginHint = obj.Attributes()["send_login_hint"].(basetypes.BoolValue) - data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupAccountGroup(data *groupAccountGroupDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupAccountGroup(data *groupAccountGroupDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSGroupGroup(data *groupGroupDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) - data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) - data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) - data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) - data.AuthorizingGroupAuditingUUID = obj.Attributes()["authorizing_group_auditing_uuid"].(basetypes.StringValue) - data.AuthorizingGroupDelegationUUID = obj.Attributes()["authorizing_group_delegation_uuid"].(basetypes.StringValue) - data.AuthorizingGroupMembershipUUID = obj.Attributes()["authorizing_group_membership_uuid"].(basetypes.StringValue) - data.AuthorizingGroupProvisioningUUID = obj.Attributes()["authorizing_group_provisioning_uuid"].(basetypes.StringValue) - data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) - data.ClassificationUUID = obj.Attributes()["classification_uuid"].(basetypes.StringValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) - data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) - data.NestedUnderUUID = obj.Attributes()["nested_under_uuid"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) - data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) - data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupGroup(data *groupGroupDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) - data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) - data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) - data.Auditor = obj.Attributes()["auditor"].(basetypes.BoolValue) - data.AuthorizingGroupAuditing = obj.Attributes()["authorizing_group_auditing"].(basetypes.ObjectValue) - data.AuthorizingGroupDelegation = obj.Attributes()["authorizing_group_delegation"].(basetypes.ObjectValue) - data.AuthorizingGroupMembership = obj.Attributes()["authorizing_group_membership"].(basetypes.ObjectValue) - data.AuthorizingGroupProvisioning = obj.Attributes()["authorizing_group_provisioning"].(basetypes.ObjectValue) - data.AuthorizingGroupTypes = obj.Attributes()["authorizing_group_types"].(basetypes.ListValue) - data.Classification = obj.Attributes()["classification"].(basetypes.ObjectValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.ExtendedAccess = obj.Attributes()["extended_access"].(basetypes.StringValue) - data.HideAuditTrail = obj.Attributes()["hide_audit_trail"].(basetypes.BoolValue) - data.NestedUnder = obj.Attributes()["nested_under"].(basetypes.ObjectValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.PrivateGroup = obj.Attributes()["private_group"].(basetypes.BoolValue) - data.RecordTrail = obj.Attributes()["record_trail"].(basetypes.BoolValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.SingleManaged = obj.Attributes()["single_managed"].(basetypes.BoolValue) - data.VaultRecovery = obj.Attributes()["vault_recovery"].(basetypes.StringValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAccount(data *groupGroupAccountDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAccount(data *groupGroupAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAccountLinkableWrapper(data *groupGroupAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAccountNesting(data *groupGroupAccountNestingDataRS, obj types.Object) { - data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAccountNesting(data *groupGroupAccountNestingDataDS, obj types.Object) { - data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAccountStatus(data *groupGroupAccountStatusDataRS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAccountStatus(data *groupGroupAccountStatusDataDS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAdminMail(data *groupGroupAdminMailDataRS, obj types.Object) { - data.Body = obj.Attributes()["body"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAdminMail(data *groupGroupAdminMailDataDS, obj types.Object) { - data.Body = obj.Attributes()["body"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAudit(data *groupGroupAuditDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) - data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) - data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) - data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) - data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAudit(data *groupGroupAuditDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) - data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) - data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) - data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) - data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAuditAccount(data *groupGroupAuditAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAuditAccount(data *groupGroupAuditAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AccountValid = obj.Attributes()["account_valid"].(basetypes.BoolValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAuditConfig(data *groupGroupAuditConfigDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Months = obj.Attributes()["months"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAuditConfig(data *groupGroupAuditConfigDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Months = obj.Attributes()["months"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAuditLinkableWrapper(data *groupGroupAuditLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAudit_additionalObjects(data *groupGroupAudit_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAuditingInfo(data *groupGroupAuditingInfoDataRS, obj types.Object) { - data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) - data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) - data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) - data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) - data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) - data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) - data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) - data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSGroupGroupAuditingInfo(data *groupGroupAuditingInfoDataDS, obj types.Object) { - data.AuditDueDate = obj.Attributes()["audit_due_date"].(basetypes.StringValue) - data.LastAuditDate = obj.Attributes()["last_audit_date"].(basetypes.StringValue) - data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) - data.NrDisabledAccounts = obj.Attributes()["nr_disabled_accounts"].(basetypes.Int64Value) - data.NrDisabledManagers = obj.Attributes()["nr_disabled_managers"].(basetypes.Int64Value) - data.NrExpiredVaultRecords = obj.Attributes()["nr_expired_vault_records"].(basetypes.Int64Value) - data.NrManagers = obj.Attributes()["nr_managers"].(basetypes.Int64Value) - data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSGroupGroupClassification(data *groupGroupClassificationDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) - data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) - data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) - data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) - data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) - data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) - data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) - data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClassification(data *groupGroupClassificationDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) - data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) - data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) - data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) - data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) - data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) - data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) - data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataRS, obj types.Object) { - data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataDS, obj types.Object) { - data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataRS, obj types.Object) { - data.ClassificatonUUID = obj.Attributes()["classificaton_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataDS, obj types.Object) { - data.Classificaton = obj.Attributes()["classificaton"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClient(data *groupGroupClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClient(data *groupGroupClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClientLinkableWrapper(data *groupGroupClientLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupGroupClient_additionalObjects(data *groupGroupClient_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupFolder(data *groupGroupFolderDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupFolder(data *groupGroupFolderDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupInfo(data *groupGroupInfoDataRS, obj types.Object) { - data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) - data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) - data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) - data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) - data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) - data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSGroupGroupInfo(data *groupGroupInfoDataDS, obj types.Object) { - data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) - data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) - data.NrAudits = obj.Attributes()["nr_audits"].(basetypes.Int64Value) - data.NrClients = obj.Attributes()["nr_clients"].(basetypes.Int64Value) - data.NrProvisionedSystems = obj.Attributes()["nr_provisioned_systems"].(basetypes.Int64Value) - data.NrVaultRecords = obj.Attributes()["nr_vault_records"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupLinkableWrapper(data *groupGroupLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupPrimer(data *groupGroupPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSGroupGroupPrimer(data *groupGroupPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupPrimerLinkableWrapper(data *groupGroupPrimerLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataRS, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) - data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) - data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) - data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) - data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) - data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) - data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) - data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) - data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) - data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) - data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) - data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) - data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) - data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) - data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) - data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) - data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) - data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) - data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataDS, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) - data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) - data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) - data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) - data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) - data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) - data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) - data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) - data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) - data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) - data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) - data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) - data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) - data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) - data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) - data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) - data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) - data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) - data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataRS, obj types.Object) { - data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) - data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) - data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) - data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) - data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) - data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) - data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataDS, obj types.Object) { - data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) - data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) - data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) - data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) - data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) - data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) - data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSGroupProvisioningGroup(data *groupProvisioningGroupDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupProvisioningGroup(data *groupProvisioningGroupDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSGroupProvisioningGroupLinkableWrapper(data *groupProvisioningGroupLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSGroupProvisioningGroup_additionalObjects(data *groupProvisioningGroup_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataRS, obj types.Object) { - data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) - data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) - data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) - data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) - data.Details = obj.Attributes()["details"].(basetypes.ListValue) - data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) - data.Features = obj.Attributes()["features"].(basetypes.ListValue) - data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) - data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) - data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) - data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) - data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) - data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) - data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Version = obj.Attributes()["version"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataDS, obj types.Object) { - data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) - data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) - data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) - data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) - data.Details = obj.Attributes()["details"].(basetypes.ListValue) - data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) - data.Features = obj.Attributes()["features"].(basetypes.ListValue) - data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) - data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) - data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) - data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) - data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) - data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) - data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Version = obj.Attributes()["version"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { - data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { - data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSMarkItemMarker_parameters(data *markItemMarker_parametersDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSMarkItemMarker_parameters(data *markItemMarker_parametersDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, obj types.Object) { - data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, obj types.Object) { - data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataRS, obj types.Object) { - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataDS, obj types.Object) { - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataRS, obj types.Object) { - data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataDS, obj types.Object) { - data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataRS, obj types.Object) { - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataDS, obj types.Object) { - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataRS, obj types.Object) { - data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) - data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataDS, obj types.Object) { - data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) - data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataRS, obj types.Object) { - data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataDS, obj types.Object) { - data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationNotification(data *notificationNotificationDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNotificationNotification(data *notificationNotificationDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSNotificationNotifications(data *notificationNotificationsDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSNotificationNotifications(data *notificationNotificationsDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataRS, obj types.Object) { - data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataDS, obj types.Object) { - data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataRS, obj types.Object) { - data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataDS, obj types.Object) { - data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataRS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataDS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataRS, obj types.Object) { - data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataDS, obj types.Object) { - data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataRS, obj types.Object) { - data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataDS, obj types.Object) { - data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimer(data *organizationOrganizationalUnitPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataRS, obj types.Object) { - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Result = obj.Attributes()["result"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataDS, obj types.Object) { - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Result = obj.Attributes()["result"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataRS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataDS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataRS, obj types.Object) { - data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) - data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) - data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) - data.State = obj.Attributes()["state"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataDS, obj types.Object) { - data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) - data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) - data.NumberOfSuccessfulCalls = obj.Attributes()["number_of_successful_calls"].(basetypes.Int64Value) - data.State = obj.Attributes()["state"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGroupOnSystemDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGroupOnSystemDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupOnSystemPrimer(data *provisioningGroupOnSystemPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesDataRS, obj types.Object) { - data.Types = obj.Attributes()["types"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupOnSystemTypes(data *provisioningGroupOnSystemTypesDataDS, obj types.Object) { - data.Types = obj.Attributes()["types"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataRS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) - data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) - data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataDS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) - data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) - data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataRS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataDS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningProvisionedADDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) - data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningProvisionedADDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) - data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(data *provisioningProvisionedSystemPrimerLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataRS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) - data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) - data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) - data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) - data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) - data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) - data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) - data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) - data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsDataRS, obj types.Object) { - data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) - data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) - data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisioningManagementPermissions(data *provisioningProvisioningManagementPermissionsDataDS, obj types.Object) { - data.CreateNewGroupsAllowed = obj.Attributes()["create_new_groups_allowed"].(basetypes.BoolValue) - data.CreateServiceAccountsAllowed = obj.Attributes()["create_service_accounts_allowed"].(basetypes.BoolValue) - data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataRS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) - data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataDS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) - data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSProvisioningTokenPassword(data *provisioningTokenPasswordDataRS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTokenPasswordDataDS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataRS, obj types.Object) { - data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataDS, obj types.Object) { - data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataRS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataDS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataRS, obj types.Object) { - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataDS, obj types.Object) { - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.NewAdmin = obj.Attributes()["new_admin"].(basetypes.ObjectValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestCreateGroupRequest(data *requestCreateGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestDisable2FARequest(data *requestDisable2FARequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestExtendAccessRequest(data *requestExtendAccessRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestGrantAccessRequest(data *requestGrantAccessRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestJoinGroupRequest(data *requestJoinGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestJoinVaultRequest(data *requestJoinVaultRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataRS, obj types.Object) { - data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestPasswordResetRequest(data *requestPasswordResetRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) - data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) - data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataRS, obj types.Object) { - data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) - data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) - data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) - data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataDS, obj types.Object) { - data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) - data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) - data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) - data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestReviewAuditRequest(data *requestReviewAuditRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Admin = obj.Attributes()["admin"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) - data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) - data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AccountToUpdate = obj.Attributes()["account_to_update"].(basetypes.ObjectValue) - data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) - data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.PasswordUUID = obj.Attributes()["password_uuid"].(basetypes.StringValue) - data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Password = obj.Attributes()["password"].(basetypes.ObjectValue) - data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *serviceaccountServiceAccountGroupDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(data *serviceaccountServiceAccountGroup_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountLinkableWrapper(data *serviceaccountServiceAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimer(data *serviceaccountServiceAccountPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(data *serviceaccountServiceAccountPrimerLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataRS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataDS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataRS, obj types.Object) { - data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) - data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) - data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataDS, obj types.Object) { - data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) - data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) - data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSSimpleStringValue(data *simpleStringValueDataRS, obj types.Object) { - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSSimpleStringValue(data *simpleStringValueDataDS, obj types.Object) { - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSSimpleVersionInfo(data *simpleVersionInfoDataRS, obj types.Object) { - data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) - data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSSimpleVersionInfo(data *simpleVersionInfoDataDS, obj types.Object) { - data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) - data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) - data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) - data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataRS, obj types.Object) { - data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) - data.TargetGroupUUID = obj.Attributes()["target_group_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataDS, obj types.Object) { - data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) - data.TargetGroup = obj.Attributes()["target_group"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataRS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataDS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSVaultVault(data *vaultVaultDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Records = obj.Attributes()["records"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSVaultVault(data *vaultVaultDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccessAvailable = obj.Attributes()["access_available"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Records = obj.Attributes()["records"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSVaultVaultHolder(data *vaultVaultHolderDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSVaultVaultHolder(data *vaultVaultHolderDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSVaultVaultRecord(data *vaultVaultRecordDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecord(data *vaultVaultRecordDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecordPrimerLinkableWrapper(data *vaultVaultRecordPrimerLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecordSecrets(data *vaultVaultRecordSecretsDataRS, obj types.Object) { - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.File = obj.Attributes()["file"].(basetypes.StringValue) - data.Password = obj.Attributes()["password"].(basetypes.StringValue) - data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) - data.WriteTotp = obj.Attributes()["write_totp"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecordSecrets(data *vaultVaultRecordSecretsDataDS, obj types.Object) { - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.File = obj.Attributes()["file"].(basetypes.StringValue) - data.Password = obj.Attributes()["password"].(basetypes.StringValue) - data.Totp = obj.Attributes()["totp"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecordShare(data *vaultVaultRecordShareDataRS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecordShare(data *vaultVaultRecordShareDataDS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataRS, obj types.Object) { - data.Children = obj.Attributes()["children"].(basetypes.ListValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataDS, obj types.Object) { - data.Children = obj.Attributes()["children"].(basetypes.ListValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) - data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultVaultRecovery(data *vaultVaultRecoveryDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultRecovery(data *vaultVaultRecoveryDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultUnlock(data *vaultVaultUnlockDataRS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultUnlock(data *vaultVaultUnlockDataDS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataRS, obj types.Object) { - data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) - data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataDS, obj types.Object) { - data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) - data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) - data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) - data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) - data.BasicAuthUsername = obj.Attributes()["basic_auth_username"].(basetypes.StringValue) - data.BearerToken = obj.Attributes()["bearer_token"].(basetypes.StringValue) - data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.CustomHeaderName = obj.Attributes()["custom_header_name"].(basetypes.StringValue) - data.CustomHeaderValue = obj.Attributes()["custom_header_value"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) - data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) - data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) - data.BasicAuthUsername = obj.Attributes()["basic_auth_username"].(basetypes.StringValue) - data.BearerToken = obj.Attributes()["bearer_token"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.CustomHeaderName = obj.Attributes()["custom_header_name"].(basetypes.StringValue) - data.CustomHeaderValue = obj.Attributes()["custom_header_value"].(basetypes.StringValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) - data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) - data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) - data.Response = obj.Attributes()["response"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.Int64Value) - data.Time = obj.Attributes()["time"].(basetypes.Int64Value) - data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) - data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) - data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) - data.Response = obj.Attributes()["response"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.Int64Value) - data.Time = obj.Attributes()["time"].(basetypes.Int64Value) - data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataRS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataDS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookPush(data *webhookWebhookPushDataRS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) - data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) - data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) - data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookPush(data *webhookWebhookPushDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) - data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) - data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) - data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func dataSourceSchemaAttrsAuditInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_by"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsErrorReport(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["application_error"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application_error_parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), - Computed: true, - } - schemaAttrs["code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["error_details"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["exception"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["message"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reason"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["stacktrace"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsGeneratedSecret(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["generated_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["old_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["regenerate"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLinkable(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNonLinkable(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRestLink(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["href"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["rel"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["type_escaped"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["date_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_account"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_certificate"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_client"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_directory"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group2"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group_classification"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_organizational_unit"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_service_account"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_vault_record"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_webhook"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter1"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter2"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter3"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["performed_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["security_level"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuditAuditRecord(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["directory_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["email"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["locale"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["exclusive_selection"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["selected_accounts"] = dsschema.ListAttribute{ - ElementType: types.Int64Type, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["locale"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["pending2_f_a_recovery_request"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["pending_password_recovery_request"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["default_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["directory_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["in_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["in_multiple_organizational_units"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["key_hub_admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["multiple_organizational_units_exist"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["password_mode"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["two_factor_authentication"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["use_token_password"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["vault_status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["decline_recovery_requests"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_authentication_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["active_login"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["pending_recovery_requests"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse), - Computed: true, - } - schemaAttrs["settings"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountSettings(recurse), - Computed: true, - } - schemaAttrs["stored_attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse), - Computed: true, - } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["directory_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), - Computed: true, - } - schemaAttrs["two_f_a_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), - Computed: true, - } - schemaAttrs["validity_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["directory_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["email"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["locale"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["activation_code"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["company"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["first_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["telephone"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthInternalAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthPermission(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["full"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["instances"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["operations"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["type_escaped"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["value"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["attributes"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthStoredAccountAttribute(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["alias"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["certificate_data"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["expiration"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha1"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha256"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["global"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["key_data"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["alias"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["certificate_data"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["expiration"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha1"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha256"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["global"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsClientClientApplication(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["groupclients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), - Computed: true, - } - schemaAttrs["vault_record_count"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["bind_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), - Computed: true, - } - schemaAttrs["callback_u_r_i"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["confidential"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["debug_mode"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["id_token_claims"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["initiate_login_u_r_i"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["resource_u_r_is"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["use_client_credentials"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["value"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["value"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(false), - Computed: true, - } - schemaAttrs["metadata"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["metadata_url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["subject_format"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["accounts"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["reason"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["directory_account_directory_summary_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["dialect"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["password_recovery"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["search_bind_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["search_filter"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["acr_values"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logout_url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), - Computed: true, - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - }, - Computed: true, - } - schemaAttrs["group_count"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["application_administration"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), - Computed: true, - } - schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["auditor"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_auditing"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["authorizing_group_delegation"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["authorizing_group_membership"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["authorizing_group_provisioning"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["authorizing_group_types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["classification"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(false), - Computed: true, - } - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["extended_access"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["hide_audit_trail"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["nested_under"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["private_group"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["record_trail"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["single_managed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["vault_recovery"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["vault_requires_activation"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["connected"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["body"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), - }, - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_on_audit"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["submitted_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["submitted_by"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_valid"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["months"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupAudit(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit_due_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_audit_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nr_accounts"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_disabled_accounts"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_disabled_managers"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_expired_vault_records"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_managers"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_vault_records_with_end_date"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["authorizing_group_auditing_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_delegation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_membership_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_provisioning_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["default_classification"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["maximum_audit_interval"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["minimum_nr_managers"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["record_trail_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["required_months"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["rotating_password_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["vault_requires_activation"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nr_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["classificaton"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["info"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupClient(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nr_accounts"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_accounts_with_vault"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_audits"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_clients"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_provisioned_systems"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["nr_vault_records"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - }, - Computed: true, - } - schemaAttrs["segments"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsSegmentCount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["accounts"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["administered_clients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["administered_systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["admins"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Computed: true, - DeprecationMessage: "This property will be removed in a future version.", - } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["authorized_groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), - Computed: true, - } - schemaAttrs["client_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["clients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["content_administered_systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["groupauditinginfo"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse), - Computed: true, - } - schemaAttrs["groupinfo"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupInfo(recurse), - Computed: true, - } - schemaAttrs["helpdesk"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["myaccount"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, - } - schemaAttrs["mydelegatedaccount"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, - } - schemaAttrs["nested_groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_clients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_directories"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_groups_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_organizational_units"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["recent_audits"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["requeststatus"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - schemaAttrs["webhooks"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audited_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["classifications"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), - }, - Computed: true, - } - schemaAttrs["overdue_audit_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["overdue_vault_policies"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["unaudited_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["valid_vault_policies"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["vaults_without_policies"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), - Computed: true, - } - schemaAttrs["title"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["title"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["current_license_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["customer_company"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["customer_contact"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["customer_domains"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["details"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["expiration_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["features"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["issue_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["not_before_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["version"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["level"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["markers"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse), - Computed: true, - } - schemaAttrs["expiration"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - Computed: true, - } - schemaAttrs["usage"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["due_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - Computed: true, - } - schemaAttrs["notification_group_audit_required_notification_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - Computed: true, - } - schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), - Computed: true, - } - schemaAttrs["reason"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["active_accounts"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["license_info"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["admins"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["groups"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationNotifications(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsNotificationNotification(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["api_version"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["systems"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["released_at"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["depth"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Computed: true, - } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["user_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["result"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["status"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["number_of_failed_calls"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["number_of_not_permitted_calls"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["number_of_successful_calls"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["state"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["provgroups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - Computed: true, - } - schemaAttrs["provisioning_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_permission_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status_report"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), - Computed: true, - } - schemaAttrs["visible_on_dashboard"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Computed: true, - } - schemaAttrs["unlinked_count"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["next_u_i_d"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Computed: true, - } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["user_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uid"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["idp_domain"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Computed: true, - } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["user_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["gid"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, - } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["login_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, - } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, - } - schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Computed: true, - } - schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["make_manager"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["subject"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["extend_until"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["permission_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["managers"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["system_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["current_end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["current_rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["internal_account_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["password"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["password_rotation"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["disabled_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["password_scheme_enabled_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), - Computed: true, - } - schemaAttrs["system_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsSimpleStringValue(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["value"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["contract_versions"] = dsschema.ListAttribute{ - ElementType: types.Int64Type, - Computed: true, - } - schemaAttrs["key_hub_version"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["record_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["vault_deleted_vault_holder_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["target_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, - } - schemaAttrs["action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, - } - schemaAttrs["share_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["access_available"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["records"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["color"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["share_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["derived"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["filename"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["warning_period"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["color"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["share_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["file"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["totp"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["vault_vault_record_share_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["children"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), - }, - Computed: true, - } - schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), - Computed: true, - } - schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), - Computed: true, - } - schemaAttrs["share_summary"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse), - Computed: true, - } - schemaAttrs["shares"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), - Computed: true, - } - schemaAttrs["vaultholder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultHolder(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["expires_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["session_password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["all_types"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authentication_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["basic_auth_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["basic_auth_username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bearer_token"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["custom_header_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["custom_header_value"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["verbose_payloads"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), - Computed: true, - } - schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_headers"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["response"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["time"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["trigger_time"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLinkable(recurse), - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["by_party"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["group2"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["group_classification"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["parameter1"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter2"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter3"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["security_level"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["seq"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["timestamp"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, - } - schemaAttrs["webhook_webhook_push_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuditInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["created_by"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["last_modified_by"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["application_error"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_error_parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), - Optional: true, - } - schemaAttrs["code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["error_details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["exception"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["message"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["stacktrace"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsGeneratedSecret(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["generated_secret"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["old_secret"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["regenerate"] = rsschema.BoolAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["href"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["id"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["rel"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["type_escaped"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditAuditRecord_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["date_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_account"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_certificate"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_client"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_directory"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group2"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group_classification"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_organizational_unit"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_service_account"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_system"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_vault_record"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_webhook"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter1"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter2"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter3"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["performed_by"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["security_level"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuditAuditRecord(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["email"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id_in_directory"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_password_change_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["locale"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["token_password_enabled"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["action"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["exclusive_selection"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["selected_accounts"] = rsschema.ListAttribute{ - ElementType: types.Int64Type, - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["locale"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["pending2_f_a_recovery_request"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["pending_password_recovery_request"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["in_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["in_multiple_organizational_units"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["key_hub_admin"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["multiple_organizational_units_exist"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["password_mode"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["two_factor_authentication"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["use_token_password"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["vault_status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ - Optional: true, - } - schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ - Optional: true, - } - schemaAttrs["decline_recovery_requests"] = rsschema.BoolAttribute{ - Optional: true, - } - schemaAttrs["license_role"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ - Optional: true, - } - schemaAttrs["two_factor_authentication_enabled"] = rsschema.BoolAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["active_login"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["pending_recovery_requests"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), - Computed: true, - } - schemaAttrs["settings"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), - Computed: true, - } - schemaAttrs["stored_attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), - Computed: true, - } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["directory_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), - Optional: true, - } - schemaAttrs["two_f_a_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), - Optional: true, - } - schemaAttrs["validity_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["activation_code"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["company"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["first_name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["last_name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["telephone"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthInternalAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["status"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(recurse), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["full"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["instances"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["operations"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["type_escaped"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["value"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["attributes"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthStoredAccountAttribute(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsCertificateCertificate_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["alias"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["certificate_data"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["global"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_data"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsCertificateCertificate(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["alias"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["certificate_data"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["global"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsClientClientApplication(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ - Optional: true, - } - schemaAttrs["groupclients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Optional: true, - } - schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGeneratedSecret(recurse), - Optional: true, - } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), - Optional: true, - } - schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(false), - Optional: true, - } - schemaAttrs["callback_u_r_i"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["confidential"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["debug_mode"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["initiate_login_u_r_i"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["resource_u_r_is"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["use_client_credentials"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["value"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["value"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(false), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client_attributes(false), - Optional: true, - } - schemaAttrs["metadata"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["metadata_url"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["subject_format"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Optional: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["dialect"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["password_recovery"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["search_bind_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["search_filter"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["acr_values"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["issuer"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["logout_url"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Optional: true, - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - }, - Optional: true, - } - schemaAttrs["group_count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["admin"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["application_administration"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), - Optional: true, - } - schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["auditor"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["extended_access"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NOT_ALLOWED"), - } - schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["private_group"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["record_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["single_managed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("FULL"), - } - schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["connected"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - Optional: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["body"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), - }, - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_by"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["submitted_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["submitted_by"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["account_valid"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["action"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["months"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAudit(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit_due_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["last_audit_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_disabled_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_disabled_managers"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_expired_vault_records"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_managers"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_vault_records_with_end_date"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassification_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["authorizing_group_auditing_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["authorizing_group_delegation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["authorizing_group_membership_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["authorizing_group_provisioning_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["default_classification"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["maximum_audit_interval"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["minimum_nr_managers"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(1), - } - schemaAttrs["record_trail_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["required_months"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nr_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["info"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClient_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["client_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupClient(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_accounts_with_vault"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_audits"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_clients"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_provisioned_systems"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["nr_vault_records"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["admin"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - }, - Optional: true, - } - schemaAttrs["segments"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsSegmentCount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accounts"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Optional: true, - } - schemaAttrs["administered_clients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["administered_systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["admins"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Optional: true, - DeprecationMessage: "This property will be removed in a future version.", - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["authorized_groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), - Computed: true, - } - schemaAttrs["client_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Optional: true, - } - schemaAttrs["clients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["content_administered_systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["groupauditinginfo"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), - Computed: true, - } - schemaAttrs["groupinfo"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), - Computed: true, - } - schemaAttrs["helpdesk"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["myaccount"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, - } - schemaAttrs["mydelegatedaccount"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, - } - schemaAttrs["nested_groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_clients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_directories"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_groups_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_organizational_units"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["owned_systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["recent_audits"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["requeststatus"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - schemaAttrs["webhooks"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audited_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["classifications"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), - }, - Optional: true, - } - schemaAttrs["overdue_audit_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["overdue_vault_policies"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["unaudited_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["valid_vault_policies"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["vaults_without_policies"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), - Optional: true, - } - schemaAttrs["title"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["title"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["current_license_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_company"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_contact"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_domains"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["features"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["license_key"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["not_before_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["version"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["level"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["markers"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsMarkItemMarker(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsCertificateCertificate(recurse), - Optional: true, - } - schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(recurse), - Optional: true, - } - schemaAttrs["expiration"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(recurse), - Optional: true, - } - schemaAttrs["system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - Optional: true, - } - schemaAttrs["usage"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhook(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["due_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - Optional: true, - } - schemaAttrs["notification_group_audit_required_notification_type"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - Optional: true, - } - schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), - Optional: true, - } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["active_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["license_info"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["admins"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["groups"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsNotificationNotifications(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsNotificationNotification(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["api_version"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["systems"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["groups"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["released_at"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["record"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["depth"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["create_as_parent_of"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["result"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["status"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["number_of_failed_calls"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["number_of_not_permitted_calls"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["number_of_successful_calls"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["state"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["provgroups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Optional: true, - } - schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - Optional: true, - } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - Optional: true, - } - schemaAttrs["provisioning_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), - Optional: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["provisioning_permission_end_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status_report"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), - Optional: true, - } - schemaAttrs["visible_on_dashboard"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Optional: true, - } - schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["next_u_i_d"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(2000), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["idp_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_d_n"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["gid"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["login_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, - } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, - } - schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["groups"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Optional: true, - } - schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["make_manager"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["subject"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["extend_until"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["permission_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), - Optional: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["managers"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["account_action"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["current_end_date"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["current_rights"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["update_group_membership_type"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["password_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["password_rotation"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGeneratedSecret(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["disabled_count"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["password_scheme_enabled_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), - Optional: true, - } - schemaAttrs["system_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsSimpleStringValue(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["value"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["contract_versions"] = rsschema.ListAttribute{ - ElementType: types.Int64Type, - Optional: true, - } - schemaAttrs["key_hub_version"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["record_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["vault_deleted_vault_holder_type"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultDeletedVaultHolder(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["action"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MOVE"), - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["access_available"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["records"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["color"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NONE"), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["filename"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["warning_period"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["color"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NONE"), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["file"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["totp"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["write_totp"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["vault_vault_record_share_type"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["children"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), - }, - Optional: true, - } - schemaAttrs["parent"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ - Optional: true, - } - schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), - Optional: true, - } - schemaAttrs["share_summary"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordShareSummary(recurse), - Computed: true, - } - schemaAttrs["shares"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), - Optional: true, - } - schemaAttrs["vaultholder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultHolder(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["expires_at"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["session_password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhook_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["all_types"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["authentication_scheme"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NONE"), - } - schemaAttrs["basic_auth_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["basic_auth_username"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bearer_token"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["custom_header_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["custom_header_value"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("SECURE"), - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["url"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookPush(false), - Optional: true, - } - schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["request_headers"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["response"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["time"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["trigger_time"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsWebhookWebhook(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["object"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLinkable(recurse), - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["by_party"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["group2"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["group_classification"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["organizational_unit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["parameter1"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["parameter2"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["parameter3"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["security_level"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["seq"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["timestamp"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["vault_record"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, - } - schemaAttrs["webhook_webhook_push_type"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} - -func sliceToTF[T any](elemType attr.Type, vals []T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { - var diags diag.Diagnostics - ret := make([]attr.Value, 0, len(vals)) - for _, curVal := range vals { - ret = append(ret, toValue(curVal, &diags)) - } - return types.ListValue(elemType, ret) -} - -func tfToSlice[T any](val basetypes.ListValue, toValue func(attr.Value, *diag.Diagnostics) T) ([]T, diag.Diagnostics) { - var diags diag.Diagnostics - vals := val.Elements() - ret := make([]T, 0, len(vals)) - for _, curVal := range vals { - ret = append(ret, toValue(curVal, &diags)) - } - return ret, diags -} - -func int32PToInt64P(in *int32) *int64 { - if in == nil { - return nil - } - ret := int64(*in) - return &ret -} - -func int64PToInt32P(in *int64) *int32 { - if in == nil { - return nil - } - ret := int32(*in) - return &ret -} - -func stringerToTF[T fmt.Stringer](val *T) attr.Value { - if val == nil { - return types.StringNull() - } - return types.StringValue((*val).String()) -} - -func timeToTF(val time.Time) attr.Value { - ret, _ := val.MarshalText() - return types.StringValue(string(ret)) -} - -func timePointerToTF(val *time.Time) attr.Value { - if val == nil { - return types.StringNull() - } - ret, _ := val.MarshalText() - return types.StringValue(string(ret)) -} - -func tfToTime(val basetypes.StringValue) (time.Time, diag.Diagnostics) { - var diags diag.Diagnostics - parsed, err := time.Parse(time.RFC3339, val.ValueString()) - if err != nil { - diags.AddError("Conversion error", fmt.Sprintf("Unable to parse time: %s", err)) - } - return parsed, diags -} - -func tfToTimePointer(val basetypes.StringValue) (*time.Time, diag.Diagnostics) { - if val.IsNull() || val.IsUnknown() { - return nil, diag.Diagnostics{} - } - parsed, diags := tfToTime(val) - return &parsed, diags -} - -func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { - if val == nil { - return types.StringNull() - } - return types.StringPointerValue(val.GetUuid()) -} - -func parsePointer[T any](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { - if val.IsNull() || val.IsUnknown() { - return nil, diag.Diagnostics{} - } - parsed, diags := parse(val, parser) - return &parsed, diags -} - -func parsePointer2[T any](val basetypes.StringValue, parser func(string) (*T, error)) (*T, diag.Diagnostics) { - if val.IsNull() || val.IsUnknown() { - return nil, diag.Diagnostics{} - } - parsed, diags := parse(val, parser) - return parsed, diags -} - -func parse[T any](val basetypes.StringValue, parser func(string) (T, error)) (T, diag.Diagnostics) { - var diags diag.Diagnostics - parsed, err := parser(val.ValueString()) - if err != nil { - diags.AddError("Conversion error", fmt.Sprintf("Unable to parse %s: %s", val.ValueString(), err)) - } - return parsed, diags -} - -func parseCastPointer[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (*T, diag.Diagnostics) { - if val.IsNull() || val.IsUnknown() { - return nil, diag.Diagnostics{} - } - parsed, diags := parseCast(val, parser, caster) - return &parsed, diags -} - -func parseCast[T any, Z any](val basetypes.StringValue, parser func(string) (Z, error), caster func(Z) T) (T, diag.Diagnostics) { - parsed, diags := parse(val, parser) - var ret T - if diags.HasError() { - return ret, diags - } - return caster(parsed), diags -} - -func findFirst[T keyhubmodel.Linkableable](wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { - var diags diag.Diagnostics - var noVal T - if err != nil { - diags.AddError("Client Error", fmt.Sprintf("Unable to read %s, got error: %s", name, err)) - return noVal, diags - } - if len(wrapper.GetItems()) == 0 { - diags.AddError("Client Error", fmt.Sprintf("Unable to find %s with UUID %s", name, *uuid)) - return noVal, diags - } - return wrapper.GetItems()[0], nil - -} - -func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.GroupGroupable](wrapper, "group", uuid, err) -} - -func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Directory().Get(ctx, &keyhubdirectory.DirectoryRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubdirectory.DirectoryRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.DirectoryAccountDirectoryable](wrapper, "directory", uuid, err) -} - -func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Organizationalunit().Get(ctx, &keyhuborganizationalunit.OrganizationalunitRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhuborganizationalunit.OrganizationalunitRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.OrganizationOrganizationalUnitable](wrapper, "organizational unit", uuid, err) -} - -func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Certificate().Get(ctx, &keyhubcertificate.CertificateRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubcertificate.CertificateRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.CertificateCertificateable](wrapper, "certificate", uuid, err) -} - -func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.System().Get(ctx, &keyhubsystem.SystemRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubsystem.SystemRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.ProvisioningProvisionedSystemable](wrapper, "provisioned system", uuid, err) -} - -func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Groupclassification().Get(ctx, &keyhubgroupclassification.GroupclassificationRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubgroupclassification.GroupclassificationRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.GroupGroupClassificationable](wrapper, "group classification", uuid, err) -} - -func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Client().Get(ctx, &keyhubclient.ClientRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubclient.ClientRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) -} - -func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { - account, diag := findAuthAccountByUUID(ctx, uuid) - if account == nil { - return account, diag - } - return &account.(*keyhubmodel.AuthAccount).AuthAccountPrimer, diag -} - -func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Account().Get(ctx, &keyhubaccount.AccountRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubaccount.AccountRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.AuthAccountable](wrapper, "account", uuid, err) -} - -func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Serviceaccount().Get(ctx, &keyhubserviceaccount.ServiceaccountRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubserviceaccount.ServiceaccountRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.ServiceaccountServiceAccountable](wrapper, "service account", uuid, err) -} - -func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { - if uuid == nil { - return nil, diag.Diagnostics{} - } - client := ctx.Value("keyhub_client").(*keyhub.KeyHubClient) - wrapper, err := client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - return findFirst[keyhubmodel.VaultVaultRecordable](wrapper, "vault record", uuid, err) -} From cce7c39aad050c664857443be2470843b2d7d5ee Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 15 Sep 2023 14:46:21 +0200 Subject: [PATCH 10/34] Rename and first test for docs --- docs/data-sources/group.md | 3893 +++++++++++++++++ docs/data-sources/scaffolding_example.md | 30 - docs/index.md | 8 +- docs/resources/group.md | 1475 +++++++ docs/resources/scaffolding_example.md | 31 - .../provider-install-verification/main.tf | 43 +- go.mod | 50 +- go.sum | 56 + internal/provider/full-data-struct-ds.go | 87 + internal/provider/full-helpers.go | 54 +- internal/provider/full-object-attrs-ds.go | 87 + internal/provider/full-schema-ds.go | 1138 +++++ .../provider/full-tf-to-data-struct-ds.go | 87 + internal/provider/full-tkh-to-tf-ds.go | 87 + internal/provider/group_data_source.go | 12 +- internal/provider/provider.go | 2 +- main.go | 4 +- 17 files changed, 7024 insertions(+), 120 deletions(-) create mode 100644 docs/data-sources/group.md delete mode 100644 docs/data-sources/scaffolding_example.md create mode 100644 docs/resources/group.md delete mode 100644 docs/resources/scaffolding_example.md diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md new file mode 100644 index 0000000..7c2128f --- /dev/null +++ b/docs/data-sources/group.md @@ -0,0 +1,3893 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_group Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + Group data source +--- + +# keyhubpreview_group (Data Source) + +Group data source + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `admin` (Boolean) +- `application_administration` (Boolean) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--audit_config)) +- `audit_requested` (Boolean) +- `auditor` (Boolean) +- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_auditing)) +- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_delegation)) +- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_membership)) +- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_provisioning)) +- `authorizing_group_types` (List of String) +- `classification` (Attributes) (see [below for nested schema](#nestedatt--classification)) +- `description` (String) +- `extended_access` (String) +- `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--nested_under)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `private_group` (Boolean) +- `record_trail` (Boolean) +- `rotating_password_required` (Boolean) +- `single_managed` (Boolean) +- `vault_recovery` (String) +- `vault_requires_activation` (Boolean) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts)) +- `administered_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) +- `administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) +- `admins` (Attributes, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups)) +- `client_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) +- `clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients)) +- `content_administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) +- `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupauditinginfo)) +- `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupinfo)) +- `helpdesk` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) +- `myaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount)) +- `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount)) +- `nested_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--nested_groups)) +- `owned_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) +- `owned_directories` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) +- `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system)) +- `owned_organizational_units` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) +- `owned_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) +- `recent_audits` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) +- `requeststatus` (String) +- `service_accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) +- `systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems)) +- `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) +- `webhooks` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) + + +### Nested Schema for `additional_objects.accounts` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items)) + + +### Nested Schema for `additional_objects.accounts.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--directory)) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `two_factor_status` (String) +- `username` (String) +- `uuid` (String) +- `validity` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--visible_for_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--visible_for_provisioning--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_clients` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items)) + + +### Nested Schema for `additional_objects.administered_clients.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--technical_administrator)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.administered_systems` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items)) + + +### Nested Schema for `additional_objects.administered_systems.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_count` (Number) +- `active` (Boolean) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--content_administrator)) +- `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--technical_administrator)) +- `username_prefix` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.admins` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items)) + + +### Nested Schema for `additional_objects.admins.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--admins--items--directory)) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `two_factor_status` (String) +- `username` (String) +- `uuid` (String) +- `validity` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.admins.items.visible_for_provisioning` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--visible_for_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--visible_for_provisioning--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.admins.items.visible_for_provisioning.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.admins.items.visible_for_provisioning.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.admins.items.visible_for_provisioning` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.admins.items.visible_for_provisioning` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.authorized_groups` + +Read-Only: + +- `group_count` (Number) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items)) + + +### Nested Schema for `additional_objects.authorized_groups.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `admin` (Boolean) +- `application_administration` (Boolean) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--audit_config)) +- `audit_requested` (Boolean) +- `auditor` (Boolean) +- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_auditing)) +- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_delegation)) +- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_membership)) +- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_provisioning)) +- `authorizing_group_types` (List of String) +- `classification` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--classification)) +- `description` (String) +- `extended_access` (String) +- `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) +- `name` (String) +- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--nested_under)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) +- `private_group` (Boolean) +- `record_trail` (Boolean) +- `rotating_password_required` (Boolean) +- `single_managed` (Boolean) +- `uuid` (String) +- `vault_recovery` (String) +- `vault_requires_activation` (Boolean) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `months` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.client_permissions` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items)) + + +### Nested Schema for `additional_objects.client_permissions.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--client)) +- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--for_group)) +- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--for_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions)) +- `value` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--attributes)) +- `callback_u_r_i` (String) +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_u_r_i` (String) +- `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--permissions)) +- `resource_u_r_is` (String) +- `scopes` (List of String) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret)) +- `show_landing_page` (Boolean) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--technical_administrator)) +- `use_client_credentials` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.account_permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.attributes` + + + +### Nested Schema for `additional_objects.client_permissions.items.value.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.owner.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.owner.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.client_permissions.items.value.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.client_permissions.items.value.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.technical_administrator.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.technical_administrator.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.client_permissions.items.value` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.client_permissions.items.value` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.value.organizational_unit.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.client_permissions.items.value.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.client_permissions.items.value` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.value` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.clients` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items)) + + +### Nested Schema for `additional_objects.clients.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `activation_required` (Boolean) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--client)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator)) + + +### Nested Schema for `additional_objects.clients.items.technical_administrator` + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.content_administered_systems` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items)) + + +### Nested Schema for `additional_objects.content_administered_systems.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_count` (Number) +- `active` (Boolean) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--content_administrator)) +- `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--technical_administrator)) +- `username_prefix` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.groupauditinginfo` + +Read-Only: + +- `audit_due_date` (String) +- `last_audit_date` (String) +- `nr_accounts` (Number) +- `nr_disabled_accounts` (Number) +- `nr_disabled_managers` (Number) +- `nr_expired_vault_records` (Number) +- `nr_managers` (Number) +- `nr_vault_records_with_end_date` (Number) + + + +### Nested Schema for `additional_objects.groupinfo` + +Read-Only: + +- `nr_accounts` (Number) +- `nr_accounts_with_vault` (Number) +- `nr_audits` (Number) +- `nr_clients` (Number) +- `nr_provisioned_systems` (Number) +- `nr_vault_records` (Number) + + + +### Nested Schema for `additional_objects.helpdesk` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items)) + + +### Nested Schema for `additional_objects.helpdesk.items` + +Read-Only: + +- `directory_account_directory_summary_type` (String) +- `domain_restriction` (String) +- `fully_resolved_issuer` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) +- `username_customizable` (Boolean) + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Read-Only: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + + + + +### Nested Schema for `additional_objects.markers` + +Read-Only: + +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) + + +### Nested Schema for `additional_objects.markers.markers` + +Read-Only: + +- `level` (String) +- `mark_item_marker_type` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) + + +### Nested Schema for `additional_objects.markers.markers.parameters` + + + + + +### Nested Schema for `additional_objects.myaccount` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory)) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `two_factor_status` (String) +- `username` (String) +- `uuid` (String) +- `validity` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.myaccount.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.myaccount.directory.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.myaccount.directory.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.myaccount.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.myaccount.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.mydelegatedaccount` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory)) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `two_factor_status` (String) +- `username` (String) +- `uuid` (String) +- `validity` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.mydelegatedaccount.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.mydelegatedaccount.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.mydelegatedaccount.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.nested_groups` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items)) + + +### Nested Schema for `additional_objects.nested_groups.items` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.nested_groups.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.nested_groups.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_clients` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items)) + + +### Nested Schema for `additional_objects.owned_clients.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--technical_administrator)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.owned_directories` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items)) + + +### Nested Schema for `additional_objects.owned_directories.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--base_organizational_unit)) +- `default_directory` (Boolean) +- `directory_account_directory_primer_type` (String) +- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--helpdesk_group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) +- `restrict2fa` (Boolean) +- `rotating_password` (String) +- `username_customizable` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_groups_on_system` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items)) +- `unlinked_count` (Number) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) +- `name_in_system` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) +- `provisioning_group_on_system_primer_type` (String) +- `short_name_in_system` (String) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system)) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.owned_organizational_units` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items)) + + +### Nested Schema for `additional_objects.owned_organizational_units.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `depth` (Number) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--owner)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--parent)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_systems` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items)) + + +### Nested Schema for `additional_objects.owned_systems.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_count` (Number) +- `active` (Boolean) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--content_administrator)) +- `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--technical_administrator)) +- `username_prefix` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.recent_audits` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items)) + + +### Nested Schema for `additional_objects.recent_audits.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--accounts)) +- `comment` (String) +- `created_at` (String) +- `created_by` (String) +- `group_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) +- `name_on_audit` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) +- `reviewed_at` (String) +- `reviewed_by` (String) +- `status` (String) +- `submitted_at` (String) +- `submitted_by` (String) + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +Read-Only: + +- `account_uuid` (String) +- `account_valid` (Boolean) +- `action` (String) +- `comment` (String) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) +- `rights` (String) +- `username` (String) + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.service_accounts` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items)) + + +### Nested Schema for `additional_objects.service_accounts.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `active` (Boolean) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `name` (String) +- `password` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--password)) +- `password_rotation` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--system)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--technical_administrator)) +- `username` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.organizational_unit.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.systems` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items)) + + +### Nested Schema for `additional_objects.systems.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `activation_required` (Boolean) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_on_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) + + +### Nested Schema for `additional_objects.systems.items.permissions` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.systems.items.permissions.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.systems.items.permissions` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) +- `name_in_system` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) +- `provisioning_group_on_system_primer_type` (String) +- `short_name_in_system` (String) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system)) + + +### Nested Schema for `additional_objects.systems.items.permissions.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions.owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.systems.items.permissions.owner.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions.owner.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.systems.items.permissions.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions.system` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.systems.items.permissions.system.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions.system.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.systems.items.permissions.system.uuid.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions.system.uuid.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.systems.items.permissions.system.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.systems.items.permissions` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.vault` + +Read-Only: + +- `access_available` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) + + +### Nested Schema for `additional_objects.vault.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.records` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `color` (String) +- `derived` (Boolean) +- `end_date` (String) +- `filename` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) +- `share_end_time` (String) +- `types` (List of String) +- `url` (String) +- `username` (String) +- `uuid` (String) +- `warning_period` (String) + + +### Nested Schema for `additional_objects.vault.records.warning_period` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.records.warning_period` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.webhooks` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items)) + + +### Nested Schema for `additional_objects.webhooks.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--account)) +- `active` (Boolean) +- `all_types` (Boolean) +- `authentication_scheme` (String) +- `basic_auth_password` (String) +- `basic_auth_username` (String) +- `bearer_token` (String) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--client)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--client_certificate)) +- `custom_header_name` (String) +- `custom_header_value` (String) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--directory)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--system)) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--trusted_certificate)) +- `types` (List of String) +- `url` (String) +- `uuid` (String) +- `verbose_payloads` (Boolean) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `display_name` (String) +- `last_active` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `username` (String) +- `uuid` (String) +- `validity` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `subject_d_n` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.organizational_unit.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `subject_d_n` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + + +### Nested Schema for `audit_config` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) +- `months` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) + + +### Nested Schema for `audit_config.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `audit_config.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorizing_group_auditing` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_auditing--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_auditing--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorizing_group_auditing.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorizing_group_auditing.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorizing_group_delegation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_delegation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_delegation--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorizing_group_delegation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorizing_group_delegation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorizing_group_membership` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_membership--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_membership--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorizing_group_membership.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorizing_group_membership.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorizing_group_provisioning` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_provisioning--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorizing_group_provisioning.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorizing_group_provisioning.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `classification` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--classification--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--classification--permissions)) +- `uuid` (String) + + +### Nested Schema for `classification.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `classification.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `nested_under` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_under--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_under--permissions)) +- `uuid` (String) + + +### Nested Schema for `nested_under.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `nested_under.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `organizational_unit.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `organizational_unit.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/scaffolding_example.md b/docs/data-sources/scaffolding_example.md deleted file mode 100644 index 9c9de1e..0000000 --- a/docs/data-sources/scaffolding_example.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "scaffolding_example Data Source - terraform-provider-scaffolding-framework" -subcategory: "" -description: |- - Example data source ---- - -# scaffolding_example (Data Source) - -Example data source - -## Example Usage - -```terraform -data "scaffolding_example" "example" { - configurable_attribute = "some-value" -} -``` - - -## Schema - -### Optional - -- `configurable_attribute` (String) Example configurable attribute - -### Read-Only - -- `id` (String) Example identifier diff --git a/docs/index.md b/docs/index.md index 8eecef4..f0c9a53 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "scaffolding-framework Provider" +page_title: "keyhubpreview Provider" subcategory: "" description: |- --- -# scaffolding-framework Provider +# keyhubpreview Provider @@ -23,4 +23,6 @@ provider "scaffolding" { ### Optional -- `endpoint` (String) Example provider attribute +- `clientid` (String) +- `clientsecret` (String, Sensitive) +- `issuer` (String) diff --git a/docs/resources/group.md b/docs/resources/group.md new file mode 100644 index 0000000..ef7760f --- /dev/null +++ b/docs/resources/group.md @@ -0,0 +1,1475 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_group Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + Group resource +--- + +# keyhubpreview_group (Resource) + +Group resource + + + + +## Schema + +### Required + +- `name` (String) + +### Optional + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `application_administration` (Boolean) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--audit_config)) +- `authorizing_group_auditing_uuid` (String) +- `authorizing_group_delegation_uuid` (String) +- `authorizing_group_membership_uuid` (String) +- `authorizing_group_provisioning_uuid` (String) +- `classification_uuid` (String) +- `description` (String) +- `extended_access` (String) +- `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `nested_under_uuid` (String) +- `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `private_group` (Boolean) +- `record_trail` (Boolean) +- `rotating_password_required` (Boolean) +- `single_managed` (Boolean) +- `vault_recovery` (String) +- `vault_requires_activation` (Boolean) + +### Read-Only + +- `admin` (Boolean) +- `audit_requested` (Boolean) +- `auditor` (Boolean) +- `authorizing_group_types` (List of String) +- `uuid` (String) + + +### Nested Schema for `additional_objects` + +Optional: + +- `accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts)) +- `admins` (Attributes, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) +- `client_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) + +Read-Only: + +- `administered_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) +- `administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups)) +- `clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients)) +- `content_administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) +- `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupauditinginfo)) +- `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupinfo)) +- `helpdesk` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) +- `myaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount)) +- `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount)) +- `nested_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--nested_groups)) +- `owned_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) +- `owned_directories` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) +- `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system)) +- `owned_organizational_units` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) +- `owned_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) +- `recent_audits` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) +- `requeststatus` (String) +- `service_accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) +- `systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems)) +- `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) +- `webhooks` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) + + +### Nested Schema for `additional_objects.accounts` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items)) + + +### Nested Schema for `additional_objects.accounts.items` + +Required: + +- `rights` (String) +- `uuid` (String) + +Optional: + +- `directory_uuid` (String) +- `end_date` (String) +- `two_factor_status` (String) + +Read-Only: + +- `disconnected_nested` (Boolean) +- `last_used` (String) +- `nested` (Boolean) +- `provisioning_end_time` (String) +- `visible_for_provisioning` (Boolean) + + + + +### Nested Schema for `additional_objects.admins` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items)) + + +### Nested Schema for `additional_objects.admins.items` + +Required: + +- `rights` (String) +- `uuid` (String) + +Optional: + +- `directory_uuid` (String) +- `end_date` (String) +- `two_factor_status` (String) + +Read-Only: + +- `disconnected_nested` (Boolean) +- `last_used` (String) +- `nested` (Boolean) +- `provisioning_end_time` (String) +- `visible_for_provisioning` (Boolean) + + + + +### Nested Schema for `additional_objects.client_permissions` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items)) + + +### Nested Schema for `additional_objects.client_permissions.items` + +Required: + +- `value` (String) + +Optional: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--client)) +- `for_group_uuid` (String) +- `for_system_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions)) + + +### Nested Schema for `additional_objects.client_permissions.items.permissions` + +Required: + +- `client_client_application_primer_type` (String) +- `name` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--attributes)) +- `callback_u_r_i` (String) +- `client_id` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_u_r_i` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--permissions)) +- `resource_u_r_is` (String) +- `scopes` (List of String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) +- `show_landing_page` (Boolean) +- `technical_administrator_uuid` (String) +- `use_client_credentials` (Boolean) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--account_permissions)) +- `last_modified_at` (String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.client_permissions.items.permissions.attributes` + + + +### Nested Schema for `additional_objects.client_permissions.items.permissions.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.permissions.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.permissions.account_permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.client_permissions.items.permissions` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.client_permissions.items.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_clients` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items)) + + +### Nested Schema for `additional_objects.administered_clients.items` + +Required: + +- `client_client_application_primer_type` (String) +- `name` (String) + +Optional: + +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) +- `scopes` (List of String) +- `technical_administrator_uuid` (String) + +Read-Only: + +- `last_modified_at` (String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_systems` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items)) + + +### Nested Schema for `additional_objects.administered_systems.items` + +Required: + +- `content_administrator_uuid` (String) +- `name` (String) +- `owner_uuid` (String) +- `technical_administrator_uuid` (String) + +Optional: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) +- `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `username_prefix` (String) + +Read-Only: + +- `account_count` (Number) +- `external_uuid` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.authorized_groups` + +Optional: + +- `group_count` (Number) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items)) + + +### Nested Schema for `additional_objects.authorized_groups.items` + +Required: + +- `name` (String) + +Optional: + +- `application_administration` (Boolean) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--audit_config)) +- `authorizing_group_auditing_uuid` (String) +- `authorizing_group_delegation_uuid` (String) +- `authorizing_group_membership_uuid` (String) +- `authorizing_group_provisioning_uuid` (String) +- `classification_uuid` (String) +- `description` (String) +- `extended_access` (String) +- `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) +- `nested_under_uuid` (String) +- `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) +- `private_group` (Boolean) +- `record_trail` (Boolean) +- `rotating_password_required` (Boolean) +- `single_managed` (Boolean) +- `vault_recovery` (String) +- `vault_requires_activation` (Boolean) + +Read-Only: + +- `admin` (Boolean) +- `audit_requested` (Boolean) +- `auditor` (Boolean) +- `authorizing_group_types` (List of String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.authorized_groups.items.uuid` + +Optional: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--links)) +- `months` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--permissions)) + + +### Nested Schema for `additional_objects.authorized_groups.items.uuid.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.uuid.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.authorized_groups.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.authorized_groups.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.clients` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items)) + + +### Nested Schema for `additional_objects.clients.items` + +Optional: + +- `activation_required` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) +- `technical_administrator_uuid` (String) + +Read-Only: + +- `client_uuid` (String) +- `group_uuid` (String) + + +### Nested Schema for `additional_objects.clients.items.group_uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.clients.items.group_uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.content_administered_systems` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items)) + + +### Nested Schema for `additional_objects.content_administered_systems.items` + +Required: + +- `content_administrator_uuid` (String) +- `name` (String) +- `owner_uuid` (String) +- `technical_administrator_uuid` (String) + +Optional: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) +- `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `username_prefix` (String) + +Read-Only: + +- `account_count` (Number) +- `external_uuid` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.groupauditinginfo` + +Optional: + +- `audit_due_date` (String) +- `last_audit_date` (String) +- `nr_accounts` (Number) +- `nr_disabled_accounts` (Number) +- `nr_disabled_managers` (Number) +- `nr_expired_vault_records` (Number) +- `nr_managers` (Number) +- `nr_vault_records_with_end_date` (Number) + + + +### Nested Schema for `additional_objects.groupinfo` + +Optional: + +- `nr_accounts` (Number) +- `nr_accounts_with_vault` (Number) +- `nr_audits` (Number) +- `nr_clients` (Number) +- `nr_provisioned_systems` (Number) +- `nr_vault_records` (Number) + + + +### Nested Schema for `additional_objects.helpdesk` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items)) + + +### Nested Schema for `additional_objects.helpdesk.items` + +Optional: + +- `directory_account_directory_summary_type` (String) +- `domain_restriction` (String) +- `fully_resolved_issuer` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) +- `username_customizable` (Boolean) + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Optional: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + + + + +### Nested Schema for `additional_objects.markers` + +Optional: + +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) + + +### Nested Schema for `additional_objects.markers.markers` + +Optional: + +- `level` (String) +- `mark_item_marker_type` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) + + +### Nested Schema for `additional_objects.markers.markers.parameters` + + + + + +### Nested Schema for `additional_objects.myaccount` + +Required: + +- `rights` (String) +- `uuid` (String) + +Optional: + +- `directory_uuid` (String) +- `end_date` (String) +- `two_factor_status` (String) + +Read-Only: + +- `disconnected_nested` (Boolean) +- `last_used` (String) +- `nested` (Boolean) +- `provisioning_end_time` (String) +- `visible_for_provisioning` (Boolean) + + + +### Nested Schema for `additional_objects.mydelegatedaccount` + +Required: + +- `rights` (String) +- `uuid` (String) + +Optional: + +- `directory_uuid` (String) +- `end_date` (String) +- `two_factor_status` (String) + +Read-Only: + +- `disconnected_nested` (Boolean) +- `last_used` (String) +- `nested` (Boolean) +- `provisioning_end_time` (String) +- `visible_for_provisioning` (Boolean) + + + +### Nested Schema for `additional_objects.nested_groups` + +Optional: + +- `items` (List of String) + + + +### Nested Schema for `additional_objects.owned_clients` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items)) + + +### Nested Schema for `additional_objects.owned_clients.items` + +Required: + +- `client_client_application_primer_type` (String) +- `name` (String) + +Optional: + +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) +- `scopes` (List of String) +- `technical_administrator_uuid` (String) + +Read-Only: + +- `last_modified_at` (String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_directories` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items)) + + +### Nested Schema for `additional_objects.owned_directories.items` + +Required: + +- `base_organizational_unit_uuid` (String) +- `name` (String) +- `rotating_password` (String) + +Optional: + +- `active` (Boolean) +- `default_directory` (Boolean) +- `directory_account_directory_primer_type` (String) +- `helpdesk_group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) +- `restrict2fa` (Boolean) +- `username_customizable` (Boolean) + +Read-Only: + +- `account_validity_supported` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_groups_on_system` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items)) +- `unlinked_count` (Number) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items` + +Required: + +- `name_in_system` (String) +- `owner_uuid` (String) +- `provisioning_group_on_system_primer_type` (String) + +Optional: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) +- `short_name_in_system` (String) +- `system_uuid` (String) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system_uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system_uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_organizational_units` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items)) + + +### Nested Schema for `additional_objects.owned_organizational_units.items` + +Required: + +- `name` (String) +- `owner_uuid` (String) + +Optional: + +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `parent_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) + +Read-Only: + +- `depth` (Number) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_systems` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items)) + + +### Nested Schema for `additional_objects.owned_systems.items` + +Required: + +- `content_administrator_uuid` (String) +- `name` (String) +- `owner_uuid` (String) +- `technical_administrator_uuid` (String) + +Optional: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) +- `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `username_prefix` (String) + +Read-Only: + +- `account_count` (Number) +- `external_uuid` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.recent_audits` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items)) + + +### Nested Schema for `additional_objects.recent_audits.items` + +Required: + +- `status` (String) + +Optional: + +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--accounts)) +- `comment` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `group_name` (String) +- `name_on_audit` (String) +- `reviewed_at` (String) +- `reviewed_by` (String) +- `submitted_at` (String) +- `submitted_by` (String) + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +Optional: + +- `account_uuid` (String) +- `action` (String) +- `comment` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) +- `rights` (String) + +Read-Only: + +- `account_valid` (Boolean) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `nested` (Boolean) +- `username` (String) + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.service_accounts` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items)) + + +### Nested Schema for `additional_objects.service_accounts.items` + +Required: + +- `name` (String) +- `password_rotation` (String) +- `system_uuid` (String) + +Optional: + +- `active` (Boolean) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `password_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) +- `technical_administrator_uuid` (String) + +Read-Only: + +- `username` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.service_accounts.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.systems` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items)) + + +### Nested Schema for `additional_objects.systems.items` + +Optional: + +- `activation_required` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) + +Read-Only: + +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_on_system)) +- `group_uuid` (String) + + +### Nested Schema for `additional_objects.systems.items.group_uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.group_uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.group_uuid` + +Required: + +- `name_in_system` (String) +- `owner_uuid` (String) +- `provisioning_group_on_system_primer_type` (String) + +Optional: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_uuid--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_uuid--permissions)) +- `short_name_in_system` (String) +- `system_uuid` (String) + + +### Nested Schema for `additional_objects.systems.items.group_uuid.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.systems.items.group_uuid.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.vault` + +Optional: + +- `access_available` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) + + +### Nested Schema for `additional_objects.vault.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.records` + +Required: + +- `name` (String) + +Optional: + +- `color` (String) +- `end_date` (String) +- `filename` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) +- `url` (String) +- `username` (String) +- `warning_period` (String) + +Read-Only: + +- `derived` (Boolean) +- `share_end_time` (String) +- `types` (List of String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.vault.records.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.records.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.webhooks` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items)) + + +### Nested Schema for `additional_objects.webhooks.items` + +Required: + +- `url` (String) + +Optional: + +- `account_uuid` (String) +- `active` (Boolean) +- `all_types` (Boolean) +- `authentication_scheme` (String) +- `basic_auth_password` (String) +- `basic_auth_username` (String) +- `bearer_token` (String) +- `client_certificate_uuid` (String) +- `client_uuid` (String) +- `custom_header_name` (String) +- `custom_header_value` (String) +- `directory_uuid` (String) +- `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) +- `system_uuid` (String) +- `tls` (String) +- `trusted_certificate_uuid` (String) +- `types` (List of String) +- `verbose_payloads` (Boolean) + +Read-Only: + +- `uuid` (String) + + +### Nested Schema for `additional_objects.webhooks.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.webhooks.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `audit_config` + +Optional: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) +- `months` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) + + +### Nested Schema for `audit_config.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `audit_config.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/resources/scaffolding_example.md b/docs/resources/scaffolding_example.md deleted file mode 100644 index 47e77ed..0000000 --- a/docs/resources/scaffolding_example.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -# generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "scaffolding_example Resource - terraform-provider-scaffolding-framework" -subcategory: "" -description: |- - Example resource ---- - -# scaffolding_example (Resource) - -Example resource - -## Example Usage - -```terraform -resource "scaffolding_example" "example" { - configurable_attribute = "some-value" -} -``` - - -## Schema - -### Optional - -- `configurable_attribute` (String) Example configurable attribute -- `defaulted` (String) Example configurable attribute with default value - -### Read-Only - -- `id` (String) Example identifier diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 3248fe1..172b5d1 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -1,47 +1,52 @@ terraform { required_providers { - keyhub = { - source = "registry.terraform.io/hashicorp/keyhub-preview" + keyhubpreview = { + source = "registry.terraform.io/hashicorp/keyhubpreview" } } } variable "keyhub_secret" { - type = string + type = string description = "Client secret on KeyHub" } variable "keyhub_secret_local" { - type = string + type = string description = "Client secret on KeyHub" } -provider "keyhub" { -# issuer = "https://keyhub.topicusonderwijs.nl" -# clientid = "3a5e82ad-3f0d-4a63-846b-4b3e431f1135" +provider "keyhubpreview" { + # issuer = "https://keyhub.topicusonderwijs.nl" + # clientid = "3a5e82ad-3f0d-4a63-846b-4b3e431f1135" issuer = "https://keyhub.localhost:8443" clientid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" clientsecret = var.keyhub_secret_local } -data "keyhub_group" "test" { -# uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" - uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" +data "keyhubpreview_group" "test" { + # uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" + uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" + additional = ["accounts"] } -resource "keyhub_group" "terra" { +output "data_group" { + value = data.keyhubpreview_group.test +} + +resource "keyhubpreview_group" "terra" { name = "Terraform" additional_objects = { accounts = { - items = [{ - uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" - rights = "MANAGER" - }] - } - requeststatus = "MEMBER" + items = [{ + uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" + rights = "MANAGER" + }] + } } + admin = true } -output "terragroup" { - value = resource.keyhub_group.terra +output "resource_group" { + value = resource.keyhubpreview_group.terra } diff --git a/go.mod b/go.mod index da55838..637a356 100644 --- a/go.mod +++ b/go.mod @@ -1,15 +1,16 @@ -module github.com/topicuskeyhub/terraform-provider-keyhub-preview +module github.com/topicuskeyhub/terraform-provider-keyhubpreview go 1.19 require ( github.com/google/uuid v1.3.1 github.com/hashicorp/terraform-plugin-docs v0.16.0 - github.com/hashicorp/terraform-plugin-framework v1.3.5 - github.com/hashicorp/terraform-plugin-go v0.18.0 + github.com/hashicorp/terraform-plugin-framework v1.4.0 + github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 + github.com/hashicorp/terraform-plugin-go v0.19.0 github.com/hashicorp/terraform-plugin-log v0.9.0 - github.com/hashicorp/terraform-plugin-testing v1.4.0 - github.com/microsoft/kiota-abstractions-go v1.2.0 + github.com/hashicorp/terraform-plugin-testing v1.5.1 + github.com/microsoft/kiota-abstractions-go v1.2.1 github.com/topicuskeyhub/sdk-go v0.28.1 ) @@ -20,6 +21,7 @@ require ( github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect + github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/cjlapao/common-go v0.0.39 // indirect @@ -36,20 +38,20 @@ require ( github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.5.0 // indirect + github.com/hashicorp/go-plugin v1.5.1 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/hc-install v0.5.2 // indirect - github.com/hashicorp/hcl/v2 v2.17.0 // indirect + github.com/hashicorp/hc-install v0.6.0 // indirect + github.com/hashicorp/hcl/v2 v2.18.0 // indirect github.com/hashicorp/logutils v1.0.0 // indirect - github.com/hashicorp/terraform-exec v0.18.1 // indirect + github.com/hashicorp/terraform-exec v0.19.0 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.2 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.4.0 // indirect - github.com/imdario/mergo v0.3.13 // indirect + github.com/imdario/mergo v0.3.15 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.19 // indirect github.com/microsoft/kiota-http-go v1.1.0 // indirect @@ -70,20 +72,20 @@ require ( github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect - github.com/zclconf/go-cty v1.13.3 // indirect - go.opentelemetry.io/otel v1.17.0 // indirect - go.opentelemetry.io/otel/metric v1.17.0 // indirect - go.opentelemetry.io/otel/trace v1.17.0 // indirect - golang.org/x/crypto v0.12.0 // indirect - golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect + github.com/zclconf/go-cty v1.14.0 // indirect + go.opentelemetry.io/otel v1.18.0 // indirect + go.opentelemetry.io/otel/metric v1.18.0 // indirect + go.opentelemetry.io/otel/trace v1.18.0 // indirect + golang.org/x/crypto v0.13.0 // indirect + golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.14.0 // indirect - golang.org/x/oauth2 v0.11.0 // indirect - golang.org/x/sys v0.11.0 // indirect - golang.org/x/text v0.12.0 // indirect - google.golang.org/appengine v1.6.7 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d // indirect - google.golang.org/grpc v1.57.0 // indirect + golang.org/x/net v0.15.0 // indirect + golang.org/x/oauth2 v0.12.0 // indirect + golang.org/x/sys v0.12.0 // indirect + golang.org/x/text v0.13.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb // indirect + google.golang.org/grpc v1.58.1 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index 25ba307..2511ccc 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,7 @@ github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFP github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 h1:kkhsdkhsCvIsutKu5zLMgWtgh9YxGCNAw8Ad8hjwfYg= github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= @@ -16,6 +17,8 @@ github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= +github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= +github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -39,8 +42,10 @@ github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= +github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= github.com/go-git/go-git/v5 v5.6.1 h1:q4ZRqQl4pR/ZJHc1L5CFjGA1a10u76aV1iC+nh+bHsk= +github.com/go-git/go-git/v5 v5.8.1 h1:Zo79E4p7TRk0xoRgMq0RShiTHGKcKI4+DI6BfJc/Q+A= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= @@ -50,6 +55,7 @@ github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= @@ -77,6 +83,8 @@ github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+l github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= github.com/hashicorp/go-plugin v1.5.0 h1:g6Lj3USwF5LaB8HlvCxPjN2X4nFE08ko2BJNVpl7TIE= github.com/hashicorp/go-plugin v1.5.0/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/go-plugin v1.5.1 h1:oGm7cWBaYIp3lJpx1RUEfLWophprE2EV/KUeqBYo+6k= +github.com/hashicorp/go-plugin v1.5.1/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= @@ -84,26 +92,42 @@ github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mO github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/hc-install v0.5.2 h1:SfwMFnEXVVirpwkDuSF5kymUOhrUxrTq3udEseZdOD0= github.com/hashicorp/hc-install v0.5.2/go.mod h1:9QISwe6newMWIfEiXpzuu1k9HAGtQYgnSH8H9T8wmoI= +github.com/hashicorp/hc-install v0.6.0 h1:fDHnU7JNFNSQebVKYhHZ0va1bC6SrPQ8fpebsvNr2w4= +github.com/hashicorp/hc-install v0.6.0/go.mod h1:10I912u3nntx9Umo1VAeYPUUuehk0aRQJYpMwbX5wQA= github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= +github.com/hashicorp/hcl/v2 v2.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8= +github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/terraform-exec v0.18.1 h1:LAbfDvNQU1l0NOQlTuudjczVhHj061fNX5H8XZxHlH4= github.com/hashicorp/terraform-exec v0.18.1/go.mod h1:58wg4IeuAJ6LVsLUeD2DWZZoc/bYi6dzhLHzxM41980= +github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM= +github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= github.com/hashicorp/terraform-plugin-framework v1.3.5 h1:FJ6s3CVWVAxlhiF/jhy6hzs4AnPHiflsp9KgzTGl1wo= github.com/hashicorp/terraform-plugin-framework v1.3.5/go.mod h1:2gGDpWiTI0irr9NSTLFAKlTi6KwGti3AoU19rFqU30o= +github.com/hashicorp/terraform-plugin-framework v1.4.0 h1:WKbtCRtNrjsh10eA7NZvC/Qyr7zp77j+D21aDO5th9c= +github.com/hashicorp/terraform-plugin-framework v1.4.0/go.mod h1:XC0hPcQbBvlbxwmjxuV/8sn8SbZRg4XwGMs22f+kqV0= +github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= +github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= github.com/hashicorp/terraform-plugin-go v0.18.0 h1:IwTkOS9cOW1ehLd/rG0y+u/TGLK9y6fGoBjXVUquzpE= github.com/hashicorp/terraform-plugin-go v0.18.0/go.mod h1:l7VK+2u5Kf2y+A+742GX0ouLut3gttudmvMgN0PA74Y= +github.com/hashicorp/terraform-plugin-go v0.19.0 h1:BuZx/6Cp+lkmiG0cOBk6Zps0Cb2tmqQpDM3iAtnhDQU= +github.com/hashicorp/terraform-plugin-go v0.19.0/go.mod h1:EhRSkEPNoylLQntYsk5KrDHTZJh9HQoumZXbOGOXmec= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0 h1:gY4SG34ANc6ZSeWEKC9hDTChY0ZiN+Myon17fSA0Xgc= github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0/go.mod h1:deXEw/iJXtJxNV9d1c/OVJrvL7Zh0a++v7rzokW6wVY= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 h1:wcOKYwPI9IorAJEBLzgclh3xVolO7ZorYd6U1vnok14= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0/go.mod h1:qH/34G25Ugdj5FcM95cSoXzUgIbgfhVLXCcEcYaMwq8= github.com/hashicorp/terraform-plugin-testing v1.4.0 h1:DVIXxw7VHZvnwWVik4HzhpC2yytaJ5FpiHxz5debKmE= github.com/hashicorp/terraform-plugin-testing v1.4.0/go.mod h1:b7Bha24iGrbZQjT+ZE8m9crck1YjdVOZ8mfGCQ19OxA= +github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c= +github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0= github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJDC6YlgCVbWDtNmmZKtBno= github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= @@ -118,6 +142,8 @@ github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= +github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= +github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= @@ -140,6 +166,8 @@ github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APP github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/microsoft/kiota-abstractions-go v1.2.0 h1:lUriJgqdCY/QajwWQOgTCQE9Atywfe2NHhgoTCSXTRE= github.com/microsoft/kiota-abstractions-go v1.2.0/go.mod h1:RkxyZ5x87Njik7iVeQY9M2wtrrL1MJZcXiI/BxD/82g= +github.com/microsoft/kiota-abstractions-go v1.2.1 h1:TnLF7rjy1GfhuGK2ra/a3Vuz6piFXTR1OfdNoqesagA= +github.com/microsoft/kiota-abstractions-go v1.2.1/go.mod h1:rEeeaytcnal/If3f1tz6/spFz4V+Hiqvz3rxF+oWQFA= github.com/microsoft/kiota-http-go v1.1.0 h1:L5I93EiNtlP/X6YzeTlhjWt7Q1DxzC9CmWSVtX3b0tE= github.com/microsoft/kiota-http-go v1.1.0/go.mod h1:zESUM6ovki9LEupqziCbxJ+FAYoF0dFDYZVpOkAfSLc= github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ= @@ -176,6 +204,7 @@ github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFR github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= +github.com/skeema/knownhosts v1.2.0 h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJCpM= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= @@ -201,12 +230,20 @@ github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT0 github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= github.com/zclconf/go-cty v1.13.3 h1:m+b9q3YDbg6Bec5rr+KGy1MzEVzY/jC2X+YX4yqKtHI= github.com/zclconf/go-cty v1.13.3/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= +github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc= +github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= go.opentelemetry.io/otel v1.17.0 h1:MW+phZ6WZ5/uk2nd93ANk/6yJ+dVrvNWUjGhnnFU5jM= go.opentelemetry.io/otel v1.17.0/go.mod h1:I2vmBGtFaODIVMBSTPVDlJSzBDNf93k60E6Ft0nyjo0= +go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs= +go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI= go.opentelemetry.io/otel/metric v1.17.0 h1:iG6LGVz5Gh+IuO0jmgvpTB6YVrCGngi8QGm+pMd8Pdc= go.opentelemetry.io/otel/metric v1.17.0/go.mod h1:h4skoxdZI17AxwITdmdZjjYJQH5nzijUUjm+wtPph5o= +go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ= +go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k= go.opentelemetry.io/otel/trace v1.17.0 h1:/SWhSRHmDPOImIAetP1QAeMnZYiQXrTy4fMMYOdSKWQ= go.opentelemetry.io/otel/trace v1.17.0/go.mod h1:I/4vKTgFclIsXRVucpH25X0mpFSczM7aHeaz0ZBLWjY= +go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10= +go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -216,8 +253,12 @@ golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2Uz golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= +golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= +golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= +golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= @@ -232,8 +273,12 @@ golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= +golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= +golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -256,6 +301,8 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -265,11 +312,14 @@ golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= @@ -279,10 +329,16 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb h1:Isk1sSH7bovx8Rti2wZK0UZF6oraBDK74uoyLEEVFN0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= +google.golang.org/grpc v1.58.1 h1:OL+Vz23DTtrrldqHK49FUOPHyY75rvFqJfXC84NYW58= +google.golang.org/grpc v1.58.1/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 5e5d5b7..3bf0969 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -84,6 +84,7 @@ var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) type auditAuditRecordDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` DateTime types.String `tfsdk:"date_time"` @@ -131,6 +132,7 @@ type authAccountDataDS struct { Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` AccountPermissions types.List `tfsdk:"account_permissions"` Active types.Bool `tfsdk:"active"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -277,6 +279,7 @@ type authInternalAccountDataDS struct { Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` AccountPermissions types.List `tfsdk:"account_permissions"` Active types.Bool `tfsdk:"active"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -366,6 +369,7 @@ type certificateCertificateDataDS struct { Global types.Bool `tfsdk:"global"` SubjectDN types.String `tfsdk:"subject_d_n"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` KeyData types.List `tfsdk:"key_data"` } @@ -413,6 +417,7 @@ type clientClientApplicationDataDS struct { Scopes types.List `tfsdk:"scopes"` SsoApplication types.Bool `tfsdk:"sso_application"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` @@ -463,6 +468,7 @@ type clientLdapClientDataDS struct { Scopes types.List `tfsdk:"scopes"` SsoApplication types.Bool `tfsdk:"sso_application"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` @@ -486,6 +492,7 @@ type clientOAuth2ClientDataDS struct { Scopes types.List `tfsdk:"scopes"` SsoApplication types.Bool `tfsdk:"sso_application"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` @@ -510,6 +517,7 @@ var clientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSClientOAut type clientOAuth2ClientPermissionDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ForGroup types.Object `tfsdk:"for_group"` ForSystem types.Object `tfsdk:"for_system"` @@ -529,6 +537,7 @@ var clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse = objectAttrsTypeDS type clientOAuth2ClientPermissionWithClientDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ForGroup types.Object `tfsdk:"for_group"` ForSystem types.Object `tfsdk:"for_system"` @@ -568,6 +577,7 @@ type clientSaml2ClientDataDS struct { Scopes types.List `tfsdk:"scopes"` SsoApplication types.Bool `tfsdk:"sso_application"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` @@ -595,6 +605,7 @@ type directoryAccountDirectoryDataDS struct { DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` @@ -674,6 +685,7 @@ type directoryInternalDirectoryDataDS struct { DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` @@ -695,6 +707,7 @@ type directoryLDAPDirectoryDataDS struct { DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` @@ -729,6 +742,7 @@ type directoryMaintenanceDirectoryDataDS struct { DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` @@ -749,6 +763,7 @@ type directoryOIDCDirectoryDataDS struct { DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` @@ -778,6 +793,7 @@ type groupAccountGroupDataDS struct { Admin types.Bool `tfsdk:"admin"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` EndDate types.String `tfsdk:"end_date"` Folder types.Object `tfsdk:"folder"` @@ -819,6 +835,7 @@ type groupGroupDataDS struct { Admin types.Bool `tfsdk:"admin"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ApplicationAdministration types.Bool `tfsdk:"application_administration"` AuditConfig types.Object `tfsdk:"audit_config"` @@ -854,6 +871,7 @@ type groupGroupAccountDataDS struct { Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Directory types.Object `tfsdk:"directory"` DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` @@ -908,6 +926,7 @@ var groupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit(true) type groupGroupAuditDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Accounts types.List `tfsdk:"accounts"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -987,6 +1006,7 @@ type groupGroupClassificationDataDS struct { Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` @@ -1047,6 +1067,7 @@ var groupGroupClientAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClient(true) type groupGroupClientDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` ActivationRequired types.Bool `tfsdk:"activation_required"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Client types.Object `tfsdk:"client"` @@ -1075,6 +1096,7 @@ var groupGroupFolderAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder(true) type groupGroupFolderDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Name types.String `tfsdk:"name"` } @@ -1190,6 +1212,7 @@ var groupProvisioningGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisionin type groupProvisioningGroupDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` ActivationRequired types.Bool `tfsdk:"activation_required"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Group types.Object `tfsdk:"group"` @@ -1237,6 +1260,7 @@ var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchp type launchpadLaunchpadTileDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Application types.Object `tfsdk:"application"` Group types.Object `tfsdk:"group"` @@ -1274,6 +1298,7 @@ var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadM type launchpadManualLaunchpadTileDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Application types.Object `tfsdk:"application"` Group types.Object `tfsdk:"group"` @@ -1291,6 +1316,7 @@ var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLa type launchpadSsoApplicationLaunchpadTileDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Application types.Object `tfsdk:"application"` Group types.Object `tfsdk:"group"` @@ -1307,6 +1333,7 @@ var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunc type launchpadVaultRecordLaunchpadTileDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Application types.Object `tfsdk:"application"` Group types.Object `tfsdk:"group"` @@ -1477,6 +1504,7 @@ type organizationAccountOrganizationalUnitDataDS struct { Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -1502,6 +1530,7 @@ type organizationOrganizationalUnitDataDS struct { Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Depth types.Int64 `tfsdk:"depth"` Description types.String `tfsdk:"description"` @@ -1520,6 +1549,7 @@ type organizationOrganizationalUnitAccountDataDS struct { Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Directory types.Object `tfsdk:"directory"` } @@ -1580,6 +1610,7 @@ type provisioningAbstractProvisionedLDAPDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1651,6 +1682,7 @@ type provisioningGroupOnSystemDataDS struct { NameInSystem types.String `tfsdk:"name_in_system"` ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Owner types.Object `tfsdk:"owner"` System types.Object `tfsdk:"system"` @@ -1726,6 +1758,7 @@ var provisioningProvisionNumberSequenceAttrTypesDSRecurse = objectAttrsTypeDSPro type provisioningProvisionNumberSequenceDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Name types.String `tfsdk:"name"` @@ -1758,6 +1791,7 @@ type provisioningProvisionedADDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1799,6 +1833,7 @@ type provisioningProvisionedAccountDataDS struct { Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Uid types.Int64 `tfsdk:"uid"` } @@ -1828,6 +1863,7 @@ type provisioningProvisionedAzureOIDCDirectoryDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1854,6 +1890,7 @@ type provisioningProvisionedAzureSyncLDAPDirectoryDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1882,6 +1919,7 @@ type provisioningProvisionedAzureTenantDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1910,6 +1948,7 @@ type provisioningProvisionedInternalLDAPDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1935,6 +1974,7 @@ type provisioningProvisionedLDAPDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -1978,6 +2018,7 @@ type provisioningProvisionedLDAPDirectoryDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -2004,6 +2045,7 @@ type provisioningProvisionedSystemDataDS struct { OrganizationalUnit types.Object `tfsdk:"organizational_unit"` ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` ContentAdministrator types.Object `tfsdk:"content_administrator"` @@ -2050,6 +2092,7 @@ var provisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSPr type provisioningProvisionedSystemSyncLogDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` CreatedAt types.String `tfsdk:"created_at"` Errors types.Int64 `tfsdk:"errors"` @@ -2116,6 +2159,7 @@ var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttr type requestAbstractApplicationModificationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2133,6 +2177,7 @@ var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = obj type requestAbstractOrganizationalUnitModificationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2150,6 +2195,7 @@ var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = obje type requestAbstractProvisionedSystemModificationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2196,6 +2242,7 @@ var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddG type requestAddGroupAdminRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2214,6 +2261,7 @@ var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSReque type requestCreateGroupOnSystemRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2234,6 +2282,7 @@ var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreate type requestCreateGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2252,6 +2301,7 @@ var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequ type requestCreateServiceAccountRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2270,6 +2320,7 @@ var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable type requestDisable2FARequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2287,6 +2338,7 @@ var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsT type requestEnableTechnicalAdministrationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2303,6 +2355,7 @@ var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExten type requestExtendAccessRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2320,6 +2373,7 @@ var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantA type requestGrantAccessRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2336,6 +2390,7 @@ var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestG type requestGrantApplicationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2353,6 +2408,7 @@ var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSReq type requestGrantClientPermissionRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2372,6 +2428,7 @@ var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSReques type requestGrantGroupOnSystemRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2390,6 +2447,7 @@ var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeD type requestGrantGroupOnSystemRequestRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2408,6 +2466,7 @@ var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDS type requestGrantServiceAccountGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2426,6 +2485,7 @@ var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGrou type requestJoinGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2442,6 +2502,7 @@ var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaul type requestJoinVaultRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2458,6 +2519,7 @@ var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModif type requestModificationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2489,6 +2551,7 @@ var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPass type requestPasswordResetRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2515,6 +2578,7 @@ var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemove type requestRemoveGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2532,6 +2596,7 @@ var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDS type requestRemoveOrganizationalUnitRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2550,6 +2615,7 @@ var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSR type requestRemoveProvisionedSystemRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2568,6 +2634,7 @@ var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReview type requestReviewAuditRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2584,6 +2651,7 @@ var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevoke type requestRevokeAdminRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2601,6 +2669,7 @@ var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSReq type requestSetupAuthorizingGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2620,6 +2689,7 @@ var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestS type requestSetupNestedGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2639,6 +2709,7 @@ var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAt type requestTransferApplicationAdministrationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2656,6 +2727,7 @@ var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTy type requestTransferApplicationOwnershipRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2673,6 +2745,7 @@ var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequ type requestTransferAuditorGroupRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2689,6 +2762,7 @@ var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrs type requestTransferGroupOnSystemOwnershipRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2706,6 +2780,7 @@ var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = object type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2723,6 +2798,7 @@ var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = ob type requestTransferProvisionedSystemAdministrationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2740,6 +2816,7 @@ var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecur type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2757,6 +2834,7 @@ var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectA type requestTransferProvisionedSystemOwnershipRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2774,6 +2852,7 @@ var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objec type requestTransferServiceAccountAdministrationRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2791,6 +2870,7 @@ var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSReq type requestUpdateGroupMembershipRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2813,6 +2893,7 @@ var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSReq type requestVerifyInternalAccountRequestDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Comment types.String `tfsdk:"comment"` @@ -2835,6 +2916,7 @@ type serviceaccountServiceAccountDataDS struct { System types.Object `tfsdk:"system"` Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Description types.String `tfsdk:"description"` Password types.Object `tfsdk:"password"` @@ -2852,6 +2934,7 @@ type serviceaccountServiceAccountGroupDataDS struct { NameInSystem types.String `tfsdk:"name_in_system"` ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -2953,6 +3036,7 @@ var vaultDeletedVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVau type vaultDeletedVaultHolderDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Name types.String `tfsdk:"name"` RecordCount types.Int64 `tfsdk:"record_count"` @@ -3028,6 +3112,7 @@ type vaultVaultRecordDataDS struct { Name types.String `tfsdk:"name"` ShareEndTime types.String `tfsdk:"share_end_time"` UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Derived types.Bool `tfsdk:"derived"` EndDate types.String `tfsdk:"end_date"` @@ -3132,6 +3217,7 @@ var webhookWebhookAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook(true) type webhookWebhookDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` Active types.Bool `tfsdk:"active"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -3162,6 +3248,7 @@ var webhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDe type webhookWebhookDeliveryDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Payload types.Object `tfsdk:"payload"` ReponseHeaders types.String `tfsdk:"reponse_headers"` diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index eb10120..64683f5 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -178,7 +178,11 @@ func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel. Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.GroupGroupable](wrapper, "group", uuid, err) + ret, diag := findFirst[keyhubmodel.GroupGroupable](wrapper, "group", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.GroupGroup).GroupGroupPrimer, diag } func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { @@ -191,7 +195,11 @@ func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.DirectoryAccountDirectoryable](wrapper, "directory", uuid, err) + ret, diag := findFirst[keyhubmodel.DirectoryAccountDirectoryable](wrapper, "directory", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.DirectoryAccountDirectory).DirectoryAccountDirectoryPrimer, diag } func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { @@ -204,7 +212,11 @@ func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *s Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.OrganizationOrganizationalUnitable](wrapper, "organizational unit", uuid, err) + ret, diag := findFirst[keyhubmodel.OrganizationOrganizationalUnitable](wrapper, "organizational unit", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.OrganizationOrganizationalUnit).OrganizationOrganizationalUnitPrimer, diag } func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { @@ -217,7 +229,11 @@ func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) ( Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.CertificateCertificateable](wrapper, "certificate", uuid, err) + ret, diag := findFirst[keyhubmodel.CertificateCertificateable](wrapper, "certificate", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.CertificateCertificate).CertificateCertificatePrimer, diag } func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { @@ -230,7 +246,11 @@ func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *st Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.ProvisioningProvisionedSystemable](wrapper, "provisioned system", uuid, err) + ret, diag := findFirst[keyhubmodel.ProvisioningProvisionedSystemable](wrapper, "provisioned system", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.ProvisioningProvisionedSystem).ProvisioningProvisionedSystemPrimer, diag } func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { @@ -243,7 +263,11 @@ func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.GroupGroupClassificationable](wrapper, "group classification", uuid, err) + ret, diag := findFirst[keyhubmodel.GroupGroupClassificationable](wrapper, "group classification", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.GroupGroupClassification).GroupGroupClassificationPrimer, diag } func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { @@ -256,7 +280,11 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) + ret, diag := findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.ClientClientApplication).ClientClientApplicationPrimer, diag } func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { @@ -290,7 +318,11 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.ServiceaccountServiceAccountable](wrapper, "service account", uuid, err) + ret, diag := findFirst[keyhubmodel.ServiceaccountServiceAccountable](wrapper, "service account", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.ServiceaccountServiceAccount).ServiceaccountServiceAccountPrimer, diag } func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { @@ -303,5 +335,9 @@ func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhub Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.VaultVaultRecordable](wrapper, "vault record", uuid, err) + ret, diag := findFirst[keyhubmodel.VaultVaultRecordable](wrapper, "vault record", uuid, err) + if ret == nil { + return ret, diag + } + return &ret.(*keyhubmodel.VaultVaultRecord).VaultVaultRecordPrimer, diag } diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index b17bcc8..851f92e 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -78,6 +78,7 @@ func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["audit_audit_record_type"] = types.StringType objectAttrs["date_time"] = types.StringType objectAttrs["on_account"] = types.StringType @@ -124,6 +125,7 @@ func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} objectAttrs["active"] = types.BoolType objectAttrs["can_request_groups"] = types.BoolType @@ -259,6 +261,7 @@ func objectAttrsTypeDSAuthInternalAccount(recurse bool) map[string]attr.Type { objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} objectAttrs["active"] = types.BoolType objectAttrs["can_request_groups"] = types.BoolType @@ -343,6 +346,7 @@ func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["global"] = types.BoolType objectAttrs["subject_d_n"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} return objectAttrs } @@ -388,6 +392,7 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} objectAttrs["sso_application"] = types.BoolType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -436,6 +441,7 @@ func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} objectAttrs["sso_application"] = types.BoolType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -460,6 +466,7 @@ func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} objectAttrs["sso_application"] = types.BoolType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -485,6 +492,7 @@ func objectAttrsTypeDSClientOAuth2ClientPermission(recurse bool) map[string]attr } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["value"] = types.StringType @@ -504,6 +512,7 @@ func objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse bool) map[s } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["value"] = types.StringType @@ -541,6 +550,7 @@ func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} objectAttrs["sso_application"] = types.BoolType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -568,6 +578,7 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["directory_account_directory_primer_type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["default_directory"] = types.BoolType objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -642,6 +653,7 @@ func objectAttrsTypeDSDirectoryInternalDirectory(recurse bool) map[string]attr.T objectAttrs["directory_account_directory_primer_type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["default_directory"] = types.BoolType objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -664,6 +676,7 @@ func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["directory_account_directory_primer_type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["default_directory"] = types.BoolType objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -699,6 +712,7 @@ func objectAttrsTypeDSDirectoryMaintenanceDirectory(recurse bool) map[string]att objectAttrs["directory_account_directory_primer_type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["default_directory"] = types.BoolType objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -720,6 +734,7 @@ func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type objectAttrs["directory_account_directory_primer_type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["default_directory"] = types.BoolType objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -750,6 +765,7 @@ func objectAttrsTypeDSGroupAccountGroup(recurse bool) map[string]attr.Type { objectAttrs["admin"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["end_date"] = types.StringType objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} objectAttrs["last_used"] = types.StringType @@ -789,6 +805,7 @@ func objectAttrsTypeDSGroupGroup(recurse bool) map[string]attr.Type { objectAttrs["admin"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["application_administration"] = types.BoolType objectAttrs["audit_config"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditConfig(false)} objectAttrs["audit_requested"] = types.BoolType @@ -825,6 +842,7 @@ func objectAttrsTypeDSGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} objectAttrs["disconnected_nested"] = types.BoolType objectAttrs["end_date"] = types.StringType @@ -875,6 +893,7 @@ func objectAttrsTypeDSGroupGroupAudit(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} objectAttrs["comment"] = types.StringType objectAttrs["created_at"] = types.StringType @@ -950,6 +969,7 @@ func objectAttrsTypeDSGroupGroupClassification(recurse bool) map[string]attr.Typ objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["authorizing_group_auditing_required"] = types.BoolType objectAttrs["authorizing_group_delegation_required"] = types.BoolType objectAttrs["authorizing_group_membership_required"] = types.BoolType @@ -1006,6 +1026,7 @@ func objectAttrsTypeDSGroupGroupClient(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["activation_required"] = types.BoolType objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -1033,6 +1054,7 @@ func objectAttrsTypeDSGroupGroupFolder(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["name"] = types.StringType return objectAttrs } @@ -1140,6 +1162,7 @@ func objectAttrsTypeDSGroupProvisioningGroup(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["activation_required"] = types.BoolType objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} @@ -1184,6 +1207,7 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["identicon_code"] = types.Int64Type @@ -1219,6 +1243,7 @@ func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["identicon_code"] = types.Int64Type @@ -1237,6 +1262,7 @@ func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[str } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["identicon_code"] = types.Int64Type @@ -1254,6 +1280,7 @@ func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["identicon_code"] = types.Int64Type @@ -1407,6 +1434,7 @@ func objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse bool) map[st objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs } @@ -1431,6 +1459,7 @@ func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]at objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["depth"] = types.Int64Type objectAttrs["description"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -1450,6 +1479,7 @@ func objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse bool) map[st objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} return objectAttrs } @@ -1505,6 +1535,7 @@ func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1573,6 +1604,7 @@ func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["name_in_system"] = types.StringType objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs @@ -1642,6 +1674,7 @@ func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[stri } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["name"] = types.StringType objectAttrs["next_u_i_d"] = types.Int64Type @@ -1673,6 +1706,7 @@ func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Ty objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1715,6 +1749,7 @@ func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]at objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["uid"] = types.Int64Type return objectAttrs } @@ -1743,6 +1778,7 @@ func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) ma objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1770,6 +1806,7 @@ func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1799,6 +1836,7 @@ func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[strin objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1828,6 +1866,7 @@ func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[stri objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1854,6 +1893,7 @@ func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr. objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1898,6 +1938,7 @@ func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[str objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1925,6 +1966,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["external_uuid"] = types.StringType @@ -1969,6 +2011,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse bool) map[str } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["created_at"] = types.StringType objectAttrs["errors"] = types.Int64Type objectAttrs["log"] = types.StringType @@ -2030,6 +2073,7 @@ func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2048,6 +2092,7 @@ func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recur } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2066,6 +2111,7 @@ func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurs } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2109,6 +2155,7 @@ func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr. } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2128,6 +2175,7 @@ func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2149,6 +2197,7 @@ func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Ty } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2168,6 +2217,7 @@ func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[strin } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2187,6 +2237,7 @@ func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Typ } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2205,6 +2256,7 @@ func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2222,6 +2274,7 @@ func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.T } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2240,6 +2293,7 @@ func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Ty } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2257,6 +2311,7 @@ func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]at } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2275,6 +2330,7 @@ func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[stri } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2295,6 +2351,7 @@ func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2314,6 +2371,7 @@ func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[ } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2333,6 +2391,7 @@ func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[s } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2352,6 +2411,7 @@ func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2369,6 +2429,7 @@ func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2386,6 +2447,7 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2416,6 +2478,7 @@ func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr. } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2442,6 +2505,7 @@ func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Ty } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2460,6 +2524,7 @@ func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[s } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2479,6 +2544,7 @@ func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[st } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2498,6 +2564,7 @@ func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Ty } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2515,6 +2582,7 @@ func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Ty } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2533,6 +2601,7 @@ func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[stri } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2553,6 +2622,7 @@ func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]at } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2573,6 +2643,7 @@ func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bo } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2591,6 +2662,7 @@ func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) m } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2609,6 +2681,7 @@ func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[strin } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2626,6 +2699,7 @@ func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2644,6 +2718,7 @@ func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2662,6 +2737,7 @@ func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recu } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2680,6 +2756,7 @@ func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationReque } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2698,6 +2775,7 @@ func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse b } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2716,6 +2794,7 @@ func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2734,6 +2813,7 @@ func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[stri } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2757,6 +2837,7 @@ func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[stri } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["comment"] = types.StringType objectAttrs["feedback"] = types.StringType @@ -2780,6 +2861,7 @@ func objectAttrsTypeDSServiceaccountServiceAccount(recurse bool) map[string]attr objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} objectAttrs["username"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["description"] = types.StringType objectAttrs["password"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["password_rotation"] = types.StringType @@ -2798,6 +2880,7 @@ func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string objectAttrs["name_in_system"] = types.StringType objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs } @@ -2888,6 +2971,7 @@ func objectAttrsTypeDSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["name"] = types.StringType objectAttrs["record_count"] = types.Int64Type objectAttrs["vault_deleted_vault_holder_type"] = types.StringType @@ -2957,6 +3041,7 @@ func objectAttrsTypeDSVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs["name"] = types.StringType objectAttrs["share_end_time"] = types.StringType objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["derived"] = types.BoolType objectAttrs["end_date"] = types.StringType objectAttrs["filename"] = types.StringType @@ -3052,6 +3137,7 @@ func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} objectAttrs["active"] = types.BoolType objectAttrs["all_types"] = types.BoolType @@ -3083,6 +3169,7 @@ func objectAttrsTypeDSWebhookWebhookDelivery(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} objectAttrs["reponse_headers"] = types.StringType objectAttrs["request_headers"] = types.StringType diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index ac983be..d00cf7f 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -4,7 +4,10 @@ package provider import ( + "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" + "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" ) @@ -138,6 +141,17 @@ func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Att }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ Computed: true, } @@ -251,6 +265,23 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "activeLogin", + "audit", + "groups", + "pendingRecoveryRequests", + "settings", + "storedAttributes", + "vault", + ), + ), + }, + } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsAuthPermission(false), @@ -542,6 +573,23 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "activeLogin", + "audit", + "groups", + "pendingRecoveryRequests", + "settings", + "storedAttributes", + "vault", + ), + ), + }, + } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsAuthPermission(false), @@ -735,6 +783,17 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["key_data"] = dsschema.ListAttribute{ ElementType: types.StringType, Computed: true, @@ -844,6 +903,21 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "groupclients", + "groups", + "tile", + "vaultRecordCount", + ), + ), + }, + } schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } @@ -966,6 +1040,21 @@ func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Att Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "groupclients", + "groups", + "tile", + "vaultRecordCount", + ), + ), + }, + } schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } @@ -1036,6 +1125,21 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "groupclients", + "groups", + "tile", + "vaultRecordCount", + ), + ), + }, + } schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } @@ -1110,6 +1214,17 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), Computed: true, @@ -1153,6 +1268,17 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) m }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), Computed: true, @@ -1232,6 +1358,21 @@ func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.At Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "groupclients", + "groups", + "tile", + "vaultRecordCount", + ), + ), + }, + } schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } @@ -1298,6 +1439,19 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "markers", + "status", + ), + ), + }, + } schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), Computed: true, @@ -1472,6 +1626,19 @@ func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]ds Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "markers", + "status", + ), + ), + }, + } schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), Computed: true, @@ -1534,6 +1701,19 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "markers", + "status", + ), + ), + }, + } schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), Computed: true, @@ -1637,6 +1817,19 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "markers", + "status", + ), + ), + }, + } schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), Computed: true, @@ -1695,6 +1888,19 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "markers", + "status", + ), + ), + }, + } schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), Computed: true, @@ -1780,6 +1986,18 @@ func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.At Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "vault", + ), + ), + }, + } schemaAttrs["end_date"] = dsschema.StringAttribute{ Computed: true, } @@ -1866,6 +2084,43 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "accounts", + "administeredClients", + "administeredSystems", + "admins", + "audit", + "authorizedGroups", + "clientPermissions", + "clients", + "contentAdministeredSystems", + "groupauditinginfo", + "groupinfo", + "helpdesk", + "markers", + "myaccount", + "mydelegatedaccount", + "nestedGroups", + "ownedClients", + "ownedDirectories", + "ownedGroupsOnSystem", + "ownedOrganizationalUnits", + "ownedSystems", + "recentAudits", + "requeststatus", + "serviceAccounts", + "systems", + "vault", + "webhooks", + ), + ), + }, + } schemaAttrs["application_administration"] = dsschema.BoolAttribute{ Computed: true, } @@ -1976,6 +2231,17 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), Computed: true, @@ -2069,6 +2335,17 @@ func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attr }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), @@ -2252,6 +2529,18 @@ func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dssc Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "info", + ), + ), + }, + } schemaAttrs["authorizing_group_auditing_required"] = dsschema.BoolAttribute{ Computed: true, } @@ -2371,6 +2660,17 @@ func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Att }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } @@ -2430,6 +2730,17 @@ func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Att }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } @@ -2697,6 +3008,17 @@ func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dssche }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } @@ -2795,6 +3117,17 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["application"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), Computed: true, @@ -2873,6 +3206,17 @@ func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string] }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["application"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), Computed: true, @@ -2923,6 +3267,17 @@ func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["application"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), Computed: true, @@ -2970,6 +3325,17 @@ func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[st }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["application"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), Computed: true, @@ -3259,6 +3625,17 @@ func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) ma Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } return schemaAttrs } func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -3306,6 +3683,17 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[strin Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["depth"] = dsschema.Int64Attribute{ Computed: true, } @@ -3358,6 +3746,17 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) ma schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), Computed: true, @@ -3470,6 +3869,24 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -3633,6 +4050,19 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "provgroups", + "serviceAccounts", + ), + ), + }, + } schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), Computed: true, @@ -3777,6 +4207,18 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[ }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "systems", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -3847,6 +4289,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -3973,6 +4433,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[strin schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["uid"] = dsschema.Int64Attribute{ Computed: true, } @@ -4033,6 +4504,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4112,6 +4601,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4197,6 +4704,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4281,6 +4806,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[ Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4357,6 +4900,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4491,6 +5052,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4570,6 +5149,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "account", + "audit", + "issuedPermissions", + "loginName", + "managementPermissions", + "markers", + "statistics", + "supportedGroupTypes", + ), + ), + }, + } schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } @@ -4678,6 +5275,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["created_at"] = dsschema.StringAttribute{ Computed: true, } @@ -4801,6 +5409,18 @@ func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -4850,6 +5470,18 @@ func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(r }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -4899,6 +5531,18 @@ func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(re }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -4980,6 +5624,18 @@ func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]d }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5032,6 +5688,18 @@ func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[st }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5090,6 +5758,18 @@ func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dss }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5142,6 +5822,18 @@ func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[s }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5194,6 +5886,18 @@ func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dssc }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5242,6 +5946,18 @@ func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bo }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5287,6 +6003,18 @@ func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]ds }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5335,6 +6063,18 @@ func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dss }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5380,6 +6120,18 @@ func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[strin }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5429,6 +6181,18 @@ func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[ }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5485,6 +6249,18 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[str }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5537,6 +6313,18 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5589,6 +6377,18 @@ func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) m }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5642,6 +6442,18 @@ func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dssch }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5687,6 +6499,18 @@ func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dssch }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5732,6 +6556,18 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5799,6 +6635,18 @@ func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]d }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5861,6 +6709,18 @@ func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dss }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5909,6 +6769,18 @@ func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) m }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -5961,6 +6833,18 @@ func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) ma }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6013,6 +6897,18 @@ func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dss }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6058,6 +6954,18 @@ func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dss }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6107,6 +7015,18 @@ func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[ }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6162,6 +7082,18 @@ func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[strin }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6217,6 +7149,18 @@ func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurs }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6266,6 +7210,18 @@ func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse boo }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6315,6 +7271,18 @@ func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[s }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6360,6 +7328,18 @@ func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse b }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6409,6 +7389,18 @@ func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recu }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6458,6 +7450,18 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest( }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6507,6 +7511,18 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationR }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6556,6 +7572,18 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recur }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6605,6 +7633,18 @@ func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(rec }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6654,6 +7694,18 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6718,6 +7770,18 @@ func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[ }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "resetStatus", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -6783,6 +7847,18 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "groups", + ), + ), + }, + } schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, } @@ -6831,6 +7907,17 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[st schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } return schemaAttrs } func dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -6984,6 +8071,18 @@ func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dssch }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "vault", + ), + ), + }, + } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } @@ -7125,6 +8224,23 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att Required: recurse, Computed: !recurse, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "parent", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } schemaAttrs["derived"] = dsschema.BoolAttribute{ Computed: true, } @@ -7318,6 +8434,17 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), Computed: true, @@ -7412,6 +8539,17 @@ func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dssche }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), Computed: true, diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 1a3fa84..ea60aa1 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -58,6 +58,7 @@ func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj type func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) @@ -96,6 +97,7 @@ func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types. data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -203,6 +205,7 @@ func fillDataStructFromTFObjectDSAuthInternalAccount(data *authInternalAccountDa data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -271,6 +274,7 @@ func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertifi data.Global = obj.Attributes()["global"].(basetypes.BoolValue) data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) } @@ -306,6 +310,7 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -344,6 +349,7 @@ func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -364,6 +370,7 @@ func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientData data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -385,6 +392,7 @@ func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientData func fillDataStructFromTFObjectDSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) @@ -398,6 +406,7 @@ func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(dat func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) @@ -425,6 +434,7 @@ func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -446,6 +456,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) @@ -504,6 +515,7 @@ func fillDataStructFromTFObjectDSDirectoryInternalDirectory(data *directoryInter data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) @@ -522,6 +534,7 @@ func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirec data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) @@ -553,6 +566,7 @@ func fillDataStructFromTFObjectDSDirectoryMaintenanceDirectory(data *directoryMa data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) @@ -570,6 +584,7 @@ func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirec data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) @@ -596,6 +611,7 @@ func fillDataStructFromTFObjectDSGroupAccountGroup(data *groupAccountGroupDataDS data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) @@ -625,6 +641,7 @@ func fillDataStructFromTFObjectDSGroupGroup(data *groupGroupDataDS, obj types.Ob data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) @@ -657,6 +674,7 @@ func fillDataStructFromTFObjectDSGroupGroupAccount(data *groupGroupAccountDataDS data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) @@ -693,6 +711,7 @@ func fillDataStructFromTFObjectDSGroupGroupAdminMail(data *groupGroupAdminMailDa func fillDataStructFromTFObjectDSGroupGroupAudit(data *groupGroupAuditDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -754,6 +773,7 @@ func fillDataStructFromTFObjectDSGroupGroupClassification(data *groupGroupClassi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) @@ -796,6 +816,7 @@ func fillDataStructFromTFObjectDSGroupGroupClassification_additionalObjects(data func fillDataStructFromTFObjectDSGroupGroupClient(data *groupGroupClientDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) @@ -815,6 +836,7 @@ func fillDataStructFromTFObjectDSGroupGroupClient_additionalObjects(data *groupG func fillDataStructFromTFObjectDSGroupGroupFolder(data *groupGroupFolderDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) } @@ -900,6 +922,7 @@ func fillDataStructFromTFObjectDSGroupGroupsAuditStats(data *groupGroupsAuditSta func fillDataStructFromTFObjectDSGroupProvisioningGroup(data *groupProvisioningGroupDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) @@ -932,6 +955,7 @@ func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTiles(data *launchpa func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) @@ -957,6 +981,7 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data * func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) @@ -971,6 +996,7 @@ func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadMan func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) @@ -984,6 +1010,7 @@ func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *laun func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) @@ -1097,6 +1124,7 @@ func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit(data *org data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -1113,6 +1141,7 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizati data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) data.Description = obj.Attributes()["description"].(basetypes.StringValue) @@ -1128,6 +1157,7 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount(data *org data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) } @@ -1167,6 +1197,7 @@ func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provi data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1223,6 +1254,7 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGro data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) @@ -1274,6 +1306,7 @@ func fillDataStructFromTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(data *pr func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provisioningProvisionNumberSequenceDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) @@ -1297,6 +1330,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningPro data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1335,6 +1369,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioni data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) } @@ -1355,6 +1390,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureOIDCDirectory(data data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1378,6 +1414,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(d data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1403,6 +1440,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provis data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1428,6 +1466,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provi data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1450,6 +1489,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningP data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1490,6 +1530,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *prov data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1513,6 +1554,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) @@ -1547,6 +1589,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrap func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) @@ -1592,6 +1635,7 @@ func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTok func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1606,6 +1650,7 @@ func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(d func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1620,6 +1665,7 @@ func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRe func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1651,6 +1697,7 @@ func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1666,6 +1713,7 @@ func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGro func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1683,6 +1731,7 @@ func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *request func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1698,6 +1747,7 @@ func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGr func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1713,6 +1763,7 @@ func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *reques func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1727,6 +1778,7 @@ func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2F func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1740,6 +1792,7 @@ func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(dat func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1754,6 +1807,7 @@ func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendA func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1767,6 +1821,7 @@ func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAcc func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1781,6 +1836,7 @@ func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGra func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1797,6 +1853,7 @@ func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *reque func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1812,6 +1869,7 @@ func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestG func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1827,6 +1885,7 @@ func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *r func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1842,6 +1901,7 @@ func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *re func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1855,6 +1915,7 @@ func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupR func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1868,6 +1929,7 @@ func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultR func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1890,6 +1952,7 @@ func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(da func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1910,6 +1973,7 @@ func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *request func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1924,6 +1988,7 @@ func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGr func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1939,6 +2004,7 @@ func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *re func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1954,6 +2020,7 @@ func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *req func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1967,6 +2034,7 @@ func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAu func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1981,6 +2049,7 @@ func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAd func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -1997,6 +2066,7 @@ func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *reque func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2013,6 +2083,7 @@ func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSet func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2027,6 +2098,7 @@ func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2041,6 +2113,7 @@ func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2054,6 +2127,7 @@ func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *reques func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2068,6 +2142,7 @@ func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(da func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2082,6 +2157,7 @@ func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipReque func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2096,6 +2172,7 @@ func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationR func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2110,6 +2187,7 @@ func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdminist func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2124,6 +2202,7 @@ func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipReques func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2138,6 +2217,7 @@ func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequ func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2157,6 +2237,7 @@ func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *reque func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) @@ -2176,6 +2257,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccount(data *serviceaccou data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Description = obj.Attributes()["description"].(basetypes.StringValue) data.Password = obj.Attributes()["password"].(basetypes.ObjectValue) @@ -2190,6 +2272,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *service data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -2252,6 +2335,7 @@ func fillDataStructFromTFObjectDSSimpleVersionInfo(data *simpleVersionInfoDataDS func fillDataStructFromTFObjectDSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) @@ -2303,6 +2387,7 @@ func fillDataStructFromTFObjectDSVaultVaultRecord(data *vaultVaultRecordDataDS, data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) @@ -2374,6 +2459,7 @@ func fillDataStructFromTFObjectDSVaultVaultUnlockResponse(data *vaultVaultUnlock func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -2401,6 +2487,7 @@ func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj func fillDataStructFromTFObjectDSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 974c68c..41ea31e 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -261,6 +261,7 @@ func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) obj["date_time"] = timePointerToTF(tkh.GetDateTime()) obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) @@ -384,6 +385,7 @@ func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) ( obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { @@ -810,6 +812,7 @@ func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthIntern obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { @@ -1070,6 +1073,7 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { elemType := attrs["key_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1245,6 +1249,7 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) @@ -1436,6 +1441,7 @@ func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapCli } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) @@ -1519,6 +1525,7 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) @@ -1605,6 +1612,7 @@ func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.C diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) diags.Append(d...) @@ -1691,6 +1699,7 @@ func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) diags.Append(d...) @@ -1838,6 +1847,7 @@ func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C } obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) @@ -1927,6 +1937,7 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) @@ -2199,6 +2210,7 @@ func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Dir obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) @@ -2269,6 +2281,7 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) @@ -2360,6 +2373,7 @@ func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel. obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) @@ -2425,6 +2439,7 @@ func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directo obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) @@ -2499,6 +2514,7 @@ func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccount obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["end_date"] = stringerToTF(tkh.GetEndDate()) { val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) @@ -2646,6 +2662,7 @@ func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (ty obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) { val, d := tkhToTFObjectDSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) @@ -2757,6 +2774,7 @@ func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAc obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) @@ -2934,6 +2952,7 @@ func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudi diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { elemType := attrs["accounts"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { @@ -3180,6 +3199,7 @@ func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.Group } obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) @@ -3388,6 +3408,7 @@ func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupCli diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) @@ -3508,6 +3529,7 @@ func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFol diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["name"] = types.StringPointerValue(tkh.GetName()) objVal, d := types.ObjectValue(attrs, obj) @@ -3957,6 +3979,7 @@ func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupPr diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) @@ -4156,6 +4179,7 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) @@ -4319,6 +4343,7 @@ func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.L diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) @@ -4392,6 +4417,7 @@ func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhu diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) @@ -4464,6 +4490,7 @@ func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) diags.Append(d...) @@ -5047,6 +5074,7 @@ func tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyh } obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5148,6 +5176,7 @@ func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel } obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) obj["description"] = types.StringPointerValue(tkh.GetDescription()) { @@ -5211,6 +5240,7 @@ func tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyh obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) @@ -5447,6 +5477,7 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -5648,6 +5679,7 @@ func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) @@ -5930,6 +5962,7 @@ func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) @@ -6046,6 +6079,7 @@ func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6152,6 +6186,7 @@ func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) @@ -6261,6 +6296,7 @@ func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6344,6 +6380,7 @@ func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6429,6 +6466,7 @@ func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubm } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6510,6 +6548,7 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6592,6 +6631,7 @@ func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6708,6 +6748,7 @@ func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhu } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6791,6 +6832,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) @@ -6965,6 +7007,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhu diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) obj["log"] = types.StringPointerValue(tkh.GetLog()) @@ -7196,6 +7239,7 @@ func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7262,6 +7306,7 @@ func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7328,6 +7373,7 @@ func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7479,6 +7525,7 @@ func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Re diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7546,6 +7593,7 @@ func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7615,6 +7663,7 @@ func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7682,6 +7731,7 @@ func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubm diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7749,6 +7799,7 @@ func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Reque diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7811,6 +7862,7 @@ func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tk diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7872,6 +7924,7 @@ func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7934,6 +7987,7 @@ func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -7995,6 +8049,7 @@ func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8061,6 +8116,7 @@ func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8133,6 +8189,7 @@ func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8200,6 +8257,7 @@ func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh ke diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8267,6 +8325,7 @@ func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh key diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8338,6 +8397,7 @@ func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8399,6 +8459,7 @@ func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.Reques diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8460,6 +8521,7 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8579,6 +8641,7 @@ func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Re diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8670,6 +8733,7 @@ func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8732,6 +8796,7 @@ func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh key diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8799,6 +8864,7 @@ func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyh diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8866,6 +8932,7 @@ func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8927,6 +8994,7 @@ func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Requ diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -8993,6 +9061,7 @@ func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9061,6 +9130,7 @@ func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9129,6 +9199,7 @@ func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9195,6 +9266,7 @@ func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9261,6 +9333,7 @@ func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubm diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9322,6 +9395,7 @@ func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9388,6 +9462,7 @@ func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bo diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9454,6 +9529,7 @@ func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurs diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9520,6 +9596,7 @@ func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9586,6 +9663,7 @@ func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse boo diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9652,6 +9730,7 @@ func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse b diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9718,6 +9797,7 @@ func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9789,6 +9869,7 @@ func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -9860,6 +9941,7 @@ func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S } obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["description"] = types.StringPointerValue(tkh.GetDescription()) { val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetPassword()) @@ -9922,6 +10004,7 @@ func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -10292,6 +10375,7 @@ func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) @@ -10555,6 +10639,7 @@ func tkhToTFObjectDSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRec obj["name"] = types.StringPointerValue(tkh.GetName()) obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) obj["end_date"] = stringerToTF(tkh.GetEndDate()) obj["filename"] = types.StringPointerValue(tkh.GetFilename()) @@ -10914,6 +10999,7 @@ func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhooka diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) diags.Append(d...) @@ -11016,6 +11102,7 @@ func tkhToTFObjectDSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.Webhook diags.Append(d...) obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) { val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) diags.Append(d...) diff --git a/internal/provider/group_data_source.go b/internal/provider/group_data_source.go index 20c98d4..37ea069 100644 --- a/internal/provider/group_data_source.go +++ b/internal/provider/group_data_source.go @@ -7,8 +7,11 @@ import ( "context" "fmt" + "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" keyhubgroup "github.com/topicuskeyhub/sdk-go/group" @@ -70,9 +73,15 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + groups, err := d.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ - Uuid: []string{data.UUID.ValueString()}, + Uuid: []string{data.UUID.ValueString()}, + Additional: additional, }, }) if err != nil { @@ -90,6 +99,7 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } fillDataStructFromTFObjectDSGroupGroup(&data, tfGroup) + data.Additional = listValue // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 57af3a7..d9dbe95 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -39,7 +39,7 @@ type KeyHubProviderModel struct { } func (p *KeyHubProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) { - resp.TypeName = "keyhub" + resp.TypeName = "keyhubpreview" resp.Version = p.version } diff --git a/main.go b/main.go index ac2195a..2f9ea5a 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "log" "github.com/hashicorp/terraform-plugin-framework/providerserver" - "github.com/topicuskeyhub/terraform-provider-keyhub-preview/internal/provider" + "github.com/topicuskeyhub/terraform-provider-keyhubpreview/internal/provider" ) // Run "go generate" to format example terraform files and generate the docs for the registry/website @@ -38,7 +38,7 @@ func main() { flag.Parse() opts := providerserver.ServeOpts{ - Address: "registry.terraform.io/hashicorp/keyhub-preview", + Address: "registry.terraform.io/hashicorp/keyhubpreview", Debug: debug, } From ca6e800bd1139db2966e90119c90307cae3da3b3 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Mon, 18 Sep 2023 13:56:01 +0200 Subject: [PATCH 11/34] Generate first data sources --- docs/data-sources/account.md | 391 +++++++++ docs/data-sources/certificate.md | 79 ++ docs/data-sources/client.md | 819 ++++++++++++++++++ docs/data-sources/directory.md | 181 ++++ docs/data-sources/group.md | 4 +- docs/data-sources/groupclassification.md | 92 ++ docs/data-sources/organizationalunit.md | 142 +++ docs/data-sources/serviceaccount.md | 269 ++++++ docs/data-sources/system.md | 644 ++++++++++++++ docs/data-sources/vaultrecord.md | 353 ++++++++ docs/data-sources/webhook.md | 381 ++++++++ .../provider-install-verification/main.tf | 32 +- internal/provider/datasource-account.go | 102 +++ internal/provider/datasource-certificate.go | 102 +++ internal/provider/datasource-client.go | 102 +++ internal/provider/datasource-directory.go | 102 +++ ...oup_data_source.go => datasource-group.go} | 34 +- .../datasource-groupclassification.go | 102 +++ .../provider/datasource-organizationalunit.go | 102 +++ .../provider/datasource-serviceaccount.go | 102 +++ internal/provider/datasource-system.go | 102 +++ internal/provider/datasource-vaultrecord.go | 102 +++ internal/provider/datasource-webhook.go | 102 +++ internal/provider/full-data-struct-ds.go | 62 +- internal/provider/full-data-struct-rs.go | 62 +- internal/provider/full-helpers.go | 39 +- internal/provider/full-object-attrs-ds.go | 52 +- internal/provider/full-object-attrs-rs.go | 52 +- internal/provider/full-schema-ds.go | 52 +- internal/provider/full-schema-rs.go | 52 +- .../provider/full-tf-to-data-struct-ds.go | 62 +- .../provider/full-tf-to-data-struct-rs.go | 62 +- internal/provider/full-tf-to-tkh-ds.go | 52 +- internal/provider/full-tf-to-tkh-rs.go | 52 +- internal/provider/full-tkh-to-tf-ds.go | 52 +- internal/provider/full-tkh-to-tf-rs.go | 52 +- internal/provider/provider.go | 12 +- main.go | 32 +- 38 files changed, 4804 insertions(+), 384 deletions(-) create mode 100644 docs/data-sources/account.md create mode 100644 docs/data-sources/certificate.md create mode 100644 docs/data-sources/client.md create mode 100644 docs/data-sources/directory.md create mode 100644 docs/data-sources/groupclassification.md create mode 100644 docs/data-sources/organizationalunit.md create mode 100644 docs/data-sources/serviceaccount.md create mode 100644 docs/data-sources/system.md create mode 100644 docs/data-sources/vaultrecord.md create mode 100644 docs/data-sources/webhook.md create mode 100644 internal/provider/datasource-account.go create mode 100644 internal/provider/datasource-certificate.go create mode 100644 internal/provider/datasource-client.go create mode 100644 internal/provider/datasource-directory.go rename internal/provider/{group_data_source.go => datasource-group.go} (69%) create mode 100644 internal/provider/datasource-groupclassification.go create mode 100644 internal/provider/datasource-organizationalunit.go create mode 100644 internal/provider/datasource-serviceaccount.go create mode 100644 internal/provider/datasource-system.go create mode 100644 internal/provider/datasource-vaultrecord.go create mode 100644 internal/provider/datasource-webhook.go diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md new file mode 100644 index 0000000..59ce0c9 --- /dev/null +++ b/docs/data-sources/account.md @@ -0,0 +1,391 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_account Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_account (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--account_permissions)) +- `active` (Boolean) +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `can_request_groups` (Boolean) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--directory)) +- `directory_name` (String) +- `directory_password_change_required` (Boolean) +- `directory_rotating_password` (String) +- `directory_type` (String) +- `display_name` (String) +- `email` (String) +- `id_in_directory` (String) +- `key_hub_password_change_required` (Boolean) +- `last_active` (String) +- `last_modified_at` (String) +- `license_role` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `locale` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `reregistration_required` (Boolean) +- `token_password_enabled` (Boolean) +- `two_factor_status` (String) +- `username` (String) +- `valid_in_directory` (Boolean) +- `validity` (String) + + +### Nested Schema for `account_permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `active_login` (Boolean) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `pending_recovery_requests` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--pending_recovery_requests)) +- `settings` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--settings)) +- `stored_attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--stored_attributes)) +- `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.groups` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) + + +### Nested Schema for `additional_objects.groups.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `admin` (Boolean) +- `end_date` (String) +- `folder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--folder)) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `uuid` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.groups.items.visible_for_provisioning` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--visible_for_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--visible_for_provisioning--permissions)) + + +### Nested Schema for `additional_objects.groups.items.visible_for_provisioning.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.visible_for_provisioning.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.visible_for_provisioning` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.visible_for_provisioning` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.pending_recovery_requests` + +Read-Only: + +- `pending2_f_a_recovery_request` (Boolean) +- `pending_password_recovery_request` (Boolean) + + + +### Nested Schema for `additional_objects.settings` + +Read-Only: + +- `default_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--settings--default_organizational_unit)) +- `directory_name` (String) +- `directory_type` (String) +- `in_groups` (Boolean) +- `in_multiple_organizational_units` (Boolean) +- `key_hub_admin` (Boolean) +- `multiple_organizational_units_exist` (Boolean) +- `password_mode` (String) +- `ssh_public_key` (String) +- `two_factor_authentication` (String) +- `use_token_password` (Boolean) +- `vault_status` (String) + + +### Nested Schema for `additional_objects.settings.default_organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--settings--default_organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--settings--default_organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.settings.default_organizational_unit.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.settings.default_organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.stored_attributes` + +Read-Only: + +- `attributes` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--stored_attributes--attributes)) + + +### Nested Schema for `additional_objects.stored_attributes.attributes` + +Read-Only: + +- `name` (String) +- `value` (String) + + + + +### Nested Schema for `additional_objects.vault` + +Read-Only: + +- `access_available` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) + + +### Nested Schema for `additional_objects.vault.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.records` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `color` (String) +- `derived` (Boolean) +- `end_date` (String) +- `filename` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) +- `share_end_time` (String) +- `types` (List of String) +- `url` (String) +- `username` (String) +- `uuid` (String) +- `warning_period` (String) + + +### Nested Schema for `additional_objects.vault.records.warning_period` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.records.warning_period` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `directory.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `directory.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/certificate.md b/docs/data-sources/certificate.md new file mode 100644 index 0000000..d02fa22 --- /dev/null +++ b/docs/data-sources/certificate.md @@ -0,0 +1,79 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_certificate Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_certificate (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `key_data` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `subject_d_n` (String) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md new file mode 100644 index 0000000..09469f0 --- /dev/null +++ b/docs/data-sources/client.md @@ -0,0 +1,819 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_client Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_client (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `groupclients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) +- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) +- `vault_record_count` (Number) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.groupclients` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items)) + + +### Nested Schema for `additional_objects.groupclients.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `activation_required` (Boolean) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--client)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--links)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--permissions)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator)) + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.groups` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) + + +### Nested Schema for `additional_objects.groups.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `admin` (Boolean) +- `application_administration` (Boolean) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--audit_config)) +- `audit_requested` (Boolean) +- `auditor` (Boolean) +- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_auditing)) +- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_delegation)) +- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_membership)) +- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_provisioning)) +- `authorizing_group_types` (List of String) +- `classification` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--classification)) +- `description` (String) +- `extended_access` (String) +- `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `name` (String) +- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--nested_under)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `private_group` (Boolean) +- `record_trail` (Boolean) +- `rotating_password_required` (Boolean) +- `single_managed` (Boolean) +- `uuid` (String) +- `vault_recovery` (String) +- `vault_requires_activation` (Boolean) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `months` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.tile` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `application` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--application)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--group)) +- `identicon_code` (Number) +- `launchpad_launchpad_tile_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--links)) +- `logo` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--permissions)) +- `uri` (String) +- `vault_record` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record)) + + +### Nested Schema for `additional_objects.tile.application` + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.tile.application.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.application.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.tile.group` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.tile.group.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.group.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.tile.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.vault_record` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.tile.vault_record.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.vault_record.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `owner.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owner.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/directory.md b/docs/data-sources/directory.md new file mode 100644 index 0000000..0655c6a --- /dev/null +++ b/docs/data-sources/directory.md @@ -0,0 +1,181 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_directory Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_directory (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--base_organizational_unit)) +- `default_directory` (Boolean) +- `directory_account_directory_primer_type` (String) +- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--helpdesk_group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `restrict2fa` (Boolean) +- `rotating_password` (String) +- `username_customizable` (Boolean) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--status)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.markers` + +Read-Only: + +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) + + +### Nested Schema for `additional_objects.markers.markers` + +Read-Only: + +- `level` (String) +- `mark_item_marker_type` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) + + +### Nested Schema for `additional_objects.markers.markers.parameters` + + + + + +### Nested Schema for `additional_objects.status` + +Read-Only: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + + + +### Nested Schema for `base_organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--base_organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--base_organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `base_organizational_unit.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `base_organizational_unit.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `helpdesk_group` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk_group--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk_group--permissions)) +- `uuid` (String) + + +### Nested Schema for `helpdesk_group.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `helpdesk_group.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 7c2128f..7d4311d 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -3,12 +3,12 @@ page_title: "keyhubpreview_group Data Source - terraform-provider-keyhubpreview" subcategory: "" description: |- - Group data source + --- # keyhubpreview_group (Data Source) -Group data source + diff --git a/docs/data-sources/groupclassification.md b/docs/data-sources/groupclassification.md new file mode 100644 index 0000000..1680f7a --- /dev/null +++ b/docs/data-sources/groupclassification.md @@ -0,0 +1,92 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_groupclassification Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_groupclassification (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `authorizing_group_auditing_required` (Boolean) +- `authorizing_group_delegation_required` (Boolean) +- `authorizing_group_membership_required` (Boolean) +- `authorizing_group_provisioning_required` (Boolean) +- `default_classification` (Boolean) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `maximum_audit_interval` (Number) +- `minimum_nr_managers` (Number) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `record_trail_required` (Boolean) +- `required_months` (List of String) +- `rotating_password_required` (Boolean) +- `vault_requires_activation` (Boolean) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `info` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--info)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.info` + +Read-Only: + +- `nr_groups` (Number) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/organizationalunit.md b/docs/data-sources/organizationalunit.md new file mode 100644 index 0000000..93c1835 --- /dev/null +++ b/docs/data-sources/organizationalunit.md @@ -0,0 +1,142 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_organizationalunit Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_organizationalunit (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `depth` (Number) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owner)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--parent)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `owner.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owner.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `parent` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--parent--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--parent--permissions)) +- `uuid` (String) + + +### Nested Schema for `parent.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `parent.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md new file mode 100644 index 0000000..0d21e3d --- /dev/null +++ b/docs/data-sources/serviceaccount.md @@ -0,0 +1,269 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_serviceaccount Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_serviceaccount (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `active` (Boolean) +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `password` (Attributes) (see [below for nested schema](#nestedatt--password)) +- `password_rotation` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--system)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) +- `username` (String) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.groups` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) + + +### Nested Schema for `additional_objects.groups.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `name_in_system` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `provisioning_group_on_system_primer_type` (String) +- `short_name_in_system` (String) + + +### Nested Schema for `additional_objects.groups.items.short_name_in_system` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.short_name_in_system` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `password` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--password--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--password--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `password.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `password.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `system` + +Required: + +- `uuid` (String) + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--system--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--system--permissions)) +- `provisioning_provisioned_system_primer_type` (String) + + +### Nested Schema for `system.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `system.organizational_unit` + +Required: + +- `uuid` (String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--system--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--system--organizational_unit--permissions)) + + +### Nested Schema for `system.organizational_unit.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `system.organizational_unit.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `system.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/system.md b/docs/data-sources/system.md new file mode 100644 index 0000000..0759f95 --- /dev/null +++ b/docs/data-sources/system.md @@ -0,0 +1,644 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_system Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_system (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `account_count` (Number) +- `active` (Boolean) +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--content_administrator)) +- `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) +- `username_prefix` (String) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--account)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `issued_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions)) +- `login_name` (String) +- `management_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--management_permissions)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) +- `statistics` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--statistics)) +- `supported_group_types` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--supported_group_types)) + + +### Nested Schema for `additional_objects.account` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `display_name` (String) +- `last_active` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--account--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--account--permissions)) +- `uid` (Number) +- `username` (String) +- `uuid` (String) +- `validity` (String) + + +### Nested Schema for `additional_objects.account.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.account.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.issued_permissions` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items)) + + +### Nested Schema for `additional_objects.issued_permissions.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--client)) +- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--for_group)) +- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--for_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--permissions)) +- `value` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--attributes)) +- `callback_u_r_i` (String) +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_u_r_i` (String) +- `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--links)) +- `name` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--permissions)) +- `resource_u_r_is` (String) +- `scopes` (List of String) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret)) +- `show_landing_page` (Boolean) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--technical_administrator)) +- `use_client_credentials` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.account_permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.attributes` + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.owner.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.owner.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.technical_administrator.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.technical_administrator.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.issued_permissions.items.value` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.issued_permissions.items.value` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.issued_permissions.items.value.organizational_unit.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.issued_permissions.items.value.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.issued_permissions.items.value` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.issued_permissions.items.value` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.management_permissions` + +Read-Only: + +- `create_new_groups_allowed` (Boolean) +- `create_service_accounts_allowed` (Boolean) +- `reuse_existing_groups_allowed` (Boolean) + + + +### Nested Schema for `additional_objects.markers` + +Read-Only: + +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) + + +### Nested Schema for `additional_objects.markers.markers` + +Read-Only: + +- `level` (String) +- `mark_item_marker_type` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) + + +### Nested Schema for `additional_objects.markers.markers.parameters` + + + + + +### Nested Schema for `additional_objects.statistics` + +Read-Only: + +- `number_of_failed_calls` (Number) +- `number_of_not_permitted_calls` (Number) +- `number_of_successful_calls` (Number) +- `state` (String) + + + +### Nested Schema for `additional_objects.supported_group_types` + +Read-Only: + +- `types` (List of String) + + + + +### Nested Schema for `content_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `content_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `content_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `organizational_unit` + +Required: + +- `uuid` (String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--permissions)) + + +### Nested Schema for `organizational_unit.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `organizational_unit.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `owner.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owner.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `technical_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--technical_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--technical_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `technical_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `technical_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/vaultrecord.md b/docs/data-sources/vaultrecord.md new file mode 100644 index 0000000..9925bfa --- /dev/null +++ b/docs/data-sources/vaultrecord.md @@ -0,0 +1,353 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_vaultrecord Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_vaultrecord (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `color` (String) +- `derived` (Boolean) +- `end_date` (String) +- `filename` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `share_end_time` (String) +- `types` (List of String) +- `url` (String) +- `username` (String) +- `warning_period` (String) + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--parent)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) +- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.parent` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--parent--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--parent--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.parent.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.parent.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.secret` + +Read-Only: + +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) + + + +### Nested Schema for `additional_objects.share_summary` + +Read-Only: + +- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) + + +### Nested Schema for `additional_objects.share_summary.children` + +Read-Only: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + +### Nested Schema for `additional_objects.share_summary.parent` + +Read-Only: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + + +### Nested Schema for `additional_objects.shares` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--items)) + + +### Nested Schema for `additional_objects.shares.items` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--items--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.shares.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.shares.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.tile` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `application` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--application)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--group)) +- `identicon_code` (Number) +- `launchpad_launchpad_tile_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--links)) +- `logo` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--permissions)) +- `vault_record` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record)) + + +### Nested Schema for `additional_objects.tile.application` + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.tile.application.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.application.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.tile.group` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.tile.group.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.group.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.tile.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.vault_record` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.tile.vault_record.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.tile.vault_record.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.vaultholder` + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/data-sources/webhook.md b/docs/data-sources/webhook.md new file mode 100644 index 0000000..d4042ef --- /dev/null +++ b/docs/data-sources/webhook.md @@ -0,0 +1,381 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_webhook Data Source - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_webhook (Data Source) + + + + + + +## Schema + +### Required + +- `uuid` (String) + +### Optional + +- `additional` (List of String) + +### Read-Only + +- `account` (Attributes) (see [below for nested schema](#nestedatt--account)) +- `active` (Boolean) +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `all_types` (Boolean) +- `authentication_scheme` (String) +- `basic_auth_password` (String) +- `basic_auth_username` (String) +- `bearer_token` (String) +- `client` (Attributes) (see [below for nested schema](#nestedatt--client)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--client_certificate)) +- `custom_header_name` (String) +- `custom_header_value` (String) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--directory)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--system)) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--trusted_certificate)) +- `types` (List of String) +- `url` (String) +- `verbose_payloads` (Boolean) + + +### Nested Schema for `account` + +Read-Only: + +- `display_name` (String) +- `last_active` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--account--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--account--permissions)) +- `username` (String) +- `uuid` (String) +- `validity` (String) + + +### Nested Schema for `account.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `account.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects` + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) + + +### Nested Schema for `additional_objects.audit` + +Read-Only: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + + +### Nested Schema for `client` + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client--permissions)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `client.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `client.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_certificate--permissions)) +- `subject_d_n` (String) +- `uuid` (String) + + +### Nested Schema for `client_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `client_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `directory.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `directory.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `group` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--group--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--group--permissions)) +- `uuid` (String) + + +### Nested Schema for `group.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `group.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `system` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--system--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--system--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) + + +### Nested Schema for `system.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `system.organizational_unit` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--system--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--system--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `system.organizational_unit.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `system.organizational_unit.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `system.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--trusted_certificate--permissions)) +- `subject_d_n` (String) +- `uuid` (String) + + +### Nested Schema for `trusted_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `trusted_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 172b5d1..d894018 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -34,19 +34,19 @@ output "data_group" { value = data.keyhubpreview_group.test } -resource "keyhubpreview_group" "terra" { - name = "Terraform" - additional_objects = { - accounts = { - items = [{ - uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" - rights = "MANAGER" - }] - } - } - admin = true -} - -output "resource_group" { - value = resource.keyhubpreview_group.terra -} +#resource "keyhubpreview_group" "terra" { +# name = "Terraform" +# additional_objects = { +# accounts = { +# items = [{ +# uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" +# rights = "MANAGER" +# }] +# } +# } +# admin = true +#} +# +#output "resource_group" { +# value = resource.keyhubpreview_group.terra +#} diff --git a/internal/provider/datasource-account.go b/internal/provider/datasource-account.go new file mode 100644 index 0000000..b4aeca8 --- /dev/null +++ b/internal/provider/datasource-account.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/account" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &accountDataSource{} + _ datasource.DataSourceWithConfigure = &accountDataSource{} +) + +func NewAccountDataSource() datasource.DataSource { + return &accountDataSource{} +} + +type accountDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *accountDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_account" +} + +func (d *accountDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsAuthAccount(true), + } +} + +func (d *accountDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *accountDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data authAccountDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading account from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Account().Get(ctx, &keyhubreq.AccountRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.AccountRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.AuthAccountable](ctx, wrapper, "account", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSAuthAccount(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSAuthAccount(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-certificate.go b/internal/provider/datasource-certificate.go new file mode 100644 index 0000000..cbf4e3e --- /dev/null +++ b/internal/provider/datasource-certificate.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/certificate" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &certificateDataSource{} + _ datasource.DataSourceWithConfigure = &certificateDataSource{} +) + +func NewCertificateDataSource() datasource.DataSource { + return &certificateDataSource{} +} + +type certificateDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *certificateDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_certificate" +} + +func (d *certificateDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsCertificateCertificate(true), + } +} + +func (d *certificateDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *certificateDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data certificateCertificateDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading certificate from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Certificate().Get(ctx, &keyhubreq.CertificateRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.CertificateRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.CertificateCertificateable](ctx, wrapper, "certificate", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSCertificateCertificate(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSCertificateCertificate(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-client.go b/internal/provider/datasource-client.go new file mode 100644 index 0000000..7fa65ae --- /dev/null +++ b/internal/provider/datasource-client.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/client" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &clientDataSource{} + _ datasource.DataSourceWithConfigure = &clientDataSource{} +) + +func NewClientDataSource() datasource.DataSource { + return &clientDataSource{} +} + +type clientDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *clientDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_client" +} + +func (d *clientDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsClientClientApplication(true), + } +} + +func (d *clientDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *clientDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data clientClientApplicationDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading client from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Client().Get(ctx, &keyhubreq.ClientRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.ClientRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.ClientClientApplicationable](ctx, wrapper, "client", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSClientClientApplication(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSClientClientApplication(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-directory.go b/internal/provider/datasource-directory.go new file mode 100644 index 0000000..bfdf2ea --- /dev/null +++ b/internal/provider/datasource-directory.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/directory" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &directoryDataSource{} + _ datasource.DataSourceWithConfigure = &directoryDataSource{} +) + +func NewDirectoryDataSource() datasource.DataSource { + return &directoryDataSource{} +} + +type directoryDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *directoryDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_directory" +} + +func (d *directoryDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory(true), + } +} + +func (d *directoryDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *directoryDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data directoryAccountDirectoryDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading directory from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Directory().Get(ctx, &keyhubreq.DirectoryRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.DirectoryRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.DirectoryAccountDirectoryable](ctx, wrapper, "directory", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSDirectoryAccountDirectory(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSDirectoryAccountDirectory(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/group_data_source.go b/internal/provider/datasource-group.go similarity index 69% rename from internal/provider/group_data_source.go rename to internal/provider/datasource-group.go index 37ea069..a35e6ce 100644 --- a/internal/provider/group_data_source.go +++ b/internal/provider/datasource-group.go @@ -14,7 +14,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types/basetypes" "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" - keyhubgroup "github.com/topicuskeyhub/sdk-go/group" + keyhubreq "github.com/topicuskeyhub/sdk-go/group" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" ) // Ensure provider defined types fully satisfy framework interfaces. @@ -27,7 +28,6 @@ func NewGroupDataSource() datasource.DataSource { return &groupDataSource{} } -// groupDataSource defines the data source implementation. type groupDataSource struct { client *keyhub.KeyHubClient } @@ -38,9 +38,7 @@ func (d *groupDataSource) Metadata(ctx context.Context, req datasource.MetadataR func (d *groupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { resp.Schema = schema.Schema{ - // This description is used by the documentation generator and the language server. - MarkdownDescription: "Group data source", - Attributes: dataSourceSchemaAttrsGroupGroup(true), + Attributes: dataSourceSchemaAttrsGroupGroup(true), } } @@ -71,36 +69,34 @@ func (d *groupDataSource) Read(ctx context.Context, req datasource.ReadRequest, return } - ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") listValue, _ := data.Additional.ToListValue(ctx) additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() }) + uuid := data.UUID.ValueString() - groups, err := d.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ - Uuid: []string{data.UUID.ValueString()}, + wrapper, err := d.client.Group().Get(ctx, &keyhubreq.GroupRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.GroupRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, Additional: additional, }, }) - if err != nil { - resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to read group, got error: %s", err)) - return - } - if len(groups.GetItems()) == 0 { - resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to find group with UUID %s", data.UUID.ValueString())) + + tkh, diags := findFirst[keyhubmodels.GroupGroupable](ctx, wrapper, "group", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { return } - group := groups.GetItems()[0] - tfGroup, diags := tkhToTFObjectDSGroupGroup(true, group) + + tf, diags := tkhToTFObjectDSGroupGroup(true, tkh) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - fillDataStructFromTFObjectDSGroupGroup(&data, tfGroup) + + fillDataStructFromTFObjectDSGroupGroup(&data, tf) data.Additional = listValue - // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } diff --git a/internal/provider/datasource-groupclassification.go b/internal/provider/datasource-groupclassification.go new file mode 100644 index 0000000..d5eaf1e --- /dev/null +++ b/internal/provider/datasource-groupclassification.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/groupclassification" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &groupclassificationDataSource{} + _ datasource.DataSourceWithConfigure = &groupclassificationDataSource{} +) + +func NewGroupclassificationDataSource() datasource.DataSource { + return &groupclassificationDataSource{} +} + +type groupclassificationDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *groupclassificationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_groupclassification" +} + +func (d *groupclassificationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification(true), + } +} + +func (d *groupclassificationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *groupclassificationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data groupGroupClassificationDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading groupclassification from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Groupclassification().Get(ctx, &keyhubreq.GroupclassificationRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.GroupclassificationRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.GroupGroupClassificationable](ctx, wrapper, "groupclassification", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSGroupGroupClassification(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSGroupGroupClassification(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-organizationalunit.go b/internal/provider/datasource-organizationalunit.go new file mode 100644 index 0000000..b4a8a1e --- /dev/null +++ b/internal/provider/datasource-organizationalunit.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/organizationalunit" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &organizationalunitDataSource{} + _ datasource.DataSourceWithConfigure = &organizationalunitDataSource{} +) + +func NewOrganizationalunitDataSource() datasource.DataSource { + return &organizationalunitDataSource{} +} + +type organizationalunitDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *organizationalunitDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_organizationalunit" +} + +func (d *organizationalunitDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit(true), + } +} + +func (d *organizationalunitDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *organizationalunitDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data organizationOrganizationalUnitDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading organizationalunit from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Organizationalunit().Get(ctx, &keyhubreq.OrganizationalunitRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.OrganizationalunitRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.OrganizationOrganizationalUnitable](ctx, wrapper, "organizationalunit", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSOrganizationOrganizationalUnit(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-serviceaccount.go b/internal/provider/datasource-serviceaccount.go new file mode 100644 index 0000000..d068749 --- /dev/null +++ b/internal/provider/datasource-serviceaccount.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/serviceaccount" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &serviceaccountDataSource{} + _ datasource.DataSourceWithConfigure = &serviceaccountDataSource{} +) + +func NewServiceaccountDataSource() datasource.DataSource { + return &serviceaccountDataSource{} +} + +type serviceaccountDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *serviceaccountDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_serviceaccount" +} + +func (d *serviceaccountDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount(true), + } +} + +func (d *serviceaccountDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *serviceaccountDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data serviceaccountServiceAccountDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading serviceaccount from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Serviceaccount().Get(ctx, &keyhubreq.ServiceaccountRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.ServiceaccountRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.ServiceaccountServiceAccountable](ctx, wrapper, "serviceaccount", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSServiceaccountServiceAccount(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSServiceaccountServiceAccount(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-system.go b/internal/provider/datasource-system.go new file mode 100644 index 0000000..414e916 --- /dev/null +++ b/internal/provider/datasource-system.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/system" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &systemDataSource{} + _ datasource.DataSourceWithConfigure = &systemDataSource{} +) + +func NewSystemDataSource() datasource.DataSource { + return &systemDataSource{} +} + +type systemDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *systemDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_system" +} + +func (d *systemDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(true), + } +} + +func (d *systemDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *systemDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data provisioningProvisionedSystemDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading system from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.System().Get(ctx, &keyhubreq.SystemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.SystemRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.ProvisioningProvisionedSystemable](ctx, wrapper, "system", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSProvisioningProvisionedSystem(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSProvisioningProvisionedSystem(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-vaultrecord.go b/internal/provider/datasource-vaultrecord.go new file mode 100644 index 0000000..5e3aacf --- /dev/null +++ b/internal/provider/datasource-vaultrecord.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/vaultrecord" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &vaultrecordDataSource{} + _ datasource.DataSourceWithConfigure = &vaultrecordDataSource{} +) + +func NewVaultrecordDataSource() datasource.DataSource { + return &vaultrecordDataSource{} +} + +type vaultrecordDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *vaultrecordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_vaultrecord" +} + +func (d *vaultrecordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(true), + } +} + +func (d *vaultrecordDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *vaultrecordDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data vaultVaultRecordDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading vaultrecord from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Vaultrecord().Get(ctx, &keyhubreq.VaultrecordRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.VaultrecordRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSVaultVaultRecord(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/datasource-webhook.go b/internal/provider/datasource-webhook.go new file mode 100644 index 0000000..9176e34 --- /dev/null +++ b/internal/provider/datasource-webhook.go @@ -0,0 +1,102 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/attr" + "github.com/hashicorp/terraform-plugin-framework/datasource" + "github.com/hashicorp/terraform-plugin-framework/datasource/schema" + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/webhook" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ datasource.DataSource = &webhookDataSource{} + _ datasource.DataSourceWithConfigure = &webhookDataSource{} +) + +func NewWebhookDataSource() datasource.DataSource { + return &webhookDataSource{} +} + +type webhookDataSource struct { + client *keyhub.KeyHubClient +} + +func (d *webhookDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { + resp.TypeName = req.ProviderTypeName + "_webhook" +} + +func (d *webhookDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: dataSourceSchemaAttrsWebhookWebhook(true), + } +} + +func (d *webhookDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + d.client = client +} + +func (d *webhookDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse) { + var data webhookWebhookDataDS + resp.Diagnostics.Append(req.Config.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Debug(ctx, "Reading webhook from Topicus KeyHub by UUID") + listValue, _ := data.Additional.ToListValue(ctx) + additional, _ := tfToSlice(listValue, func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + uuid := data.UUID.ValueString() + + wrapper, err := d.client.Webhook().Get(ctx, &keyhubreq.WebhookRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.WebhookRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: additional, + }, + }) + + tkh, diags := findFirst[keyhubmodels.WebhookWebhookable](ctx, wrapper, "webhook", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectDSWebhookWebhook(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + fillDataStructFromTFObjectDSWebhookWebhook(&data, tf) + data.Additional = listValue + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 3bf0969..590d34a 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -194,7 +194,7 @@ var authAccountRecoveryStatusAttrTypesDS = objectAttrsTypeDSAuthAccountRecoveryS var authAccountRecoveryStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountRecoveryStatus(true) type authAccountRecoveryStatusDataDS struct { - Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` + Pending2FARecoveryRequest types.Bool `tfsdk:"pending2fa_recovery_request"` PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` } @@ -246,7 +246,7 @@ var authAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAudi type authAccountsAuditStatsDataDS struct { DirectoryStats types.Object `tfsdk:"directory_stats"` - TwoFAStats types.Object `tfsdk:"two_f_a_stats"` + TwoFAStats types.Object `tfsdk:"two_fa_stats"` ValidityStats types.Object `tfsdk:"validity_stats"` } @@ -367,7 +367,7 @@ type certificateCertificateDataDS struct { FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` + SubjectDN types.String `tfsdk:"subject_dn"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -394,7 +394,7 @@ type certificateCertificatePrimerDataDS struct { FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` + SubjectDN types.String `tfsdk:"subject_dn"` UUID types.String `tfsdk:"uuid"` } @@ -473,7 +473,7 @@ type clientLdapClientDataDS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - BindDn types.String `tfsdk:"bind_dn"` + BindDN types.String `tfsdk:"bind_dn"` ClientCertificate types.Object `tfsdk:"client_certificate"` ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` SharedSecret types.Object `tfsdk:"shared_secret"` @@ -499,12 +499,12 @@ type clientOAuth2ClientDataDS struct { TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` AccountPermissions types.List `tfsdk:"account_permissions"` Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_u_r_i"` + CallbackURI types.String `tfsdk:"callback_uri"` Confidential types.Bool `tfsdk:"confidential"` DebugMode types.Bool `tfsdk:"debug_mode"` IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` - ResourceURIs types.String `tfsdk:"resource_u_r_is"` + InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` + ResourceURIs types.String `tfsdk:"resource_uris"` ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` SharedSecret types.Object `tfsdk:"shared_secret"` ShowLandingPage types.Bool `tfsdk:"show_landing_page"` @@ -716,7 +716,7 @@ type directoryLDAPDirectoryDataDS struct { RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_d_n"` + BaseDN types.String `tfsdk:"base_dn"` ClientCertificate types.Object `tfsdk:"client_certificate"` Dialect types.String `tfsdk:"dialect"` FailoverHost types.String `tfsdk:"failover_host"` @@ -724,7 +724,7 @@ type directoryLDAPDirectoryDataDS struct { Host types.String `tfsdk:"host"` PasswordRecovery types.String `tfsdk:"password_recovery"` Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_d_n"` + SearchBindDN types.String `tfsdk:"search_bind_dn"` SearchBindPassword types.String `tfsdk:"search_bind_password"` SearchFilter types.String `tfsdk:"search_filter"` TLS types.String `tfsdk:"tls"` @@ -1244,7 +1244,7 @@ type launchpadDisplayedLaunchpadTileDataDS struct { Logo types.List `tfsdk:"logo"` Tile types.Object `tfsdk:"tile"` Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadDisplayedLaunchpadTilesAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(false) @@ -1307,7 +1307,7 @@ type launchpadManualLaunchpadTileDataDS struct { Logo types.List `tfsdk:"logo"` VaultRecord types.Object `tfsdk:"vault_record"` Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) @@ -1324,7 +1324,7 @@ type launchpadSsoApplicationLaunchpadTileDataDS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecord types.Object `tfsdk:"vault_record"` - Uri types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadVaultRecordLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false) @@ -1623,21 +1623,21 @@ type provisioningAbstractProvisionedLDAPDataDS struct { TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` ClientCertificate types.Object `tfsdk:"client_certificate"` FailoverHost types.String `tfsdk:"failover_host"` FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` Host types.String `tfsdk:"host"` ObjectClasses types.String `tfsdk:"object_classes"` Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` TLS types.String `tfsdk:"tls"` TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_d_n"` + UserDN types.String `tfsdk:"user_dn"` } var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) @@ -1762,7 +1762,7 @@ type provisioningProvisionNumberSequenceDataDS struct { AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Name types.String `tfsdk:"name"` - NextUID types.Int64 `tfsdk:"next_u_i_d"` + NextUID types.Int64 `tfsdk:"next_uid"` } var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(false) @@ -1804,21 +1804,21 @@ type provisioningProvisionedADDataDS struct { TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` ClientCertificate types.Object `tfsdk:"client_certificate"` FailoverHost types.String `tfsdk:"failover_host"` FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` Host types.String `tfsdk:"host"` ObjectClasses types.String `tfsdk:"object_classes"` Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` TLS types.String `tfsdk:"tls"` TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_d_n"` + UserDN types.String `tfsdk:"user_dn"` SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } @@ -1835,7 +1835,7 @@ type provisioningProvisionedAccountDataDS struct { Validity types.String `tfsdk:"validity"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - Uid types.Int64 `tfsdk:"uid"` + UID types.Int64 `tfsdk:"uid"` } var provisioningProvisionedAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(false) @@ -1987,21 +1987,21 @@ type provisioningProvisionedLDAPDataDS struct { TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` ClientCertificate types.Object `tfsdk:"client_certificate"` FailoverHost types.String `tfsdk:"failover_host"` FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` Host types.String `tfsdk:"host"` ObjectClasses types.String `tfsdk:"object_classes"` Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` TLS types.String `tfsdk:"tls"` TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_d_n"` + UserDN types.String `tfsdk:"user_dn"` Gid types.Int64 `tfsdk:"gid"` HashingScheme types.String `tfsdk:"hashing_scheme"` Numbering types.Object `tfsdk:"numbering"` @@ -2031,7 +2031,7 @@ type provisioningProvisionedLDAPDirectoryDataDS struct { TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` Directory types.Object `tfsdk:"directory"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` } var provisioningProvisionedSystemAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 67e2549..3ed6d0a 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -192,7 +192,7 @@ var authAccountRecoveryStatusAttrTypesRS = objectAttrsTypeRSAuthAccountRecoveryS var authAccountRecoveryStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountRecoveryStatus(true) type authAccountRecoveryStatusDataRS struct { - Pending2FARecoveryRequest types.Bool `tfsdk:"pending2_f_a_recovery_request"` + Pending2FARecoveryRequest types.Bool `tfsdk:"pending2fa_recovery_request"` PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` } @@ -244,7 +244,7 @@ var authAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAudi type authAccountsAuditStatsDataRS struct { DirectoryStats types.Object `tfsdk:"directory_stats"` - TwoFAStats types.Object `tfsdk:"two_f_a_stats"` + TwoFAStats types.Object `tfsdk:"two_fa_stats"` ValidityStats types.Object `tfsdk:"validity_stats"` } @@ -339,7 +339,7 @@ type certificateCertificateDataRS struct { FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` + SubjectDN types.String `tfsdk:"subject_dn"` UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` KeyData types.List `tfsdk:"key_data"` @@ -365,7 +365,7 @@ type certificateCertificatePrimerDataRS struct { FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_d_n"` + SubjectDN types.String `tfsdk:"subject_dn"` UUID types.String `tfsdk:"uuid"` } @@ -444,7 +444,7 @@ type clientLdapClientDataRS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - BindDn types.String `tfsdk:"bind_dn"` + BindDN types.String `tfsdk:"bind_dn"` ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` @@ -469,12 +469,12 @@ type clientOAuth2ClientDataRS struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` AccountPermissions types.List `tfsdk:"account_permissions"` Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_u_r_i"` + CallbackURI types.String `tfsdk:"callback_uri"` Confidential types.Bool `tfsdk:"confidential"` DebugMode types.Bool `tfsdk:"debug_mode"` IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_u_r_i"` - ResourceURIs types.String `tfsdk:"resource_u_r_is"` + InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` + ResourceURIs types.String `tfsdk:"resource_uris"` ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` ShowLandingPage types.Bool `tfsdk:"show_landing_page"` @@ -680,7 +680,7 @@ type directoryLDAPDirectoryDataRS struct { RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_d_n"` + BaseDN types.String `tfsdk:"base_dn"` ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` Dialect types.String `tfsdk:"dialect"` FailoverHost types.String `tfsdk:"failover_host"` @@ -688,7 +688,7 @@ type directoryLDAPDirectoryDataRS struct { Host types.String `tfsdk:"host"` PasswordRecovery types.String `tfsdk:"password_recovery"` Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_d_n"` + SearchBindDN types.String `tfsdk:"search_bind_dn"` SearchBindPassword types.String `tfsdk:"search_bind_password"` SearchFilter types.String `tfsdk:"search_filter"` TLS types.String `tfsdk:"tls"` @@ -1188,7 +1188,7 @@ type launchpadDisplayedLaunchpadTileDataRS struct { Logo types.List `tfsdk:"logo"` Tile types.Object `tfsdk:"tile"` Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadDisplayedLaunchpadTilesAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(false) @@ -1249,7 +1249,7 @@ type launchpadManualLaunchpadTileDataRS struct { Logo types.List `tfsdk:"logo"` VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` Title types.String `tfsdk:"title"` - Uri types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) @@ -1265,7 +1265,7 @@ type launchpadSsoApplicationLaunchpadTileDataRS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - Uri types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadVaultRecordLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false) @@ -1551,21 +1551,21 @@ type provisioningAbstractProvisionedLDAPDataRS struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` FailoverHost types.String `tfsdk:"failover_host"` FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` Host types.String `tfsdk:"host"` ObjectClasses types.String `tfsdk:"object_classes"` Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` TLS types.String `tfsdk:"tls"` TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_d_n"` + UserDN types.String `tfsdk:"user_dn"` } var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) @@ -1688,7 +1688,7 @@ type provisioningProvisionNumberSequenceDataRS struct { AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` Name types.String `tfsdk:"name"` - NextUID types.Int64 `tfsdk:"next_u_i_d"` + NextUID types.Int64 `tfsdk:"next_uid"` } var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(false) @@ -1729,21 +1729,21 @@ type provisioningProvisionedADDataRS struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` FailoverHost types.String `tfsdk:"failover_host"` FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` Host types.String `tfsdk:"host"` ObjectClasses types.String `tfsdk:"object_classes"` Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` TLS types.String `tfsdk:"tls"` TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_d_n"` + UserDN types.String `tfsdk:"user_dn"` SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } @@ -1753,7 +1753,7 @@ var provisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSProvisio type provisioningProvisionedAccountDataRS struct { UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - Uid types.Int64 `tfsdk:"uid"` + UID types.Int64 `tfsdk:"uid"` } var provisioningProvisionedAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(false) @@ -1900,21 +1900,21 @@ type provisioningProvisionedLDAPDataRS struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_d_n"` - BindDN types.String `tfsdk:"bind_d_n"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` FailoverHost types.String `tfsdk:"failover_host"` FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` Host types.String `tfsdk:"host"` ObjectClasses types.String `tfsdk:"object_classes"` Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_d_n"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` TLS types.String `tfsdk:"tls"` TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_d_n"` + UserDN types.String `tfsdk:"user_dn"` Gid types.Int64 `tfsdk:"gid"` HashingScheme types.String `tfsdk:"hashing_scheme"` Numbering types.Object `tfsdk:"numbering"` @@ -1943,7 +1943,7 @@ type provisioningProvisionedLDAPDirectoryDataRS struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` DirectoryUUID types.String `tfsdk:"directory_uuid"` - GroupDN types.String `tfsdk:"group_d_n"` + GroupDN types.String `tfsdk:"group_dn"` } var provisioningProvisionedSystemAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index 64683f5..468e7a4 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -6,12 +6,14 @@ package provider import ( "context" "fmt" + "strings" "time" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" keyhubaccount "github.com/topicuskeyhub/sdk-go/account" keyhubcertificate "github.com/topicuskeyhub/sdk-go/certificate" @@ -153,11 +155,11 @@ func parseCast[T any, Z any](val basetypes.StringValue, parser func(string) (Z, return caster(parsed), diags } -func findFirst[T keyhubmodel.Linkableable](wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { +func findFirst[T keyhubmodel.Linkableable](ctx context.Context, wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { var diags diag.Diagnostics var noVal T if err != nil { - diags.AddError("Client Error", fmt.Sprintf("Unable to read %s, got error: %s", name, err)) + diags.AddError("Client Error", fmt.Sprintf("Unable to read %s, got error: %s", name, errorReportToString(ctx, err))) return noVal, diags } if len(wrapper.GetItems()) == 0 { @@ -178,7 +180,7 @@ func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel. Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.GroupGroupable](wrapper, "group", uuid, err) + ret, diag := findFirst[keyhubmodel.GroupGroupable](ctx, wrapper, "group", uuid, err) if ret == nil { return ret, diag } @@ -195,7 +197,7 @@ func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.DirectoryAccountDirectoryable](wrapper, "directory", uuid, err) + ret, diag := findFirst[keyhubmodel.DirectoryAccountDirectoryable](ctx, wrapper, "directory", uuid, err) if ret == nil { return ret, diag } @@ -212,7 +214,7 @@ func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *s Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.OrganizationOrganizationalUnitable](wrapper, "organizational unit", uuid, err) + ret, diag := findFirst[keyhubmodel.OrganizationOrganizationalUnitable](ctx, wrapper, "organizational unit", uuid, err) if ret == nil { return ret, diag } @@ -229,7 +231,7 @@ func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) ( Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.CertificateCertificateable](wrapper, "certificate", uuid, err) + ret, diag := findFirst[keyhubmodel.CertificateCertificateable](ctx, wrapper, "certificate", uuid, err) if ret == nil { return ret, diag } @@ -246,7 +248,7 @@ func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *st Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.ProvisioningProvisionedSystemable](wrapper, "provisioned system", uuid, err) + ret, diag := findFirst[keyhubmodel.ProvisioningProvisionedSystemable](ctx, wrapper, "provisioned system", uuid, err) if ret == nil { return ret, diag } @@ -263,7 +265,7 @@ func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.GroupGroupClassificationable](wrapper, "group classification", uuid, err) + ret, diag := findFirst[keyhubmodel.GroupGroupClassificationable](ctx, wrapper, "group classification", uuid, err) if ret == nil { return ret, diag } @@ -280,7 +282,7 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.ClientClientApplicationable](wrapper, "client application", uuid, err) + ret, diag := findFirst[keyhubmodel.ClientClientApplicationable](ctx, wrapper, "client application", uuid, err) if ret == nil { return ret, diag } @@ -305,7 +307,7 @@ func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthA Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.AuthAccountable](wrapper, "account", uuid, err) + return findFirst[keyhubmodel.AuthAccountable](ctx, wrapper, "account", uuid, err) } func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { @@ -318,7 +320,7 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.ServiceaccountServiceAccountable](wrapper, "service account", uuid, err) + ret, diag := findFirst[keyhubmodel.ServiceaccountServiceAccountable](ctx, wrapper, "service account", uuid, err) if ret == nil { return ret, diag } @@ -335,9 +337,22 @@ func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhub Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.VaultVaultRecordable](wrapper, "vault record", uuid, err) + ret, diag := findFirst[keyhubmodel.VaultVaultRecordable](ctx, wrapper, "vault record", uuid, err) if ret == nil { return ret, diag } return &ret.(*keyhubmodel.VaultVaultRecord).VaultVaultRecordPrimer, diag } + +func errorReportToString(ctx context.Context, err error) string { + report, ok := err.(keyhubmodel.ErrorReportable) + if !ok { + return err.Error() + } + msg := fmt.Sprintf("Error %d from backend: %s", *report.GetCode(), *report.GetMessage()) + tflog.Info(ctx, msg) + if report.GetStacktrace() != nil { + tflog.Info(ctx, strings.Join(report.GetStacktrace(), "\n")) + } + return msg +} diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 851f92e..ea2098c 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -181,7 +181,7 @@ func objectAttrsTypeDSAuthAccountPrimer(recurse bool) map[string]attr.Type { func objectAttrsTypeDSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["pending2_f_a_recovery_request"] = types.BoolType + objectAttrs["pending2fa_recovery_request"] = types.BoolType objectAttrs["pending_password_recovery_request"] = types.BoolType return objectAttrs } @@ -229,7 +229,7 @@ func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]att func objectAttrsTypeDSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["two_fa_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse)} objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse)} return objectAttrs } @@ -344,7 +344,7 @@ func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["fingerprint_sha1"] = types.StringType objectAttrs["fingerprint_sha256"] = types.StringType objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType + objectAttrs["subject_dn"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} @@ -368,7 +368,7 @@ func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr objectAttrs["fingerprint_sha1"] = types.StringType objectAttrs["fingerprint_sha256"] = types.StringType objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType + objectAttrs["subject_dn"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -472,12 +472,12 @@ func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(false)} - objectAttrs["callback_u_r_i"] = types.StringType + objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType objectAttrs["id_token_claims"] = types.StringType - objectAttrs["initiate_login_u_r_i"] = types.StringType - objectAttrs["resource_u_r_is"] = types.StringType + objectAttrs["initiate_login_uri"] = types.StringType + objectAttrs["resource_uris"] = types.StringType objectAttrs["share_secret_in_vault"] = types.BoolType objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["show_landing_page"] = types.BoolType @@ -684,7 +684,7 @@ func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType objectAttrs["attributes_to_store"] = types.StringType - objectAttrs["base_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} objectAttrs["dialect"] = types.StringType objectAttrs["failover_host"] = types.StringType @@ -692,7 +692,7 @@ func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["host"] = types.StringType objectAttrs["password_recovery"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["search_bind_d_n"] = types.StringType + objectAttrs["search_bind_dn"] = types.StringType objectAttrs["search_bind_password"] = types.StringType objectAttrs["search_filter"] = types.StringType objectAttrs["tls"] = types.StringType @@ -1547,21 +1547,21 @@ func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} objectAttrs["failover_host"] = types.StringType objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_d_n"] = types.StringType + objectAttrs["user_dn"] = types.StringType return objectAttrs } @@ -1677,7 +1677,7 @@ func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[stri objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type objectAttrs["name"] = types.StringType - objectAttrs["next_u_i_d"] = types.Int64Type + objectAttrs["next_uid"] = types.Int64Type return objectAttrs } @@ -1718,21 +1718,21 @@ func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Ty objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} objectAttrs["failover_host"] = types.StringType objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_d_n"] = types.StringType + objectAttrs["user_dn"] = types.StringType objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } @@ -1905,21 +1905,21 @@ func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr. objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} objectAttrs["failover_host"] = types.StringType objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_d_n"] = types.StringType + objectAttrs["user_dn"] = types.StringType objectAttrs["gid"] = types.Int64Type objectAttrs["hashing_scheme"] = types.StringType objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(false)} @@ -1950,7 +1950,7 @@ func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[str objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 21b1afe..5c8836e 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -179,7 +179,7 @@ func objectAttrsTypeRSAuthAccountPrimer(recurse bool) map[string]attr.Type { func objectAttrsTypeRSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["pending2_f_a_recovery_request"] = types.BoolType + objectAttrs["pending2fa_recovery_request"] = types.BoolType objectAttrs["pending_password_recovery_request"] = types.BoolType return objectAttrs } @@ -227,7 +227,7 @@ func objectAttrsTypeRSAuthAccount_additionalObjects(recurse bool) map[string]att func objectAttrsTypeRSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_f_a_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse)} + objectAttrs["two_fa_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse)} objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse)} return objectAttrs } @@ -314,7 +314,7 @@ func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["fingerprint_sha1"] = types.StringType objectAttrs["fingerprint_sha256"] = types.StringType objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType + objectAttrs["subject_dn"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} return objectAttrs @@ -337,7 +337,7 @@ func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr objectAttrs["fingerprint_sha1"] = types.StringType objectAttrs["fingerprint_sha256"] = types.StringType objectAttrs["global"] = types.BoolType - objectAttrs["subject_d_n"] = types.StringType + objectAttrs["subject_dn"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -440,12 +440,12 @@ func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(false)} - objectAttrs["callback_u_r_i"] = types.StringType + objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType objectAttrs["id_token_claims"] = types.StringType - objectAttrs["initiate_login_u_r_i"] = types.StringType - objectAttrs["resource_u_r_is"] = types.StringType + objectAttrs["initiate_login_uri"] = types.StringType + objectAttrs["resource_uris"] = types.StringType objectAttrs["share_secret_in_vault"] = types.BoolType objectAttrs["shared_secret_uuid"] = types.StringType objectAttrs["show_landing_page"] = types.BoolType @@ -646,7 +646,7 @@ func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType objectAttrs["attributes_to_store"] = types.StringType - objectAttrs["base_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType objectAttrs["dialect"] = types.StringType objectAttrs["failover_host"] = types.StringType @@ -654,7 +654,7 @@ func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["host"] = types.StringType objectAttrs["password_recovery"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["search_bind_d_n"] = types.StringType + objectAttrs["search_bind_dn"] = types.StringType objectAttrs["search_bind_password"] = types.StringType objectAttrs["search_filter"] = types.StringType objectAttrs["tls"] = types.StringType @@ -1473,21 +1473,21 @@ func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType objectAttrs["failover_host"] = types.StringType objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType + objectAttrs["user_dn"] = types.StringType return objectAttrs } @@ -1601,7 +1601,7 @@ func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[stri objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_count"] = types.Int64Type objectAttrs["name"] = types.StringType - objectAttrs["next_u_i_d"] = types.Int64Type + objectAttrs["next_uid"] = types.Int64Type return objectAttrs } @@ -1641,21 +1641,21 @@ func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Ty objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType objectAttrs["failover_host"] = types.StringType objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType + objectAttrs["user_dn"] = types.StringType objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } @@ -1816,21 +1816,21 @@ func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr. objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_d_n"] = types.StringType - objectAttrs["bind_d_n"] = types.StringType + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType objectAttrs["failover_host"] = types.StringType objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_d_n"] = types.StringType + objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_d_n"] = types.StringType + objectAttrs["user_dn"] = types.StringType objectAttrs["gid"] = types.Int64Type objectAttrs["hashing_scheme"] = types.StringType objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(false)} @@ -1860,7 +1860,7 @@ func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[str objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_d_n"] = types.StringType + objectAttrs["group_dn"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index d00cf7f..1c23d2b 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -407,7 +407,7 @@ func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.At } func dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["pending2_f_a_recovery_request"] = dsschema.BoolAttribute{ + schemaAttrs["pending2fa_recovery_request"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["pending_password_recovery_request"] = dsschema.BoolAttribute{ @@ -515,7 +515,7 @@ func dataSourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), Computed: true, } - schemaAttrs["two_f_a_stats"] = dsschema.SingleNestedAttribute{ + schemaAttrs["two_fa_stats"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), Computed: true, } @@ -776,7 +776,7 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche schemaAttrs["global"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ + schemaAttrs["subject_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ @@ -846,7 +846,7 @@ func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string] schemaAttrs["global"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["subject_d_n"] = dsschema.StringAttribute{ + schemaAttrs["subject_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ @@ -1161,7 +1161,7 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), Computed: true, } - schemaAttrs["callback_u_r_i"] = dsschema.StringAttribute{ + schemaAttrs["callback_uri"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["confidential"] = dsschema.BoolAttribute{ @@ -1173,10 +1173,10 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A schemaAttrs["id_token_claims"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["initiate_login_u_r_i"] = dsschema.StringAttribute{ + schemaAttrs["initiate_login_uri"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["resource_u_r_is"] = dsschema.StringAttribute{ + schemaAttrs["resource_uris"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ @@ -1737,7 +1737,7 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ @@ -1763,7 +1763,7 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["port"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["search_bind_d_n"] = dsschema.StringAttribute{ + schemaAttrs["search_bind_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ @@ -3924,10 +3924,10 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), Computed: true, } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["bind_password"] = dsschema.StringAttribute{ @@ -3944,7 +3944,7 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), Computed: true, } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + schemaAttrs["group_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["host"] = dsschema.StringAttribute{ @@ -3956,7 +3956,7 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["port"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ @@ -3969,7 +3969,7 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), Computed: true, } - schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + schemaAttrs["user_dn"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs @@ -4225,7 +4225,7 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["next_u_i_d"] = dsschema.Int64Attribute{ + schemaAttrs["next_uid"] = dsschema.Int64Attribute{ Computed: true, } return schemaAttrs @@ -4344,10 +4344,10 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), Computed: true, } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["bind_password"] = dsschema.StringAttribute{ @@ -4364,7 +4364,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), Computed: true, } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + schemaAttrs["group_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["host"] = dsschema.StringAttribute{ @@ -4376,7 +4376,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss schemaAttrs["port"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ @@ -4389,7 +4389,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), Computed: true, } - schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + schemaAttrs["user_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ @@ -4955,10 +4955,10 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), Computed: true, } - schemaAttrs["base_d_n"] = dsschema.StringAttribute{ + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["bind_d_n"] = dsschema.StringAttribute{ + schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["bind_password"] = dsschema.StringAttribute{ @@ -4975,7 +4975,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), Computed: true, } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + schemaAttrs["group_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["host"] = dsschema.StringAttribute{ @@ -4987,7 +4987,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["port"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["service_account_d_n"] = dsschema.StringAttribute{ + schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ @@ -5000,7 +5000,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), Computed: true, } - schemaAttrs["user_d_n"] = dsschema.StringAttribute{ + schemaAttrs["user_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["gid"] = dsschema.Int64Attribute{ @@ -5107,7 +5107,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), Computed: true, } - schemaAttrs["group_d_n"] = dsschema.StringAttribute{ + schemaAttrs["group_dn"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index e69cc6f..317746f 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -386,7 +386,7 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr } func resourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["pending2_f_a_recovery_request"] = rsschema.BoolAttribute{ + schemaAttrs["pending2fa_recovery_request"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), @@ -507,7 +507,7 @@ func resourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]rsschema Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), Optional: true, } - schemaAttrs["two_f_a_stats"] = rsschema.SingleNestedAttribute{ + schemaAttrs["two_fa_stats"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), Optional: true, } @@ -664,7 +664,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ + schemaAttrs["subject_dn"] = rsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -724,7 +724,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["subject_d_n"] = rsschema.StringAttribute{ + schemaAttrs["subject_dn"] = rsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -990,7 +990,7 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(false), Optional: true, } - schemaAttrs["callback_u_r_i"] = rsschema.StringAttribute{ + schemaAttrs["callback_uri"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["confidential"] = rsschema.BoolAttribute{ @@ -1006,10 +1006,10 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["initiate_login_u_r_i"] = rsschema.StringAttribute{ + schemaAttrs["initiate_login_uri"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["resource_u_r_is"] = rsschema.StringAttribute{ + schemaAttrs["resource_uris"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ @@ -1511,7 +1511,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ @@ -1539,7 +1539,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["search_bind_d_n"] = rsschema.StringAttribute{ + schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ @@ -3472,10 +3472,10 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), Optional: true, } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["bind_password"] = rsschema.StringAttribute{ @@ -3490,7 +3490,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + schemaAttrs["group_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["host"] = rsschema.StringAttribute{ @@ -3504,7 +3504,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ @@ -3518,7 +3518,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + schemaAttrs["user_dn"] = rsschema.StringAttribute{ Optional: true, } return schemaAttrs @@ -3757,7 +3757,7 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["next_u_i_d"] = rsschema.Int64Attribute{ + schemaAttrs["next_uid"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(2000), @@ -3865,10 +3865,10 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), Optional: true, } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["bind_password"] = rsschema.StringAttribute{ @@ -3883,7 +3883,7 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + schemaAttrs["group_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["host"] = rsschema.StringAttribute{ @@ -3897,7 +3897,7 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ @@ -3911,7 +3911,7 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + schemaAttrs["user_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ @@ -4374,10 +4374,10 @@ func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rss Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), Optional: true, } - schemaAttrs["base_d_n"] = rsschema.StringAttribute{ + schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["bind_d_n"] = rsschema.StringAttribute{ + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["bind_password"] = rsschema.StringAttribute{ @@ -4392,7 +4392,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rss schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + schemaAttrs["group_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["host"] = rsschema.StringAttribute{ @@ -4406,7 +4406,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rss Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["service_account_d_n"] = rsschema.StringAttribute{ + schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ @@ -4420,7 +4420,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rss schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["user_d_n"] = rsschema.StringAttribute{ + schemaAttrs["user_dn"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["gid"] = rsschema.Int64Attribute{ @@ -4515,7 +4515,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[s schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["group_d_n"] = rsschema.StringAttribute{ + schemaAttrs["group_dn"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index ea60aa1..accc6e1 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -144,7 +144,7 @@ func fillDataStructFromTFObjectDSAuthAccountPrimer(data *authAccountPrimerDataDS } func fillDataStructFromTFObjectDSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataDS, obj types.Object) { - data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.Pending2FARecoveryRequest = obj.Attributes()["pending2fa_recovery_request"].(basetypes.BoolValue) data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) } @@ -184,7 +184,7 @@ func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount func fillDataStructFromTFObjectDSAuthAccountsAuditStats(data *authAccountsAuditStatsDataDS, obj types.Object) { data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_fa_stats"].(basetypes.ObjectValue) data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) } @@ -272,7 +272,7 @@ func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertifi data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -293,7 +293,7 @@ func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateC data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -354,7 +354,7 @@ func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) @@ -377,12 +377,12 @@ func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientData data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) - data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) - data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_uri"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_uris"].(basetypes.StringValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) data.SharedSecret = obj.Attributes()["shared_secret"].(basetypes.ObjectValue) data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) @@ -543,7 +543,7 @@ func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirec data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) @@ -551,7 +551,7 @@ func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirec data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindDN = obj.Attributes()["search_bind_dn"].(basetypes.StringValue) data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) @@ -945,7 +945,7 @@ func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpad data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataDS, obj types.Object) { @@ -990,7 +990,7 @@ func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadMan data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { @@ -1004,7 +1004,7 @@ func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *laun data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { @@ -1210,21 +1210,21 @@ func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provi data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataDS, obj types.Object) { @@ -1310,7 +1310,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provi data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) + data.NextUID = obj.Attributes()["next_uid"].(basetypes.Int64Value) } func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataDS, obj types.Object) { @@ -1343,21 +1343,21 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningPro data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } @@ -1371,7 +1371,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioni data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) + data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } func fillDataStructFromTFObjectDSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataDS, obj types.Object) { @@ -1502,21 +1502,21 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningP data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) @@ -1543,7 +1543,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *prov data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index a658b0b..633a1bb 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -142,7 +142,7 @@ func fillDataStructFromTFObjectRSAuthAccountPrimer(data *authAccountPrimerDataRS } func fillDataStructFromTFObjectRSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataRS, obj types.Object) { - data.Pending2FARecoveryRequest = obj.Attributes()["pending2_f_a_recovery_request"].(basetypes.BoolValue) + data.Pending2FARecoveryRequest = obj.Attributes()["pending2fa_recovery_request"].(basetypes.BoolValue) data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) } @@ -182,7 +182,7 @@ func fillDataStructFromTFObjectRSAuthAccount_additionalObjects(data *authAccount func fillDataStructFromTFObjectRSAuthAccountsAuditStats(data *authAccountsAuditStatsDataRS, obj types.Object) { data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_f_a_stats"].(basetypes.ObjectValue) + data.TwoFAStats = obj.Attributes()["two_fa_stats"].(basetypes.ObjectValue) data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) } @@ -244,7 +244,7 @@ func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertifi data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) @@ -264,7 +264,7 @@ func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateC data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_d_n"].(basetypes.StringValue) + data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -325,7 +325,7 @@ func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.BindDn = obj.Attributes()["bind_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) @@ -347,12 +347,12 @@ func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientData data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.CallbackURI = obj.Attributes()["callback_u_r_i"].(basetypes.StringValue) + data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) data.IDTokenClaims = obj.Attributes()["id_token_claims"].(basetypes.StringValue) - data.InitiateLoginURI = obj.Attributes()["initiate_login_u_r_i"].(basetypes.StringValue) - data.ResourceURIs = obj.Attributes()["resource_u_r_is"].(basetypes.StringValue) + data.InitiateLoginURI = obj.Attributes()["initiate_login_uri"].(basetypes.StringValue) + data.ResourceURIs = obj.Attributes()["resource_uris"].(basetypes.StringValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) data.SharedSecretUUID = obj.Attributes()["shared_secret_uuid"].(basetypes.StringValue) data.ShowLandingPage = obj.Attributes()["show_landing_page"].(basetypes.BoolValue) @@ -507,7 +507,7 @@ func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirec data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.Dialect = obj.Attributes()["dialect"].(basetypes.StringValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) @@ -515,7 +515,7 @@ func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirec data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.PasswordRecovery = obj.Attributes()["password_recovery"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.SearchBindDN = obj.Attributes()["search_bind_d_n"].(basetypes.StringValue) + data.SearchBindDN = obj.Attributes()["search_bind_dn"].(basetypes.StringValue) data.SearchBindPassword = obj.Attributes()["search_bind_password"].(basetypes.StringValue) data.SearchFilter = obj.Attributes()["search_filter"].(basetypes.StringValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) @@ -889,7 +889,7 @@ func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpad data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataRS, obj types.Object) { @@ -932,7 +932,7 @@ func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadMan data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { @@ -945,7 +945,7 @@ func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *laun data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.Uri = obj.Attributes()["uri"].(basetypes.StringValue) + data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { @@ -1138,21 +1138,21 @@ func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provi data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataRS, obj types.Object) { @@ -1236,7 +1236,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence(data *provi data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.NextUID = obj.Attributes()["next_u_i_d"].(basetypes.Int64Value) + data.NextUID = obj.Attributes()["next_uid"].(basetypes.Int64Value) } func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataRS, obj types.Object) { @@ -1268,28 +1268,28 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningPro data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataRS, obj types.Object) { data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Uid = obj.Attributes()["uid"].(basetypes.Int64Value) + data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } func fillDataStructFromTFObjectRSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataRS, obj types.Object) { @@ -1415,21 +1415,21 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningP data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_d_n"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_d_n"].(basetypes.StringValue) + data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) + data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) data.Host = obj.Attributes()["host"].(basetypes.StringValue) data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_d_n"].(basetypes.StringValue) + data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_d_n"].(basetypes.StringValue) + data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) @@ -1455,7 +1455,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *prov data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_d_n"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 045d320..1bec835 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -462,7 +462,7 @@ func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, } objAttrs := objVal.Attributes() tkh := keyhubmodel.NewAuthAccountRecoveryStatus() - tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -587,7 +587,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob tkh.SetDirectoryStats(val) } { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_fa_stats"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTwoFAStats(val) } @@ -905,7 +905,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -991,7 +991,7 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -1328,12 +1328,12 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCallbackURI(objAttrs["callback_uri"].(basetypes.StringValue).ValueStringPointer()) tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_uri"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_uris"].(basetypes.StringValue).ValueStringPointer()) tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) @@ -1971,7 +1971,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1997,7 +1997,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetPasswordRecovery(val) } tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { @@ -4606,8 +4606,8 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) @@ -4620,11 +4620,11 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) @@ -4636,7 +4636,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetTrustedCertificate(val) } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -4976,7 +4976,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec } tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5097,8 +5097,8 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) @@ -5111,11 +5111,11 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) @@ -5127,7 +5127,7 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetTrustedCertificate(val) } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) @@ -5626,8 +5626,8 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) @@ -5640,11 +5640,11 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) @@ -5656,7 +5656,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetTrustedCertificate(val) } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { @@ -5751,7 +5751,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, re diags.Append(d...) tkh.SetDirectory(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 2af8dcc..92aafcb 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -462,7 +462,7 @@ func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, } objAttrs := objVal.Attributes() tkh := keyhubmodel.NewAuthAccountRecoveryStatus() - tkh.SetPending2FARecoveryRequest(objAttrs["pending2_f_a_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -590,7 +590,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob tkh.SetDirectoryStats(val) } { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_f_a_stats"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_fa_stats"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTwoFAStats(val) } @@ -823,7 +823,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -909,7 +909,7 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -1255,12 +1255,12 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetCallbackURI(objAttrs["callback_u_r_i"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCallbackURI(objAttrs["callback_uri"].(basetypes.StringValue).ValueStringPointer()) tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetInitiateLoginURI(objAttrs["initiate_login_u_r_i"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResourceURIs(objAttrs["resource_u_r_is"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_uri"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_uris"].(basetypes.StringValue).ValueStringPointer()) tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -1898,7 +1898,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -1924,7 +1924,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob tkh.SetPasswordRecovery(val) } tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { @@ -4513,8 +4513,8 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -4527,11 +4527,11 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) @@ -4543,7 +4543,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetTrustedCertificate(val) } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -4889,7 +4889,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec } tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_u_i_d"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5013,8 +5013,8 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -5027,11 +5027,11 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) @@ -5043,7 +5043,7 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetTrustedCertificate(val) } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) @@ -5520,8 +5520,8 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetAttributes(val) } - tkh.SetBaseDN(objAttrs["base_d_n"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -5534,11 +5534,11 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) @@ -5550,7 +5550,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo diags.Append(d...) tkh.SetTrustedCertificate(val) } - tkh.SetUserDN(objAttrs["user_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { @@ -5645,7 +5645,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, re diags.Append(d...) tkh.SetDirectory(val) } - tkh.SetGroupDN(objAttrs["group_d_n"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 41ea31e..72dc632 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -558,7 +558,7 @@ func tkhToTFObjectDSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.Auth } obj := make(map[string]attr.Value) - obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending2fa_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) objVal, d := types.ObjectValue(attrs, obj) @@ -697,7 +697,7 @@ func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAcc { val, d := tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) diags.Append(d...) - obj["two_f_a_stats"] = val + obj["two_fa_stats"] = val } { val, d := tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) @@ -1071,7 +1071,7 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) { @@ -1164,7 +1164,7 @@ func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -1552,12 +1552,12 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth diags.Append(d...) obj["attributes"] = val } - obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["callback_uri"] = types.StringPointerValue(tkh.GetCallbackURI()) obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["initiate_login_uri"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) { val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) @@ -2297,7 +2297,7 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) { val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) diags.Append(d...) @@ -2313,7 +2313,7 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_dn"] = types.StringPointerValue(tkh.GetSearchBindDN()) obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) obj["tls"] = stringerToTF(tkh.GetTls()) @@ -5505,8 +5505,8 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub diags.Append(d...) obj["attributes"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) @@ -5519,11 +5519,11 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub diags.Append(d...) obj["failover_trusted_certificate"] = val } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) { @@ -5531,7 +5531,7 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub diags.Append(d...) obj["trusted_certificate"] = val } - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5965,7 +5965,7 @@ func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhub obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + obj["next_uid"] = types.Int64PointerValue(tkh.GetNextUID()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6107,8 +6107,8 @@ func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov diags.Append(d...) obj["attributes"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) @@ -6121,11 +6121,11 @@ func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov diags.Append(d...) obj["failover_trusted_certificate"] = val } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) { @@ -6133,7 +6133,7 @@ func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov diags.Append(d...) obj["trusted_certificate"] = val } - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) @@ -6659,8 +6659,8 @@ func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr diags.Append(d...) obj["attributes"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) @@ -6673,11 +6673,11 @@ func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr diags.Append(d...) obj["failover_trusted_certificate"] = val } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) { @@ -6685,7 +6685,7 @@ func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr diags.Append(d...) obj["trusted_certificate"] = val } - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) obj["gid"] = types.Int64PointerValue(tkh.GetGid()) obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { @@ -6776,7 +6776,7 @@ func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhu diags.Append(d...) obj["directory"] = val } - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 155dded..f4cf2cd 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -552,7 +552,7 @@ func tkhToTFObjectRSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.Auth } obj := make(map[string]attr.Value) - obj["pending2_f_a_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending2fa_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) objVal, d := types.ObjectValue(attrs, obj) @@ -687,7 +687,7 @@ func tkhToTFObjectRSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAcc { val, d := tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) diags.Append(d...) - obj["two_f_a_stats"] = val + obj["two_fa_stats"] = val } { val, d := tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) @@ -998,7 +998,7 @@ func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) { elemType := attrs["key_data"].(types.ListType).ElemType @@ -1090,7 +1090,7 @@ func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_d_n"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -1449,12 +1449,12 @@ func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth diags.Append(d...) obj["attributes"] = val } - obj["callback_u_r_i"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["callback_uri"] = types.StringPointerValue(tkh.GetCallbackURI()) obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_u_r_i"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_u_r_is"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["initiate_login_uri"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) @@ -2132,7 +2132,7 @@ func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["dialect"] = stringerToTF(tkh.GetDialect()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) @@ -2140,7 +2140,7 @@ func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_d_n"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_dn"] = types.StringPointerValue(tkh.GetSearchBindDN()) obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) obj["tls"] = stringerToTF(tkh.GetTls()) @@ -5064,21 +5064,21 @@ func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub diags.Append(d...) obj["attributes"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5502,7 +5502,7 @@ func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhub } obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_u_i_d"] = types.Int64PointerValue(tkh.GetNextUID()) + obj["next_uid"] = types.Int64PointerValue(tkh.GetNextUID()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5627,21 +5627,21 @@ func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov diags.Append(d...) obj["attributes"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) @@ -6049,21 +6049,21 @@ func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr diags.Append(d...) obj["attributes"] = val } - obj["base_d_n"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_d_n"] = types.StringPointerValue(tkh.GetBindDN()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_d_n"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_d_n"] = types.StringPointerValue(tkh.GetUserDN()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) obj["gid"] = types.Int64PointerValue(tkh.GetGid()) obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { @@ -6133,7 +6133,7 @@ func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhu obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_d_n"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index d9dbe95..836a4ce 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -19,8 +19,6 @@ import ( ) // Ensure KeyHubProvider satisfies various provider interfaces. -// -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator var _ provider.Provider = &KeyHubProvider{} // KeyHubProvider defines the provider implementation. @@ -177,7 +175,17 @@ func (p *KeyHubProvider) Resources(ctx context.Context) []func() resource.Resour func (p *KeyHubProvider) DataSources(ctx context.Context) []func() datasource.DataSource { return []func() datasource.DataSource{ + NewAccountDataSource, + NewCertificateDataSource, + NewClientDataSource, + NewDirectoryDataSource, NewGroupDataSource, + NewGroupclassificationDataSource, + NewOrganizationalunitDataSource, + NewServiceaccountDataSource, + NewSystemDataSource, + NewVaultrecordDataSource, + NewWebhookDataSource, } } diff --git a/main.go b/main.go index 2f9ea5a..67054ee 100644 --- a/main.go +++ b/main.go @@ -12,7 +12,37 @@ import ( "github.com/topicuskeyhub/terraform-provider-keyhubpreview/internal/provider" ) -// Run "go generate" to format example terraform files and generate the docs for the registry/website +// Run "go generate" to generate the source code, format example terraform files and generate the docs for the registry/website + +// no UUID +// info +// launchpadtile +// numberseq +// groupclient +// provisioninggroup + +// sub resources +// directory/{directoryid}/internalaccount +// account/{accountid}/group +// account/{accountid}/organizationalunit +// client/{clientid}/permission +// group/{groupid}/account +// organizationalunit/{organizationalunitid}/account +// system/{systemid}/group +// serviceaccount/{accountid}/group + +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode impl +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource account --linkable authAccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource certificate --linkable certificateCertificate +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource client --linkable clientClientApplication +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource directory --linkable directoryAccountDirectory +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource group --linkable groupGroup +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource groupclassification --linkable groupGroupClassification +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource organizationalunit --linkable organizationOrganizationalUnit +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource serviceaccount --linkable serviceaccountServiceAccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource system --linkable provisioningProvisionedSystem +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource vaultrecord --linkable vaultVaultRecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource webhook --linkable webhookWebhook // If you do not have terraform installed, you can remove the formatting command, but its suggested to // ensure the documentation is formatted properly. From efdc3f03bb2c5a08d65a3bc07096651a429c4889 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 19 Sep 2023 21:04:20 +0200 Subject: [PATCH 12/34] Support polymorphic types --- internal/provider/full-data-struct-ds.go | 1076 +--- internal/provider/full-data-struct-rs.go | 1023 +-- internal/provider/full-object-attrs-ds.go | 1048 +-- internal/provider/full-object-attrs-rs.go | 979 +-- internal/provider/full-schema-ds.go | 4778 +++----------- internal/provider/full-schema-rs.go | 4003 +++--------- .../provider/full-tf-to-data-struct-ds.go | 916 +-- .../provider/full-tf-to-data-struct-rs.go | 775 +-- internal/provider/full-tf-to-tkh-ds.go | 5640 +++++------------ internal/provider/full-tf-to-tkh-rs.go | 5385 +++++----------- internal/provider/full-tkh-to-tf-ds.go | 4212 +++--------- internal/provider/full-tkh-to-tf-rs.go | 2721 ++------ 12 files changed, 6832 insertions(+), 25724 deletions(-) diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 590d34a..593678c 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -422,6 +422,9 @@ type clientClientApplicationDataDS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` + OAuth2Client types.Object `tfsdk:"o_auth2_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` + Saml2Client types.Object `tfsdk:"saml2_client"` } var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) @@ -460,55 +463,29 @@ var clientLdapClientAttrTypesDS = objectAttrsTypeDSClientLdapClient(false) var clientLdapClientAttrTypesDSRecurse = objectAttrsTypeDSClientLdapClient(true) type clientLdapClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - BindDN types.String `tfsdk:"bind_dn"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecret types.Object `tfsdk:"shared_secret"` - UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` + BindDN types.String `tfsdk:"bind_dn"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` } var clientOAuth2ClientAttrTypesDS = objectAttrsTypeDSClientOAuth2Client(false) var clientOAuth2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client(true) type clientOAuth2ClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_uri"` - Confidential types.Bool `tfsdk:"confidential"` - DebugMode types.Bool `tfsdk:"debug_mode"` - IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` - ResourceURIs types.String `tfsdk:"resource_uris"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecret types.Object `tfsdk:"shared_secret"` - ShowLandingPage types.Bool `tfsdk:"show_landing_page"` - UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_uri"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` + ResourceURIs types.String `tfsdk:"resource_uris"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecret types.Object `tfsdk:"shared_secret"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` } var clientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermission(false) @@ -569,23 +546,10 @@ var clientSaml2ClientAttrTypesDS = objectAttrsTypeDSClientSaml2Client(false) var clientSaml2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client(true) type clientSaml2ClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - Owner types.Object `tfsdk:"owner"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - Attributes types.Object `tfsdk:"attributes"` - Metadata types.String `tfsdk:"metadata"` - MetadataURL types.String `tfsdk:"metadata_url"` - SubjectFormat types.String `tfsdk:"subject_format"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` } var clientSaml2Client_attributesAttrTypesDS = objectAttrsTypeDSClientSaml2Client_attributes(false) @@ -613,6 +577,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + InternalDirectory types.Object `tfsdk:"internal_directory"` + LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -678,110 +646,50 @@ var directoryInternalDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryInternalDi var directoryInternalDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryInternalDirectory(true) type directoryInternalDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - Owner types.Object `tfsdk:"owner"` + Owner types.Object `tfsdk:"owner"` } var directoryLDAPDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryLDAPDirectory(false) var directoryLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryLDAPDirectory(true) type directoryLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_dn"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - Dialect types.String `tfsdk:"dialect"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - Host types.String `tfsdk:"host"` - PasswordRecovery types.String `tfsdk:"password_recovery"` - Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_dn"` - SearchBindPassword types.String `tfsdk:"search_bind_password"` - SearchFilter types.String `tfsdk:"search_filter"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_dn"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_dn"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` } var directoryMaintenanceDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryMaintenanceDirectory(false) var directoryMaintenanceDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryMaintenanceDirectory(true) type directoryMaintenanceDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` } var directoryOIDCDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryOIDCDirectory(false) var directoryOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryOIDCDirectory(true) type directoryOIDCDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` - SendLoginHint types.Bool `tfsdk:"send_login_hint"` - VendorEscaped types.String `tfsdk:"vendor_escaped"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` } var groupAccountGroupAttrTypesDS = objectAttrsTypeDSGroupAccountGroup(false) @@ -1258,16 +1166,19 @@ var launchpadLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile( var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile(true) type launchpadLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Application types.Object `tfsdk:"application"` + Group types.Object `tfsdk:"group"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecord types.Object `tfsdk:"vault_record"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` + ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -1296,51 +1207,21 @@ var launchpadManualLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadManualLa var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadManualLaunchpadTile(true) type launchpadManualLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` + Title types.String `tfsdk:"title"` + URI types.String `tfsdk:"uri"` } var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(true) type launchpadSsoApplicationLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - URI types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadVaultRecordLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false) var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(true) type launchpadVaultRecordLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` } var licenseKeyHubLicenseInfoAttrTypesDS = objectAttrsTypeDSLicenseKeyHubLicenseInfo(false) @@ -1394,7 +1275,7 @@ type notificationCertificateExpiredNotificationDataDS struct { Certificate types.Object `tfsdk:"certificate"` Directory types.Object `tfsdk:"directory"` Expiration types.String `tfsdk:"expiration"` - LdapClient types.Object `tfsdk:"ldap_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` System types.Object `tfsdk:"system"` Usage types.String `tfsdk:"usage"` Webhook types.Object `tfsdk:"webhook"` @@ -1603,41 +1484,22 @@ var provisioningAbstractProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioni var provisioningAbstractProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(true) type provisioningAbstractProvisionedLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_dn"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificate types.Object `tfsdk:"client_certificate"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` + GroupDN types.String `tfsdk:"group_dn"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificate types.Object `tfsdk:"trusted_certificate"` + UserDN types.String `tfsdk:"user_dn"` } var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) @@ -1784,42 +1646,7 @@ var provisioningProvisionedADAttrTypesDS = objectAttrsTypeDSProvisioningProvisio var provisioningProvisionedADAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAD(true) type provisioningProvisionedADDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_dn"` - SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } var provisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount(false) @@ -1856,182 +1683,52 @@ var provisioningProvisionedAzureOIDCDirectoryAttrTypesDS = objectAttrsTypeDSProv var provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(true) type provisioningProvisionedAzureOIDCDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Directory types.Object `tfsdk:"directory"` - Tenant types.String `tfsdk:"tenant"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false) var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(true) type provisioningProvisionedAzureSyncLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - Directory types.Object `tfsdk:"directory"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + Directory types.Object `tfsdk:"directory"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureTenantAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAzureTenant(false) var provisioningProvisionedAzureTenantAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAzureTenant(true) type provisioningProvisionedAzureTenantDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - IDpDomain types.String `tfsdk:"idp_domain"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedInternalLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false) var provisioningProvisionedInternalLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedInternalLDAP(true) type provisioningProvisionedInternalLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Client types.Object `tfsdk:"client"` + Client types.Object `tfsdk:"client"` } var provisioningProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAP(false) var provisioningProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAP(true) type provisioningProvisionedLDAPDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificate types.Object `tfsdk:"client_certificate"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificate types.Object `tfsdk:"failover_trusted_certificate"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificate types.Object `tfsdk:"trusted_certificate"` - UserDN types.String `tfsdk:"user_dn"` - Gid types.Int64 `tfsdk:"gid"` - HashingScheme types.String `tfsdk:"hashing_scheme"` - Numbering types.Object `tfsdk:"numbering"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` } var provisioningProvisionedLDAPDirectoryAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false) var provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(true) type provisioningProvisionedLDAPDirectoryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministrator types.Object `tfsdk:"content_administrator"` - ExternalUUID types.String `tfsdk:"external_uuid"` - Owner types.Object `tfsdk:"owner"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Directory types.Object `tfsdk:"directory"` - GroupDN types.String `tfsdk:"group_dn"` + Directory types.Object `tfsdk:"directory"` + GroupDN types.String `tfsdk:"group_dn"` } var provisioningProvisionedSystemAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem(false) @@ -2057,6 +1754,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2157,54 +1862,21 @@ var requestAbstractApplicationModificationRequestAttrTypesDS = objectAttrsTypeDS var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(true) type requestAbstractApplicationModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` + Application types.Object `tfsdk:"application"` } var requestAbstractOrganizationalUnitModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false) var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(true) type requestAbstractOrganizationalUnitModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` + OrganizationalUnit types.Object `tfsdk:"organizational_unit"` } var requestAbstractProvisionedSystemModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false) var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(true) type requestAbstractProvisionedSystemModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` + System types.Object `tfsdk:"system"` } var requestAcceptGrantAccessRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(false) @@ -2240,294 +1912,161 @@ var requestAddGroupAdminRequestAttrTypesDS = objectAttrsTypeDSRequestAddGroupAdm var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddGroupAdminRequest(true) type requestAddGroupAdminRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewAdmin types.Object `tfsdk:"new_admin"` - PrivateKey types.String `tfsdk:"private_key"` + NewAdmin types.Object `tfsdk:"new_admin"` + PrivateKey types.String `tfsdk:"private_key"` } var requestCreateGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false) var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(true) type requestCreateGroupOnSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` } var requestCreateGroupRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupRequest(false) var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupRequest(true) type requestCreateGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestCreateServiceAccountRequestAttrTypesDS = objectAttrsTypeDSRequestCreateServiceAccountRequest(false) var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateServiceAccountRequest(true) type requestCreateServiceAccountRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - Username types.String `tfsdk:"username"` + Username types.String `tfsdk:"username"` } var requestDisable2FARequestAttrTypesDS = objectAttrsTypeDSRequestDisable2FARequest(false) var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable2FARequest(true) type requestDisable2FARequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Subject types.String `tfsdk:"subject"` + Subject types.String `tfsdk:"subject"` } var requestEnableTechnicalAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false) var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(true) type requestEnableTechnicalAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestExtendAccessRequestAttrTypesDS = objectAttrsTypeDSRequestExtendAccessRequest(false) var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExtendAccessRequest(true) type requestExtendAccessRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ExtendUntil types.String `tfsdk:"extend_until"` + ExtendUntil types.String `tfsdk:"extend_until"` } var requestGrantAccessRequestAttrTypesDS = objectAttrsTypeDSRequestGrantAccessRequest(false) var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantAccessRequest(true) type requestGrantAccessRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestGrantApplicationRequestAttrTypesDS = objectAttrsTypeDSRequestGrantApplicationRequest(false) var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantApplicationRequest(true) type requestGrantApplicationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` } var requestGrantClientPermissionRequestAttrTypesDS = objectAttrsTypeDSRequestGrantClientPermissionRequest(false) var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantClientPermissionRequest(true) type requestGrantClientPermissionRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` - PermissionType types.String `tfsdk:"permission_type"` - System types.Object `tfsdk:"system"` + PermissionType types.String `tfsdk:"permission_type"` + System types.Object `tfsdk:"system"` } var requestGrantGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false) var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(true) type requestGrantGroupOnSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantGroupOnSystemRequestRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false) var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(true) type requestGrantGroupOnSystemRequestRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantServiceAccountGroupRequestAttrTypesDS = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false) var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(true) type requestGrantServiceAccountGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccount types.Object `tfsdk:"service_account"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccount types.Object `tfsdk:"service_account"` } var requestJoinGroupRequestAttrTypesDS = objectAttrsTypeDSRequestJoinGroupRequest(false) var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGroupRequest(true) type requestJoinGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestJoinVaultRequestAttrTypesDS = objectAttrsTypeDSRequestJoinVaultRequest(false) var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaultRequest(true) type requestJoinVaultRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestModificationRequestAttrTypesDS = objectAttrsTypeDSRequestModificationRequest(false) var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest(true) type requestModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Account types.Object `tfsdk:"account"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + Group types.Object `tfsdk:"group"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) @@ -2549,17 +2088,6 @@ var requestPasswordResetRequestAttrTypesDS = objectAttrsTypeDSRequestPasswordRes var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequest(true) type requestPasswordResetRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestPasswordResetRequestStatusAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequestStatus(false) @@ -2576,333 +2104,127 @@ var requestRemoveGroupRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveGroupRe var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveGroupRequest(true) type requestRemoveGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestRemoveOrganizationalUnitRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false) var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(true) type requestRemoveOrganizationalUnitRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` } var requestRemoveProvisionedSystemRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false) var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(true) type requestRemoveProvisionedSystemRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` - SystemName types.String `tfsdk:"system_name"` + SystemName types.String `tfsdk:"system_name"` } var requestReviewAuditRequestAttrTypesDS = objectAttrsTypeDSRequestReviewAuditRequest(false) var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReviewAuditRequest(true) type requestReviewAuditRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestRevokeAdminRequestAttrTypesDS = objectAttrsTypeDSRequestRevokeAdminRequest(false) var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevokeAdminRequest(true) type requestRevokeAdminRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Admin types.Object `tfsdk:"admin"` + Admin types.Object `tfsdk:"admin"` } var requestSetupAuthorizingGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false) var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(true) type requestSetupAuthorizingGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` } var requestSetupNestedGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupNestedGroupRequest(false) var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupNestedGroupRequest(true) type requestSetupNestedGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroup types.Object `tfsdk:"requesting_group"` } var requestTransferApplicationAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false) var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(true) type requestTransferApplicationAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` } var requestTransferApplicationOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false) var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(true) type requestTransferApplicationOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Application types.Object `tfsdk:"application"` } var requestTransferAuditorGroupRequestAttrTypesDS = objectAttrsTypeDSRequestTransferAuditorGroupRequest(false) var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferAuditorGroupRequest(true) type requestTransferAuditorGroupRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestTransferGroupOnSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false) var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(true) type requestTransferGroupOnSystemOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false) var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(true) type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` } var requestTransferProvisionedSystemAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false) var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(true) type requestTransferProvisionedSystemAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` } var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false) var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(true) type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` } var requestTransferProvisionedSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false) var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(true) type requestTransferProvisionedSystemOwnershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - System types.Object `tfsdk:"system"` } var requestTransferServiceAccountAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false) var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(true) type requestTransferServiceAccountAdministrationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ServiceAccount types.Object `tfsdk:"service_account"` + ServiceAccount types.Object `tfsdk:"service_account"` } var requestUpdateGroupMembershipRequestAttrTypesDS = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false) var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(true) type requestUpdateGroupMembershipRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountToUpdate types.Object `tfsdk:"account_to_update"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` + AccountToUpdate types.Object `tfsdk:"account_to_update"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` } var requestVerifyInternalAccountRequestAttrTypesDS = objectAttrsTypeDSRequestVerifyInternalAccountRequest(false) var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestVerifyInternalAccountRequest(true) type requestVerifyInternalAccountRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - InternalAccountName types.String `tfsdk:"internal_account_name"` + InternalAccountName types.String `tfsdk:"internal_account_name"` } var serviceaccountServiceAccountAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 3ed6d0a..c4f4330 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -392,6 +392,9 @@ type clientClientApplicationDataRS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` + OAuth2Client types.Object `tfsdk:"o_auth2_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` + Saml2Client types.Object `tfsdk:"saml2_client"` } var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) @@ -432,53 +435,29 @@ var clientLdapClientAttrTypesRS = objectAttrsTypeRSClientLdapClient(false) var clientLdapClientAttrTypesRSRecurse = objectAttrsTypeRSClientLdapClient(true) type clientLdapClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - BindDN types.String `tfsdk:"bind_dn"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` - UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` + BindDN types.String `tfsdk:"bind_dn"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + UsedForProvisioning types.Bool `tfsdk:"used_for_provisioning"` } var clientOAuth2ClientAttrTypesRS = objectAttrsTypeRSClientOAuth2Client(false) var clientOAuth2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client(true) type clientOAuth2ClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` - CallbackURI types.String `tfsdk:"callback_uri"` - Confidential types.Bool `tfsdk:"confidential"` - DebugMode types.Bool `tfsdk:"debug_mode"` - IDTokenClaims types.String `tfsdk:"id_token_claims"` - InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` - ResourceURIs types.String `tfsdk:"resource_uris"` - ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` - SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` - ShowLandingPage types.Bool `tfsdk:"show_landing_page"` - UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Attributes types.Object `tfsdk:"attributes"` + CallbackURI types.String `tfsdk:"callback_uri"` + Confidential types.Bool `tfsdk:"confidential"` + DebugMode types.Bool `tfsdk:"debug_mode"` + IDTokenClaims types.String `tfsdk:"id_token_claims"` + InitiateLoginURI types.String `tfsdk:"initiate_login_uri"` + ResourceURIs types.String `tfsdk:"resource_uris"` + ShareSecretInVault types.Bool `tfsdk:"share_secret_in_vault"` + SharedSecretUUID types.String `tfsdk:"shared_secret_uuid"` + ShowLandingPage types.Bool `tfsdk:"show_landing_page"` + UseClientCredentials types.Bool `tfsdk:"use_client_credentials"` } var clientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermission(false) @@ -537,22 +516,10 @@ var clientSaml2ClientAttrTypesRS = objectAttrsTypeRSClientSaml2Client(false) var clientSaml2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client(true) type clientSaml2ClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` - ClientID types.String `tfsdk:"client_id"` - Name types.String `tfsdk:"name"` - Scopes types.List `tfsdk:"scopes"` - SsoApplication types.Bool `tfsdk:"sso_application"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - Attributes types.Object `tfsdk:"attributes"` - Metadata types.String `tfsdk:"metadata"` - MetadataURL types.String `tfsdk:"metadata_url"` - SubjectFormat types.String `tfsdk:"subject_format"` + Attributes types.Object `tfsdk:"attributes"` + Metadata types.String `tfsdk:"metadata"` + MetadataURL types.String `tfsdk:"metadata_url"` + SubjectFormat types.String `tfsdk:"subject_format"` } var clientSaml2Client_attributesAttrTypesRS = objectAttrsTypeRSClientSaml2Client_attributes(false) @@ -579,6 +546,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + InternalDirectory types.Object `tfsdk:"internal_directory"` + LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -644,106 +615,50 @@ var directoryInternalDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryInternalDi var directoryInternalDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryInternalDirectory(true) type directoryInternalDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - OwnerUUID types.String `tfsdk:"owner_uuid"` + OwnerUUID types.String `tfsdk:"owner_uuid"` } var directoryLDAPDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryLDAPDirectory(false) var directoryLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryLDAPDirectory(true) type directoryLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - BaseDN types.String `tfsdk:"base_dn"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - Dialect types.String `tfsdk:"dialect"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - Host types.String `tfsdk:"host"` - PasswordRecovery types.String `tfsdk:"password_recovery"` - Port types.Int64 `tfsdk:"port"` - SearchBindDN types.String `tfsdk:"search_bind_dn"` - SearchBindPassword types.String `tfsdk:"search_bind_password"` - SearchFilter types.String `tfsdk:"search_filter"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + BaseDN types.String `tfsdk:"base_dn"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + Dialect types.String `tfsdk:"dialect"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + Host types.String `tfsdk:"host"` + PasswordRecovery types.String `tfsdk:"password_recovery"` + Port types.Int64 `tfsdk:"port"` + SearchBindDN types.String `tfsdk:"search_bind_dn"` + SearchBindPassword types.String `tfsdk:"search_bind_password"` + SearchFilter types.String `tfsdk:"search_filter"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` } var directoryMaintenanceDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryMaintenanceDirectory(false) var directoryMaintenanceDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryMaintenanceDirectory(true) type directoryMaintenanceDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` } var directoryOIDCDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryOIDCDirectory(false) var directoryOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryOIDCDirectory(true) type directoryOIDCDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` - Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` - DefaultDirectory types.Bool `tfsdk:"default_directory"` - HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` - Restrict2fa types.Bool `tfsdk:"restrict2fa"` - RotatingPassword types.String `tfsdk:"rotating_password"` - UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - AcrValues types.String `tfsdk:"acr_values"` - AttributesToStore types.String `tfsdk:"attributes_to_store"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DomainRestriction types.String `tfsdk:"domain_restriction"` - Enforces2fa types.Bool `tfsdk:"enforces2fa"` - FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` - Issuer types.String `tfsdk:"issuer"` - LogoutURL types.String `tfsdk:"logout_url"` - SendLoginHint types.Bool `tfsdk:"send_login_hint"` - VendorEscaped types.String `tfsdk:"vendor_escaped"` + AcrValues types.String `tfsdk:"acr_values"` + AttributesToStore types.String `tfsdk:"attributes_to_store"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DomainRestriction types.String `tfsdk:"domain_restriction"` + Enforces2fa types.Bool `tfsdk:"enforces2fa"` + FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` + Issuer types.String `tfsdk:"issuer"` + LogoutURL types.String `tfsdk:"logout_url"` + SendLoginHint types.Bool `tfsdk:"send_login_hint"` + VendorEscaped types.String `tfsdk:"vendor_escaped"` } var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) @@ -1202,15 +1117,18 @@ var launchpadLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile( var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile(true) type launchpadLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ApplicationUUID types.String `tfsdk:"application_uuid"` + GroupUUID types.String `tfsdk:"group_uuid"` + IDenticonCode types.Int64 `tfsdk:"identicon_code"` + LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` + Logo types.List `tfsdk:"logo"` + VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` + ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -1239,48 +1157,21 @@ var launchpadManualLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadManualLa var launchpadManualLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadManualLaunchpadTile(true) type launchpadManualLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` + Title types.String `tfsdk:"title"` + URI types.String `tfsdk:"uri"` } var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) var launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(true) type launchpadSsoApplicationLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - URI types.String `tfsdk:"uri"` + URI types.String `tfsdk:"uri"` } var launchpadVaultRecordLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false) var launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(true) type launchpadVaultRecordLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` } var licenseKeyHubLicenseInfoAttrTypesRS = objectAttrsTypeRSLicenseKeyHubLicenseInfo(false) @@ -1334,7 +1225,7 @@ type notificationCertificateExpiredNotificationDataRS struct { Certificate types.Object `tfsdk:"certificate"` Directory types.Object `tfsdk:"directory"` Expiration types.String `tfsdk:"expiration"` - LdapClient types.Object `tfsdk:"ldap_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` System types.Object `tfsdk:"system"` Usage types.String `tfsdk:"usage"` Webhook types.Object `tfsdk:"webhook"` @@ -1532,40 +1423,22 @@ var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioni var provisioningAbstractProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(true) type provisioningAbstractProvisionedLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_dn"` + Attributes types.Object `tfsdk:"attributes"` + BaseDN types.String `tfsdk:"base_dn"` + BindDN types.String `tfsdk:"bind_dn"` + BindPassword types.String `tfsdk:"bind_password"` + ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` + FailoverHost types.String `tfsdk:"failover_host"` + FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` + GroupDN types.String `tfsdk:"group_dn"` + Host types.String `tfsdk:"host"` + ObjectClasses types.String `tfsdk:"object_classes"` + Port types.Int64 `tfsdk:"port"` + ServiceAccountDN types.String `tfsdk:"service_account_dn"` + SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` + TLS types.String `tfsdk:"tls"` + TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` + UserDN types.String `tfsdk:"user_dn"` } var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) @@ -1710,41 +1583,7 @@ var provisioningProvisionedADAttrTypesRS = objectAttrsTypeRSProvisioningProvisio var provisioningProvisionedADAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAD(true) type provisioningProvisionedADDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_dn"` - SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` + SamAccountNameScheme types.String `tfsdk:"sam_account_name_scheme"` } var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount(false) @@ -1774,176 +1613,52 @@ var provisioningProvisionedAzureOIDCDirectoryAttrTypesRS = objectAttrsTypeRSProv var provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(true) type provisioningProvisionedAzureOIDCDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - Tenant types.String `tfsdk:"tenant"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false) var provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(true) type provisioningProvisionedAzureSyncLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedAzureTenantAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAzureTenant(false) var provisioningProvisionedAzureTenantAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAzureTenant(true) type provisioningProvisionedAzureTenantDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - ClientID types.String `tfsdk:"client_id"` - ClientSecret types.String `tfsdk:"client_secret"` - IDpDomain types.String `tfsdk:"idp_domain"` - Tenant types.String `tfsdk:"tenant"` + ClientID types.String `tfsdk:"client_id"` + ClientSecret types.String `tfsdk:"client_secret"` + IDpDomain types.String `tfsdk:"idp_domain"` + Tenant types.String `tfsdk:"tenant"` } var provisioningProvisionedInternalLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false) var provisioningProvisionedInternalLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(true) type provisioningProvisionedInternalLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Client types.Object `tfsdk:"client"` + Client types.Object `tfsdk:"client"` } var provisioningProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAP(false) var provisioningProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAP(true) type provisioningProvisionedLDAPDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - Attributes types.Object `tfsdk:"attributes"` - BaseDN types.String `tfsdk:"base_dn"` - BindDN types.String `tfsdk:"bind_dn"` - BindPassword types.String `tfsdk:"bind_password"` - ClientCertificateUUID types.String `tfsdk:"client_certificate_uuid"` - FailoverHost types.String `tfsdk:"failover_host"` - FailoverTrustedCertificateUUID types.String `tfsdk:"failover_trusted_certificate_uuid"` - GroupDN types.String `tfsdk:"group_dn"` - Host types.String `tfsdk:"host"` - ObjectClasses types.String `tfsdk:"object_classes"` - Port types.Int64 `tfsdk:"port"` - ServiceAccountDN types.String `tfsdk:"service_account_dn"` - SshPublicKeySupported types.Bool `tfsdk:"ssh_public_key_supported"` - TLS types.String `tfsdk:"tls"` - TrustedCertificateUUID types.String `tfsdk:"trusted_certificate_uuid"` - UserDN types.String `tfsdk:"user_dn"` - Gid types.Int64 `tfsdk:"gid"` - HashingScheme types.String `tfsdk:"hashing_scheme"` - Numbering types.Object `tfsdk:"numbering"` + Gid types.Int64 `tfsdk:"gid"` + HashingScheme types.String `tfsdk:"hashing_scheme"` + Numbering types.Object `tfsdk:"numbering"` } var provisioningProvisionedLDAPDirectoryAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false) var provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(true) type provisioningProvisionedLDAPDirectoryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Active types.Bool `tfsdk:"active"` - Name types.String `tfsdk:"name"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` - UUID types.String `tfsdk:"uuid"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` - ExternalUUID types.String `tfsdk:"external_uuid"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - SelfServiceExistingGroups types.Bool `tfsdk:"self_service_existing_groups"` - SelfServiceNewGroups types.Bool `tfsdk:"self_service_new_groups"` - SelfServiceServiceAccounts types.Bool `tfsdk:"self_service_service_accounts"` - ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` - TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - UsernamePrefix types.String `tfsdk:"username_prefix"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - GroupDN types.String `tfsdk:"group_dn"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + GroupDN types.String `tfsdk:"group_dn"` } var provisioningProvisionedSystemAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem(false) @@ -1968,6 +1683,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2067,51 +1790,21 @@ var requestAbstractApplicationModificationRequestAttrTypesRS = objectAttrsTypeRS var requestAbstractApplicationModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(true) type requestAbstractApplicationModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` + ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestAbstractOrganizationalUnitModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false) var requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(true) type requestAbstractOrganizationalUnitModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` } var requestAbstractProvisionedSystemModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false) var requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(true) type requestAbstractProvisionedSystemModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` } var requestAcceptGrantAccessRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(false) @@ -2147,278 +1840,160 @@ var requestAddGroupAdminRequestAttrTypesRS = objectAttrsTypeRSRequestAddGroupAdm var requestAddGroupAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAddGroupAdminRequest(true) type requestAddGroupAdminRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewAdminUUID types.String `tfsdk:"new_admin_uuid"` - PrivateKey types.String `tfsdk:"private_key"` + NewAdminUUID types.String `tfsdk:"new_admin_uuid"` + PrivateKey types.String `tfsdk:"private_key"` } var requestCreateGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false) var requestCreateGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(true) type requestCreateGroupOnSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystemType types.String `tfsdk:"group_on_system_type"` + NameInSystem types.String `tfsdk:"name_in_system"` } var requestCreateGroupRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupRequest(false) var requestCreateGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupRequest(true) type requestCreateGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestCreateServiceAccountRequestAttrTypesRS = objectAttrsTypeRSRequestCreateServiceAccountRequest(false) var requestCreateServiceAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateServiceAccountRequest(true) type requestCreateServiceAccountRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - Username types.String `tfsdk:"username"` + Username types.String `tfsdk:"username"` } var requestDisable2FARequestAttrTypesRS = objectAttrsTypeRSRequestDisable2FARequest(false) var requestDisable2FARequestAttrTypesRSRecurse = objectAttrsTypeRSRequestDisable2FARequest(true) type requestDisable2FARequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - Subject types.String `tfsdk:"subject"` + Subject types.String `tfsdk:"subject"` } var requestEnableTechnicalAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false) var requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(true) type requestEnableTechnicalAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestExtendAccessRequestAttrTypesRS = objectAttrsTypeRSRequestExtendAccessRequest(false) var requestExtendAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestExtendAccessRequest(true) type requestExtendAccessRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ExtendUntil types.String `tfsdk:"extend_until"` + ExtendUntil types.String `tfsdk:"extend_until"` } var requestGrantAccessRequestAttrTypesRS = objectAttrsTypeRSRequestGrantAccessRequest(false) var requestGrantAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantAccessRequest(true) type requestGrantAccessRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestGrantApplicationRequestAttrTypesRS = objectAttrsTypeRSRequestGrantApplicationRequest(false) var requestGrantApplicationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantApplicationRequest(true) type requestGrantApplicationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestGrantClientPermissionRequestAttrTypesRS = objectAttrsTypeRSRequestGrantClientPermissionRequest(false) var requestGrantClientPermissionRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantClientPermissionRequest(true) type requestGrantClientPermissionRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - PermissionType types.String `tfsdk:"permission_type"` - SystemUUID types.String `tfsdk:"system_uuid"` + PermissionType types.String `tfsdk:"permission_type"` + SystemUUID types.String `tfsdk:"system_uuid"` } var requestGrantGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false) var requestGrantGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(true) type requestGrantGroupOnSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantGroupOnSystemRequestRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false) var requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(true) type requestGrantGroupOnSystemRequestRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + ActivationRequired types.Bool `tfsdk:"activation_required"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestGrantServiceAccountGroupRequestAttrTypesRS = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false) var requestGrantServiceAccountGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(true) type requestGrantServiceAccountGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` } var requestJoinGroupRequestAttrTypesRS = objectAttrsTypeRSRequestJoinGroupRequest(false) var requestJoinGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinGroupRequest(true) type requestJoinGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestJoinVaultRequestAttrTypesRS = objectAttrsTypeRSRequestJoinVaultRequest(false) var requestJoinVaultRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinVaultRequest(true) type requestJoinVaultRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestModificationRequestAttrTypesRS = objectAttrsTypeRSRequestModificationRequest(false) var requestModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest(true) type requestModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountUUID types.String `tfsdk:"account_uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + Feedback types.String `tfsdk:"feedback"` + GroupUUID types.String `tfsdk:"group_uuid"` + MailKey types.String `tfsdk:"mail_key"` + RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` + Status types.String `tfsdk:"status"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) @@ -2441,19 +2016,9 @@ var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordRes var requestPasswordResetRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequest(true) type requestPasswordResetRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` - NewVaultPassword types.String `tfsdk:"new_vault_password"` - UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` + NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` + NewVaultPassword types.String `tfsdk:"new_vault_password"` + UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` } var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) @@ -2470,315 +2035,127 @@ var requestRemoveGroupRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveGroupRe var requestRemoveGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveGroupRequest(true) type requestRemoveGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupName types.String `tfsdk:"group_name"` + GroupName types.String `tfsdk:"group_name"` } var requestRemoveOrganizationalUnitRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false) var requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(true) type requestRemoveOrganizationalUnitRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` + OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` } var requestRemoveProvisionedSystemRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false) var requestRemoveProvisionedSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(true) type requestRemoveProvisionedSystemRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` - SystemName types.String `tfsdk:"system_name"` + SystemName types.String `tfsdk:"system_name"` } var requestReviewAuditRequestAttrTypesRS = objectAttrsTypeRSRequestReviewAuditRequest(false) var requestReviewAuditRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestReviewAuditRequest(true) type requestReviewAuditRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestRevokeAdminRequestAttrTypesRS = objectAttrsTypeRSRequestRevokeAdminRequest(false) var requestRevokeAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRevokeAdminRequest(true) type requestRevokeAdminRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AdminUUID types.String `tfsdk:"admin_uuid"` + AdminUUID types.String `tfsdk:"admin_uuid"` } var requestSetupAuthorizingGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false) var requestSetupAuthorizingGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(true) type requestSetupAuthorizingGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` + AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` } var requestSetupNestedGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupNestedGroupRequest(false) var requestSetupNestedGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupNestedGroupRequest(true) type requestSetupNestedGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` + AccountAction types.String `tfsdk:"account_action"` + Connect types.Bool `tfsdk:"connect"` + RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` } var requestTransferApplicationAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false) var requestTransferApplicationAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(true) type requestTransferApplicationAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestTransferApplicationOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false) var requestTransferApplicationOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(true) type requestTransferApplicationOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ApplicationUUID types.String `tfsdk:"application_uuid"` } var requestTransferAuditorGroupRequestAttrTypesRS = objectAttrsTypeRSRequestTransferAuditorGroupRequest(false) var requestTransferAuditorGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferAuditorGroupRequest(true) type requestTransferAuditorGroupRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` } var requestTransferGroupOnSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false) var requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(true) type requestTransferGroupOnSystemOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` + GroupOnSystem types.Object `tfsdk:"group_on_system"` } var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false) var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(true) type requestTransferOrganizationalUnitOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` } var requestTransferProvisionedSystemAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false) var requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(true) type requestTransferProvisionedSystemAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` } var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false) var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(true) type requestTransferProvisionedSystemContentAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` } var requestTransferProvisionedSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false) var requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(true) type requestTransferProvisionedSystemOwnershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - SystemUUID types.String `tfsdk:"system_uuid"` } var requestTransferServiceAccountAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false) var requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(true) type requestTransferServiceAccountAdministrationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` } var requestUpdateGroupMembershipRequestAttrTypesRS = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false) var requestUpdateGroupMembershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(true) type requestUpdateGroupMembershipRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` + AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` + CurrentEndDate types.String `tfsdk:"current_end_date"` + CurrentRights types.String `tfsdk:"current_rights"` + EndDate types.String `tfsdk:"end_date"` + Rights types.String `tfsdk:"rights"` + UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` } var requestVerifyInternalAccountRequestAttrTypesRS = objectAttrsTypeRSRequestVerifyInternalAccountRequest(false) var requestVerifyInternalAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestVerifyInternalAccountRequest(true) type requestVerifyInternalAccountRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - InternalAccountName types.String `tfsdk:"internal_account_name"` + InternalAccountName types.String `tfsdk:"internal_account_name"` } var serviceaccountServiceAccountAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index ea2098c..c2ac5b1 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -396,6 +396,9 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} + objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client(false)} return objectAttrs } @@ -430,48 +433,18 @@ func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) ma func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["bind_dn"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} objectAttrs["used_for_provisioning"] = types.BoolType return objectAttrs } func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(recurse)} objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -479,7 +452,7 @@ func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs["initiate_login_uri"] = types.StringType objectAttrs["resource_uris"] = types.StringType objectAttrs["share_secret_in_vault"] = types.BoolType - objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["shared_secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} objectAttrs["show_landing_page"] = types.BoolType objectAttrs["use_client_credentials"] = types.BoolType return objectAttrs @@ -539,22 +512,7 @@ func objectAttrsTypeDSClientOAuth2Client_attributes(recurse bool) map[string]att func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(recurse)} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType @@ -585,6 +543,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -643,52 +605,18 @@ func objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(recurse bool) func objectAttrsTypeDSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["base_dn"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["dialect"] = types.StringType objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["host"] = types.StringType objectAttrs["password_recovery"] = types.StringType objectAttrs["port"] = types.Int64Type @@ -696,51 +624,17 @@ func objectAttrsTypeDSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type objectAttrs["search_bind_password"] = types.StringType objectAttrs["search_filter"] = types.StringType objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} return objectAttrs } func objectAttrsTypeDSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType return objectAttrs } func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["base_organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["acr_values"] = types.StringType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["client_id"] = types.StringType @@ -1214,6 +1108,9 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1238,18 +1135,6 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["title"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs @@ -1257,36 +1142,12 @@ func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["uri"] = types.StringType return objectAttrs } func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} return objectAttrs } @@ -1525,34 +1386,13 @@ func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse)} objectAttrs["base_dn"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["group_dn"] = types.StringType objectAttrs["host"] = types.StringType objectAttrs["object_classes"] = types.StringType @@ -1560,7 +1400,7 @@ func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri objectAttrs["service_account_dn"] = types.StringType objectAttrs["ssh_public_key_supported"] = types.BoolType objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} objectAttrs["user_dn"] = types.StringType return objectAttrs } @@ -1696,43 +1536,6 @@ func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recu func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_dn"] = types.StringType objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } @@ -1767,6 +1570,52 @@ func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse b } func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)} + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["group_dn"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} @@ -1789,194 +1638,14 @@ func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) ma objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(false)} - objectAttrs["user_dn"] = types.StringType - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["group_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} return objectAttrs } @@ -2068,58 +1737,19 @@ func objectAttrsTypeDSProvisioningTokenPassword(recurse bool) map[string]attr.Ty func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} + objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} return objectAttrs } @@ -2150,40 +1780,13 @@ func objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse bool) m func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} objectAttrs["private_key"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["activation_required"] = types.BoolType objectAttrs["group_on_system_type"] = types.StringType objectAttrs["name_in_system"] = types.StringType @@ -2192,251 +1795,78 @@ func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["username"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["subject"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["extend_until"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} objectAttrs["permission_type"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } @@ -2455,6 +1885,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} return objectAttrs } @@ -2473,19 +1940,6 @@ func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } @@ -2500,328 +1954,99 @@ func objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse bool) map[string func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} objectAttrs["organizational_unit_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} objectAttrs["system_name"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["authorizing_group_type"] = types.StringType objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["account_action"] = types.StringType objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(false)} + objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)} return objectAttrs } func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} + objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} objectAttrs["current_end_date"] = types.StringType objectAttrs["current_rights"] = types.StringType objectAttrs["end_date"] = types.StringType @@ -2832,19 +2057,6 @@ func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[stri func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["internal_account_name"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 5c8836e..b60551d 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -364,6 +364,9 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} + objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client(false)} return objectAttrs } @@ -400,20 +403,6 @@ func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) ma func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType objectAttrs["share_secret_in_vault"] = types.BoolType @@ -424,22 +413,8 @@ func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(false)} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(recurse)} objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -505,21 +480,7 @@ func objectAttrsTypeRSClientOAuth2Client_attributes(recurse bool) map[string]att func objectAttrsTypeRSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} - objectAttrs["sso_application"] = types.BoolType - objectAttrs["uuid"] = types.StringType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(recurse)} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType @@ -549,6 +510,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -607,44 +572,12 @@ func objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(recurse bool) func objectAttrsTypeRSDirectoryInternalDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["owner_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["base_dn"] = types.StringType objectAttrs["client_certificate_uuid"] = types.StringType @@ -664,43 +597,11 @@ func objectAttrsTypeRSDirectoryLDAPDirectory(recurse bool) map[string]attr.Type func objectAttrsTypeRSDirectoryMaintenanceDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType return objectAttrs } func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_validity_supported"] = types.BoolType - objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["base_organizational_unit_uuid"] = types.StringType - objectAttrs["default_directory"] = types.BoolType - objectAttrs["helpdesk_group_uuid"] = types.StringType - objectAttrs["restrict2fa"] = types.BoolType - objectAttrs["rotating_password"] = types.StringType - objectAttrs["username_customizable"] = types.BoolType objectAttrs["acr_values"] = types.StringType objectAttrs["attributes_to_store"] = types.StringType objectAttrs["client_id"] = types.StringType @@ -1155,6 +1056,9 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record_uuid"] = types.StringType + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1179,17 +1083,6 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType objectAttrs["title"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs @@ -1197,34 +1090,12 @@ func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr func objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType objectAttrs["uri"] = types.StringType return objectAttrs } func objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType return objectAttrs } @@ -1452,27 +1323,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse)} objectAttrs["base_dn"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType @@ -1620,42 +1471,6 @@ func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recu func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_dn"] = types.StringType objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } @@ -1683,6 +1498,52 @@ func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse b } func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_dn"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} @@ -1704,198 +1565,24 @@ func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) ma objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} return objectAttrs } -func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate_uuid"] = types.StringType - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate_uuid"] = types.StringType - objectAttrs["user_dn"] = types.StringType - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} + return objectAttrs +} + +func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1976,54 +1663,18 @@ func objectAttrsTypeRSProvisioningTokenPassword(recurse bool) map[string]attr.Ty func objectAttrsTypeRSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["system_uuid"] = types.StringType return objectAttrs } @@ -2055,18 +1706,6 @@ func objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse bool) m func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["new_admin_uuid"] = types.StringType objectAttrs["private_key"] = types.StringType return objectAttrs @@ -2074,19 +1713,6 @@ func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr. func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType objectAttrs["activation_required"] = types.BoolType objectAttrs["group_on_system_type"] = types.StringType objectAttrs["name_in_system"] = types.StringType @@ -2095,145 +1721,45 @@ func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string func objectAttrsTypeRSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType objectAttrs["username"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestDisable2FARequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["subject"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["extend_until"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType objectAttrs["permission_type"] = types.StringType objectAttrs["system_uuid"] = types.StringType return objectAttrs @@ -2241,92 +1767,32 @@ func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[stri func objectAttrsTypeRSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} - objectAttrs["service_account_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType + objectAttrs := make(map[string]attr.Type) + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} + objectAttrs["service_account_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) return objectAttrs } func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } @@ -2344,6 +1810,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} return objectAttrs } @@ -2363,18 +1866,6 @@ func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) func objectAttrsTypeRSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["new_vault_and_directory_password"] = types.StringType objectAttrs["new_vault_password"] = types.StringType objectAttrs["unsynced_password"] = types.BoolType @@ -2392,109 +1883,35 @@ func objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse bool) map[string func objectAttrsTypeRSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["group_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["organizational_unit_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType objectAttrs["system_name"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["admin_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["authorizing_group_type"] = types.StringType objectAttrs["connect"] = types.BoolType objectAttrs["requesting_group_uuid"] = types.StringType @@ -2503,18 +1920,6 @@ func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[stri func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["account_action"] = types.StringType objectAttrs["connect"] = types.BoolType objectAttrs["requesting_group_uuid"] = types.StringType @@ -2523,179 +1928,53 @@ func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]at func objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["application_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(false)} + objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} return objectAttrs } func objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["service_account_uuid"] = types.StringType return objectAttrs } func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["account_to_update_uuid"] = types.StringType objectAttrs["current_end_date"] = types.StringType objectAttrs["current_rights"] = types.StringType @@ -2707,18 +1986,6 @@ func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[stri func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType objectAttrs["internal_account_name"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 1c23d2b..5b5b903 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -929,6 +929,18 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), Computed: true, } + schemaAttrs["o_auth2_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), + Computed: true, + } + schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Computed: true, + } + schemaAttrs["saml2_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientSaml2Client(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1002,82 +1014,18 @@ func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool } func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "tile", - "vaultRecordCount", - ), - ), - }, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, } schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ @@ -1087,78 +1035,14 @@ func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Att } func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "tile", - "vaultRecordCount", - ), - ), - }, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), }, Computed: true, } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(false), + Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse), Computed: true, } schemaAttrs["callback_uri"] = dsschema.StringAttribute{ @@ -1183,7 +1067,7 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A Computed: true, } schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, } schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ @@ -1320,72 +1204,8 @@ func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string } func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["scopes"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["sso_application"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "tile", - "vaultRecordCount", - ), - ), - }, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(false), + Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(recurse), Computed: true, } schemaAttrs["metadata"] = dsschema.StringAttribute{ @@ -1472,6 +1292,22 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Computed: true, + } + schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), + Computed: true, + } + schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), + Computed: true, + } + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1592,200 +1428,107 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bo } func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Computed: true, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ + schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + Computed: true, + } + schemaAttrs["dialect"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + schemaAttrs["password_recovery"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "markers", - "status", - ), - ), - }, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + schemaAttrs["port"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + schemaAttrs["search_bind_dn"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + schemaAttrs["search_filter"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "markers", - "status", - ), - ), - }, - } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["acr_values"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["dialect"] = dsschema.StringAttribute{ + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ + schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["password_recovery"] = dsschema.StringAttribute{ + schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["port"] = dsschema.Int64Attribute{ + schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["search_bind_dn"] = dsschema.StringAttribute{ + schemaAttrs["issuer"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["search_bind_password"] = dsschema.StringAttribute{ + schemaAttrs["logout_url"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["search_filter"] = dsschema.StringAttribute{ + schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["tls"] = dsschema.StringAttribute{ + schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } return schemaAttrs } -func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), Computed: true, } } @@ -1801,13 +1544,7 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string }, Computed: true, } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1824,39 +1561,72 @@ func dataSourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string listvalidator.ValueStringsAre( stringvalidator.OneOf( "audit", - "markers", - "status", + "vault", ), ), }, } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), Computed: true, } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + schemaAttrs["last_used"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ + schemaAttrs["rights"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), + }, Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + }, + Computed: true, + } + schemaAttrs["group_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), Computed: true, } } @@ -1872,13 +1642,7 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche }, Computed: true, } - schemaAttrs["account_validity_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["admin"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1894,241 +1658,45 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( + "accounts", + "administeredClients", + "administeredSystems", + "admins", "audit", + "authorizedGroups", + "clientPermissions", + "clients", + "contentAdministeredSystems", + "groupauditinginfo", + "groupinfo", + "helpdesk", "markers", - "status", + "myaccount", + "mydelegatedaccount", + "nestedGroups", + "ownedClients", + "ownedDirectories", + "ownedGroupsOnSystem", + "ownedOrganizationalUnits", + "ownedSystems", + "recentAudits", + "requeststatus", + "serviceAccounts", + "systems", + "vault", + "webhooks", ), ), }, } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["default_directory"] = dsschema.BoolAttribute{ + schemaAttrs["application_administration"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), Computed: true, } - schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["acr_values"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes_to_store"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["enforces2fa"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["fully_resolved_issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["issuer"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logout_url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["send_login_hint"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["vendor_escaped"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "vault", - ), - ), - }, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), - Computed: true, - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - }, - Computed: true, - } - schemaAttrs["group_count"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "accounts", - "administeredClients", - "administeredSystems", - "admins", - "audit", - "authorizedGroups", - "clientPermissions", - "clients", - "contentAdministeredSystems", - "groupauditinginfo", - "groupinfo", - "helpdesk", - "markers", - "myaccount", - "mydelegatedaccount", - "nestedGroups", - "ownedClients", - "ownedDirectories", - "ownedGroupsOnSystem", - "ownedOrganizationalUnits", - "ownedSystems", - "recentAudits", - "requeststatus", - "serviceAccounts", - "systems", - "vault", - "webhooks", - ), - ), - }, - } - schemaAttrs["application_administration"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), - Computed: true, - } - schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ + schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ Computed: true, } schemaAttrs["auditor"] = dsschema.BoolAttribute{ @@ -3150,6 +2718,18 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), Computed: true, } + schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Computed: true, + } + schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Computed: true, + } + schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -3188,176 +2768,23 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) } func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["title"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["uri"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["title"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, - } return schemaAttrs } func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dsschema.Attribute { @@ -3834,94 +3261,8 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recur } func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), Computed: true, } schemaAttrs["base_dn"] = dsschema.StringAttribute{ @@ -3934,14 +3275,14 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Computed: true, } schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["group_dn"] = dsschema.StringAttribute{ @@ -3966,7 +3307,7 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ Computed: true, } schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), Computed: true, } schemaAttrs["user_dn"] = dsschema.StringAttribute{ @@ -4253,10 +3594,17 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects( return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), Computed: true, } } @@ -4272,202 +3620,134 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss }, Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + schemaAttrs["last_active"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( - "account", "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", ), ), }, } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ + schemaAttrs["uid"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + }, Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), Computed: true, } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), Computed: true, } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_dn"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), Computed: true, } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["port"] = dsschema.Int64Attribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + schemaAttrs["idp_domain"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["tls"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), Computed: true, } - schemaAttrs["user_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ - Computed: true, - } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ + schemaAttrs["gid"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["uid"] = dsschema.Int64Attribute{ + schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, - Computed: true, + schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), Computed: true, } + schemaAttrs["group_dn"] = dsschema.StringAttribute{ + Computed: true, + } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ @@ -4555,23 +3835,52 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Computed: true, + } + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Computed: true, + } + schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + Computed: true, + } + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Computed: true, + } + schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + Computed: true, + } + schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), + Computed: true, + } + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Computed: true, } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsRestLink(recurse), @@ -4601,3080 +3910,326 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse Required: recurse, Computed: !recurse, } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( - "account", "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", ), ), }, } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ + schemaAttrs["created_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + schemaAttrs["errors"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + schemaAttrs["log"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + schemaAttrs["modifications"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), + }, Computed: true, } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), Computed: true, } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ + schemaAttrs["login_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), Computed: true, } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, + } + schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } + schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["groups"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), }, Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["application"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(recurse), + Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), Computed: true, } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), Computed: true, } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["nanos"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + schemaAttrs["seconds"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["end_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + schemaAttrs["make_manager"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), Computed: true, } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_id"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ + schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["idp_domain"] = dsschema.StringAttribute{ + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["tenant"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group_name"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["subject"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["active"] = dsschema.BoolAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["extend_until"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["name"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["permission_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), Computed: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Computed: true, - } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, - } - schemaAttrs["user_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["gid"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, - } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), - }, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, - } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["login_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, - } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, - } - schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Computed: true, - } - schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["make_manager"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["subject"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["extend_until"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - schemaAttrs["permission_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["managers"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, - } - schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } - schemaAttrs["system_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ + schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), Computed: true, } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, - } return schemaAttrs } -func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, - } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["feedback"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, - } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(false), - Computed: true, - } +func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) return schemaAttrs } -func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ @@ -7729,82 +4284,329 @@ func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[ schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["current_end_date"] = dsschema.StringAttribute{ + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + Computed: true, + } + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Computed: true, + } + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + Computed: true, + } + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Computed: true, + } + schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Computed: true, + } + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Computed: true, + } + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Computed: true, + } + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + Computed: true, + } + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Computed: true, + } + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Computed: true, + } + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Computed: true, + } + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Computed: true, + } + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + Computed: true, + } + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Computed: true, + } + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Computed: true, + } + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Computed: true, + } + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + Computed: true, + } + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Computed: true, + } + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + Computed: true, + } + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Computed: true, + } + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Computed: true, + } + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Computed: true, + } + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Computed: true, + } + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + Computed: true, + } + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Computed: true, + } + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + Computed: true, + } + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Computed: true, + } + schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + Computed: true, + } + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Computed: true, + } + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Computed: true, + } + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + }, Computed: true, } - schemaAttrs["current_rights"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["end_date"] = dsschema.StringAttribute{ + schemaAttrs["managers"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["rights"] = dsschema.StringAttribute{ + schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group_name"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, - } + schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["system_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), - }, + schemaAttrs["connect"] = dsschema.BoolAttribute{ + Computed: true, } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), Computed: true, } - schemaAttrs["comment"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_action"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["feedback"] = dsschema.StringAttribute{ + schemaAttrs["connect"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), Computed: true, } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Computed: true, + } + schemaAttrs["current_end_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + schemaAttrs["current_rights"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["status"] = dsschema.StringAttribute{ + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ Computed: true, } + return schemaAttrs +} +func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["internal_account_name"] = dsschema.StringAttribute{ Computed: true, } diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 317746f..57217e9 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -788,6 +788,18 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, } + schemaAttrs["o_auth2_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + Optional: true, + } + schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + Optional: true, + } + schemaAttrs["saml2_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientSaml2Client(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -867,52 +879,6 @@ func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) } func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Computed: true, } @@ -934,60 +900,14 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri } func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(false), + Attributes: resourceSchemaAttrsAuthPermission(recurse), }, Computed: true, } schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(false), + Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), Optional: true, } schemaAttrs["callback_uri"] = rsschema.StringAttribute{ @@ -1132,54 +1052,8 @@ func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]r } func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client_attributes(false), + Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), Optional: true, } schemaAttrs["metadata"] = rsschema.StringAttribute{ @@ -1258,6 +1132,22 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + Optional: true, + } + schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), + Optional: true, + } + schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), + Optional: true, + } + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1383,184 +1273,180 @@ func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool } func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["base_dn"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + schemaAttrs["dialect"] = rsschema.StringAttribute{ Computed: true, + Optional: true, + Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["failover_host"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["host"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["password_recovery"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["port"] = rsschema.Int64Attribute{ Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["search_filter"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["tls"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["acr_values"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["issuer"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["logout_url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ - Optional: true, } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ + schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["dialect"] = rsschema.StringAttribute{ + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, - Optional: true, - Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), + }, Optional: true, } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + Computed: true, } - schemaAttrs["password_recovery"] = rsschema.StringAttribute{ - Required: true, + return schemaAttrs +} +func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + }, + Optional: true, } - schemaAttrs["port"] = rsschema.Int64Attribute{ + schemaAttrs["group_count"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["search_filter"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } return schemaAttrs } -func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), Optional: true, } } @@ -1576,353 +1462,121 @@ func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]r }, Optional: true, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + schemaAttrs["application_administration"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), + Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["auditor"] = rsschema.BoolAttribute{ Computed: true, + } + schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, - } + schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, + schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["extended_access"] = rsschema.StringAttribute{ Computed: true, + Optional: true, + Default: stringdefault.StaticString("NOT_ALLOWED"), } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["private_group"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["acr_values"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + schemaAttrs["record_trail"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ + schemaAttrs["single_managed"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ Computed: true, - } - schemaAttrs["issuer"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["logout_url"] = rsschema.StringAttribute{ Optional: true, + Default: stringdefault.StaticString("FULL"), } - schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ - Required: true, - } return schemaAttrs } -func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), Optional: true, } } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["end_date"] = rsschema.StringAttribute{ + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Optional: true, - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - }, - Optional: true, - } - schemaAttrs["group_count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["admin"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["application_administration"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), - Optional: true, - } - schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["auditor"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["extended_access"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NOT_ALLOWED"), - } - schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["private_group"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["record_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["single_managed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("FULL"), - } - schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, @@ -2817,6 +2471,18 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, } + schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Optional: true, + } + schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Optional: true, + } + schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2855,182 +2521,59 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) m } func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } + schemaAttrs["title"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["uri"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["uri"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["current_license_status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["customer_company"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["customer_contact"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["customer_domains"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration_time"] = rsschema.StringAttribute{ Optional: true, - Default: stringdefault.StaticString("MANUAL"), } - schemaAttrs["logo"] = rsschema.ListAttribute{ + schemaAttrs["features"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ + schemaAttrs["issue_time"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["title"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["current_license_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_company"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_contact"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_domains"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["features"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["license_key"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["license_key"] = rsschema.StringAttribute{ + Optional: true, } schemaAttrs["not_before_time"] = rsschema.StringAttribute{ Optional: true, @@ -3395,81 +2938,8 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse } func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), Optional: true, } schemaAttrs["base_dn"] = rsschema.StringAttribute{ @@ -3787,173 +3257,123 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(re return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), Optional: true, } } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), }, Optional: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ + schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ + schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_dn"] = rsschema.StringAttribute{ + schemaAttrs["idp_domain"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, + schemaAttrs["gid"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + Required: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["group_dn"] = rsschema.StringAttribute{ + Required: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ @@ -4028,22 +3448,52 @@ func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + Optional: true, } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Optional: true, + } + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Optional: true, + } + schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + Optional: true, + } + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Optional: true, + } + schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + Optional: true, + } + schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), + Optional: true, + } + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + }, + Optional: true, } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -4073,63 +3523,21 @@ func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bo schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), Optional: true, } } @@ -4145,2153 +3553,295 @@ func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[str }, Optional: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ + schemaAttrs["created_at"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["errors"] = rsschema.Int64Attribute{ Computed: true, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ + schemaAttrs["log"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + schemaAttrs["modifications"] = rsschema.Int64Attribute{ Computed: true, } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["idp_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(false), - Optional: true, - } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["user_dn"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["gid"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["login_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, - } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, - } - schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, - } - schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["groups"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Optional: true, - } - schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["make_manager"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["subject"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["extend_until"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["permission_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, - } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), - Optional: true, - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["managers"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["system_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), }, Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + Computed: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), + Computed: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["login_name"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + Computed: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + Computed: true, } - schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + Computed: true, + } + schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + Computed: true, } return schemaAttrs } -func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ + schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } return schemaAttrs } -func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + schemaAttrs["groups"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), }, Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["account_action"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ + schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } return schemaAttrs } -func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["password"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nanos"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["seconds"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ + schemaAttrs["make_manager"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["private_key"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["username"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + return schemaAttrs +} +func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["subject"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["extend_until"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["permission_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, + } + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ @@ -6332,283 +3882,323 @@ func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse boo schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Required: true, + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + Optional: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Optional: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + Optional: true, } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + Optional: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Optional: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + Optional: true, } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + Optional: true, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Optional: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Optional: true, + } + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + Optional: true, + } + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Optional: true, } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Optional: true, } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Optional: true, + } + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ + schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), }, Optional: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + Computed: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ + schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, + Default: booldefault.StaticBool(false), } return schemaAttrs } -func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["managers"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ + schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["system_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ Required: true, } return schemaAttrs } -func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, + schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_action"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["feedback"] = rsschema.StringAttribute{ + schemaAttrs["connect"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Required: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, } + return schemaAttrs +} +func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ Required: true, } @@ -6631,45 +4221,6 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st } func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, - } - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Optional: true, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Optional: true, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - } schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ Required: true, } diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index accc6e1..1a1dc78 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -315,6 +315,9 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) + data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { @@ -341,19 +344,6 @@ func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data } func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) @@ -362,19 +352,6 @@ func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, } func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) @@ -426,19 +403,6 @@ func fillDataStructFromTFObjectDSClientOAuth2Client_attributes(data *clientOAuth } func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) @@ -464,6 +428,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -508,40 +476,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory_additionalObjects(dat } func fillDataStructFromTFObjectDSDirectoryInternalDirectory(data *directoryInternalDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) @@ -559,39 +497,9 @@ func fillDataStructFromTFObjectDSDirectoryLDAPDirectory(data *directoryLDAPDirec } func fillDataStructFromTFObjectDSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) } func fillDataStructFromTFObjectDSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) @@ -963,6 +871,9 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) + data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { @@ -979,45 +890,15 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data * } func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataDS, obj types.Object) { @@ -1056,7 +937,7 @@ func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) @@ -1190,25 +1071,6 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObject } func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) @@ -1323,41 +1185,6 @@ func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalO } func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningProvisionedADDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } @@ -1383,49 +1210,11 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAccount_additionalObject } func fillDataStructFromTFObjectDSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) @@ -1433,6 +1222,28 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(d } func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataDS, obj types.Object) { + data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) + data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) + data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) + data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1452,127 +1263,21 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAzureTenant(data *provis data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) - data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) - data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificate = obj.Attributes()["client_certificate"].(basetypes.ObjectValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificate = obj.Attributes()["failover_trusted_certificate"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificate = obj.Attributes()["trusted_certificate"].(basetypes.ObjectValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1633,47 +1338,14 @@ func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTok } func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } @@ -1695,101 +1367,68 @@ func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data } func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.NewAdmin = obj.Attributes()["new_admin"].(basetypes.ObjectValue) data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { + data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { + data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { + data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { + data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) + data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { +} + +func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) @@ -1801,143 +1440,43 @@ func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendA data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { @@ -1950,17 +1489,6 @@ func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(da } func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataDS, obj types.Object) { @@ -1971,261 +1499,66 @@ func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *request } func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.Admin = obj.Attributes()["admin"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AccountToUpdate = obj.Attributes()["account_to_update"].(basetypes.ObjectValue) data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) @@ -2235,17 +1568,6 @@ func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *reque } func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) } diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 633a1bb..c219b14 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -285,6 +285,9 @@ func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientAppli data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) + data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { @@ -313,18 +316,6 @@ func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data } func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) data.ShareSecretInVault = obj.Attributes()["share_secret_in_vault"].(basetypes.BoolValue) @@ -333,18 +324,6 @@ func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, } func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) @@ -394,18 +373,6 @@ func fillDataStructFromTFObjectRSClientOAuth2Client_attributes(data *clientOAuth } func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) - data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) - data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) @@ -430,6 +397,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -474,38 +445,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory_additionalObjects(dat } func fillDataStructFromTFObjectRSDirectoryInternalDirectory(data *directoryInternalDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) @@ -523,37 +466,9 @@ func fillDataStructFromTFObjectRSDirectoryLDAPDirectory(data *directoryLDAPDirec } func fillDataStructFromTFObjectRSDirectoryMaintenanceDirectory(data *directoryMaintenanceDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) } func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) - data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) - data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) - data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) - data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) - data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.AcrValues = obj.Attributes()["acr_values"].(basetypes.StringValue) data.AttributesToStore = obj.Attributes()["attributes_to_store"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) @@ -906,6 +821,9 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) + data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { @@ -922,42 +840,15 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile_additionalObjects(data * } func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) data.Title = obj.Attributes()["title"].(basetypes.StringValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataRS, obj types.Object) { @@ -996,7 +887,7 @@ func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LdapClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) @@ -1119,24 +1010,6 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObject } func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) @@ -1249,40 +1122,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalO } func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningProvisionedADDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) data.SamAccountNameScheme = obj.Attributes()["sam_account_name_scheme"].(basetypes.StringValue) } @@ -1301,47 +1140,11 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAccount_additionalObject } func fillDataStructFromTFObjectRSProvisioningProvisionedAzureOIDCDirectory(data *provisioningProvisionedAzureOIDCDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) data.Tenant = obj.Attributes()["tenant"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(data *provisioningProvisionedAzureSyncLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) @@ -1349,24 +1152,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(d } func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provisioningProvisionedAzureTenantDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.ClientSecret = obj.Attributes()["client_secret"].(basetypes.StringValue) data.IDpDomain = obj.Attributes()["idp_domain"].(basetypes.StringValue) @@ -1374,6 +1159,21 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provis } func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataRS, obj types.Object) { + data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { + data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) + data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) + data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1392,98 +1192,21 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provi data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) - data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) - data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) - data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) - data.ClientCertificateUUID = obj.Attributes()["client_certificate_uuid"].(basetypes.StringValue) - data.FailoverHost = obj.Attributes()["failover_host"].(basetypes.StringValue) - data.FailoverTrustedCertificateUUID = obj.Attributes()["failover_trusted_certificate_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) - data.Host = obj.Attributes()["host"].(basetypes.StringValue) - data.ObjectClasses = obj.Attributes()["object_classes"].(basetypes.StringValue) - data.Port = obj.Attributes()["port"].(basetypes.Int64Value) - data.ServiceAccountDN = obj.Attributes()["service_account_dn"].(basetypes.StringValue) - data.SshPublicKeySupported = obj.Attributes()["ssh_public_key_supported"].(basetypes.BoolValue) - data.TLS = obj.Attributes()["tls"].(basetypes.StringValue) - data.TrustedCertificateUUID = obj.Attributes()["trusted_certificate_uuid"].(basetypes.StringValue) - data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) - data.Gid = obj.Attributes()["gid"].(basetypes.Int64Value) - data.HashingScheme = obj.Attributes()["hashing_scheme"].(basetypes.StringValue) - data.Numbering = obj.Attributes()["numbering"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedLDAPDirectory(data *provisioningProvisionedLDAPDirectoryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.GroupDN = obj.Attributes()["group_dn"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisioningProvisionedSystemDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) - data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) - data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SelfServiceExistingGroups = obj.Attributes()["self_service_existing_groups"].(basetypes.BoolValue) - data.SelfServiceNewGroups = obj.Attributes()["self_service_new_groups"].(basetypes.BoolValue) - data.SelfServiceServiceAccounts = obj.Attributes()["self_service_service_accounts"].(basetypes.BoolValue) - data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) - data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { + data.Items = obj.Attributes()["items"].(basetypes.ListValue) +} + +func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provisioningProvisionedSystemPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) @@ -1543,44 +1266,14 @@ func fillDataStructFromTFObjectRSProvisioningTokenPassword(data *provisioningTok } func fillDataStructFromTFObjectRSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } @@ -1602,220 +1295,65 @@ func fillDataStructFromTFObjectRSRequestAcceptModificationRequestParameters(data } func fillDataStructFromTFObjectRSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestCreateGroupRequest(data *requestCreateGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestDisable2FARequest(data *requestDisable2FARequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestExtendAccessRequest(data *requestExtendAccessRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantAccessRequest(data *requestGrantAccessRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestJoinGroupRequest(data *requestJoinGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestJoinVaultRequest(data *requestJoinVaultRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModificationRequestDataRS, obj types.Object) { @@ -1829,6 +1367,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { @@ -1842,16 +1417,6 @@ func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(da } func fillDataStructFromTFObjectRSRequestPasswordResetRequest(data *requestPasswordResetRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) @@ -1865,244 +1430,66 @@ func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *request } func fillDataStructFromTFObjectRSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestReviewAuditRequest(data *requestReviewAuditRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) @@ -2112,16 +1499,6 @@ func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *reque } func fillDataStructFromTFObjectRSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) } diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 1bec835..9700bac 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -20,7 +20,8 @@ func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditInfo() + var tkh keyhubmodel.AuditInfoable + tkh = keyhubmodel.NewAuditInfo() { val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) @@ -42,7 +43,8 @@ func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewErrorReport() + var tkh keyhubmodel.ErrorReportable + tkh = keyhubmodel.NewErrorReport() tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) @@ -75,7 +77,8 @@ func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + var tkh keyhubmodel.ErrorReport_applicationErrorParametersable + tkh = keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } @@ -85,7 +88,8 @@ func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGeneratedSecret() + var tkh keyhubmodel.GeneratedSecretable + tkh = keyhubmodel.NewGeneratedSecret() tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) @@ -98,7 +102,8 @@ func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLinkable() + var tkh keyhubmodel.Linkableable + tkh = keyhubmodel.NewLinkable() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -125,7 +130,8 @@ func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNonLinkable() + var tkh keyhubmodel.NonLinkableable + tkh = keyhubmodel.NewNonLinkable() return tkh, diags } @@ -135,7 +141,8 @@ func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRestLink() + var tkh keyhubmodel.RestLinkable + tkh = keyhubmodel.NewRestLink() tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) @@ -149,7 +156,8 @@ func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSegmentCount() + var tkh keyhubmodel.SegmentCountable + tkh = keyhubmodel.NewSegmentCount() tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -161,7 +169,8 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord() + var tkh keyhubmodel.AuditAuditRecordable + tkh = keyhubmodel.NewAuditAuditRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -227,7 +236,8 @@ func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + var tkh keyhubmodel.AuditAuditRecordLinkableWrapperable + tkh = keyhubmodel.NewAuditAuditRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -246,7 +256,8 @@ func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + var tkh keyhubmodel.AuditAuditRecord_additionalObjectsable + tkh = keyhubmodel.NewAuditAuditRecord_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -261,7 +272,8 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount() + var tkh keyhubmodel.AuthAccountable + tkh = keyhubmodel.NewAuthAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -365,7 +377,8 @@ func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountBulkUpdate() + var tkh keyhubmodel.AuthAccountBulkUpdateable + tkh = keyhubmodel.NewAuthAccountBulkUpdate() { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) @@ -390,7 +403,8 @@ func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountChangeLocale() + var tkh keyhubmodel.AuthAccountChangeLocaleable + tkh = keyhubmodel.NewAuthAccountChangeLocale() tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -401,7 +415,8 @@ func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + var tkh keyhubmodel.AuthAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -420,7 +435,8 @@ func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountPrimer() + var tkh keyhubmodel.AuthAccountPrimerable + tkh = keyhubmodel.NewAuthAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -461,7 +477,8 @@ func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + var tkh keyhubmodel.AuthAccountRecoveryStatusable + tkh = keyhubmodel.NewAuthAccountRecoveryStatus() tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags @@ -473,7 +490,8 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountSettings() + var tkh keyhubmodel.AuthAccountSettingsable + tkh = keyhubmodel.NewAuthAccountSettings() { val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["default_organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -519,7 +537,8 @@ func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountStatus() + var tkh keyhubmodel.AuthAccountStatusable + tkh = keyhubmodel.NewAuthAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) @@ -539,7 +558,8 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount_additionalObjects() + var tkh keyhubmodel.AuthAccount_additionalObjectsable + tkh = keyhubmodel.NewAuthAccount_additionalObjects() tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -580,7 +600,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountsAuditStats() + var tkh keyhubmodel.AuthAccountsAuditStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats() { val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) @@ -604,7 +625,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, r if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_directoryStats() return tkh, diags } @@ -613,7 +635,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } @@ -622,7 +645,8 @@ func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, re if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_validityStats() return tkh, diags } @@ -632,7 +656,8 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccount() + var tkh keyhubmodel.AuthInternalAccountable + tkh = keyhubmodel.NewAuthInternalAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -753,7 +778,8 @@ func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + var tkh keyhubmodel.AuthInternalAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthInternalAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -772,7 +798,8 @@ func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + var tkh keyhubmodel.AuthInternalAccountStatusObjectable + tkh = keyhubmodel.NewAuthInternalAccountStatusObject() { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { return *val.(*keyhubmodel.AuthInternalAccountStatus) @@ -789,7 +816,8 @@ func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthMoveInternalAccount() + var tkh keyhubmodel.AuthMoveInternalAccountable + tkh = keyhubmodel.NewAuthMoveInternalAccount() { val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) @@ -804,7 +832,8 @@ func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthPermission() + var tkh keyhubmodel.AuthPermissionable + tkh = keyhubmodel.NewAuthPermission() tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -832,7 +861,8 @@ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttribute() + var tkh keyhubmodel.AuthStoredAccountAttributeable + tkh = keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -844,7 +874,8 @@ func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse boo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttributes() + var tkh keyhubmodel.AuthStoredAccountAttributesable + tkh = keyhubmodel.NewAuthStoredAccountAttributes() { val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { tkh, d := tfObjectToTKHDSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) @@ -863,7 +894,8 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate() + var tkh keyhubmodel.CertificateCertificateable + tkh = keyhubmodel.NewCertificateCertificate() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -930,7 +962,8 @@ func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + var tkh keyhubmodel.CertificateCertificateLinkableWrapperable + tkh = keyhubmodel.NewCertificateCertificateLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) @@ -949,7 +982,8 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificatePrimer() + var tkh keyhubmodel.CertificateCertificatePrimerable + tkh = keyhubmodel.NewCertificateCertificatePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1002,7 +1036,8 @@ func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + var tkh keyhubmodel.CertificateCertificate_additionalObjectsable + tkh = keyhubmodel.NewCertificateCertificate_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1017,7 +1052,8 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication() + var tkh keyhubmodel.ClientClientApplicationable + tkh = keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1069,6 +1105,30 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if !objAttrs["o_auth2_client"].IsNull() { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1085,7 +1145,8 @@ func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + var tkh keyhubmodel.ClientClientApplicationLinkableWrapperable + tkh = keyhubmodel.NewClientClientApplicationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { tkh, d := tfObjectToTKHDSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1104,7 +1165,8 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationPrimer() + var tkh keyhubmodel.ClientClientApplicationPrimerable + tkh = keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1150,7 +1212,8 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + var tkh keyhubmodel.ClientClientApplication_additionalObjectsable + tkh = keyhubmodel.NewClientClientApplication_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1181,78 +1244,21 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientLdapClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientLdapClientable + tkh = keyhubmodel.NewClientLdapClient() tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClientCertificate(val) } tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["shared_secret"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetSharedSecret(val) } tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1262,61 +1268,11 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientOAuth2Clientable + tkh = keyhubmodel.NewClientOAuth2Client() { val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -1324,7 +1280,7 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetAccountPermissions(val) } { - val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1336,19 +1292,12 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetResourceURIs(objAttrs["resource_uris"].(basetypes.StringValue).ValueStringPointer()) tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["shared_secret"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, objAttrs["shared_secret"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetSharedSecret(val) } tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1358,7 +1307,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1410,7 +1360,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1429,7 +1380,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1486,7 +1438,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { tkh, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1505,7 +1458,8 @@ func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + var tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable + tkh = keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1519,7 +1473,8 @@ func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() + var tkh keyhubmodel.ClientOAuth2Client_attributesable + tkh = keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } @@ -1529,60 +1484,10 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientSaml2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientSaml2Clientable + tkh = keyhubmodel.NewClientSaml2Client() { - val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1593,13 +1498,6 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetSubjectFormat(val) } - if recurse { - { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1608,7 +1506,8 @@ func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientSaml2Client_attributes() + var tkh keyhubmodel.ClientSaml2Client_attributesable + tkh = keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } @@ -1618,7 +1517,8 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory() + var tkh keyhubmodel.DirectoryAccountDirectoryable + tkh = keyhubmodel.NewDirectoryAccountDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1668,6 +1568,38 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1684,7 +1616,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { tkh, d := tfObjectToTKHDSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1703,7 +1636,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + var tkh keyhubmodel.DirectoryAccountDirectoryPrimerable + tkh = keyhubmodel.NewDirectoryAccountDirectoryPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1742,7 +1676,8 @@ func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + var tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable + tkh = keyhubmodel.NewDirectoryAccountDirectoryStatusReport() tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { @@ -1761,7 +1696,8 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1805,7 +1741,8 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { tkh, d := tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1824,7 +1761,8 @@ func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + var tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable + tkh = keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1849,173 +1787,63 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryInternalDirectory() + var tkh keyhubmodel.DirectoryInternalDirectoryable + tkh = keyhubmodel.NewDirectoryInternalDirectory() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["owner"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetOwner(val) + } + return tkh, diags +} + +func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.DirectoryLDAPDirectoryable + tkh = keyhubmodel.NewDirectoryLDAPDirectory() + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetClientCertificate(val) } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + tkh.SetDialect(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + tkh.SetFailoverTrustedCertificate(val) } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + tkh.SetPasswordRecovery(val) } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) - tkh.SetRotatingPassword(val) + tkh.SetTls(val) } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) - diags.Append(d...) - tkh.SetDialect(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) - diags.Append(d...) - tkh.SetPasswordRecovery(val) - } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetTrustedCertificate(val) } return tkh, diags } @@ -2025,64 +1853,8 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.DirectoryMaintenanceDirectoryable + tkh = keyhubmodel.NewDirectoryMaintenanceDirectory() return tkh, diags } @@ -2092,56 +1864,8 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["base_organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["helpdesk_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.DirectoryOIDCDirectoryable + tkh = keyhubmodel.NewDirectoryOIDCDirectory() tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) @@ -2157,13 +1881,6 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVendorEscaped(val) } - if recurse { - { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -2173,7 +1890,8 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup() + var tkh keyhubmodel.GroupAccountGroupable + tkh = keyhubmodel.NewGroupAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2237,7 +1955,8 @@ func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + var tkh keyhubmodel.GroupAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { tkh, d := tfObjectToTKHDSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2256,7 +1975,8 @@ func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + var tkh keyhubmodel.GroupAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupAccountGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2276,7 +1996,8 @@ func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + var tkh keyhubmodel.GroupAuthorizedGroupsWrapperable + tkh = keyhubmodel.NewGroupAuthorizedGroupsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2296,7 +2017,8 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup() + var tkh keyhubmodel.GroupGroupable + tkh = keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2409,7 +2131,8 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2492,7 +2215,8 @@ func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + var tkh keyhubmodel.GroupGroupAccountLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { tkh, d := tfObjectToTKHDSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2511,7 +2235,8 @@ func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountNesting() + var tkh keyhubmodel.GroupGroupAccountNestingable + tkh = keyhubmodel.NewGroupGroupAccountNesting() tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -2522,7 +2247,8 @@ func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountStatus() + var tkh keyhubmodel.GroupGroupAccountStatusable + tkh = keyhubmodel.NewGroupGroupAccountStatus() { val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2538,7 +2264,8 @@ func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + var tkh keyhubmodel.GroupGroupAccount_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2553,7 +2280,8 @@ func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAdminMail() + var tkh keyhubmodel.GroupGroupAdminMailable + tkh = keyhubmodel.NewGroupGroupAdminMail() tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -2564,7 +2292,8 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2634,7 +2363,8 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditAccount() + var tkh keyhubmodel.GroupGroupAuditAccountable + tkh = keyhubmodel.NewGroupGroupAuditAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2694,7 +2424,8 @@ func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditConfig() + var tkh keyhubmodel.GroupGroupAuditConfigable + tkh = keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2731,7 +2462,8 @@ func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + var tkh keyhubmodel.GroupGroupAuditLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAuditLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { tkh, d := tfObjectToTKHDSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2750,7 +2482,8 @@ func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + var tkh keyhubmodel.GroupGroupAudit_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2765,7 +2498,8 @@ func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditingInfo() + var tkh keyhubmodel.GroupGroupAuditingInfoable + tkh = keyhubmodel.NewGroupGroupAuditingInfo() { val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -2791,7 +2525,8 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification() + var tkh keyhubmodel.GroupGroupClassificationable + tkh = keyhubmodel.NewGroupGroupClassification() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2848,7 +2583,8 @@ func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationInfo() + var tkh keyhubmodel.GroupGroupClassificationInfoable + tkh = keyhubmodel.NewGroupGroupClassificationInfo() tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } @@ -2859,7 +2595,8 @@ func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + var tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClassificationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2878,7 +2615,8 @@ func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + var tkh keyhubmodel.GroupGroupClassificationPrimerable + tkh = keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2908,7 +2646,8 @@ func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + var tkh keyhubmodel.GroupGroupClassificationUpdateable + tkh = keyhubmodel.NewGroupGroupClassificationUpdate() { val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2923,7 +2662,8 @@ func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + var tkh keyhubmodel.GroupGroupClassification_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClassification_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2943,7 +2683,8 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient() + var tkh keyhubmodel.GroupGroupClientable + tkh = keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2999,7 +2740,8 @@ func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + var tkh keyhubmodel.GroupGroupClientLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { tkh, d := tfObjectToTKHDSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3018,7 +2760,8 @@ func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + var tkh keyhubmodel.GroupGroupClient_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClient_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3033,7 +2776,8 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder() + var tkh keyhubmodel.GroupGroupFolderable + tkh = keyhubmodel.NewGroupGroupFolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3069,7 +2813,8 @@ func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + var tkh keyhubmodel.GroupGroupFolderLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupFolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3088,7 +2833,8 @@ func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + var tkh keyhubmodel.GroupGroupFolder_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupFolder_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3103,7 +2849,8 @@ func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupInfo() + var tkh keyhubmodel.GroupGroupInfoable + tkh = keyhubmodel.NewGroupGroupInfo() tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) @@ -3119,7 +2866,8 @@ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + var tkh keyhubmodel.GroupGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3138,7 +2886,8 @@ func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimer() + var tkh keyhubmodel.GroupGroupPrimerable + tkh = keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3169,7 +2918,8 @@ func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + var tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3188,7 +2938,8 @@ func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + var tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3216,7 +2967,8 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup_additionalObjects() + var tkh keyhubmodel.GroupGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3361,7 +3113,8 @@ func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupsAuditStats() + var tkh keyhubmodel.GroupGroupsAuditStatsable + tkh = keyhubmodel.NewGroupGroupsAuditStats() tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { @@ -3386,7 +3139,8 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup() + var tkh keyhubmodel.GroupProvisioningGroupable + tkh = keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3432,7 +3186,8 @@ func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + var tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { tkh, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3451,7 +3206,8 @@ func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + var tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3466,7 +3222,8 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3514,7 +3271,8 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3533,7 +3291,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + var tkh keyhubmodel.LaunchpadLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3582,6 +3341,30 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["manual_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -3598,7 +3381,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable + tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3617,7 +3401,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable + tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3645,7 +3430,8 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3660,130 +3446,22 @@ func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var tkh keyhubmodel.LaunchpadManualLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -3792,63 +3470,8 @@ func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } @@ -3858,7 +3481,8 @@ func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + var tkh keyhubmodel.LicenseKeyHubLicenseInfoable + tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() { val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) @@ -3922,7 +3546,8 @@ func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() { val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) @@ -3946,7 +3571,8 @@ func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } @@ -3956,7 +3582,8 @@ func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() { val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3975,7 +3602,8 @@ func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + var tkh keyhubmodel.NotificationCertificateExpiredNotificationable + tkh = keyhubmodel.NewNotificationCertificateExpiredNotification() { val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4022,7 +3650,8 @@ func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + var tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupAuditRequiredNotification() { val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) diags.Append(d...) @@ -4049,7 +3678,8 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + var tkh keyhubmodel.NotificationGroupEditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification() { val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4075,7 +3705,8 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx con if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() return tkh, diags } @@ -4084,7 +3715,8 @@ func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx contex if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable + tkh = keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() return tkh, diags } @@ -4094,7 +3726,8 @@ func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + var tkh keyhubmodel.NotificationLicenseStatusNotificationable + tkh = keyhubmodel.NewNotificationLicenseStatusNotification() tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) @@ -4110,7 +3743,8 @@ func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationModificationRequestNotification() + var tkh keyhubmodel.NotificationModificationRequestNotificationable + tkh = keyhubmodel.NewNotificationModificationRequestNotification() { val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() @@ -4138,7 +3772,8 @@ func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationNotification() + var tkh keyhubmodel.NotificationNotificationable + tkh = keyhubmodel.NewNotificationNotification() return tkh, diags } @@ -4148,7 +3783,8 @@ func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationNotifications() + var tkh keyhubmodel.NotificationNotificationsable + tkh = keyhubmodel.NewNotificationNotifications() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4167,7 +3803,8 @@ func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + var tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable + tkh = keyhubmodel.NewNotificationOldApiVersionUsageNotification() tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) @@ -4183,7 +3820,8 @@ func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + var tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable + tkh = keyhubmodel.NewNotificationProvisionConfigRequiredNotification() { val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4202,7 +3840,8 @@ func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + var tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable + tkh = keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4221,7 +3860,8 @@ func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + var tkh keyhubmodel.NotificationUpdateAvailableNotificationable + tkh = keyhubmodel.NewNotificationUpdateAvailableNotification() { val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -4236,7 +3876,8 @@ func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + var tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable + tkh = keyhubmodel.NewNotificationVaultRecordExpiredNotification() { val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4251,7 +3892,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4288,7 +3930,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4307,7 +3950,8 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4322,7 +3966,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + var tkh keyhubmodel.OrganizationOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4371,7 +4016,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4424,7 +4070,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4443,7 +4090,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4458,7 +4106,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4477,7 +4126,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4507,7 +4157,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4526,7 +4177,8 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4541,68 +4193,10 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -4610,13 +4204,13 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetClientCertificate(val) } tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetFailoverTrustedCertificate(val) } @@ -4632,18 +4226,11 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetTls(val) } { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTrustedCertificate(val) } tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -4652,7 +4239,8 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } @@ -4662,7 +4250,8 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatus() tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { @@ -4685,7 +4274,8 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatusReport() { val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4704,7 +4294,8 @@ func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable + tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) @@ -4724,7 +4315,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4779,7 +4371,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4798,7 +4391,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable + tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4836,7 +4430,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable + tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { @@ -4857,7 +4452,8 @@ func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4882,7 +4478,8 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatusable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus() { val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4923,7 +4520,8 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -4935,7 +4533,8 @@ func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable + tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4955,7 +4554,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4993,7 +4593,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5012,7 +4613,8 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5032,7 +4634,26 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAD() + var tkh keyhubmodel.ProvisioningProvisionedADable + tkh = keyhubmodel.NewProvisioningProvisionedAD() + { + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) + }) + diags.Append(d...) + tkh.SetSamAccountNameScheme(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5051,93 +4672,23 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetLastActive(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) + tkh.SetValidity(val) } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5145,96 +4696,158 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount() + var tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAudit(val) } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLastActive(val) + tkh.SetDirectory(val) } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetValidity(val) + tkh.SetDirectory(val) } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable + tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedLDAP() + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) } return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetDirectory(val) } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + var tkh keyhubmodel.ProvisioningProvisionedSystemable + tkh = keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5294,12 +4907,70 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetDirectory(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5310,13 +4981,34 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5350,43 +5042,66 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co tkh.SetProvisioningProvisionedSystemPrimerType(val) } tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetLinks(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetPermissions(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetDirectory(val) + tkh.SetCreatedAt(val) } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5394,2905 +5109,466 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAudit(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetAccount(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + tkh.SetAudit(val) } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetContentAdministrator(val) + tkh.SetIssuedPermissions(val) } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetManagementPermissions(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetMarkers(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetStatistics(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSupportedGroupTypes(val) } return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable + tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + var tkh keyhubmodel.ProvisioningProvisioningStatusable + tkh = keyhubmodel.NewProvisioningProvisioningStatus() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetGroups(val) + } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningTokenPasswordable + tkh = keyhubmodel.NewProvisioningTokenPassword() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractApplicationModificationRequestable + tkh = keyhubmodel.NewRequestAbstractApplicationModificationRequest() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, recurse, objAttrs["application"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetApplication(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable + tkh = keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() { val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetOrganizationalUnit(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable + tkh = keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetContentAdministrator(val) + tkh.SetSystem(val) } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetAccessDuration(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable + tkh = keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetClient(val) + tkh.SetEndDate(val) } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestAcceptModificationRequestParametersable + tkh = keyhubmodel.NewRequestAcceptModificationRequestParameters() return tkh, diags } -func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { +func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + var tkh keyhubmodel.RequestAddGroupAdminRequestable + tkh = keyhubmodel.NewRequestAddGroupAdminRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["new_admin"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, false, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) - diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningStatus() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - { - val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["new_admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestDisable2FARequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinVaultRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestReviewAuditRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmin(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetNewAdmin(val) } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + var tkh keyhubmodel.RequestCreateGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestCreateGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + tkh.SetGroupOnSystemType(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestCreateGroupRequestable + tkh = keyhubmodel.NewRequestCreateGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestCreateServiceAccountRequestable + tkh = keyhubmodel.NewRequestCreateServiceAccountRequest() + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestDisable2FARequestable + tkh = keyhubmodel.NewRequestDisable2FARequest() + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable + tkh = keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() return tkh, diags } -func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() + var tkh keyhubmodel.RequestExtendAccessRequestable + tkh = keyhubmodel.NewRequestExtendAccessRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetExtendUntil(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestGrantAccessRequestable + tkh = keyhubmodel.NewRequestGrantAccessRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestGrantApplicationRequestable + tkh = keyhubmodel.NewRequestGrantApplicationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestGrantClientPermissionRequestable + tkh = keyhubmodel.NewRequestGrantClientPermissionRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetPermissionType(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSystem(val) } return tkh, diags } -func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetGroupOnSystem(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetGroupOnSystem(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable + tkh = keyhubmodel.NewRequestGrantServiceAccountGroupRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetGroupOnSystem(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetServiceAccount(val) } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + var tkh keyhubmodel.RequestJoinGroupRequestable + tkh = keyhubmodel.NewRequestJoinGroupRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestJoinVaultRequestable + tkh = keyhubmodel.NewRequestJoinVaultRequest() return tkh, diags } -func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + var tkh keyhubmodel.RequestModificationRequestable + tkh = keyhubmodel.NewRequestModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8338,77 +5614,301 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex diags.Append(d...) tkh.SetStatus(val) } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } if recurse { { @@ -8420,261 +5920,310 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co return tkh, diags } -func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + var tkh keyhubmodel.RequestModificationRequestLinkableWrapperable + tkh = keyhubmodel.NewRequestModificationRequestLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestModificationRequest_additionalObjectsable + tkh = keyhubmodel.NewRequestModificationRequest_additionalObjects() { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetAudit(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetResetStatus(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestPasswordResetRequestable + tkh = keyhubmodel.NewRequestPasswordResetRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestPasswordResetRequestStatusable + tkh = keyhubmodel.NewRequestPasswordResetRequestStatus() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetCooldownEnd(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetManagers(val) } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return *val.(*keyhubmodel.RequestPasswordResetEmailType) + }) diags.Append(d...) - tkh.SetSystem(val) + tkh.SetResetViaMail(val) } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveGroupRequestable + tkh = keyhubmodel.NewRequestRemoveGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + var tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable + tkh = keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable + tkh = keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestReviewAuditRequestable + tkh = keyhubmodel.NewRequestReviewAuditRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRevokeAdminRequestable + tkh = keyhubmodel.NewRequestRevokeAdminRequest() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["admin"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetAdmin(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable + tkh = keyhubmodel.NewRequestSetupAuthorizingGroupRequest() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetAuthorizingGroupType(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["requesting_group"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetRequestingGroup(val) } return tkh, diags } -func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + var tkh keyhubmodel.RequestSetupNestedGroupRequestable + tkh = keyhubmodel.NewRequestSetupNestedGroupRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetAccountAction(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["requesting_group"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetRequestingGroup(val) } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferApplicationOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + var tkh keyhubmodel.RequestTransferAuditorGroupRequestable + tkh = keyhubmodel.NewRequestTransferAuditorGroupRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, false, objAttrs["service_account"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetGroupOnSystem(val) } return tkh, diags } -func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) + var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetServiceAccount(val) } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) + return tkh, diags +} + +func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestUpdateGroupMembershipRequestable + tkh = keyhubmodel.NewRequestUpdateGroupMembershipRequest() { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account_to_update"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account_to_update"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAccountToUpdate(val) } @@ -8705,13 +6254,6 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec diags.Append(d...) tkh.SetUpdateGroupMembershipType(val) } - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8721,60 +6263,9 @@ func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } + var tkh keyhubmodel.RequestVerifyInternalAccountRequestable + tkh = keyhubmodel.NewRequestVerifyInternalAccountRequest() tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8784,7 +6275,8 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount() + var tkh keyhubmodel.ServiceaccountServiceAccountable + tkh = keyhubmodel.NewServiceaccountServiceAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8846,7 +6338,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8891,7 +6384,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8910,7 +6404,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -8925,7 +6420,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8944,7 +6440,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8981,7 +6478,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9000,7 +6498,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + var tkh keyhubmodel.ServiceaccountServiceAccountStatusable + tkh = keyhubmodel.NewServiceaccountServiceAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -9011,7 +6510,8 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9031,7 +6531,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats() tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) @@ -9051,7 +6552,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() return tkh, diags } @@ -9060,7 +6562,8 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() return tkh, diags } @@ -9070,7 +6573,8 @@ func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleStringValue() + var tkh keyhubmodel.SimpleStringValueable + tkh = keyhubmodel.NewSimpleStringValue() tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -9081,7 +6585,8 @@ func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleVersionInfo() + var tkh keyhubmodel.SimpleVersionInfoable + tkh = keyhubmodel.NewSimpleVersionInfo() { val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { return int32(val.(basetypes.Int64Value).ValueInt64()) @@ -9099,7 +6604,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder() + var tkh keyhubmodel.VaultDeletedVaultHolderable + tkh = keyhubmodel.NewVaultDeletedVaultHolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9141,7 +6647,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + var tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable + tkh = keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9160,7 +6667,8 @@ func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + var tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable + tkh = keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9180,7 +6688,8 @@ func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + var tkh keyhubmodel.VaultDeletedVaultRecoveryable + tkh = keyhubmodel.NewVaultDeletedVaultRecovery() tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { @@ -9197,7 +6706,8 @@ func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord() + var tkh keyhubmodel.VaultMoveVaultRecordable + tkh = keyhubmodel.NewVaultMoveVaultRecord() { val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9229,7 +6739,8 @@ func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + var tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable + tkh = keyhubmodel.NewVaultMoveVaultRecord_shareDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -9241,7 +6752,8 @@ func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVault() + var tkh keyhubmodel.VaultVaultable + tkh = keyhubmodel.NewVaultVault() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9279,7 +6791,8 @@ func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultHolder() + var tkh keyhubmodel.VaultVaultHolderable + tkh = keyhubmodel.NewVaultVaultHolder() return tkh, diags } @@ -9289,7 +6802,8 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9361,7 +6875,8 @@ func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9380,7 +6895,8 @@ func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimer() + var tkh keyhubmodel.VaultVaultRecordPrimerable + tkh = keyhubmodel.NewVaultVaultRecordPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9420,7 +6936,8 @@ func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { tkh, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9439,7 +6956,8 @@ func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordSecrets() + var tkh keyhubmodel.VaultVaultRecordSecretsable + tkh = keyhubmodel.NewVaultVaultRecordSecrets() tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) @@ -9453,7 +6971,8 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShare() + var tkh keyhubmodel.VaultVaultRecordShareable + tkh = keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) @@ -9469,7 +6988,8 @@ func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + var tkh keyhubmodel.VaultVaultRecordShareSummaryable + tkh = keyhubmodel.NewVaultVaultRecordShareSummary() { val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { tkh, d := tfObjectToTKHDSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9493,7 +7013,8 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + var tkh keyhubmodel.VaultVaultRecord_additionalObjectsable + tkh = keyhubmodel.NewVaultVaultRecord_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9538,7 +7059,8 @@ func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecovery() + var tkh keyhubmodel.VaultVaultRecoveryable + tkh = keyhubmodel.NewVaultVaultRecovery() { val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9554,7 +7076,8 @@ func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlock() + var tkh keyhubmodel.VaultVaultUnlockable + tkh = keyhubmodel.NewVaultVaultUnlock() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -9565,7 +7088,8 @@ func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlockResponse() + var tkh keyhubmodel.VaultVaultUnlockResponseable + tkh = keyhubmodel.NewVaultVaultUnlockResponse() { val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) diags.Append(d...) @@ -9581,7 +7105,8 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook() + var tkh keyhubmodel.WebhookWebhookable + tkh = keyhubmodel.NewWebhookWebhook() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9683,7 +7208,8 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9733,7 +7259,8 @@ func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9752,7 +7279,8 @@ func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + var tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9767,7 +7295,8 @@ func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { tkh, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9786,7 +7315,8 @@ func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookNameUuid() + var tkh keyhubmodel.WebhookWebhookNameUuidable + tkh = keyhubmodel.NewWebhookWebhookNameUuid() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) @@ -9803,7 +7333,8 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookPush() + var tkh keyhubmodel.WebhookWebhookPushable + tkh = keyhubmodel.NewWebhookWebhookPush() { val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9902,7 +7433,8 @@ func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + var tkh keyhubmodel.WebhookWebhook_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhook_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 92aafcb..578a818 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -20,7 +20,8 @@ func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditInfo() + var tkh keyhubmodel.AuditInfoable + tkh = keyhubmodel.NewAuditInfo() { val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) @@ -42,7 +43,8 @@ func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewErrorReport() + var tkh keyhubmodel.ErrorReportable + tkh = keyhubmodel.NewErrorReport() tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) @@ -75,7 +77,8 @@ func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewErrorReport_applicationErrorParameters() + var tkh keyhubmodel.ErrorReport_applicationErrorParametersable + tkh = keyhubmodel.NewErrorReport_applicationErrorParameters() return tkh, diags } @@ -85,7 +88,8 @@ func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGeneratedSecret() + var tkh keyhubmodel.GeneratedSecretable + tkh = keyhubmodel.NewGeneratedSecret() tkh.SetGeneratedSecret(objAttrs["generated_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetOldSecret(objAttrs["old_secret"].(basetypes.StringValue).ValueStringPointer()) tkh.SetRegenerate(objAttrs["regenerate"].(basetypes.BoolValue).ValueBoolPointer()) @@ -98,7 +102,8 @@ func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLinkable() + var tkh keyhubmodel.Linkableable + tkh = keyhubmodel.NewLinkable() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -125,7 +130,8 @@ func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types. if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNonLinkable() + var tkh keyhubmodel.NonLinkableable + tkh = keyhubmodel.NewNonLinkable() return tkh, diags } @@ -135,7 +141,8 @@ func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRestLink() + var tkh keyhubmodel.RestLinkable + tkh = keyhubmodel.NewRestLink() tkh.SetHref(objAttrs["href"].(basetypes.StringValue).ValueStringPointer()) tkh.SetId(objAttrs["id"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetRel(objAttrs["rel"].(basetypes.StringValue).ValueStringPointer()) @@ -149,7 +156,8 @@ func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSegmentCount() + var tkh keyhubmodel.SegmentCountable + tkh = keyhubmodel.NewSegmentCount() tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -161,7 +169,8 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord() + var tkh keyhubmodel.AuditAuditRecordable + tkh = keyhubmodel.NewAuditAuditRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -227,7 +236,8 @@ func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecordLinkableWrapper() + var tkh keyhubmodel.AuditAuditRecordLinkableWrapperable + tkh = keyhubmodel.NewAuditAuditRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -246,7 +256,8 @@ func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuditAuditRecord_additionalObjects() + var tkh keyhubmodel.AuditAuditRecord_additionalObjectsable + tkh = keyhubmodel.NewAuditAuditRecord_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -261,7 +272,8 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount() + var tkh keyhubmodel.AuthAccountable + tkh = keyhubmodel.NewAuthAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -365,7 +377,8 @@ func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountBulkUpdate() + var tkh keyhubmodel.AuthAccountBulkUpdateable + tkh = keyhubmodel.NewAuthAccountBulkUpdate() { val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) @@ -390,7 +403,8 @@ func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountChangeLocale() + var tkh keyhubmodel.AuthAccountChangeLocaleable + tkh = keyhubmodel.NewAuthAccountChangeLocale() tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -401,7 +415,8 @@ func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountLinkableWrapper() + var tkh keyhubmodel.AuthAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -420,7 +435,8 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountPrimer() + var tkh keyhubmodel.AuthAccountPrimerable + tkh = keyhubmodel.NewAuthAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -461,7 +477,8 @@ func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountRecoveryStatus() + var tkh keyhubmodel.AuthAccountRecoveryStatusable + tkh = keyhubmodel.NewAuthAccountRecoveryStatus() tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags @@ -473,7 +490,8 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountSettings() + var tkh keyhubmodel.AuthAccountSettingsable + tkh = keyhubmodel.NewAuthAccountSettings() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -519,7 +537,8 @@ func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountStatus() + var tkh keyhubmodel.AuthAccountStatusable + tkh = keyhubmodel.NewAuthAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) @@ -539,7 +558,8 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccount_additionalObjects() + var tkh keyhubmodel.AuthAccount_additionalObjectsable + tkh = keyhubmodel.NewAuthAccount_additionalObjects() tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) @@ -583,7 +603,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthAccountsAuditStats() + var tkh keyhubmodel.AuthAccountsAuditStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats() { val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) diags.Append(d...) @@ -607,7 +628,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, r if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_directoryStats() + var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_directoryStats() return tkh, diags } @@ -616,7 +638,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() + var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } @@ -625,7 +648,8 @@ func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, re if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewAuthAccountsAuditStats_validityStats() + var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable + tkh = keyhubmodel.NewAuthAccountsAuditStats_validityStats() return tkh, diags } @@ -635,13 +659,14 @@ func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccount() + var tkh keyhubmodel.AuthInternalAccountable + tkh = keyhubmodel.NewAuthInternalAccount() { val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.AuthAccount = *(val.(*keyhubmodel.AuthAccount)) + (*tkh.(*keyhubmodel.AuthInternalAccount)).AuthAccount = *(val.(*keyhubmodel.AuthAccount)) tkh.SetTypeEscaped(dtype) } } @@ -671,7 +696,8 @@ func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountLinkableWrapper() + var tkh keyhubmodel.AuthInternalAccountLinkableWrapperable + tkh = keyhubmodel.NewAuthInternalAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -690,7 +716,8 @@ func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthInternalAccountStatusObject() + var tkh keyhubmodel.AuthInternalAccountStatusObjectable + tkh = keyhubmodel.NewAuthInternalAccountStatusObject() { val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { return *val.(*keyhubmodel.AuthInternalAccountStatus) @@ -707,7 +734,8 @@ func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthMoveInternalAccount() + var tkh keyhubmodel.AuthMoveInternalAccountable + tkh = keyhubmodel.NewAuthMoveInternalAccount() { val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) @@ -722,7 +750,8 @@ func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthPermission() + var tkh keyhubmodel.AuthPermissionable + tkh = keyhubmodel.NewAuthPermission() tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { @@ -750,7 +779,8 @@ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttribute() + var tkh keyhubmodel.AuthStoredAccountAttributeable + tkh = keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags @@ -762,7 +792,8 @@ func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse boo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewAuthStoredAccountAttributes() + var tkh keyhubmodel.AuthStoredAccountAttributesable + tkh = keyhubmodel.NewAuthStoredAccountAttributes() { val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) @@ -781,7 +812,8 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate() + var tkh keyhubmodel.CertificateCertificateable + tkh = keyhubmodel.NewCertificateCertificate() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -848,7 +880,8 @@ func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificateLinkableWrapper() + var tkh keyhubmodel.CertificateCertificateLinkableWrapperable + tkh = keyhubmodel.NewCertificateCertificateLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) @@ -867,7 +900,8 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificatePrimer() + var tkh keyhubmodel.CertificateCertificatePrimerable + tkh = keyhubmodel.NewCertificateCertificatePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -920,7 +954,8 @@ func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewCertificateCertificate_additionalObjects() + var tkh keyhubmodel.CertificateCertificate_additionalObjectsable + tkh = keyhubmodel.NewCertificateCertificate_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -935,7 +970,8 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication() + var tkh keyhubmodel.ClientClientApplicationable + tkh = keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -987,6 +1023,30 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetTechnicalAdministrator(val) } + if !objAttrs["o_auth2_client"].IsNull() { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1003,7 +1063,8 @@ func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationLinkableWrapper() + var tkh keyhubmodel.ClientClientApplicationLinkableWrapperable + tkh = keyhubmodel.NewClientClientApplicationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1022,7 +1083,8 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplicationPrimer() + var tkh keyhubmodel.ClientClientApplicationPrimerable + tkh = keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1068,7 +1130,8 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientClientApplication_additionalObjects() + var tkh keyhubmodel.ClientClientApplication_additionalObjectsable + tkh = keyhubmodel.NewClientClientApplication_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1097,6 +1160,9 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "launchpad.SsoApplicationLaunchpadTile"}) + } } tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags @@ -1108,58 +1174,8 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientLdapClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientLdapClientable + tkh = keyhubmodel.NewClientLdapClient() tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) @@ -1173,13 +1189,6 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t tkh.SetSharedSecret(val) } tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1189,61 +1198,11 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientOAuth2Clientable + tkh = keyhubmodel.NewClientOAuth2Client() { val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -1251,7 +1210,7 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetAccountPermissions(val) } { - val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1269,13 +1228,6 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal } tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1285,7 +1237,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1337,7 +1290,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1356,7 +1310,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1413,7 +1368,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1432,7 +1388,8 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + var tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable + tkh = keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1446,7 +1403,8 @@ func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientOAuth2Client_attributes() + var tkh keyhubmodel.ClientOAuth2Client_attributesable + tkh = keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } @@ -1456,60 +1414,10 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewClientSaml2Client() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } + var tkh keyhubmodel.ClientSaml2Clientable + tkh = keyhubmodel.NewClientSaml2Client() { - val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -1520,13 +1428,6 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetSubjectFormat(val) } - if recurse { - { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1535,7 +1436,8 @@ func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bo if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewClientSaml2Client_attributes() + var tkh keyhubmodel.ClientSaml2Client_attributesable + tkh = keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } @@ -1545,7 +1447,8 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory() + var tkh keyhubmodel.DirectoryAccountDirectoryable + tkh = keyhubmodel.NewDirectoryAccountDirectory() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1595,6 +1498,38 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -1611,7 +1546,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1630,7 +1566,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryPrimer() + var tkh keyhubmodel.DirectoryAccountDirectoryPrimerable + tkh = keyhubmodel.NewDirectoryAccountDirectoryPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1669,7 +1606,8 @@ func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + var tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable + tkh = keyhubmodel.NewDirectoryAccountDirectoryStatusReport() tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { @@ -1688,7 +1626,8 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummary() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1732,7 +1671,8 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1751,7 +1691,8 @@ func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + var tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable + tkh = keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1776,174 +1717,64 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryInternalDirectory() + var tkh keyhubmodel.DirectoryInternalDirectoryable + tkh = keyhubmodel.NewDirectoryInternalDirectory() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetOwner(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.DirectoryLDAPDirectoryable + tkh = keyhubmodel.NewDirectoryLDAPDirectory() + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + tkh.SetClientCertificate(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + tkh.SetDialect(val) } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + tkh.SetFailoverTrustedCertificate(val) } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) }) diags.Append(d...) - tkh.SetRotatingPassword(val) + tkh.SetPasswordRecovery(val) } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryLDAPDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) - diags.Append(d...) - tkh.SetDialect(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) - diags.Append(d...) - tkh.SetPasswordRecovery(val) - } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) + tkh.SetTls(val) } { val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetTrustedCertificate(val) } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -1952,64 +1783,8 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryMaintenanceDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.DirectoryMaintenanceDirectoryable + tkh = keyhubmodel.NewDirectoryMaintenanceDirectory() return tkh, diags } @@ -2019,56 +1794,8 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewDirectoryOIDCDirectory() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) - } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetHelpdeskGroup(val) - } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.DirectoryOIDCDirectoryable + tkh = keyhubmodel.NewDirectoryOIDCDirectory() tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) @@ -2084,13 +1811,6 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVendorEscaped(val) } - if recurse { - { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -2100,13 +1820,14 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup() + var tkh keyhubmodel.GroupAccountGroupable + tkh = keyhubmodel.NewGroupAccountGroup() { val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) + (*tkh.(*keyhubmodel.GroupAccountGroup)).GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -2152,7 +1873,8 @@ func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroupLinkableWrapper() + var tkh keyhubmodel.GroupAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2171,7 +1893,8 @@ func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAccountGroup_additionalObjects() + var tkh keyhubmodel.GroupAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupAccountGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2191,7 +1914,8 @@ func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupAuthorizedGroupsWrapper() + var tkh keyhubmodel.GroupAuthorizedGroupsWrapperable + tkh = keyhubmodel.NewGroupAuthorizedGroupsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2211,7 +1935,8 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup() + var tkh keyhubmodel.GroupGroupable + tkh = keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2324,13 +2049,14 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + (*tkh.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -2385,7 +2111,8 @@ func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountLinkableWrapper() + var tkh keyhubmodel.GroupGroupAccountLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2404,7 +2131,8 @@ func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountNesting() + var tkh keyhubmodel.GroupGroupAccountNestingable + tkh = keyhubmodel.NewGroupGroupAccountNesting() tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -2415,7 +2143,8 @@ func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccountStatus() + var tkh keyhubmodel.GroupGroupAccountStatusable + tkh = keyhubmodel.NewGroupGroupAccountStatus() { val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2431,7 +2160,8 @@ func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAccount_additionalObjects() + var tkh keyhubmodel.GroupGroupAccount_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2446,7 +2176,8 @@ func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAdminMail() + var tkh keyhubmodel.GroupGroupAdminMailable + tkh = keyhubmodel.NewGroupGroupAdminMail() tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -2457,7 +2188,8 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2527,7 +2259,8 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditAccount() + var tkh keyhubmodel.GroupGroupAuditAccountable + tkh = keyhubmodel.NewGroupGroupAuditAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2587,7 +2320,8 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditConfig() + var tkh keyhubmodel.GroupGroupAuditConfigable + tkh = keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2624,7 +2358,8 @@ func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditLinkableWrapper() + var tkh keyhubmodel.GroupGroupAuditLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAuditLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2643,7 +2378,8 @@ func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAudit_additionalObjects() + var tkh keyhubmodel.GroupGroupAudit_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2658,7 +2394,8 @@ func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupAuditingInfo() + var tkh keyhubmodel.GroupGroupAuditingInfoable + tkh = keyhubmodel.NewGroupGroupAuditingInfo() { val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -2684,7 +2421,8 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification() + var tkh keyhubmodel.GroupGroupClassificationable + tkh = keyhubmodel.NewGroupGroupClassification() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2741,7 +2479,8 @@ func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationInfo() + var tkh keyhubmodel.GroupGroupClassificationInfoable + tkh = keyhubmodel.NewGroupGroupClassificationInfo() tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } @@ -2752,7 +2491,8 @@ func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + var tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClassificationLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2771,7 +2511,8 @@ func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationPrimer() + var tkh keyhubmodel.GroupGroupClassificationPrimerable + tkh = keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2801,7 +2542,8 @@ func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassificationUpdate() + var tkh keyhubmodel.GroupGroupClassificationUpdateable + tkh = keyhubmodel.NewGroupGroupClassificationUpdate() { val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -2816,7 +2558,8 @@ func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClassification_additionalObjects() + var tkh keyhubmodel.GroupGroupClassification_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClassification_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2836,7 +2579,8 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient() + var tkh keyhubmodel.GroupGroupClientable + tkh = keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2892,7 +2636,8 @@ func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClientLinkableWrapper() + var tkh keyhubmodel.GroupGroupClientLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClientLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2911,7 +2656,8 @@ func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupClient_additionalObjects() + var tkh keyhubmodel.GroupGroupClient_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClient_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2926,7 +2672,8 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder() + var tkh keyhubmodel.GroupGroupFolderable + tkh = keyhubmodel.NewGroupGroupFolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2962,7 +2709,8 @@ func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolderLinkableWrapper() + var tkh keyhubmodel.GroupGroupFolderLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupFolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2981,7 +2729,8 @@ func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupFolder_additionalObjects() + var tkh keyhubmodel.GroupGroupFolder_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupFolder_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -2996,7 +2745,8 @@ func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupInfo() + var tkh keyhubmodel.GroupGroupInfoable + tkh = keyhubmodel.NewGroupGroupInfo() tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) @@ -3012,7 +2762,8 @@ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupLinkableWrapper() + var tkh keyhubmodel.GroupGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3031,7 +2782,8 @@ func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimer() + var tkh keyhubmodel.GroupGroupPrimerable + tkh = keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3062,7 +2814,8 @@ func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupPrimerLinkableWrapper() + var tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -3081,7 +2834,8 @@ func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() + var tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3109,7 +2863,8 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroup_additionalObjects() + var tkh keyhubmodel.GroupGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3293,7 +3048,8 @@ func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupGroupsAuditStats() + var tkh keyhubmodel.GroupGroupsAuditStatsable + tkh = keyhubmodel.NewGroupGroupsAuditStats() tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { @@ -3318,7 +3074,8 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup() + var tkh keyhubmodel.GroupProvisioningGroupable + tkh = keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3364,7 +3121,8 @@ func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() + var tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3383,7 +3141,8 @@ func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewGroupProvisioningGroup_additionalObjects() + var tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3398,7 +3157,8 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3446,7 +3206,8 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3465,7 +3226,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile() + var tkh keyhubmodel.LaunchpadLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3514,6 +3276,30 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["manual_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -3530,7 +3316,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable + tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3549,7 +3336,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable + tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3577,7 +3365,8 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3592,130 +3381,22 @@ func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadManualLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var tkh keyhubmodel.LaunchpadManualLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -3724,63 +3405,8 @@ func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recur if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } @@ -3790,7 +3416,8 @@ func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewLicenseKeyHubLicenseInfo() + var tkh keyhubmodel.LicenseKeyHubLicenseInfoable + tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() { val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) @@ -3854,7 +3481,8 @@ func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() { val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) @@ -3878,7 +3506,8 @@ func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewMarkItemMarker_parameters() + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } @@ -3888,7 +3517,8 @@ func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal ty return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() { val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3907,7 +3537,8 @@ func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationCertificateExpiredNotification() + var tkh keyhubmodel.NotificationCertificateExpiredNotificationable + tkh = keyhubmodel.NewNotificationCertificateExpiredNotification() { val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3954,7 +3585,8 @@ func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupAuditRequiredNotification() + var tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupAuditRequiredNotification() { val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) diags.Append(d...) @@ -3981,7 +3613,8 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification() + var tkh keyhubmodel.NotificationGroupEditRequiredNotificationable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification() { val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4007,7 +3640,8 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx con if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() + var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable + tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() return tkh, diags } @@ -4016,7 +3650,8 @@ func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx contex if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() + var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable + tkh = keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() return tkh, diags } @@ -4026,7 +3661,8 @@ func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationLicenseStatusNotification() + var tkh keyhubmodel.NotificationLicenseStatusNotificationable + tkh = keyhubmodel.NewNotificationLicenseStatusNotification() tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) @@ -4042,7 +3678,8 @@ func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationModificationRequestNotification() + var tkh keyhubmodel.NotificationModificationRequestNotificationable + tkh = keyhubmodel.NewNotificationModificationRequestNotification() { val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { return val.(basetypes.StringValue).ValueString() @@ -4070,7 +3707,8 @@ func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewNotificationNotification() + var tkh keyhubmodel.NotificationNotificationable + tkh = keyhubmodel.NewNotificationNotification() return tkh, diags } @@ -4080,7 +3718,8 @@ func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationNotifications() + var tkh keyhubmodel.NotificationNotificationsable + tkh = keyhubmodel.NewNotificationNotifications() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4099,7 +3738,8 @@ func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationOldApiVersionUsageNotification() + var tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable + tkh = keyhubmodel.NewNotificationOldApiVersionUsageNotification() tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) { val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) @@ -4115,7 +3755,8 @@ func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context. return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationProvisionConfigRequiredNotification() + var tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable + tkh = keyhubmodel.NewNotificationProvisionConfigRequiredNotification() { val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -4134,7 +3775,8 @@ func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() + var tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable + tkh = keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() { val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -4153,7 +3795,8 @@ func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationUpdateAvailableNotification() + var tkh keyhubmodel.NotificationUpdateAvailableNotificationable + tkh = keyhubmodel.NewNotificationUpdateAvailableNotification() { val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) @@ -4168,7 +3811,8 @@ func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewNotificationVaultRecordExpiredNotification() + var tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable + tkh = keyhubmodel.NewNotificationVaultRecordExpiredNotification() { val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4183,13 +3827,14 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) + (*tkh.(*keyhubmodel.OrganizationAccountOrganizationalUnit)).OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -4209,7 +3854,8 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4228,7 +3874,8 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4243,7 +3890,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit() + var tkh keyhubmodel.OrganizationOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4292,13 +3940,14 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) if val != nil { dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + (*tkh.(*keyhubmodel.OrganizationOrganizationalUnitAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) tkh.SetTypeEscaped(dtype) } } @@ -4323,7 +3972,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4342,7 +3992,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4357,7 +4008,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4376,7 +4028,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimer() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4406,7 +4059,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -4425,7 +4079,8 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4448,68 +4103,10 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAttributes(val) } @@ -4544,13 +4141,6 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec tkh.SetTrustedCertificate(val) } tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -4559,7 +4149,8 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } @@ -4569,7 +4160,8 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatus() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatus() tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { @@ -4592,7 +4184,8 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningAccountProvisioningStatusReport() + var tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable + tkh = keyhubmodel.NewProvisioningAccountProvisioningStatusReport() { val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4611,7 +4204,8 @@ func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, re return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningCircuitBreakerStatistics() + var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable + tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) @@ -4631,7 +4225,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4686,7 +4281,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() + var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4705,7 +4301,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemPrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable + tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4743,7 +4340,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystemTypes() + var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable + tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() { val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { @@ -4764,7 +4362,8 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() + var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4795,7 +4394,8 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatusable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus() { val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4836,7 +4436,8 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() + var tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable + tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -4848,7 +4449,8 @@ func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() + var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable + tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4868,7 +4470,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4906,7 +4509,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4925,7 +4529,8 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -4948,134 +4553,34 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAD() + var tkh keyhubmodel.ProvisioningProvisionedADable + tkh = keyhubmodel.NewProvisioningProvisionedAD() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetSamAccountNameScheme(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - tkh.AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.ProvisioningProvisionedAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } } tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { @@ -5094,7 +4599,8 @@ func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5113,7 +4619,8 @@ func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5128,89 +4635,116 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() + var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetDirectory(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetDirectory(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable + tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetClient(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedLDAP() + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetHashingScheme(val) } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetNumbering(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetDirectory(val) } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + var tkh keyhubmodel.ProvisioningProvisionedSystemable + tkh = keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5270,14 +4804,70 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetDirectory(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5288,13 +4878,34 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedAzureTenant() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5328,53 +4939,37 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu tkh.SetProvisioningProvisionedSystemPrimerType(val) } tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedInternalLDAP() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -5393,55 +4988,17 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetClient(val) + tkh.SetCreatedAt(val) } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5449,2755 +5006,469 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAP() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetAudit(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetContentAdministrator(val) + tkh.SetAccount(val) } { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExternalUuid(val) + tkh.SetAudit(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetIssuedPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetManagementPermissions(val) } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, false, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAttributes(val) + tkh.SetMarkers(val) } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetClientCertificate(val) + tkh.SetStatistics(val) } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + tkh.SetSupportedGroupTypes(val) } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable + tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisioningStatusable + tkh = keyhubmodel.NewProvisioningProvisioningStatus() { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { + tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, false, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) + tkh.SetGroups(val) } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningTokenPasswordable + tkh = keyhubmodel.NewProvisioningTokenPassword() + tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + var tkh keyhubmodel.RequestAbstractApplicationModificationRequestable + tkh = keyhubmodel.NewRequestAbstractApplicationModificationRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetApplication(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable + tkh = keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() { val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetOrganizationalUnit(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable + tkh = keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSystem(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetItems(val) + tkh.SetAccessDuration(val) } return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + var tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable + tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() + tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable + tkh = keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + tkh.SetEndDate(val) } - { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) + tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.RequestAcceptModificationRequestParametersable + tkh = keyhubmodel.NewRequestAcceptModificationRequestParameters() return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() + var tkh keyhubmodel.RequestAddGroupAdminRequestable + tkh = keyhubmodel.NewRequestAddGroupAdminRequest() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetItems(val) + tkh.SetNewAdmin(val) } + tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { +func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + var tkh keyhubmodel.RequestCreateGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestCreateGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetGroupOnSystemType(val) } + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } + var tkh keyhubmodel.RequestCreateGroupRequestable + tkh = keyhubmodel.NewRequestCreateGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } + var tkh keyhubmodel.RequestCreateServiceAccountRequestable + tkh = keyhubmodel.NewRequestCreateServiceAccountRequest() + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } + var tkh keyhubmodel.RequestDisable2FARequestable + tkh = keyhubmodel.NewRequestDisable2FARequest() + tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { +func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable + tkh = keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() return tkh, diags } -func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { +func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningProvisioningStatus() + var tkh keyhubmodel.RequestExtendAccessRequestable + tkh = keyhubmodel.NewRequestExtendAccessRequest() { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetGroups(val) + tkh.SetExtendUntil(val) } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.RequestGrantAccessRequestable + tkh = keyhubmodel.NewRequestGrantAccessRequest() return tkh, diags } -func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } + var tkh keyhubmodel.RequestGrantApplicationRequestable + tkh = keyhubmodel.NewRequestGrantApplicationRequest() return tkh, diags } -func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } + var tkh keyhubmodel.RequestGrantClientPermissionRequestable + tkh = keyhubmodel.NewRequestGrantClientPermissionRequest() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetPermissionType(val) } { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSystem(val) } return tkh, diags } -func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetGroupOnSystem(val) } return tkh, diags } -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() + var tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable + tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccessDuration(val) + tkh.SetGroupOnSystem(val) } return tkh, diags } -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { +func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) + var tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable + tkh = keyhubmodel.NewRequestGrantServiceAccountGroupRequest() + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroupOnSystem(val) + } + { + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetServiceAccount(val) + } return tkh, diags } -func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - tkh := keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestCreateServiceAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestDisable2FARequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantAccessRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantApplicationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestJoinVaultRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequestLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAcceptParams(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestReviewAuditRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAdmin(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupAuthorizingGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) - diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestSetupNestedGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) - }) - diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferAuditorGroupRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return nil, diags } + var tkh keyhubmodel.RequestJoinGroupRequestable + tkh = keyhubmodel.NewRequestJoinGroupRequest() return tkh, diags } -func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestJoinVaultRequestable + tkh = keyhubmodel.NewRequestJoinVaultRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + var tkh keyhubmodel.RequestModificationRequestable + tkh = keyhubmodel.NewRequestModificationRequest() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8243,144 +5514,301 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex diags.Append(d...) tkh.SetStatus(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetOrganizationalUnit(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetStatus(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSystem(val) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val } if recurse { { @@ -8392,192 +5820,317 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest return tkh, diags } -func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + var tkh keyhubmodel.RequestModificationRequestLinkableWrapperable + tkh = keyhubmodel.NewRequestModificationRequestLinkableWrapper() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { + tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestModificationRequest_additionalObjectsable + tkh = keyhubmodel.NewRequestModificationRequest_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAcceptParams(val) } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetAudit(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetResetStatus(val) } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestPasswordResetRequestable + tkh = keyhubmodel.NewRequestPasswordResetRequest() + tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestPasswordResetRequestStatusable + tkh = keyhubmodel.NewRequestPasswordResetRequestStatus() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) + val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetCooldownEnd(val) } { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) + val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetManagers(val) } + tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { + return *val.(*keyhubmodel.RequestPasswordResetEmailType) + }) diags.Append(d...) - tkh.SetSystem(val) + tkh.SetResetViaMail(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveGroupRequestable + tkh = keyhubmodel.NewRequestRemoveGroupRequest() + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable + tkh = keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() + tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable + tkh = keyhubmodel.NewRequestRemoveProvisionedSystemRequest() + tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestReviewAuditRequestable + tkh = keyhubmodel.NewRequestReviewAuditRequest() return tkh, diags } -func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + var tkh keyhubmodel.RequestRevokeAdminRequestable + tkh = keyhubmodel.NewRequestRevokeAdminRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetAdmin(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable + tkh = keyhubmodel.NewRequestSetupAuthorizingGroupRequest() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) }) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAuthorizingGroupType(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAccount(val) + tkh.SetRequestingGroup(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestSetupNestedGroupRequestable + tkh = keyhubmodel.NewRequestSetupNestedGroupRequest() { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) + val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { + return *val.(*keyhubmodel.RequestGroupNestAccountAction) }) diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + tkh.SetAccountAction(val) } + tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetRequestingGroup(val) } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferApplicationAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferApplicationOwnershipRequest() return tkh, diags } -func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestTransferAuditorGroupRequestable + tkh = keyhubmodel.NewRequestTransferAuditorGroupRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() { return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestUpdateGroupMembershipRequest() + var tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetGroupOnSystem(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) + var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) + var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags + } + var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable + tkh = keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + return tkh, diags +} + +func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable + tkh = keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) + val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetServiceAccount(val) + } + return tkh, diags +} + +func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.RequestUpdateGroupMembershipRequestable + tkh = keyhubmodel.NewRequestUpdateGroupMembershipRequest() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -8610,13 +6163,6 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec diags.Append(d...) tkh.SetUpdateGroupMembershipType(val) } - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8626,60 +6172,9 @@ func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, rec return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewRequestVerifyInternalAccountRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } + var tkh keyhubmodel.RequestVerifyInternalAccountRequestable + tkh = keyhubmodel.NewRequestVerifyInternalAccountRequest() tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } @@ -8689,7 +6184,8 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount() + var tkh keyhubmodel.ServiceaccountServiceAccountable + tkh = keyhubmodel.NewServiceaccountServiceAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8751,7 +6247,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8796,7 +6293,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroupLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountGroupable { tkh, d := tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8815,7 +6313,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -8830,7 +6329,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { tkh, d := tfObjectToTKHRSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8849,7 +6349,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimer() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -8886,7 +6387,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -8905,7 +6407,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountStatus() + var tkh keyhubmodel.ServiceaccountServiceAccountStatusable + tkh = keyhubmodel.NewServiceaccountServiceAccountStatus() tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -8916,7 +6419,8 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -8944,7 +6448,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats() tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) { val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) @@ -8964,7 +6469,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() return tkh, diags } @@ -8973,7 +6479,8 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() + var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable + tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() return tkh, diags } @@ -8983,7 +6490,8 @@ func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleStringValue() + var tkh keyhubmodel.SimpleStringValueable + tkh = keyhubmodel.NewSimpleStringValue() tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -8994,7 +6502,8 @@ func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewSimpleVersionInfo() + var tkh keyhubmodel.SimpleVersionInfoable + tkh = keyhubmodel.NewSimpleVersionInfo() { val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { return int32(val.(basetypes.Int64Value).ValueInt64()) @@ -9012,7 +6521,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder() + var tkh keyhubmodel.VaultDeletedVaultHolderable + tkh = keyhubmodel.NewVaultDeletedVaultHolder() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9054,7 +6564,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + var tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable + tkh = keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9073,7 +6584,8 @@ func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + var tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable + tkh = keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9093,7 +6605,8 @@ func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultDeletedVaultRecovery() + var tkh keyhubmodel.VaultDeletedVaultRecoveryable + tkh = keyhubmodel.NewVaultDeletedVaultRecovery() tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) { @@ -9110,7 +6623,8 @@ func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord() + var tkh keyhubmodel.VaultMoveVaultRecordable + tkh = keyhubmodel.NewVaultMoveVaultRecord() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -9142,7 +6656,8 @@ func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultMoveVaultRecord_shareDuration() + var tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable + tkh = keyhubmodel.NewVaultMoveVaultRecord_shareDuration() tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags @@ -9154,7 +6669,8 @@ func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.O return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVault() + var tkh keyhubmodel.VaultVaultable + tkh = keyhubmodel.NewVaultVault() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9192,7 +6708,8 @@ func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal t if objVal.IsNull() { return nil, diags } - tkh := keyhubmodel.NewVaultVaultHolder() + var tkh keyhubmodel.VaultVaultHolderable + tkh = keyhubmodel.NewVaultVaultHolder() return tkh, diags } @@ -9202,7 +6719,8 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9274,7 +6792,8 @@ func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9293,7 +6812,8 @@ func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimer() + var tkh keyhubmodel.VaultVaultRecordPrimerable + tkh = keyhubmodel.NewVaultVaultRecordPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9333,7 +6853,8 @@ func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() + var tkh keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable + tkh = keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) @@ -9352,7 +6873,8 @@ func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordSecrets() + var tkh keyhubmodel.VaultVaultRecordSecretsable + tkh = keyhubmodel.NewVaultVaultRecordSecrets() tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) tkh.SetFile(objAttrs["file"].(basetypes.StringValue).ValueStringPointer()) tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) @@ -9367,7 +6889,8 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShare() + var tkh keyhubmodel.VaultVaultRecordShareable + tkh = keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) @@ -9383,7 +6906,8 @@ func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bo return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecordShareSummary() + var tkh keyhubmodel.VaultVaultRecordShareSummaryable + tkh = keyhubmodel.NewVaultVaultRecordShareSummary() { val, d := tfToSlice(objAttrs["children"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordShareable { tkh, d := tfObjectToTKHRSVaultVaultRecordShare(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9407,7 +6931,8 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecord_additionalObjects() + var tkh keyhubmodel.VaultVaultRecord_additionalObjectsable + tkh = keyhubmodel.NewVaultVaultRecord_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9441,6 +6966,9 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "launchpad.VaultRecordLaunchpadTile"}) + } } { val, d := tfObjectToTKHRSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) @@ -9456,7 +6984,8 @@ func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultRecovery() + var tkh keyhubmodel.VaultVaultRecoveryable + tkh = keyhubmodel.NewVaultVaultRecovery() { val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) @@ -9472,7 +7001,8 @@ func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlock() + var tkh keyhubmodel.VaultVaultUnlockable + tkh = keyhubmodel.NewVaultVaultUnlock() tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } @@ -9483,7 +7013,8 @@ func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewVaultVaultUnlockResponse() + var tkh keyhubmodel.VaultVaultUnlockResponseable + tkh = keyhubmodel.NewVaultVaultUnlockResponse() { val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) diags.Append(d...) @@ -9499,7 +7030,8 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook() + var tkh keyhubmodel.WebhookWebhookable + tkh = keyhubmodel.NewWebhookWebhook() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9601,7 +7133,8 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9651,7 +7184,8 @@ func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9670,7 +7204,8 @@ func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() + var tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9685,7 +7220,8 @@ func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookLinkableWrapper() + var tkh keyhubmodel.WebhookWebhookLinkableWrapperable + tkh = keyhubmodel.NewWebhookWebhookLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookable { tkh, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, val.(basetypes.ObjectValue)) @@ -9704,7 +7240,8 @@ func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookNameUuid() + var tkh keyhubmodel.WebhookWebhookNameUuidable + tkh = keyhubmodel.NewWebhookWebhookNameUuid() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) @@ -9721,7 +7258,8 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhookPush() + var tkh keyhubmodel.WebhookWebhookPushable + tkh = keyhubmodel.NewWebhookWebhookPush() { val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) @@ -9820,7 +7358,8 @@ func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurs return nil, diags } objAttrs := objVal.Attributes() - tkh := keyhubmodel.NewWebhookWebhook_additionalObjects() + var tkh keyhubmodel.WebhookWebhook_additionalObjectsable + tkh = keyhubmodel.NewWebhookWebhook_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 72dc632..473000d 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -1261,6 +1261,21 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["technical_administrator"] = val } + if _, ok := tkh.(keyhubmodel.ClientOAuth2Clientable); ok { + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.(keyhubmodel.ClientOAuth2Clientable)) + diags.Append(d...) + obj["o_auth2_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientLdapClientable); ok { + val, d := tkhToTFObjectDSClientLdapClient(false, tkh.(keyhubmodel.ClientLdapClientable)) + diags.Append(d...) + obj["ldap_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientSaml2Clientable); ok { + val, d := tkhToTFObjectDSClientSaml2Client(false, tkh.(keyhubmodel.ClientSaml2Clientable)) + diags.Append(d...) + obj["saml2_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1401,67 +1416,15 @@ func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapCli } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) obj["client_certificate"] = val } obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) diags.Append(d...) obj["shared_secret"] = val } @@ -1485,62 +1448,10 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -1548,7 +1459,7 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["account_permissions"] = val } { - val, d := tkhToTFObjectDSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1560,7 +1471,7 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetSharedSecret()) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) diags.Append(d...) obj["shared_secret"] = val } @@ -1807,60 +1718,8 @@ func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } { - val, d := tkhToTFObjectDSClientSaml2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1952,6 +1811,26 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + if _, ok := tkh.(keyhubmodel.DirectoryInternalDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkh.(keyhubmodel.DirectoryInternalDirectoryable)) + diags.Append(d...) + obj["internal_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryLDAPDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkh.(keyhubmodel.DirectoryLDAPDirectoryable)) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryOIDCDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkh.(keyhubmodel.DirectoryOIDCDirectoryable)) + diags.Append(d...) + obj["o_id_c_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable); ok { + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable)) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2178,55 +2057,8 @@ func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Dir } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetOwner()) diags.Append(d...) obj["owner"] = val } @@ -2249,66 +2081,19 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) - obj["links"] = val + obj["client_certificate"] = val } + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val + obj["failover_trusted_certificate"] = val } obj["host"] = types.StringPointerValue(tkh.GetHost()) obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) @@ -2318,7 +2103,7 @@ func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) diags.Append(d...) obj["trusted_certificate"] = val } @@ -2341,53 +2126,6 @@ func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel. } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2407,53 +2145,6 @@ func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.Directo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) @@ -4205,6 +3896,21 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record"] = val } + if _, ok := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable); ok { + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable)) + diags.Append(d...) + obj["sso_application_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable); ok { + val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable)) + diags.Append(d...) + obj["vault_record_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable); ok { + val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable)) + diags.Append(d...) + obj["manual_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -4316,59 +4022,6 @@ func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.L } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } obj["title"] = types.StringPointerValue(tkh.GetTitle()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) @@ -4390,59 +4043,6 @@ func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhu } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) @@ -4463,72 +4063,19 @@ func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmo } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesDS + attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -5441,67 +4988,8 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -5509,13 +4997,13 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) obj["client_certificate"] = val } obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) obj["failover_trusted_certificate"] = val } @@ -5527,7 +5015,7 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) diags.Append(d...) obj["trusted_certificate"] = val } @@ -6043,97 +5531,6 @@ func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) @@ -6260,84 +5657,150 @@ func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) diags.Append(d...) - obj["links"] = val + obj["directory"] = val } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) diags.Append(d...) - obj["organizational_unit"] = val + obj["directory"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesDS } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetClient()) diags.Append(d...) - obj["owner"] = val + obj["client"] = val } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) diags.Append(d...) - obj["technical_administrator"] = val + obj["numbering"] = val } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) diags.Append(d...) obj["directory"] = val } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse + attrs = provisioningProvisionedSystemAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS + attrs = provisioningProvisionedSystemAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6403,40 +5866,94 @@ func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable)) diags.Append(d...) - obj["directory"] = val + obj["provisioned_azure_sync_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable)) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable)) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable); ok { + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable)) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable)) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPable)) + diags.Append(d...) + obj["provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedADable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkh.(keyhubmodel.ProvisioningProvisionedADable)) + diags.Append(d...) + obj["provisioned_a_d"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable); ok { + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable)) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse } else { - attrs = provisioningProvisionedAzureTenantAttrTypesDS + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) - obj["additional_objects"] = val - } + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -6466,46 +5983,48 @@ func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubm } obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["technical_administrator"] = val + obj["items"] = val } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse + attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesDS + attrs = provisioningProvisionedSystemSyncLogAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6514,7 +6033,7 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -6539,42 +6058,39 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSClientLdapClient(false, tkh.GetClient()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["client"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6582,116 +6098,78 @@ func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPAttrTypesDSRecurse + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse } else { - attrs = provisioningProvisionedLDAPAttrTypesDS + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse + } else { + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) - obj["owner"] = val + obj["account"] = val } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["technical_administrator"] = val + obj["audit"] = val } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - obj["attributes"] = val + obj["issued_permissions"] = val } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetClientCertificate()) + val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) - obj["client_certificate"] = val + obj["management_permissions"] = val } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetFailoverTrustedCertificate()) + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - obj["failover_trusted_certificate"] = val + obj["markers"] = val } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(false, tkh.GetTrustedCertificate()) + val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) - obj["trusted_certificate"] = val + obj["statistics"] = val } - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) diags.Append(d...) - obj["numbering"] = val + obj["supported_group_types"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6699,175 +6177,134 @@ func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse + attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS + attrs = provisioningProvisioningManagementPermissionsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = provisioningProvisioningStatusAttrTypesDSRecurse + } else { + attrs = provisioningProvisioningStatusAttrTypesDS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + elemType := attrs["groups"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val + obj["groups"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) + obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningTokenPasswordAttrTypesDSRecurse + } else { + attrs = provisioningTokenPasswordAttrTypesDS } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val + + obj := make(map[string]attr.Value) + obj["password"] = types.StringPointerValue(tkh.GetPassword()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse + } else { + attrs = requestAbstractApplicationModificationRequestAttrTypesDS } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(recurse, tkh.GetApplication()) diags.Append(d...) - obj["directory"] = val + obj["application"] = val } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemAttrTypesDSRecurse + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemAttrTypesDS + attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) obj["organizational_unit"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS + attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6875,14 +6312,9 @@ func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) diags.Append(d...) - obj["items"] = val + obj["system"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6890,13 +6322,13 @@ func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesDS + attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6904,156 +6336,84 @@ func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) + val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) diags.Append(d...) - obj["organizational_unit"] = val + obj["access_duration"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS + attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) + obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDS + attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse + attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS + attrs = requestAcceptModificationRequestParametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse + attrs = requestAddGroupAdminRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS + attrs = requestAddGroupAdminRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7061,336 +6421,192 @@ func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recur obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetNewAdmin()) diags.Append(d...) - obj["audit"] = val + obj["new_admin"] = val } + obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse + attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS + attrs = requestCreateGroupOnSystemRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) - diags.Append(d...) - obj["supported_group_types"] = val - } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse + attrs = requestCreateGroupRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDS + attrs = requestCreateGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisioningStatusAttrTypesDSRecurse + attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse } else { - attrs = provisioningProvisioningStatusAttrTypesDS + attrs = requestCreateServiceAccountRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningTokenPasswordAttrTypesDSRecurse + attrs = requestDisable2FARequestAttrTypesDSRecurse } else { - attrs = provisioningTokenPasswordAttrTypesDS + attrs = requestDisable2FARequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) + obj["subject"] = types.StringPointerValue(tkh.GetSubject()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse } else { - attrs = requestAbstractApplicationModificationRequestAttrTypesDS + attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse + attrs = requestExtendAccessRequestAttrTypesDSRecurse } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS + attrs = requestExtendAccessRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + attrs = requestGrantAccessRequestAttrTypesDSRecurse + } else { + attrs = requestGrantAccessRequestAttrTypesDS } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse + attrs = requestGrantApplicationRequestAttrTypesDSRecurse } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS + attrs = requestGrantApplicationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesDS } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + + obj := make(map[string]attr.Value) + obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) diags.Append(d...) obj["system"] = val } @@ -7400,23 +6616,24 @@ func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse return objVal, diags } -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse + attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS + attrs = requestGrantGroupOnSystemRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) - obj["access_duration"] = val + obj["group_on_system"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7424,55 +6641,67 @@ func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh return objVal, diags } -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS + attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse + attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS + attrs = requestGrantServiceAccountGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh.GetServiceAccount()) + diags.Append(d...) + obj["service_account"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse + attrs = requestJoinGroupRequestAttrTypesDSRecurse } else { - attrs = requestAcceptModificationRequestParametersAttrTypesDS + attrs = requestJoinGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7485,81 +6714,32 @@ func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh return objVal, diags } -func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestAddGroupAdminRequestAttrTypesDSRecurse + attrs = requestJoinVaultRequestAttrTypesDSRecurse } else { - attrs = requestAddGroupAdminRequestAttrTypesDS + attrs = requestJoinVaultRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetNewAdmin()) - diags.Append(d...) - obj["new_admin"] = val - } - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse + attrs = requestModificationRequestAttrTypesDSRecurse } else { - attrs = requestCreateGroupOnSystemRequestAttrTypesDS + attrs = requestModificationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7609,1617 +6789,472 @@ func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmo obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + if _, ok := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable); ok { + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable)) diags.Append(d...) - obj["system"] = val + obj["abstract_organizational_unit_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkh.(keyhubmodel.RequestCreateGroupRequestable)) + diags.Append(d...) + obj["create_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable); ok { + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable)) + diags.Append(d...) + obj["abstract_provisioned_system_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantAccessRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkh.(keyhubmodel.RequestGrantAccessRequestable)) + diags.Append(d...) + obj["grant_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkh.(keyhubmodel.RequestRemoveGroupRequestable)) + diags.Append(d...) + obj["remove_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable); ok { + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable)) + diags.Append(d...) + obj["abstract_application_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable); ok { + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable)) + diags.Append(d...) + obj["remove_provisioned_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable)) + diags.Append(d...) + obj["transfer_application_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestPasswordResetRequestable); ok { + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkh.(keyhubmodel.RequestPasswordResetRequestable)) + diags.Append(d...) + obj["password_reset_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkh.(keyhubmodel.RequestGrantClientPermissionRequestable)) + diags.Append(d...) + obj["grant_client_permission_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRevokeAdminRequestable); ok { + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkh.(keyhubmodel.RequestRevokeAdminRequestable)) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable)) + diags.Append(d...) + obj["transfer_service_account_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkh.(keyhubmodel.RequestSetupNestedGroupRequestable)) + diags.Append(d...) + obj["setup_nested_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkh.(keyhubmodel.RequestJoinGroupRequestable)) + diags.Append(d...) + obj["join_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestExtendAccessRequestable); ok { + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkh.(keyhubmodel.RequestExtendAccessRequestable)) + diags.Append(d...) + obj["extend_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_content_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable)) + diags.Append(d...) + obj["setup_authorizing_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable)) + diags.Append(d...) + obj["transfer_auditor_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantApplicationRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkh.(keyhubmodel.RequestGrantApplicationRequestable)) + diags.Append(d...) + obj["grant_application_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_group_on_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestDisable2FARequestable); ok { + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkh.(keyhubmodel.RequestDisable2FARequestable)) + diags.Append(d...) + obj["disable2fa_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable); ok { + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable)) + diags.Append(d...) + obj["grant_service_account_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable); ok { + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable)) + diags.Append(d...) + obj["update_group_membership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable); ok { + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable)) + diags.Append(d...) + obj["verify_internal_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable)) + diags.Append(d...) + obj["create_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestReviewAuditRequestable); ok { + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkh.(keyhubmodel.RequestReviewAuditRequestable)) + diags.Append(d...) + obj["review_audit_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable)) + diags.Append(d...) + obj["transfer_organizational_unit_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAddGroupAdminRequestable); ok { + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkh.(keyhubmodel.RequestAddGroupAdminRequestable)) + diags.Append(d...) + obj["add_group_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable)) + diags.Append(d...) + obj["transfer_application_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinVaultRequestable); ok { + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkh.(keyhubmodel.RequestJoinVaultRequestable)) + diags.Append(d...) + obj["join_vault_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable); ok { + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable)) + diags.Append(d...) + obj["enable_technical_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable); ok { + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkh.(keyhubmodel.RequestCreateServiceAccountRequestable)) + diags.Append(d...) + obj["create_service_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable); ok { + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable)) + diags.Append(d...) + obj["remove_organizational_unit_request"] = val } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateGroupRequestAttrTypesDSRecurse + attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestCreateGroupRequestAttrTypesDS + attrs = requestModificationRequestLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val + obj["items"] = val } - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse + attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestCreateServiceAccountRequestAttrTypesDS + attrs = requestModificationRequest_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["group"] = val + obj["audit"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) diags.Append(d...) - obj["system"] = val + obj["reset_status"] = val } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestDisable2FARequestAttrTypesDSRecurse + attrs = requestPasswordResetRequestAttrTypesDSRecurse } else { - attrs = requestDisable2FARequestAttrTypesDS + attrs = requestPasswordResetRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse + } else { + attrs = requestPasswordResetRequestStatusAttrTypesDS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["managers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + obj["managers"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) + obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) + obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse + attrs = requestRemoveGroupRequestAttrTypesDSRecurse } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS + attrs = requestRemoveGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse + } else { + attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + + obj := make(map[string]attr.Value) + obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestExtendAccessRequestAttrTypesDSRecurse + attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse } else { - attrs = requestExtendAccessRequestAttrTypesDS + attrs = requestRemoveProvisionedSystemRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = requestReviewAuditRequestAttrTypesDSRecurse + } else { + attrs = requestReviewAuditRequestAttrTypesDS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestRevokeAdminRequestAttrTypesDSRecurse + } else { + attrs = requestRevokeAdminRequestAttrTypesDS } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAdmin()) diags.Append(d...) - obj["group"] = val + obj["admin"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantAccessRequestAttrTypesDSRecurse + attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse } else { - attrs = requestGrantAccessRequestAttrTypesDS + attrs = requestSetupAuthorizingGroupRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } + obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetRequestingGroup()) diags.Append(d...) - obj["links"] = val + obj["requesting_group"] = val } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse + } else { + attrs = requestSetupNestedGroupRequestAttrTypesDS } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) + + obj := make(map[string]attr.Value) + obj["account_action"] = stringerToTF(tkh.GetAccountAction()) + obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetRequestingGroup()) diags.Append(d...) - obj["group"] = val + obj["requesting_group"] = val } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantApplicationRequestAttrTypesDSRecurse + attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse } else { - attrs = requestGrantApplicationRequestAttrTypesDS + attrs = requestTransferApplicationAdministrationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse - } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse - } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinGroupRequestAttrTypesDSRecurse - } else { - attrs = requestJoinGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestJoinVaultRequestAttrTypesDSRecurse - } else { - attrs = requestJoinVaultRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestAttrTypesDSRecurse - } else { - attrs = requestModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse - } else { - attrs = requestModificationRequestLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse - } else { - attrs = requestModificationRequest_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) - diags.Append(d...) - obj["reset_status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestAttrTypesDSRecurse - } else { - attrs = requestPasswordResetRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse - } else { - attrs = requestPasswordResetRequestStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) - { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["managers"] = val - } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveGroupRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse - } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestReviewAuditRequestAttrTypesDSRecurse - } else { - attrs = requestReviewAuditRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestRevokeAdminRequestAttrTypesDSRecurse - } else { - attrs = requestRevokeAdminRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAdmin()) - diags.Append(d...) - obj["admin"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse - } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) - diags.Append(d...) - obj["requesting_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse - } else { - attrs = requestSetupNestedGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetRequestingGroup()) - diags.Append(d...) - obj["requesting_group"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9239,54 +7274,6 @@ func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9306,49 +7293,6 @@ func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubm } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9368,51 +7312,8 @@ func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -9428,196 +7329,52 @@ func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bo if recurse { attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS + attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + } else { + attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags @@ -9636,54 +7393,6 @@ func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse boo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9703,51 +7412,8 @@ func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse b } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(false, tkh.GetServiceAccount()) + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh.GetServiceAccount()) diags.Append(d...) obj["service_account"] = val } @@ -9770,51 +7436,8 @@ func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccountToUpdate()) + val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccountToUpdate()) diags.Append(d...) obj["account_to_update"] = val } @@ -9842,49 +7465,6 @@ func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index f4cf2cd..7db3600 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1178,6 +1178,21 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + if _, ok := tkh.(keyhubmodel.ClientOAuth2Clientable); ok { + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.(keyhubmodel.ClientOAuth2Clientable)) + diags.Append(d...) + obj["o_auth2_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientLdapClientable); ok { + val, d := tkhToTFObjectRSClientLdapClient(false, tkh.(keyhubmodel.ClientLdapClientable)) + diags.Append(d...) + obj["ldap_client"] = val + } + if _, ok := tkh.(keyhubmodel.ClientSaml2Clientable); ok { + val, d := tkhToTFObjectRSClientSaml2Client(false, tkh.(keyhubmodel.ClientSaml2Clientable)) + diags.Append(d...) + obj["saml2_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1324,49 +1339,6 @@ func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapCli } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) @@ -1391,53 +1363,10 @@ func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { elemType := attrs["account_permissions"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(false, tkh) + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) @@ -1445,7 +1374,7 @@ func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["account_permissions"] = val } { - val, d := tkhToTFObjectRSClientOAuth2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1682,51 +1611,8 @@ func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) { - val, d := tkhToTFObjectRSClientSaml2Client_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -1809,6 +1695,26 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + if _, ok := tkh.(keyhubmodel.DirectoryInternalDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkh.(keyhubmodel.DirectoryInternalDirectoryable)) + diags.Append(d...) + obj["internal_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryLDAPDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkh.(keyhubmodel.DirectoryLDAPDirectoryable)) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryOIDCDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkh.(keyhubmodel.DirectoryOIDCDirectoryable)) + diags.Append(d...) + obj["o_id_c_directory"] = val + } + if _, ok := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable); ok { + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable)) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2035,44 +1941,6 @@ func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.Dir } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) @@ -2093,44 +1961,6 @@ func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.Directo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) @@ -2164,101 +1994,25 @@ func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel. } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = directoryOIDCDirectoryAttrTypesRSRecurse + } else { + attrs = directoryOIDCDirectoryAttrTypesRS } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryOIDCDirectoryAttrTypesRSRecurse - } else { - attrs = directoryOIDCDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + if tkh == nil { + return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) @@ -3881,6 +3635,21 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp obj["logo"] = val } obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) + if _, ok := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable); ok { + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable)) + diags.Append(d...) + obj["sso_application_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable); ok { + val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable)) + diags.Append(d...) + obj["vault_record_launchpad_tile"] = val + } + if _, ok := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable); ok { + val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable)) + diags.Append(d...) + obj["manual_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3992,46 +3761,6 @@ func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.L } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) obj["title"] = types.StringPointerValue(tkh.GetTitle()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) @@ -4053,46 +3782,6 @@ func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhu } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) @@ -4113,46 +3802,6 @@ func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5017,50 +4666,8 @@ func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) obj["attributes"] = val } @@ -5580,78 +5187,16 @@ func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.Prov } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { attrs = provisioningProvisionedAccountAttrTypesRSRecurse } else { @@ -5743,48 +5288,6 @@ func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) @@ -5806,65 +5309,117 @@ func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, } obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } + attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedAzureTenantAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedInternalLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetClient()) diags.Append(d...) - obj["links"] = val + obj["client"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) diags.Append(d...) - obj["permissions"] = val + obj["numbering"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse + } else { + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse + attrs = provisioningProvisionedSystemAttrTypesRSRecurse } else { - attrs = provisioningProvisionedAzureTenantAttrTypesRS + attrs = provisioningProvisionedSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -5913,75 +5468,74 @@ func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubm obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable)) + diags.Append(d...) + obj["provisioned_azure_sync_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable)) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable)) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable); ok { + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable)) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable)) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPable)) + diags.Append(d...) + obj["provisioned_ldap"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedADable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkh.(keyhubmodel.ProvisioningProvisionedADable)) + diags.Append(d...) + obj["provisioned_a_d"] = val + } + if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable); ok { + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable)) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesRS + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSClientLdapClient(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -5989,26 +5543,19 @@ func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPAttrTypesRSRecurse + attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse } else { - attrs = provisioningProvisionedLDAPAttrTypesRS + attrs = provisioningProvisionedSystemPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -6034,119 +5581,46 @@ func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.Pr obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(false, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) - { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(false, tkh.GetNumbering()) - diags.Append(d...) - obj["numbering"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) - obj["permissions"] = val + obj["items"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemAttrTypesRSRecurse + attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemAttrTypesRS + attrs = provisioningProvisionedSystemSyncLogAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6155,7 +5629,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) obj["additional_objects"] = val } @@ -6180,34 +5654,23 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS + attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6216,8 +5679,8 @@ func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) diags.Append(d...) return val }) @@ -6230,13 +5693,13 @@ func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, t return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesRS + attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6244,43 +5707,23 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["permissions"] = val + obj["audit"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -6288,149 +5731,19 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse b obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) diags.Append(d...) - obj["items"] = val + obj["account"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRS + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = val + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) + diags.Append(d...) + obj["issued_permissions"] = val } obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { @@ -6545,40 +5858,6 @@ func tkhToTFObjectRSRequestAbstractApplicationModificationRequest(recurse bool, } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) @@ -6599,40 +5878,6 @@ func tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(recurse } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) @@ -6653,40 +5898,6 @@ func tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(recurse } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -6792,40 +6003,6 @@ func tkhToTFObjectRSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.Re } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) @@ -6847,41 +6024,6 @@ func tkhToTFObjectRSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) @@ -6904,41 +6046,6 @@ func tkhToTFObjectRSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) @@ -6959,41 +6066,6 @@ func tkhToTFObjectRSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubm } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) @@ -7014,40 +6086,6 @@ func tkhToTFObjectRSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.Reque } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["subject"] = types.StringPointerValue(tkh.GetSubject()) objVal, d := types.ObjectValue(attrs, obj) @@ -7068,40 +6106,6 @@ func tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(recurse bool, tk } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7121,40 +6125,6 @@ func tkhToTFObjectRSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.Req } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) objVal, d := types.ObjectValue(attrs, obj) @@ -7175,40 +6145,6 @@ func tkhToTFObjectRSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7228,95 +6164,25 @@ func tkhToTFObjectRSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesRS + attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse + } else { + attrs = requestGrantClientPermissionRequestAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) @@ -7338,43 +6204,9 @@ func tkhToTFObjectRSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmod } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -7397,43 +6229,9 @@ func tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh ke } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -7456,42 +6254,8 @@ func tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(recurse bool, tkh key } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -7515,40 +6279,6 @@ func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.Reques } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7568,40 +6298,6 @@ func tkhToTFObjectRSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.Reques } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7655,15 +6351,200 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type + if _, ok := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable); ok { + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable)) + diags.Append(d...) + obj["abstract_organizational_unit_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkh.(keyhubmodel.RequestCreateGroupRequestable)) + diags.Append(d...) + obj["create_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable); ok { + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable)) + diags.Append(d...) + obj["abstract_provisioned_system_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantAccessRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkh.(keyhubmodel.RequestGrantAccessRequestable)) + diags.Append(d...) + obj["grant_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkh.(keyhubmodel.RequestRemoveGroupRequestable)) + diags.Append(d...) + obj["remove_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable); ok { + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable)) + diags.Append(d...) + obj["abstract_application_modification_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable); ok { + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable)) + diags.Append(d...) + obj["remove_provisioned_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable)) + diags.Append(d...) + obj["transfer_application_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestPasswordResetRequestable); ok { + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkh.(keyhubmodel.RequestPasswordResetRequestable)) + diags.Append(d...) + obj["password_reset_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkh.(keyhubmodel.RequestGrantClientPermissionRequestable)) + diags.Append(d...) + obj["grant_client_permission_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRevokeAdminRequestable); ok { + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkh.(keyhubmodel.RequestRevokeAdminRequestable)) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable)) + diags.Append(d...) + obj["grant_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable)) + diags.Append(d...) + obj["transfer_service_account_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkh.(keyhubmodel.RequestSetupNestedGroupRequestable)) + diags.Append(d...) + obj["setup_nested_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkh.(keyhubmodel.RequestJoinGroupRequestable)) + diags.Append(d...) + obj["join_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestExtendAccessRequestable); ok { + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkh.(keyhubmodel.RequestExtendAccessRequestable)) + diags.Append(d...) + obj["extend_access_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_content_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable)) + diags.Append(d...) + obj["setup_authorizing_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable)) + diags.Append(d...) + obj["transfer_auditor_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantApplicationRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkh.(keyhubmodel.RequestGrantApplicationRequestable)) + diags.Append(d...) + obj["grant_application_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable)) + diags.Append(d...) + obj["transfer_group_on_system_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestDisable2FARequestable); ok { + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkh.(keyhubmodel.RequestDisable2FARequestable)) + diags.Append(d...) + obj["disable2fa_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable); ok { + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable)) + diags.Append(d...) + obj["grant_service_account_group_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable); ok { + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable)) + diags.Append(d...) + obj["update_group_membership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable); ok { + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable)) + diags.Append(d...) + obj["verify_internal_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable); ok { + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable)) + diags.Append(d...) + obj["create_group_on_system_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestReviewAuditRequestable); ok { + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkh.(keyhubmodel.RequestReviewAuditRequestable)) + diags.Append(d...) + obj["review_audit_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable)) + diags.Append(d...) + obj["transfer_organizational_unit_ownership_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestAddGroupAdminRequestable); ok { + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkh.(keyhubmodel.RequestAddGroupAdminRequestable)) + diags.Append(d...) + obj["add_group_admin_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable)) + diags.Append(d...) + obj["transfer_application_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable)) + diags.Append(d...) + obj["transfer_provisioned_system_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestJoinVaultRequestable); ok { + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkh.(keyhubmodel.RequestJoinVaultRequestable)) + diags.Append(d...) + obj["join_vault_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable); ok { + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable)) + diags.Append(d...) + obj["enable_technical_administration_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable); ok { + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkh.(keyhubmodel.RequestCreateServiceAccountRequestable)) + diags.Append(d...) + obj["create_service_account_request"] = val + } + if _, ok := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable); ok { + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable)) + diags.Append(d...) + obj["remove_organizational_unit_request"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { attrs = requestModificationRequestLinkableWrapperAttrTypesRSRecurse } else { @@ -7737,40 +6618,6 @@ func tkhToTFObjectRSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Re } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) @@ -7823,40 +6670,6 @@ func tkhToTFObjectRSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) objVal, d := types.ObjectValue(attrs, obj) @@ -7877,41 +6690,6 @@ func tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh key } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) objVal, d := types.ObjectValue(attrs, obj) @@ -7932,41 +6710,6 @@ func tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) objVal, d := types.ObjectValue(attrs, obj) @@ -7987,40 +6730,6 @@ func tkhToTFObjectRSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8040,40 +6749,6 @@ func tkhToTFObjectRSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Requ } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) objVal, d := types.ObjectValue(attrs, obj) @@ -8094,40 +6769,6 @@ func tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) @@ -8150,40 +6791,6 @@ func tkhToTFObjectRSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["account_action"] = stringerToTF(tkh.GetAccountAction()) obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) @@ -8206,41 +6813,6 @@ func tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(recurse bool } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8260,41 +6832,6 @@ func tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(recurse bool, tkh } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8314,40 +6851,6 @@ func tkhToTFObjectRSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubm } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8360,49 +6863,15 @@ func tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t if recurse { attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) diags.Append(d...) obj["group_on_system"] = val } @@ -8425,41 +6894,6 @@ func tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8479,41 +6913,6 @@ func tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(recurs } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8533,41 +6932,6 @@ func tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8587,41 +6951,6 @@ func tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(recurse boo } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8641,40 +6970,6 @@ func tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(recurse b } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) @@ -8695,40 +6990,6 @@ func tkhToTFObjectRSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) @@ -8754,40 +7015,6 @@ func tkhToTFObjectRSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - obj["additional_objects"] = val - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) objVal, d := types.ObjectValue(attrs, obj) From c139fe56622d958963dc1b6206be23eac3fbbda1 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 19 Sep 2023 21:28:59 +0200 Subject: [PATCH 13/34] Fix reading polymorphic data --- docs/data-sources/account.md | 2 +- docs/data-sources/certificate.md | 2 +- docs/data-sources/client.md | 148 +- docs/data-sources/directory.md | 209 ++ docs/data-sources/group.md | 2928 +++++++++++++---- docs/data-sources/system.md | 565 +++- docs/data-sources/vaultrecord.md | 143 - docs/data-sources/webhook.md | 4 +- docs/resources/group.md | 747 ++++- .../provider-install-verification/main.tf | 11 +- internal/provider/full-data-struct-ds.go | 60 +- internal/provider/full-data-struct-rs.go | 60 +- internal/provider/full-object-attrs-ds.go | 60 +- internal/provider/full-object-attrs-rs.go | 60 +- internal/provider/full-schema-ds.go | 172 +- internal/provider/full-schema-rs.go | 172 +- .../provider/full-tf-to-data-struct-ds.go | 60 +- .../provider/full-tf-to-data-struct-rs.go | 60 +- internal/provider/full-tf-to-tkh-ds.go | 274 +- internal/provider/full-tf-to-tkh-rs.go | 274 +- internal/provider/full-tkh-to-tf-ds.go | 367 ++- internal/provider/full-tkh-to-tf-rs.go | 367 ++- 22 files changed, 4897 insertions(+), 1848 deletions(-) diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md index 59ce0c9..0add2a4 100644 --- a/docs/data-sources/account.md +++ b/docs/data-sources/account.md @@ -179,7 +179,7 @@ Read-Only: Read-Only: -- `pending2_f_a_recovery_request` (Boolean) +- `pending2fa_recovery_request` (Boolean) - `pending_password_recovery_request` (Boolean) diff --git a/docs/data-sources/certificate.md b/docs/data-sources/certificate.md index d02fa22..cd54306 100644 --- a/docs/data-sources/certificate.md +++ b/docs/data-sources/certificate.md @@ -36,7 +36,7 @@ description: |- - `key_data` (List of String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) -- `subject_d_n` (String) +- `subject_dn` (String) ### Nested Schema for `additional_objects` diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index 09469f0..f774df5 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -29,10 +29,13 @@ description: |- - `client_client_application_primer_type` (String) - `client_id` (String) - `last_modified_at` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `name` (String) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client)) - `owner` (Attributes) (see [below for nested schema](#nestedatt--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--saml2_client)) - `scopes` (List of String) - `sso_application` (Boolean) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) @@ -584,38 +587,42 @@ Read-Only: ### Nested Schema for `additional_objects.tile` -Optional: +Read-Only: + +- `uri` (String) + -- `additional` (List of String) + + +### Nested Schema for `ldap_client` Read-Only: -- `application` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--application)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--group)) -- `identicon_code` (Number) -- `launchpad_launchpad_tile_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--links)) -- `logo` (List of String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--permissions)) -- `uri` (String) -- `vault_record` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record)) +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--ldap_client--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--ldap_client--shared_secret)) +- `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.tile.application` + +### Nested Schema for `ldap_client.client_certificate` Read-Only: -- `client_client_application_primer_type` (String) -- `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--permissions)) -- `scopes` (List of String) -- `sso_application` (Boolean) +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--ldap_client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--ldap_client--client_certificate--permissions)) +- `subject_dn` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.tile.application.uuid` + +### Nested Schema for `ldap_client.client_certificate.links` Read-Only: @@ -625,8 +632,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.tile.application.uuid` + +### Nested Schema for `ldap_client.client_certificate.permissions` Read-Only: @@ -637,19 +644,20 @@ Read-Only: - -### Nested Schema for `additional_objects.tile.group` + +### Nested Schema for `ldap_client.shared_secret` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--links)) +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--ldap_client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--ldap_client--shared_secret--permissions)) +- `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.tile.group.uuid` + +### Nested Schema for `ldap_client.shared_secret.links` Read-Only: @@ -659,8 +667,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.tile.group.uuid` + +### Nested Schema for `ldap_client.shared_secret.permissions` Read-Only: @@ -671,8 +679,9 @@ Read-Only: - -### Nested Schema for `additional_objects.tile.links` + + +### Nested Schema for `links` Read-Only: @@ -682,8 +691,26 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.tile.permissions` + +### Nested Schema for `o_auth2_client` + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--shared_secret)) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + + +### Nested Schema for `o_auth2_client.account_permissions` Read-Only: @@ -693,20 +720,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.tile.vault_record` + +### Nested Schema for `o_auth2_client.attributes` + + + +### Nested Schema for `o_auth2_client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.tile.vault_record.uuid` + +### Nested Schema for `o_auth2_client.shared_secret.links` Read-Only: @@ -716,8 +747,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.tile.vault_record.uuid` + +### Nested Schema for `o_auth2_client.shared_secret.permissions` Read-Only: @@ -729,18 +760,6 @@ Read-Only: - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `owner` @@ -786,6 +805,21 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `saml2_client` + +Read-Only: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--saml2_client--attributes)) +- `metadata` (String) +- `metadata_url` (String) +- `subject_format` (String) + + +### Nested Schema for `saml2_client.attributes` + + + ### Nested Schema for `technical_administrator` diff --git a/docs/data-sources/directory.md b/docs/data-sources/directory.md index 0655c6a..d2bb396 100644 --- a/docs/data-sources/directory.md +++ b/docs/data-sources/directory.md @@ -32,8 +32,12 @@ description: |- - `default_directory` (Boolean) - `directory_account_directory_primer_type` (String) - `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--helpdesk_group)) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--l_d_a_p_directory)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--maintenance_directory)) - `name` (String) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--o_id_c_directory)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `restrict2fa` (Boolean) - `rotating_password` (String) @@ -159,6 +163,189 @@ Read-Only: + +### Nested Schema for `internal_directory` + +Read-Only: + +- `owner` (Attributes) (see [below for nested schema](#nestedatt--internal_directory--owner)) + + +### Nested Schema for `internal_directory.owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--internal_directory--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--internal_directory--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `internal_directory.owner.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `internal_directory.owner.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `l_d_a_p_directory` + +Read-Only: + +- `attributes_to_store` (String) +- `base_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--l_d_a_p_directory--client_certificate)) +- `dialect` (String) +- `failover_host` (String) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--l_d_a_p_directory--failover_trusted_certificate)) +- `host` (String) +- `password_recovery` (String) +- `port` (Number) +- `search_bind_dn` (String) +- `search_bind_password` (String) +- `search_filter` (String) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--l_d_a_p_directory--trusted_certificate)) + + +### Nested Schema for `l_d_a_p_directory.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `l_d_a_p_directory.client_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `l_d_a_p_directory.client_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `l_d_a_p_directory.failover_trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--failover_trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `l_d_a_p_directory.failover_trusted_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `l_d_a_p_directory.failover_trusted_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `l_d_a_p_directory.trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `l_d_a_p_directory.trusted_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `l_d_a_p_directory.trusted_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + ### Nested Schema for `links` @@ -170,6 +357,28 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `maintenance_directory` + + + +### Nested Schema for `o_id_c_directory` + +Read-Only: + +- `acr_values` (String) +- `attributes_to_store` (String) +- `client_id` (String) +- `client_secret` (String) +- `domain_restriction` (String) +- `enforces2fa` (Boolean) +- `fully_resolved_issuer` (String) +- `issuer` (String) +- `logout_url` (String) +- `send_login_hint` (Boolean) +- `vendor_escaped` (String) + + ### Nested Schema for `permissions` diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 7d4311d..abe1b41 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -197,15 +197,105 @@ Read-Only: - `client_client_application_primer_type` (String) - `client_id` (String) - `last_modified_at` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--ldap_client)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) - `name` (String) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--o_auth2_client)) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--saml2_client)) - `scopes` (List of String) - `sso_application` (Boolean) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--technical_administrator)) - `uuid` (String) + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret)) +- `used_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.client_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.client_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -217,6 +307,75 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret)) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.account_permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -262,6 +421,21 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Read-Only: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `metadata` (String) +- `metadata_url` (String) +- `subject_format` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + + + ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -314,6 +488,7 @@ Optional: Read-Only: +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) - `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--content_administrator)) @@ -323,6 +498,13 @@ Read-Only: - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--organizational_unit)) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap_directory)) - `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) @@ -332,6 +514,153 @@ Read-Only: - `username_prefix` (String) - `uuid` (String) + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--attributes)) +- `base_dn` (String) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client_certificate)) +- `failover_host` (String) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--failover_trusted_certificate)) +- `group_dn` (String) +- `host` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--trusted_certificate)) +- `user_dn` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.failover_trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--failover_trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.failover_trusted_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.failover_trusted_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.trusted_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.trusted_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + ### Nested Schema for `additional_objects.administered_systems.items.uuid` @@ -455,19 +784,37 @@ Read-Only: - `type_escaped` (String) - + ### Nested Schema for `additional_objects.administered_systems.items.uuid` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `sam_account_name_scheme` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory)) +- `tenant` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` Read-Only: @@ -477,8 +824,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` Read-Only: @@ -490,18 +837,299 @@ Read-Only: - - -### Nested Schema for `additional_objects.admins` + +### Nested Schema for `additional_objects.administered_systems.items.uuid` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items)) +- `client_id` (String) +- `client_secret` (String) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory)) +- `tenant` (String) - -### Nested Schema for `additional_objects.admins.items` + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory` -Optional: +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `client_id` (String) +- `client_secret` (String) +- `idp_domain` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client)) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client` + +Read-Only: + +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--shared_secret)) +- `used_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `gid` (Number) +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering)) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) +- `name` (String) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory)) +- `group_dn` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.admins` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items)) + + +### Nested Schema for `additional_objects.admins.items` + +Optional: - `additional` (List of String) @@ -957,35 +1585,20 @@ Read-Only: ### Nested Schema for `additional_objects.client_permissions.items.value` -Optional: - -- `additional` (List of String) - Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--account_permissions)) - `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--attributes)) -- `callback_u_r_i` (String) -- `client_client_application_primer_type` (String) -- `client_id` (String) +- `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) - `id_token_claims` (String) -- `initiate_login_u_r_i` (String) -- `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--links)) -- `name` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--permissions)) -- `resource_u_r_is` (String) -- `scopes` (List of String) +- `initiate_login_uri` (String) +- `resource_uris` (String) - `share_secret_in_vault` (Boolean) - `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret)) - `show_landing_page` (Boolean) -- `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--technical_administrator)) - `use_client_credentials` (Boolean) -- `uuid` (String) ### Nested Schema for `additional_objects.client_permissions.items.value.account_permissions` @@ -1002,30 +1615,20 @@ Read-Only: ### Nested Schema for `additional_objects.client_permissions.items.value.attributes` - -### Nested Schema for `additional_objects.client_permissions.items.value.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.client_permissions.items.value.owner` + +### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--owner--links)) +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--permissions)) +- `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.owner.uuid` + +### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` Read-Only: @@ -1035,88 +1638,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.owner.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `additional_objects.client_permissions.items.value.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret` - -Read-Only: - -- `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--permissions)) -- `share_end_time` (String) -- `uuid` (String) - - -### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `additional_objects.client_permissions.items.value.technical_administrator` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--technical_administrator--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--technical_administrator--permissions)) -- `uuid` (String) - - -### Nested Schema for `additional_objects.client_permissions.items.value.technical_administrator.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.client_permissions.items.value.technical_administrator.uuid` + +### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` Read-Only: @@ -1458,6 +1981,7 @@ Optional: Read-Only: +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) - `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--content_administrator)) @@ -1467,6 +1991,13 @@ Read-Only: - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--organizational_unit)) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap_directory)) - `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) @@ -1476,19 +2007,51 @@ Read-Only: - `username_prefix` (String) - `uuid` (String) - + ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--attributes)) +- `base_dn` (String) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client_certificate)) +- `failover_host` (String) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--failover_trusted_certificate)) +- `group_dn` (String) +- `host` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--trusted_certificate)) +- `user_dn` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client_certificate--permissions)) +- `subject_dn` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client_certificate.uuid` Read-Only: @@ -1498,8 +2061,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client_certificate.uuid` Read-Only: @@ -1510,8 +2073,25 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.failover_trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--failover_trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.failover_trusted_certificate.uuid` Read-Only: @@ -1521,18 +2101,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.failover_trusted_certificate.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--trusted_certificate--permissions)) +- `subject_dn` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.trusted_certificate.uuid` Read-Only: @@ -1542,8 +2141,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.trusted_certificate.uuid` Read-Only: @@ -1554,7 +2153,8 @@ Read-Only: - + + ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: @@ -1588,18 +2188,51 @@ Read-Only: - + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +Read-Only: + - `full` (String) - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) - + + ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: @@ -1633,59 +2266,48 @@ Read-Only: - - - -### Nested Schema for `additional_objects.groupauditinginfo` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: -- `audit_due_date` (String) -- `last_audit_date` (String) -- `nr_accounts` (Number) -- `nr_disabled_accounts` (Number) -- `nr_disabled_managers` (Number) -- `nr_expired_vault_records` (Number) -- `nr_managers` (Number) -- `nr_vault_records_with_end_date` (Number) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) - -### Nested Schema for `additional_objects.groupinfo` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: -- `nr_accounts` (Number) -- `nr_accounts_with_vault` (Number) -- `nr_audits` (Number) -- `nr_clients` (Number) -- `nr_provisioned_systems` (Number) -- `nr_vault_records` (Number) +- `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.helpdesk` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory)) +- `tenant` (String) - -### Nested Schema for `additional_objects.helpdesk.items` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory` Read-Only: -- `directory_account_directory_summary_type` (String) -- `domain_restriction` (String) -- `fully_resolved_issuer` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) -- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) -- `username_customizable` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--permissions)) +- `uuid` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` Read-Only: @@ -1695,8 +2317,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` Read-Only: @@ -1706,81 +2328,103 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: -- `accounts` (Number) -- `reason` (String) -- `status` (String) +- `client_id` (String) +- `client_secret` (String) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory)) +- `tenant` (String) + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory` +Read-Only: +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--permissions)) +- `uuid` (String) - -### Nested Schema for `additional_objects.markers` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` Read-Only: -- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) - -### Nested Schema for `additional_objects.markers.markers` + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` Read-Only: -- `level` (String) -- `mark_item_marker_type` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) - -### Nested Schema for `additional_objects.markers.markers.parameters` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` - -### Nested Schema for `additional_objects.myaccount` +Read-Only: -Optional: +- `client_id` (String) +- `client_secret` (String) +- `idp_domain` (String) +- `tenant` (String) -- `additional` (List of String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory)) -- `disconnected_nested` (Boolean) -- `display_name` (String) -- `end_date` (String) -- `last_active` (String) -- `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--links)) -- `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--permissions)) -- `provisioning_end_time` (String) -- `rights` (String) -- `two_factor_status` (String) -- `username` (String) -- `uuid` (String) -- `validity` (String) -- `visible_for_provisioning` (Boolean) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client)) - -### Nested Schema for `additional_objects.myaccount.directory` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client` Read-Only: -- `account_validity_supported` (Boolean) -- `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--permissions)) +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--shared_secret)) +- `used_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `subject_dn` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.myaccount.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: @@ -1790,8 +2434,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.myaccount.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: @@ -1802,8 +2446,20 @@ Read-Only: - -### Nested Schema for `additional_objects.myaccount.links` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: @@ -1813,8 +2469,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.myaccount.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: @@ -1825,8 +2481,19 @@ Read-Only: - -### Nested Schema for `additional_objects.mydelegatedaccount` + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `gid` (Number) +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering)) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering` Optional: @@ -1834,38 +2501,59 @@ Optional: Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory)) -- `disconnected_nested` (Boolean) -- `display_name` (String) -- `end_date` (String) -- `last_active` (String) -- `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--links)) -- `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--permissions)) -- `provisioning_end_time` (String) -- `rights` (String) -- `two_factor_status` (String) -- `username` (String) -- `uuid` (String) -- `validity` (String) -- `visible_for_provisioning` (Boolean) +- `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) +- `name` (String) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) - -### Nested Schema for `additional_objects.mydelegatedaccount.directory` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory)) +- `group_dn` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) - `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` Read-Only: @@ -1875,8 +2563,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` Read-Only: @@ -1887,8 +2575,20 @@ Read-Only: - -### Nested Schema for `additional_objects.mydelegatedaccount.links` + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` Read-Only: @@ -1898,8 +2598,82 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.mydelegatedaccount.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.groupauditinginfo` + +Read-Only: + +- `audit_due_date` (String) +- `last_audit_date` (String) +- `nr_accounts` (Number) +- `nr_disabled_accounts` (Number) +- `nr_disabled_managers` (Number) +- `nr_expired_vault_records` (Number) +- `nr_managers` (Number) +- `nr_vault_records_with_end_date` (Number) + + + +### Nested Schema for `additional_objects.groupinfo` + +Read-Only: + +- `nr_accounts` (Number) +- `nr_accounts_with_vault` (Number) +- `nr_audits` (Number) +- `nr_clients` (Number) +- `nr_provisioned_systems` (Number) +- `nr_vault_records` (Number) + + + +### Nested Schema for `additional_objects.helpdesk` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items)) + + +### Nested Schema for `additional_objects.helpdesk.items` + +Read-Only: + +- `directory_account_directory_summary_type` (String) +- `domain_restriction` (String) +- `fully_resolved_issuer` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) +- `username_customizable` (Boolean) + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` Read-Only: @@ -1909,27 +2683,994 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +Read-Only: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + + + + +### Nested Schema for `additional_objects.markers` + +Read-Only: + +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) + + +### Nested Schema for `additional_objects.markers.markers` + +Read-Only: + +- `level` (String) +- `mark_item_marker_type` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) + + +### Nested Schema for `additional_objects.markers.markers.parameters` + + + + + +### Nested Schema for `additional_objects.myaccount` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory)) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `two_factor_status` (String) +- `username` (String) +- `uuid` (String) +- `validity` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.myaccount.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.myaccount.directory.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.myaccount.directory.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.myaccount.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.myaccount.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.mydelegatedaccount` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory)) +- `disconnected_nested` (Boolean) +- `display_name` (String) +- `end_date` (String) +- `last_active` (String) +- `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--links)) +- `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--permissions)) +- `provisioning_end_time` (String) +- `rights` (String) +- `two_factor_status` (String) +- `username` (String) +- `uuid` (String) +- `validity` (String) +- `visible_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.mydelegatedaccount.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.mydelegatedaccount.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.mydelegatedaccount.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.nested_groups` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items)) + + +### Nested Schema for `additional_objects.nested_groups.items` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.nested_groups.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.nested_groups.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_clients` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items)) + + +### Nested Schema for `additional_objects.owned_clients.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `client_client_application_primer_type` (String) +- `client_id` (String) +- `last_modified_at` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `name` (String) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--o_auth2_client)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--saml2_client)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--technical_administrator)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret)) +- `used_for_provisioning` (Boolean) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.client_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.client_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret)) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.account_permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `metadata` (String) +- `metadata_url` (String) +- `subject_format` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `additional_objects.owned_directories` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items)) + + +### Nested Schema for `additional_objects.owned_directories.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--base_organizational_unit)) +- `default_directory` (Boolean) +- `directory_account_directory_primer_type` (String) +- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--helpdesk_group)) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--maintenance_directory)) +- `name` (String) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--o_id_c_directory)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) +- `restrict2fa` (Boolean) +- `rotating_password` (String) +- `username_customizable` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--owner)) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.owner` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--owner--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--owner--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.owner.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.owner.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `attributes_to_store` (String) +- `base_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--client_certificate)) +- `dialect` (String) +- `failover_host` (String) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--failover_trusted_certificate)) +- `host` (String) +- `password_recovery` (String) +- `port` (Number) +- `search_bind_dn` (String) +- `search_bind_password` (String) +- `search_filter` (String) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--trusted_certificate)) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.client_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.client_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.failover_trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--failover_trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.failover_trusted_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.failover_trusted_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.trusted_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid.trusted_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `acr_values` (String) +- `attributes_to_store` (String) +- `client_id` (String) +- `client_secret` (String) +- `domain_restriction` (String) +- `enforces2fa` (Boolean) +- `fully_resolved_issuer` (String) +- `issuer` (String) +- `logout_url` (String) +- `send_login_hint` (Boolean) +- `vendor_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_groups_on_system` + +Read-Only: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items)) +- `unlinked_count` (Number) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) +- `name_in_system` (String) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) +- `provisioning_group_on_system_primer_type` (String) +- `short_name_in_system` (String) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system)) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +Read-Only: + +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `name` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `provisioning_provisioned_system_primer_type` (String) +- `uuid` (String) - -### Nested Schema for `additional_objects.nested_groups` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items)) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) - -### Nested Schema for `additional_objects.nested_groups.items` + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.nested_groups.items.uuid` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` Read-Only: @@ -1939,8 +3680,20 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.nested_groups.items.uuid` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` Read-Only: @@ -1952,15 +3705,16 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients` + + +### Nested Schema for `additional_objects.owned_organizational_units` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items)) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items)) - -### Nested Schema for `additional_objects.owned_clients.items` + +### Nested Schema for `additional_objects.owned_organizational_units.items` Optional: @@ -1968,20 +3722,17 @@ Optional: Read-Only: -- `client_client_application_primer_type` (String) -- `client_id` (String) -- `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `depth` (Number) +- `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) - `name` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) -- `scopes` (List of String) -- `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--technical_administrator)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--owner)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--parent)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` Read-Only: @@ -1991,19 +3742,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` Read-Only: @@ -2013,8 +3764,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` Read-Only: @@ -2025,30 +3776,18 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` Read-Only: @@ -2058,8 +3797,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` Read-Only: @@ -2070,17 +3809,28 @@ Read-Only: + +### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + - -### Nested Schema for `additional_objects.owned_directories` + + +### Nested Schema for `additional_objects.owned_systems` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items)) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items)) - -### Nested Schema for `additional_objects.owned_directories.items` + +### Nested Schema for `additional_objects.owned_systems.items` Optional: @@ -2088,32 +3838,77 @@ Optional: Read-Only: -- `account_validity_supported` (Boolean) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--abstract_provisioned_ldap)) +- `account_count` (Number) - `active` (Boolean) -- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--base_organizational_unit)) -- `default_directory` (Boolean) -- `directory_account_directory_primer_type` (String) -- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--helpdesk_group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--content_administrator)) +- `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) -- `restrict2fa` (Boolean) -- `rotating_password` (String) -- `username_customizable` (Boolean) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap_directory)) +- `provisioning_provisioned_system_primer_type` (String) +- `self_service_existing_groups` (Boolean) +- `self_service_new_groups` (Boolean) +- `self_service_service_accounts` (Boolean) +- `should_destroy_unknown_accounts` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--technical_administrator)) +- `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--attributes)) +- `base_dn` (String) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client_certificate)) +- `failover_host` (String) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--failover_trusted_certificate)) +- `group_dn` (String) +- `host` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--trusted_certificate)) +- `user_dn` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client_certificate--permissions)) +- `subject_dn` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client_certificate.uuid` Read-Only: @@ -2123,8 +3918,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client_certificate.uuid` Read-Only: @@ -2135,19 +3930,25 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.failover_trusted_certificate` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--failover_trusted_certificate--permissions)) +- `subject_dn` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.failover_trusted_certificate.uuid` Read-Only: @@ -2157,8 +3958,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.failover_trusted_certificate.uuid` Read-Only: @@ -2169,8 +3970,25 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.trusted_certificate.uuid` Read-Only: @@ -2180,8 +3998,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.trusted_certificate.uuid` Read-Only: @@ -2192,57 +4010,20 @@ Read-Only: - - -### Nested Schema for `additional_objects.owned_groups_on_system` - -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items)) -- `unlinked_count` (Number) - - -### Nested Schema for `additional_objects.owned_groups_on_system.items` - -Optional: - -- `additional` (List of String) - -Read-Only: - -- `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) -- `name_in_system` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) -- `provisioning_group_on_system_primer_type` (String) -- `short_name_in_system` (String) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system)) - - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` Read-Only: @@ -2252,8 +4033,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` Read-Only: @@ -2264,32 +4045,29 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) +- `href` (String) +- `id` (Number) +- `rel` (String) - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` Read-Only: @@ -2299,18 +4077,31 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--links)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.links` Read-Only: @@ -2320,8 +4111,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` Read-Only: @@ -2332,8 +4123,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: @@ -2343,58 +4134,37 @@ Read-Only: - `type_escaped` (String) - - - - -### Nested Schema for `additional_objects.owned_organizational_units` + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items)) - - -### Nested Schema for `additional_objects.owned_organizational_units.items` - -Optional: - -- `additional` (List of String) - -Read-Only: +- `sam_account_name_scheme` (String) -- `depth` (Number) -- `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) -- `name` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--owner)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--parent)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) -- `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory)) +- `tenant` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` Read-Only: @@ -2404,8 +4174,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` Read-Only: @@ -2416,18 +4186,32 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) +- `client_id` (String) +- `client_secret` (String) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory)) +- `tenant` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` Read-Only: @@ -2437,8 +4221,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` Read-Only: @@ -2449,66 +4233,90 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) +- `client_id` (String) +- `client_secret` (String) +- `idp_domain` (String) +- `tenant` (String) + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Read-Only: +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client)) - -### Nested Schema for `additional_objects.owned_systems` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items)) +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--shared_secret)) +- `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_systems.items` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning` -Optional: +Read-Only: -- `additional` (List of String) +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: -- `account_count` (Number) -- `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--content_administrator)) -- `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) -- `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) -- `provisioning_provisioned_system_primer_type` (String) -- `self_service_existing_groups` (Boolean) -- `self_service_new_groups` (Boolean) -- `self_service_service_accounts` (Boolean) -- `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--technical_administrator)) -- `username_prefix` (String) -- `uuid` (String) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--permissions)) +- `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: @@ -2518,8 +4326,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` Read-Only: @@ -2530,29 +4338,34 @@ Read-Only: - + + + ### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) +- `gid` (Number) +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering)) + +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering` - -### Nested Schema for `additional_objects.owned_systems.items.uuid` +Optional: + +- `additional` (List of String) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) -- `uuid` (String) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` Read-Only: @@ -2562,8 +4375,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` Read-Only: @@ -2574,19 +4387,30 @@ Read-Only: - + + ### Nested Schema for `additional_objects.owned_systems.items.uuid` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory)) +- `group_dn` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` Read-Only: @@ -2596,8 +4420,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` Read-Only: @@ -2608,16 +4432,6 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - ### Nested Schema for `additional_objects.owned_systems.items.uuid` @@ -3373,7 +5187,7 @@ Read-Only: - `global` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) -- `subject_d_n` (String) +- `subject_dn` (String) - `uuid` (String) @@ -3574,7 +5388,7 @@ Read-Only: - `global` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) -- `subject_d_n` (String) +- `subject_dn` (String) - `uuid` (String) diff --git a/docs/data-sources/system.md b/docs/data-sources/system.md index 0759f95..f6918d8 100644 --- a/docs/data-sources/system.md +++ b/docs/data-sources/system.md @@ -25,6 +25,7 @@ description: |- ### Read-Only +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) - `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) @@ -35,6 +36,13 @@ description: |- - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--organizational_unit)) - `owner` (Attributes) (see [below for nested schema](#nestedatt--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_ldap_directory)) - `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) @@ -43,6 +51,153 @@ description: |- - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) - `username_prefix` (String) + +### Nested Schema for `abstract_provisioned_ldap` + +Read-Only: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--attributes)) +- `base_dn` (String) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--client_certificate)) +- `failover_host` (String) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--failover_trusted_certificate)) +- `group_dn` (String) +- `host` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `tls` (String) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--trusted_certificate)) +- `user_dn` (String) + + +### Nested Schema for `abstract_provisioned_ldap.attributes` + + + +### Nested Schema for `abstract_provisioned_ldap.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `abstract_provisioned_ldap.client_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `abstract_provisioned_ldap.client_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `abstract_provisioned_ldap.failover_trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--failover_trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `abstract_provisioned_ldap.failover_trusted_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `abstract_provisioned_ldap.failover_trusted_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `abstract_provisioned_ldap.trusted_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--trusted_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `abstract_provisioned_ldap.trusted_certificate.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `abstract_provisioned_ldap.trusted_certificate.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + ### Nested Schema for `additional_objects` @@ -135,35 +290,20 @@ Read-Only: ### Nested Schema for `additional_objects.issued_permissions.items.value` -Optional: - -- `additional` (List of String) - Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--account_permissions)) - `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--attributes)) -- `callback_u_r_i` (String) -- `client_client_application_primer_type` (String) -- `client_id` (String) +- `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) - `id_token_claims` (String) -- `initiate_login_u_r_i` (String) -- `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--links)) -- `name` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--permissions)) -- `resource_u_r_is` (String) -- `scopes` (List of String) +- `initiate_login_uri` (String) +- `resource_uris` (String) - `share_secret_in_vault` (Boolean) - `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret)) - `show_landing_page` (Boolean) -- `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--technical_administrator)) - `use_client_credentials` (Boolean) -- `uuid` (String) ### Nested Schema for `additional_objects.issued_permissions.items.value.account_permissions` @@ -180,62 +320,6 @@ Read-Only: ### Nested Schema for `additional_objects.issued_permissions.items.value.attributes` - -### Nested Schema for `additional_objects.issued_permissions.items.value.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.issued_permissions.items.value.owner` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--owner--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--owner--permissions)) -- `uuid` (String) - - -### Nested Schema for `additional_objects.issued_permissions.items.value.owner.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.issued_permissions.items.value.owner.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `additional_objects.issued_permissions.items.value.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret` @@ -271,40 +355,6 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.items.value.technical_administrator` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--technical_administrator--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--technical_administrator--permissions)) -- `uuid` (String) - - -### Nested Schema for `additional_objects.issued_permissions.items.value.technical_administrator.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.issued_permissions.items.value.technical_administrator.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - ### Nested Schema for `additional_objects.issued_permissions.items.value` @@ -611,6 +661,305 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `provisioned_a_d` + +Read-Only: + +- `sam_account_name_scheme` (String) + + + +### Nested Schema for `provisioned_azure_oidc_directory` + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_azure_oidc_directory--directory)) +- `tenant` (String) + + +### Nested Schema for `provisioned_azure_oidc_directory.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_oidc_directory--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_oidc_directory--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `provisioned_azure_oidc_directory.directory.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `provisioned_azure_oidc_directory.directory.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `provisioned_azure_sync_ldap_directory` + +Read-Only: + +- `client_id` (String) +- `client_secret` (String) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_azure_sync_ldap_directory--directory)) +- `tenant` (String) + + +### Nested Schema for `provisioned_azure_sync_ldap_directory.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_sync_ldap_directory--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_sync_ldap_directory--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `provisioned_azure_sync_ldap_directory.directory.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `provisioned_azure_sync_ldap_directory.directory.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `provisioned_azure_tenant` + +Read-Only: + +- `client_id` (String) +- `client_secret` (String) +- `idp_domain` (String) +- `tenant` (String) + + + +### Nested Schema for `provisioned_internal_ldap` + +Read-Only: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client)) + + +### Nested Schema for `provisioned_internal_ldap.client` + +Read-Only: + +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--shared_secret)) +- `used_for_provisioning` (Boolean) + + +### Nested Schema for `provisioned_internal_ldap.client.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_certificate_primer_type` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--client_certificate--permissions)) +- `subject_dn` (String) +- `uuid` (String) + + +### Nested Schema for `provisioned_internal_ldap.client.client_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `provisioned_internal_ldap.client.client_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `provisioned_internal_ldap.client.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--shared_secret--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--shared_secret--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `provisioned_internal_ldap.client.shared_secret.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `provisioned_internal_ldap.client.shared_secret.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `provisioned_ldap` + +Read-Only: + +- `gid` (Number) +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--provisioned_ldap--numbering)) + + +### Nested Schema for `provisioned_ldap.numbering` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_ldap--numbering--links)) +- `name` (String) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_ldap--numbering--permissions)) + + +### Nested Schema for `provisioned_ldap.numbering.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `provisioned_ldap.numbering.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `provisioned_ldap_directory` + +Read-Only: + +- `directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_ldap_directory--directory)) +- `group_dn` (String) + + +### Nested Schema for `provisioned_ldap_directory.directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `directory_account_directory_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_ldap_directory--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_ldap_directory--directory--permissions)) +- `uuid` (String) + + +### Nested Schema for `provisioned_ldap_directory.directory.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `provisioned_ldap_directory.directory.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + ### Nested Schema for `technical_administrator` diff --git a/docs/data-sources/vaultrecord.md b/docs/data-sources/vaultrecord.md index 9925bfa..66e7066 100644 --- a/docs/data-sources/vaultrecord.md +++ b/docs/data-sources/vaultrecord.md @@ -182,149 +182,6 @@ Read-Only: ### Nested Schema for `additional_objects.tile` -Optional: - -- `additional` (List of String) - -Read-Only: - -- `application` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--application)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--group)) -- `identicon_code` (Number) -- `launchpad_launchpad_tile_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--links)) -- `logo` (List of String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--permissions)) -- `vault_record` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record)) - - -### Nested Schema for `additional_objects.tile.application` - -Read-Only: - -- `client_client_application_primer_type` (String) -- `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--application--permissions)) -- `scopes` (List of String) -- `sso_application` (Boolean) -- `uuid` (String) - - -### Nested Schema for `additional_objects.tile.application.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.tile.application.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `additional_objects.tile.group` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--group--permissions)) -- `uuid` (String) - - -### Nested Schema for `additional_objects.tile.group.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.tile.group.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `additional_objects.tile.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.tile.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.tile.vault_record` - -Read-Only: - -- `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--tile--vault_record--permissions)) -- `share_end_time` (String) -- `uuid` (String) - - -### Nested Schema for `additional_objects.tile.vault_record.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.tile.vault_record.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - ### Nested Schema for `additional_objects.vaultholder` diff --git a/docs/data-sources/webhook.md b/docs/data-sources/webhook.md index d4042ef..c0740ff 100644 --- a/docs/data-sources/webhook.md +++ b/docs/data-sources/webhook.md @@ -155,7 +155,7 @@ Read-Only: - `global` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--client_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_certificate--permissions)) -- `subject_d_n` (String) +- `subject_dn` (String) - `uuid` (String) @@ -356,7 +356,7 @@ Read-Only: - `global` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--trusted_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--trusted_certificate--permissions)) -- `subject_d_n` (String) +- `subject_dn` (String) - `uuid` (String) diff --git a/docs/resources/group.md b/docs/resources/group.md index ef7760f..3289c85 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -174,64 +174,28 @@ Optional: ### Nested Schema for `additional_objects.client_permissions.items.permissions` -Required: - -- `client_client_application_primer_type` (String) -- `name` (String) - Optional: - `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--attributes)) -- `callback_u_r_i` (String) -- `client_id` (String) +- `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) - `id_token_claims` (String) -- `initiate_login_u_r_i` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--links)) -- `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--permissions)) -- `resource_u_r_is` (String) -- `scopes` (List of String) +- `initiate_login_uri` (String) +- `resource_uris` (String) - `share_secret_in_vault` (Boolean) - `shared_secret_uuid` (String) - `show_landing_page` (Boolean) -- `technical_administrator_uuid` (String) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--account_permissions)) -- `last_modified_at` (String) -- `sso_application` (Boolean) -- `uuid` (String) ### Nested Schema for `additional_objects.client_permissions.items.permissions.attributes` - -### Nested Schema for `additional_objects.client_permissions.items.permissions.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.client_permissions.items.permissions.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.client_permissions.items.permissions.account_permissions` @@ -286,9 +250,12 @@ Required: Optional: - `client_id` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--ldap_client)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--o_auth2_client)) - `owner_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -298,6 +265,21 @@ Read-Only: - `sso_application` (Boolean) - `uuid` (String) + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) + +Read-Only: + +- `bind_dn` (String) +- `used_for_provisioning` (Boolean) + + ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -309,6 +291,43 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--account_permissions)) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.account_permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -320,6 +339,24 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Required: + +- `subject_format` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `metadata` (String) +- `metadata_url` (String) + + +### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + + + @@ -341,10 +378,18 @@ Required: Optional: +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) - `organizational_unit_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap_directory)) - `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) @@ -358,6 +403,36 @@ Read-Only: - `external_uuid` (String) - `uuid` (String) + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `base_dn` (String) +- `host` (String) +- `tls` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--attributes)) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate_uuid` (String) +- `failover_host` (String) +- `failover_trusted_certificate_uuid` (String) +- `group_dn` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `trusted_certificate_uuid` (String) +- `user_dn` (String) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.attributes` + + + ### Nested Schema for `additional_objects.administered_systems.items.uuid` @@ -380,6 +455,133 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `sam_account_name_scheme` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `directory_uuid` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `directory_uuid` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `tenant` (String) + +Optional: + +- `idp_domain` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client)) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.client` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) + +Read-Only: + +- `bind_dn` (String) +- `used_for_provisioning` (Boolean) + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering)) + +Optional: + +- `gid` (Number) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering` + +Required: + +- `name` (String) + +Optional: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) + +Read-Only: + +- `account_count` (Number) + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.account_count` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.account_count` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Required: + +- `directory_uuid` (String) +- `group_dn` (String) + + @@ -561,10 +763,18 @@ Required: Optional: +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) - `organizational_unit_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap_directory)) - `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) @@ -578,6 +788,36 @@ Read-Only: - `external_uuid` (String) - `uuid` (String) + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `base_dn` (String) +- `host` (String) +- `tls` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--attributes)) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate_uuid` (String) +- `failover_host` (String) +- `failover_trusted_certificate_uuid` (String) +- `group_dn` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `trusted_certificate_uuid` (String) +- `user_dn` (String) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.attributes` + + + ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` @@ -600,6 +840,133 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `sam_account_name_scheme` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `directory_uuid` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `directory_uuid` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `tenant` (String) + +Optional: + +- `idp_domain` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client)) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) + +Read-Only: + +- `bind_dn` (String) +- `used_for_provisioning` (Boolean) + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering)) + +Optional: + +- `gid` (Number) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering` + +Required: + +- `name` (String) + +Optional: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) + +Read-Only: + +- `account_count` (Number) + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.account_count` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.account_count` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Required: + +- `directory_uuid` (String) +- `group_dn` (String) + + @@ -779,9 +1146,12 @@ Required: Optional: - `client_id` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--ldap_client)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--o_auth2_client)) - `owner_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -791,6 +1161,21 @@ Read-Only: - `sso_application` (Boolean) - `uuid` (String) + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) + +Read-Only: + +- `bind_dn` (String) +- `used_for_provisioning` (Boolean) + + ### Nested Schema for `additional_objects.owned_clients.items.uuid` @@ -802,6 +1187,43 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--account_permissions)) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.account_permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + ### Nested Schema for `additional_objects.owned_clients.items.uuid` @@ -813,6 +1235,24 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Required: + +- `subject_format` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `metadata` (String) +- `metadata_url` (String) + + +### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + + + @@ -837,7 +1277,11 @@ Optional: - `default_directory` (Boolean) - `directory_account_directory_primer_type` (String) - `helpdesk_group_uuid` (String) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--maintenance_directory)) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--o_id_c_directory)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) - `restrict2fa` (Boolean) - `username_customizable` (Boolean) @@ -847,6 +1291,38 @@ Read-Only: - `account_validity_supported` (Boolean) - `uuid` (String) + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Required: + +- `owner_uuid` (String) + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Required: + +- `base_dn` (String) +- `host` (String) +- `password_recovery` (String) +- `tls` (String) + +Optional: + +- `attributes_to_store` (String) +- `client_certificate_uuid` (String) +- `dialect` (String) +- `failover_host` (String) +- `failover_trusted_certificate_uuid` (String) +- `port` (Number) +- `search_bind_dn` (String) +- `search_bind_password` (String) +- `search_filter` (String) +- `trusted_certificate_uuid` (String) + + ### Nested Schema for `additional_objects.owned_directories.items.uuid` @@ -858,6 +1334,34 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + + + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `issuer` (String) +- `vendor_escaped` (String) + +Optional: + +- `acr_values` (String) +- `attributes_to_store` (String) +- `domain_restriction` (String) +- `enforces2fa` (Boolean) +- `logout_url` (String) +- `send_login_hint` (Boolean) + +Read-Only: + +- `fully_resolved_issuer` (String) + + ### Nested Schema for `additional_objects.owned_directories.items.uuid` @@ -990,10 +1494,18 @@ Required: Optional: +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) - `organizational_unit_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap_directory)) - `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) @@ -1007,6 +1519,36 @@ Read-Only: - `external_uuid` (String) - `uuid` (String) + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `base_dn` (String) +- `host` (String) +- `tls` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--attributes)) +- `bind_dn` (String) +- `bind_password` (String) +- `client_certificate_uuid` (String) +- `failover_host` (String) +- `failover_trusted_certificate_uuid` (String) +- `group_dn` (String) +- `object_classes` (String) +- `port` (Number) +- `service_account_dn` (String) +- `ssh_public_key_supported` (Boolean) +- `trusted_certificate_uuid` (String) +- `user_dn` (String) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.attributes` + + + ### Nested Schema for `additional_objects.owned_systems.items.uuid` @@ -1029,6 +1571,133 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `sam_account_name_scheme` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `directory_uuid` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `directory_uuid` (String) +- `tenant` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `client_id` (String) +- `client_secret` (String) +- `tenant` (String) + +Optional: + +- `idp_domain` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client)) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.client` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) + +Read-Only: + +- `bind_dn` (String) +- `used_for_provisioning` (Boolean) + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `hashing_scheme` (String) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering)) + +Optional: + +- `gid` (Number) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering` + +Required: + +- `name` (String) + +Optional: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) +- `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) + +Read-Only: + +- `account_count` (Number) + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.account_count` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.account_count` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Required: + +- `directory_uuid` (String) +- `group_dn` (String) + + diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index d894018..0e2fe49 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -30,10 +30,17 @@ data "keyhubpreview_group" "test" { additional = ["accounts"] } -output "data_group" { - value = data.keyhubpreview_group.test +#output "data_group" { +# value = data.keyhubpreview_group.test +#} + +data "keyhubpreview_client" "test" { + uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" } +output "data_client" { + value = data.keyhubpreview_client.test +} #resource "keyhubpreview_group" "terra" { # name = "Terraform" # additional_objects = { diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 593678c..0a9838d 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -577,10 +577,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1176,8 +1176,8 @@ type launchpadLaunchpadTileDataDS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecord types.Object `tfsdk:"vault_record"` - SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } @@ -1755,13 +1755,13 @@ type provisioningProvisionedSystemDataDS struct { TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2030,43 +2030,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index c4f4330..d986824 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -546,10 +546,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1126,8 +1126,8 @@ type launchpadLaunchpadTileDataRS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } @@ -1684,13 +1684,13 @@ type provisioningProvisionedSystemDataRS struct { TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -1957,43 +1957,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index c2ac5b1..6679dba 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -543,10 +543,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1108,8 +1108,8 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1639,13 +1639,13 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} return objectAttrs } @@ -1885,43 +1885,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index b60551d..47ca6dd 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -510,10 +510,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1056,8 +1056,8 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1566,13 +1566,13 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} return objectAttrs } @@ -1810,43 +1810,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 5b5b903..24561f1 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -1292,20 +1292,20 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), - Computed: true, - } - schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), Computed: true, } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Computed: true, + } + schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), Computed: true, } return schemaAttrs @@ -2718,14 +2718,14 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), Computed: true, } - schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - Computed: true, - } schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), Computed: true, } + schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Computed: true, + } schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), Computed: true, @@ -3839,20 +3839,20 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } - schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), - Computed: true, - } schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Computed: true, } - schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Computed: true, + } + schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, } schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ @@ -3863,8 +3863,8 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Computed: true, } return schemaAttrs @@ -4284,56 +4284,44 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - Computed: true, - } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), - Computed: true, - } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - Computed: true, - } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - Computed: true, - } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Computed: true, + } + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, } schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ @@ -4344,68 +4332,64 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), - Computed: true, - } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), Computed: true, } schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ @@ -4416,22 +4400,38 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Computed: true, } - schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Computed: true, + } + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Computed: true, + } + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), Computed: true, } schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 57217e9..03c965e 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -1132,20 +1132,20 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), - Optional: true, - } - schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), Optional: true, } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), Optional: true, } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + Optional: true, + } + schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), Optional: true, } return schemaAttrs @@ -2471,14 +2471,14 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - Optional: true, - } schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), Optional: true, } + schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Optional: true, + } schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), Optional: true, @@ -3452,20 +3452,20 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } - schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), - Optional: true, - } schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Optional: true, } - schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Optional: true, + } + schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, } schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ @@ -3476,8 +3476,8 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Optional: true, } return schemaAttrs @@ -3882,56 +3882,44 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - Optional: true, - } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), - Optional: true, - } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - Optional: true, - } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - Optional: true, - } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Optional: true, + } + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, } schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ @@ -3942,68 +3930,64 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), - Optional: true, - } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), Optional: true, } schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ @@ -4014,22 +3998,38 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Optional: true, } - schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Optional: true, + } + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Optional: true, + } + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Optional: true, + } + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), Optional: true, } schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 1a1dc78..43e7eaf 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -428,10 +428,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -871,8 +871,8 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } @@ -1264,13 +1264,13 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1440,43 +1440,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index c219b14..e862d28 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -397,10 +397,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -821,8 +821,8 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } @@ -1193,13 +1193,13 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1367,43 +1367,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 9700bac..c2446df 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -1568,35 +1568,35 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3341,19 +3341,19 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["vault_record_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } @@ -4915,35 +4915,35 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -4963,11 +4963,11 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5614,107 +5614,83 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5734,19 +5710,11 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5758,19 +5726,19 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5782,43 +5750,43 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5830,35 +5798,35 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5878,11 +5846,35 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5894,11 +5886,11 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5910,6 +5902,14 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 578a818..1a0cb81 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -1498,35 +1498,35 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3276,19 +3276,19 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["vault_record_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } @@ -4812,35 +4812,35 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -4860,11 +4860,11 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5514,107 +5514,83 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5634,19 +5610,11 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5658,19 +5626,19 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5682,43 +5650,43 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5730,35 +5698,35 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5778,11 +5746,35 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5794,11 +5786,11 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5810,6 +5802,14 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := tkh.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 473000d..edf6fe8 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -1261,18 +1261,21 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["technical_administrator"] = val } - if _, ok := tkh.(keyhubmodel.ClientOAuth2Clientable); ok { - val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.(keyhubmodel.ClientOAuth2Clientable)) + { + tkhCast, _ := tkh.(keyhubmodel.ClientOAuth2Clientable) + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkhCast) diags.Append(d...) obj["o_auth2_client"] = val } - if _, ok := tkh.(keyhubmodel.ClientLdapClientable); ok { - val, d := tkhToTFObjectDSClientLdapClient(false, tkh.(keyhubmodel.ClientLdapClientable)) + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) diags.Append(d...) obj["ldap_client"] = val } - if _, ok := tkh.(keyhubmodel.ClientSaml2Clientable); ok { - val, d := tkhToTFObjectDSClientSaml2Client(false, tkh.(keyhubmodel.ClientSaml2Clientable)) + { + tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) + val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) diags.Append(d...) obj["saml2_client"] = val } @@ -1811,25 +1814,29 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - if _, ok := tkh.(keyhubmodel.DirectoryInternalDirectoryable); ok { - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkh.(keyhubmodel.DirectoryInternalDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } - if _, ok := tkh.(keyhubmodel.DirectoryLDAPDirectoryable); ok { - val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkh.(keyhubmodel.DirectoryLDAPDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) + val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["l_d_a_p_directory"] = val + obj["o_id_c_directory"] = val } - if _, ok := tkh.(keyhubmodel.DirectoryOIDCDirectoryable); ok { - val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkh.(keyhubmodel.DirectoryOIDCDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["o_id_c_directory"] = val + obj["internal_directory"] = val } - if _, ok := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable); ok { - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["l_d_a_p_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3896,18 +3903,21 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record"] = val } - if _, ok := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable); ok { - val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable)) + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) + val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) diags.Append(d...) - obj["sso_application_launchpad_tile"] = val + obj["vault_record_launchpad_tile"] = val } - if _, ok := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable); ok { - val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable)) + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) diags.Append(d...) - obj["vault_record_launchpad_tile"] = val + obj["sso_application_launchpad_tile"] = val } - if _, ok := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable); ok { - val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable)) + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) + val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkhCast) diags.Append(d...) obj["manual_launchpad_tile"] = val } @@ -5866,45 +5876,53 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) obj["provisioned_azure_sync_ldap_directory"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_oidc_directory"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_internal_ldap"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable); ok { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["abstract_provisioned_ldap"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_ldap"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedADable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkh.(keyhubmodel.ProvisioningProvisionedADable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) obj["provisioned_a_d"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable); ok { - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_azure_tenant"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6789,191 +6807,228 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - if _, ok := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable); ok { - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable)) - diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val - } - if _, ok := tkh.(keyhubmodel.RequestCreateGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkh.(keyhubmodel.RequestCreateGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["review_audit_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable); ok { - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["abstract_application_modification_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantAccessRequestable); ok { - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkh.(keyhubmodel.RequestGrantAccessRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_client_permission_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRemoveGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkh.(keyhubmodel.RequestRemoveGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["setup_nested_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable); ok { - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable); ok { - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable); ok { - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestPasswordResetRequestable); ok { - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkh.(keyhubmodel.RequestPasswordResetRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["create_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable); ok { - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkh.(keyhubmodel.RequestGrantClientPermissionRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["grant_group_on_system_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRevokeAdminRequestable); ok { - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkh.(keyhubmodel.RequestRevokeAdminRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["transfer_service_account_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable); ok { - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["transfer_application_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["extend_access_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkh.(keyhubmodel.RequestSetupNestedGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_access_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestJoinGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkh.(keyhubmodel.RequestJoinGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["join_vault_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestExtendAccessRequestable); ok { - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkh.(keyhubmodel.RequestExtendAccessRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_auditor_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) obj["transfer_provisioned_system_content_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["join_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["create_service_account_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantApplicationRequestable); ok { - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkh.(keyhubmodel.RequestGrantApplicationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) obj["grant_application_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["disable2fa_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestDisable2FARequestable); ok { - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkh.(keyhubmodel.RequestDisable2FARequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["verify_internal_account_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable); ok { - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["remove_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable); ok { - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable); ok { - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["remove_provisioned_system_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable); ok { - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["revoke_admin_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestReviewAuditRequestable); ok { - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkh.(keyhubmodel.RequestReviewAuditRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["transfer_application_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestAddGroupAdminRequestable); ok { - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkh.(keyhubmodel.RequestAddGroupAdminRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["grant_service_account_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["setup_authorizing_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable); ok { - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["grant_group_on_system_request_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestJoinVaultRequestable); ok { - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkh.(keyhubmodel.RequestJoinVaultRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["add_group_admin_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable); ok { - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) obj["enable_technical_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable); ok { - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkh.(keyhubmodel.RequestCreateServiceAccountRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["password_reset_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable); ok { - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) obj["remove_organizational_unit_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + diags.Append(d...) + obj["update_group_membership_request"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 7db3600..f1a56f3 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1178,18 +1178,21 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - if _, ok := tkh.(keyhubmodel.ClientOAuth2Clientable); ok { - val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.(keyhubmodel.ClientOAuth2Clientable)) + { + tkhCast, _ := tkh.(keyhubmodel.ClientOAuth2Clientable) + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkhCast) diags.Append(d...) obj["o_auth2_client"] = val } - if _, ok := tkh.(keyhubmodel.ClientLdapClientable); ok { - val, d := tkhToTFObjectRSClientLdapClient(false, tkh.(keyhubmodel.ClientLdapClientable)) + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) diags.Append(d...) obj["ldap_client"] = val } - if _, ok := tkh.(keyhubmodel.ClientSaml2Clientable); ok { - val, d := tkhToTFObjectRSClientSaml2Client(false, tkh.(keyhubmodel.ClientSaml2Clientable)) + { + tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) + val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) diags.Append(d...) obj["saml2_client"] = val } @@ -1695,25 +1698,29 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - if _, ok := tkh.(keyhubmodel.DirectoryInternalDirectoryable); ok { - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkh.(keyhubmodel.DirectoryInternalDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } - if _, ok := tkh.(keyhubmodel.DirectoryLDAPDirectoryable); ok { - val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkh.(keyhubmodel.DirectoryLDAPDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) + val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["l_d_a_p_directory"] = val + obj["o_id_c_directory"] = val } - if _, ok := tkh.(keyhubmodel.DirectoryOIDCDirectoryable); ok { - val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkh.(keyhubmodel.DirectoryOIDCDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["o_id_c_directory"] = val + obj["internal_directory"] = val } - if _, ok := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable); ok { - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["l_d_a_p_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3635,18 +3642,21 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp obj["logo"] = val } obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - if _, ok := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable); ok { - val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable)) + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) + val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) diags.Append(d...) - obj["sso_application_launchpad_tile"] = val + obj["vault_record_launchpad_tile"] = val } - if _, ok := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable); ok { - val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable)) + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) diags.Append(d...) - obj["vault_record_launchpad_tile"] = val + obj["sso_application_launchpad_tile"] = val } - if _, ok := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable); ok { - val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable)) + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) + val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkhCast) diags.Append(d...) obj["manual_launchpad_tile"] = val } @@ -5468,45 +5478,53 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) obj["provisioned_azure_sync_ldap_directory"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_oidc_directory"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_internal_ldap"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable); ok { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["abstract_provisioned_ldap"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedLDAPable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_ldap"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedADable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkh.(keyhubmodel.ProvisioningProvisionedADable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) obj["provisioned_a_d"] = val } - if _, ok := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable); ok { - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable)) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_azure_tenant"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6351,191 +6369,228 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - if _, ok := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable); ok { - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable)) - diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val - } - if _, ok := tkh.(keyhubmodel.RequestCreateGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkh.(keyhubmodel.RequestCreateGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["review_audit_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable); ok { - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["abstract_application_modification_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantAccessRequestable); ok { - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkh.(keyhubmodel.RequestGrantAccessRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_client_permission_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRemoveGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkh.(keyhubmodel.RequestRemoveGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["setup_nested_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable); ok { - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable); ok { - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable); ok { - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestPasswordResetRequestable); ok { - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkh.(keyhubmodel.RequestPasswordResetRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["create_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable); ok { - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkh.(keyhubmodel.RequestGrantClientPermissionRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["grant_group_on_system_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRevokeAdminRequestable); ok { - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkh.(keyhubmodel.RequestRevokeAdminRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["transfer_service_account_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable); ok { - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["transfer_application_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["extend_access_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkh.(keyhubmodel.RequestSetupNestedGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_access_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestJoinGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkh.(keyhubmodel.RequestJoinGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["join_vault_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestExtendAccessRequestable); ok { - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkh.(keyhubmodel.RequestExtendAccessRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_auditor_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) obj["transfer_provisioned_system_content_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["join_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["create_service_account_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantApplicationRequestable); ok { - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkh.(keyhubmodel.RequestGrantApplicationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) obj["grant_application_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["disable2fa_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestDisable2FARequestable); ok { - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkh.(keyhubmodel.RequestDisable2FARequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["verify_internal_account_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable); ok { - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["remove_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable); ok { - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable); ok { - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["remove_provisioned_system_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable); ok { - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["revoke_admin_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestReviewAuditRequestable); ok { - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkh.(keyhubmodel.RequestReviewAuditRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["transfer_application_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestAddGroupAdminRequestable); ok { - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkh.(keyhubmodel.RequestAddGroupAdminRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["grant_service_account_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["setup_authorizing_group_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable); ok { - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["grant_group_on_system_request_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestJoinVaultRequestable); ok { - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkh.(keyhubmodel.RequestJoinVaultRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["add_group_admin_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable); ok { - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) obj["enable_technical_administration_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable); ok { - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkh.(keyhubmodel.RequestCreateServiceAccountRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["password_reset_request"] = val } - if _, ok := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable); ok { - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable)) + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) obj["remove_organizational_unit_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + diags.Append(d...) + obj["update_group_membership_request"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) From f0c0b74cecc8d79672d18e389ef2e31b69ad2a73 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 10 Oct 2023 17:23:52 +0200 Subject: [PATCH 14/34] Many updates to the provider, functional vault record resource --- docs/data-sources/client.md | 11 + docs/data-sources/serviceaccount.md | 11 + docs/data-sources/vaultrecord.md | 17 + docs/resources/group.md | 487 ++-- docs/resources/vaultrecord.md | 162 ++ .../provider-install-verification/main.tf | 21 +- go.mod | 1 - internal/provider/datasource-account.go | 7 +- internal/provider/datasource-certificate.go | 7 +- internal/provider/datasource-client.go | 7 +- internal/provider/datasource-directory.go | 7 +- internal/provider/datasource-group.go | 7 +- .../datasource-groupclassification.go | 7 +- .../provider/datasource-organizationalunit.go | 7 +- .../provider/datasource-serviceaccount.go | 7 +- internal/provider/datasource-system.go | 7 +- internal/provider/datasource-vaultrecord.go | 7 +- internal/provider/datasource-webhook.go | 7 +- internal/provider/full-data-struct-ds.go | 422 +++- internal/provider/full-data-struct-rs.go | 356 ++- internal/provider/full-helpers.go | 34 +- internal/provider/full-object-attrs-ds.go | 423 +++- internal/provider/full-object-attrs-rs.go | 353 ++- internal/provider/full-schema-ds.go | 1392 ++++++++++- internal/provider/full-schema-rs.go | 1569 +++++++++--- .../provider/full-tf-to-data-struct-ds.go | 357 ++- .../provider/full-tf-to-data-struct-rs.go | 289 ++- internal/provider/full-tf-to-tkh-ds.go | 2181 ++++++++++++----- internal/provider/full-tf-to-tkh-rs.go | 2051 +++++++++++----- internal/provider/full-tkh-to-tf-ds.go | 1643 ++++++++++--- internal/provider/full-tkh-to-tf-rs.go | 1296 ++++++++-- internal/provider/group_resource.go | 2 +- internal/provider/provider.go | 8 +- internal/provider/resource-vaultrecord.go | 262 ++ 34 files changed, 10772 insertions(+), 2653 deletions(-) create mode 100644 docs/resources/vaultrecord.md create mode 100644 internal/provider/resource-vaultrecord.go diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index f774df5..43d1901 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -48,6 +48,7 @@ Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `groupclients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) - `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - `vault_record_count` (Number) @@ -584,6 +585,16 @@ Read-Only: + +### Nested Schema for `additional_objects.secret` + +Read-Only: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + ### Nested Schema for `additional_objects.tile` diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md index 0d21e3d..4d662d0 100644 --- a/docs/data-sources/serviceaccount.md +++ b/docs/data-sources/serviceaccount.md @@ -44,6 +44,7 @@ Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) ### Nested Schema for `additional_objects.audit` @@ -103,6 +104,16 @@ Read-Only: + +### Nested Schema for `additional_objects.secret` + +Read-Only: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + ### Nested Schema for `links` diff --git a/docs/data-sources/vaultrecord.md b/docs/data-sources/vaultrecord.md index 66e7066..f77df22 100644 --- a/docs/data-sources/vaultrecord.md +++ b/docs/data-sources/vaultrecord.md @@ -46,6 +46,7 @@ Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--parent)) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) - `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) @@ -98,6 +99,22 @@ Read-Only: + +### Nested Schema for `additional_objects.password_metadata` + +Read-Only: + +- `dictionary` (Boolean) +- `duplicate` (Boolean) +- `hash` (String) +- `length` (Number) +- `lower_count` (Number) +- `number_count` (Number) +- `special_count` (Number) +- `strength` (Number) +- `upper_count` (Number) + + ### Nested Schema for `additional_objects.secret` diff --git a/docs/resources/group.md b/docs/resources/group.md index 3289c85..d2c5c60 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -32,10 +32,8 @@ Group resource - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -49,6 +47,8 @@ Group resource - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `uuid` (String) @@ -168,6 +168,9 @@ Optional: - `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--client)) - `for_group_uuid` (String) - `for_system_uuid` (String) + +Read-Only: + - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions)) @@ -251,10 +254,8 @@ Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -262,6 +263,8 @@ Optional: Read-Only: - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) - `sso_application` (Boolean) - `uuid` (String) @@ -280,17 +283,6 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -328,17 +320,6 @@ Optional: - -### Nested Schema for `additional_objects.administered_clients.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.administered_clients.items.uuid` @@ -357,6 +338,28 @@ Optional: + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_clients.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -380,9 +383,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_sync_ldap_directory)) @@ -401,6 +402,8 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) - `uuid` (String) @@ -433,28 +436,6 @@ Optional: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.administered_systems.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.administered_systems.items.uuid` @@ -541,16 +522,16 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` Optional: @@ -561,7 +542,7 @@ Optional: -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` Optional: @@ -582,6 +563,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.administered_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -622,10 +625,8 @@ Optional: - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -639,6 +640,8 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) - `uuid` (String) @@ -646,8 +649,11 @@ Read-Only: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--permissions)) @@ -710,18 +716,18 @@ Optional: Optional: - `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) - `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) -### Nested Schema for `additional_objects.clients.items.group_uuid` +### Nested Schema for `additional_objects.clients.items.permissions` Optional: @@ -732,7 +738,7 @@ Optional: -### Nested Schema for `additional_objects.clients.items.group_uuid` +### Nested Schema for `additional_objects.clients.items.permissions` Optional: @@ -765,9 +771,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_sync_ldap_directory)) @@ -786,6 +790,8 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) - `uuid` (String) @@ -818,28 +824,6 @@ Optional: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` @@ -926,16 +910,16 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` Optional: @@ -946,7 +930,7 @@ Optional: -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` Optional: @@ -967,6 +951,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -1012,14 +1018,27 @@ Optional: - `directory_account_directory_summary_type` (String) - `domain_restriction` (String) - `fully_resolved_issuer` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) - `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) - `username_customizable` (Boolean) +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) + + +### Nested Schema for `additional_objects.helpdesk.items.permissions` + +Optional: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` +### Nested Schema for `additional_objects.helpdesk.items.permissions` Optional: @@ -1030,7 +1049,7 @@ Optional: -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` +### Nested Schema for `additional_objects.helpdesk.items.permissions` Optional: @@ -1040,16 +1059,6 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` - -Optional: - -- `accounts` (Number) -- `reason` (String) -- `status` (String) - - @@ -1147,10 +1156,8 @@ Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -1158,6 +1165,8 @@ Optional: Read-Only: - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) - `sso_application` (Boolean) - `uuid` (String) @@ -1176,17 +1185,6 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_clients.items.uuid` @@ -1224,17 +1222,6 @@ Optional: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_clients.items.uuid` @@ -1253,6 +1240,28 @@ Optional: + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_clients.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -1279,16 +1288,16 @@ Optional: - `helpdesk_group_uuid` (String) - `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) - `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--maintenance_directory)) - `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--o_id_c_directory)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) - `restrict2fa` (Boolean) - `username_customizable` (Boolean) Read-Only: - `account_validity_supported` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) - `uuid` (String) @@ -1323,17 +1332,6 @@ Optional: - `trusted_certificate_uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_directories.items.uuid` @@ -1362,6 +1360,17 @@ Read-Only: - `fully_resolved_issuer` (String) + +### Nested Schema for `additional_objects.owned_directories.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `additional_objects.owned_directories.items.uuid` @@ -1395,13 +1404,16 @@ Required: Optional: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) - `short_name_in_system` (String) - `system_uuid` (String) +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) + -### Nested Schema for `additional_objects.owned_groups_on_system.items.system_uuid` +### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` Optional: @@ -1412,7 +1424,7 @@ Optional: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system_uuid` +### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` Optional: @@ -1442,13 +1454,13 @@ Required: Optional: - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) - `parent_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) Read-Only: - `depth` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) - `uuid` (String) @@ -1496,9 +1508,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_sync_ldap_directory)) @@ -1517,6 +1527,8 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) - `uuid` (String) @@ -1549,28 +1561,6 @@ Optional: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.owned_systems.items.uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `additional_objects.owned_systems.items.uuid` @@ -1657,16 +1647,16 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` Optional: @@ -1677,7 +1667,7 @@ Optional: -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.account_count` +### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` Optional: @@ -1698,6 +1688,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.owned_systems.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + @@ -1718,15 +1730,15 @@ Optional: - `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--accounts)) - `comment` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) Read-Only: - `created_at` (String) - `created_by` (String) - `group_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) - `name_on_audit` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `submitted_at` (String) @@ -1740,8 +1752,6 @@ Optional: - `account_uuid` (String) - `action` (String) - `comment` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) - `rights` (String) Read-Only: @@ -1752,7 +1762,9 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) - `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) - `username` (String) @@ -1822,13 +1834,13 @@ Optional: - `active` (Boolean) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) - `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) - `technical_administrator_uuid` (String) Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) - `username` (String) - `uuid` (String) @@ -1869,38 +1881,16 @@ Optional: Optional: - `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) Read-Only: - `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_on_system)) - `group_uuid` (String) - - -### Nested Schema for `additional_objects.systems.items.group_uuid` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.systems.items.group_uuid` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) -### Nested Schema for `additional_objects.systems.items.group_uuid` +### Nested Schema for `additional_objects.systems.items.permissions` Required: @@ -1911,13 +1901,16 @@ Required: Optional: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_uuid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_uuid--permissions)) - `short_name_in_system` (String) - `system_uuid` (String) - -### Nested Schema for `additional_objects.systems.items.group_uuid.links` +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) + + +### Nested Schema for `additional_objects.systems.items.permissions.links` Optional: @@ -1927,8 +1920,8 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.group_uuid.permissions` + +### Nested Schema for `additional_objects.systems.items.permissions.permissions` Optional: @@ -1939,21 +1932,8 @@ Optional: - - - -### Nested Schema for `additional_objects.vault` - -Optional: - -- `access_available` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) -- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) - - -### Nested Schema for `additional_objects.vault.links` + +### Nested Schema for `additional_objects.systems.items.permissions` Optional: @@ -1963,8 +1943,8 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.permissions` + +### Nested Schema for `additional_objects.systems.items.permissions` Optional: @@ -1974,6 +1954,22 @@ Optional: - `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault` + +Optional: + +- `access_available` (Boolean) +- `name` (String) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) + ### Nested Schema for `additional_objects.vault.records` @@ -1986,8 +1982,6 @@ Optional: - `color` (String) - `end_date` (String) - `filename` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) - `url` (String) - `username` (String) - `warning_period` (String) @@ -1995,6 +1989,8 @@ Optional: Read-Only: - `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) - `share_end_time` (String) - `types` (List of String) - `uuid` (String) @@ -2022,6 +2018,28 @@ Optional: + +### Nested Schema for `additional_objects.vault.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.vault.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `additional_objects.webhooks` @@ -2052,9 +2070,7 @@ Optional: - `custom_header_value` (String) - `directory_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) - `system_uuid` (String) - `tls` (String) - `trusted_certificate_uuid` (String) @@ -2063,6 +2079,8 @@ Optional: Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) - `uuid` (String) @@ -2095,8 +2113,11 @@ Optional: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) diff --git a/docs/resources/vaultrecord.md b/docs/resources/vaultrecord.md new file mode 100644 index 0000000..6219b4d --- /dev/null +++ b/docs/resources/vaultrecord.md @@ -0,0 +1,162 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_vaultrecord Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_vaultrecord (Resource) + + + + + + +## Schema + +### Required + +- `group_uuid` (String) +- `name` (String) + +### Optional + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `color` (String) +- `end_date` (String) +- `filename` (String) +- `url` (String) +- `username` (String) +- `warning_period` (String) + +### Read-Only + +- `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `share_end_time` (String) +- `types` (List of String) +- `uuid` (String) + + +### Nested Schema for `additional_objects` + +Optional: + +- `delete_tile` (Boolean) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `parent_uuid` (String) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) +- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) + + +### Nested Schema for `additional_objects.secret` + +Optional: + +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) + + + +### Nested Schema for `additional_objects.tile` + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.password_metadata` + +Optional: + +- `dictionary` (Boolean) +- `duplicate` (Boolean) +- `hash` (String) +- `length` (Number) +- `lower_count` (Number) +- `number_count` (Number) +- `special_count` (Number) +- `strength` (Number) +- `upper_count` (Number) + + + +### Nested Schema for `additional_objects.share_summary` + +Optional: + +- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) + + +### Nested Schema for `additional_objects.share_summary.children` + +Optional: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + +### Nested Schema for `additional_objects.share_summary.parent` + +Optional: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + + +### Nested Schema for `additional_objects.shares` + +Optional: + +- `items` (List of String) + + + +### Nested Schema for `additional_objects.vaultholder` + + + + +### Nested Schema for `links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 0e2fe49..508cf8a 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -34,13 +34,24 @@ data "keyhubpreview_group" "test" { # value = data.keyhubpreview_group.test #} -data "keyhubpreview_client" "test" { - uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" -} +#data "keyhubpreview_client" "test" { +# uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" +#} + +#output "data_client" { +# value = data.keyhubpreview_client.test +#} -output "data_client" { - value = data.keyhubpreview_client.test +resource "keyhubpreview_vaultrecord" "terrarecord" { + name = "Terraform Record" + group_uuid = data.keyhubpreview_group.test.uuid + additional_objects = { + secret = { + password = "test3" + } + } } + #resource "keyhubpreview_group" "terra" { # name = "Terraform" # additional_objects = { diff --git a/go.mod b/go.mod index 637a356..8c1d213 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,6 @@ require ( github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect github.com/agext/levenshtein v1.2.3 // indirect - github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect diff --git a/internal/provider/datasource-account.go b/internal/provider/datasource-account.go index b4aeca8..b691a90 100644 --- a/internal/provider/datasource-account.go +++ b/internal/provider/datasource-account.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type accountDataSource struct { } func (d *accountDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_account" + resp.TypeName = ProviderName + "_account" + log.Printf("Registered data source %s", resp.TypeName) } func (d *accountDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-certificate.go b/internal/provider/datasource-certificate.go index cbf4e3e..c9eda70 100644 --- a/internal/provider/datasource-certificate.go +++ b/internal/provider/datasource-certificate.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type certificateDataSource struct { } func (d *certificateDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_certificate" + resp.TypeName = ProviderName + "_certificate" + log.Printf("Registered data source %s", resp.TypeName) } func (d *certificateDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-client.go b/internal/provider/datasource-client.go index 7fa65ae..eeb64cd 100644 --- a/internal/provider/datasource-client.go +++ b/internal/provider/datasource-client.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type clientDataSource struct { } func (d *clientDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_client" + resp.TypeName = ProviderName + "_client" + log.Printf("Registered data source %s", resp.TypeName) } func (d *clientDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-directory.go b/internal/provider/datasource-directory.go index bfdf2ea..d08af26 100644 --- a/internal/provider/datasource-directory.go +++ b/internal/provider/datasource-directory.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type directoryDataSource struct { } func (d *directoryDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_directory" + resp.TypeName = ProviderName + "_directory" + log.Printf("Registered data source %s", resp.TypeName) } func (d *directoryDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-group.go b/internal/provider/datasource-group.go index a35e6ce..7a30cb4 100644 --- a/internal/provider/datasource-group.go +++ b/internal/provider/datasource-group.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type groupDataSource struct { } func (d *groupDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_group" + resp.TypeName = ProviderName + "_group" + log.Printf("Registered data source %s", resp.TypeName) } func (d *groupDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-groupclassification.go b/internal/provider/datasource-groupclassification.go index d5eaf1e..95d0d1f 100644 --- a/internal/provider/datasource-groupclassification.go +++ b/internal/provider/datasource-groupclassification.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type groupclassificationDataSource struct { } func (d *groupclassificationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_groupclassification" + resp.TypeName = ProviderName + "_groupclassification" + log.Printf("Registered data source %s", resp.TypeName) } func (d *groupclassificationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-organizationalunit.go b/internal/provider/datasource-organizationalunit.go index b4a8a1e..04d96d6 100644 --- a/internal/provider/datasource-organizationalunit.go +++ b/internal/provider/datasource-organizationalunit.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type organizationalunitDataSource struct { } func (d *organizationalunitDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_organizationalunit" + resp.TypeName = ProviderName + "_organizationalunit" + log.Printf("Registered data source %s", resp.TypeName) } func (d *organizationalunitDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-serviceaccount.go b/internal/provider/datasource-serviceaccount.go index d068749..969177f 100644 --- a/internal/provider/datasource-serviceaccount.go +++ b/internal/provider/datasource-serviceaccount.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type serviceaccountDataSource struct { } func (d *serviceaccountDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_serviceaccount" + resp.TypeName = ProviderName + "_serviceaccount" + log.Printf("Registered data source %s", resp.TypeName) } func (d *serviceaccountDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-system.go b/internal/provider/datasource-system.go index 414e916..8170786 100644 --- a/internal/provider/datasource-system.go +++ b/internal/provider/datasource-system.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type systemDataSource struct { } func (d *systemDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_system" + resp.TypeName = ProviderName + "_system" + log.Printf("Registered data source %s", resp.TypeName) } func (d *systemDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-vaultrecord.go b/internal/provider/datasource-vaultrecord.go index 5e3aacf..0573673 100644 --- a/internal/provider/datasource-vaultrecord.go +++ b/internal/provider/datasource-vaultrecord.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type vaultrecordDataSource struct { } func (d *vaultrecordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_vaultrecord" + resp.TypeName = ProviderName + "_vaultrecord" + log.Printf("Registered data source %s", resp.TypeName) } func (d *vaultrecordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/datasource-webhook.go b/internal/provider/datasource-webhook.go index 9176e34..b5bd1a0 100644 --- a/internal/provider/datasource-webhook.go +++ b/internal/provider/datasource-webhook.go @@ -1,11 +1,11 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider import ( "context" "fmt" + "log" "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" @@ -33,7 +33,8 @@ type webhookDataSource struct { } func (d *webhookDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_webhook" + resp.TypeName = ProviderName + "_webhook" + log.Printf("Registered data source %s", resp.TypeName) } func (d *webhookDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) { diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 0a9838d..d3f3edf 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -78,6 +78,28 @@ type segmentCountDataDS struct { Name types.String `tfsdk:"name"` } +var accountVaultVaultRecordAttrTypesDS = objectAttrsTypeDSAccountVaultVaultRecord(false) +var accountVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSAccountVaultVaultRecord(true) + +type accountVaultVaultRecordDataDS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) @@ -405,6 +427,28 @@ type certificateCertificate_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } +var clientApplicationVaultVaultRecordAttrTypesDS = objectAttrsTypeDSClientApplicationVaultVaultRecord(false) +var clientApplicationVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSClientApplicationVaultVaultRecord(true) + +type clientApplicationVaultVaultRecordDataDS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var clientClientApplicationAttrTypesDS = objectAttrsTypeDSClientClientApplication(false) var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication(true) @@ -455,6 +499,7 @@ type clientClientApplication_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Groupclients types.Object `tfsdk:"groupclients"` Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` Tile types.Object `tfsdk:"tile"` VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` } @@ -558,6 +603,28 @@ var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml type clientSaml2Client_attributesDataDS struct { } +var deletedVaultHolderVaultVaultRecordAttrTypesDS = objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(false) +var deletedVaultHolderVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(true) + +type deletedVaultHolderVaultVaultRecordDataDS struct { + DeletedVaultHolderUUID types.String `tfsdk:"deleted_vault_holder_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) @@ -577,10 +644,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1141,6 +1208,28 @@ type groupProvisioningGroup_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } +var groupVaultVaultRecordAttrTypesDS = objectAttrsTypeDSGroupVaultVaultRecord(false) +var groupVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSGroupVaultVaultRecord(true) + +type groupVaultVaultRecordDataDS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) var launchpadDisplayedLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(true) @@ -1268,6 +1357,240 @@ type markItemMarkersDataDS struct { Markers types.List `tfsdk:"markers"` } +var nestedAuthInternalAccountAttrTypesDS = objectAttrsTypeDSNestedAuthInternalAccount(false) +var nestedAuthInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedAuthInternalAccount(true) + +type nestedAuthInternalAccountDataDS struct { + AccountDirectoryUUID types.String `tfsdk:"account_directory_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AccountPermissions types.List `tfsdk:"account_permissions"` + Active types.Bool `tfsdk:"active"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CanRequestGroups types.Bool `tfsdk:"can_request_groups"` + Directory types.Object `tfsdk:"directory"` + DirectoryName types.String `tfsdk:"directory_name"` + DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` + DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` + DirectoryType types.String `tfsdk:"directory_type"` + Email types.String `tfsdk:"email"` + IDInDirectory types.String `tfsdk:"id_in_directory"` + KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` + LastModifiedAt types.String `tfsdk:"last_modified_at"` + LicenseRole types.String `tfsdk:"license_role"` + Locale types.String `tfsdk:"locale"` + ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` + TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var nestedClientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSNestedClientOAuth2ClientPermission(false) +var nestedClientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSNestedClientOAuth2ClientPermission(true) + +type nestedClientOAuth2ClientPermissionDataDS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` +} + +var nestedGroupAccountGroupAttrTypesDS = objectAttrsTypeDSNestedGroupAccountGroup(false) +var nestedGroupAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupAccountGroup(true) + +type nestedGroupAccountGroupDataDS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Admin types.Bool `tfsdk:"admin"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAccountAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAccount(false) +var nestedGroupGroupAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAccount(true) + +type nestedGroupGroupAccountDataDS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAuditAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAudit(false) +var nestedGroupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAudit(true) + +type nestedGroupGroupAuditDataDS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var nestedOrganizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(false) +var nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(true) + +type nestedOrganizationAccountOrganizationalUnitDataDS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedOrganizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(false) +var nestedOrganizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(true) + +type nestedOrganizationOrganizationalUnitAccountDataDS struct { + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Directory types.Object `tfsdk:"directory"` +} + +var nestedProvisioningGroupOnSystemAttrTypesDS = objectAttrsTypeDSNestedProvisioningGroupOnSystem(false) +var nestedProvisioningGroupOnSystemAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningGroupOnSystem(true) + +type nestedProvisioningGroupOnSystemDataDS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Owner types.Object `tfsdk:"owner"` + System types.Object `tfsdk:"system"` +} + +var nestedProvisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedAccount(false) +var nestedProvisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningProvisionedAccount(true) + +type nestedProvisioningProvisionedAccountDataDS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + UID types.Int64 `tfsdk:"uid"` +} + +var nestedProvisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(false) +var nestedProvisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(true) + +type nestedProvisioningProvisionedSystemSyncLogDataDS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var nestedServiceaccountServiceAccountGroupAttrTypesDS = objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(false) +var nestedServiceaccountServiceAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(true) + +type nestedServiceaccountServiceAccountGroupDataDS struct { + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedWebhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSNestedWebhookWebhookDelivery(false) +var nestedWebhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSNestedWebhookWebhookDelivery(true) + +type nestedWebhookWebhookDeliveryDataDS struct { + WebhookUUID types.String `tfsdk:"webhook_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) var notificationCertificateExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationCertificateExpiredNotification(true) @@ -1754,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2030,43 +2353,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) @@ -2314,6 +2637,7 @@ var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAtt type serviceaccountServiceAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` Groups types.Object `tfsdk:"groups"` + Secret types.Object `tfsdk:"secret"` } var serviceaccountServiceAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(false) @@ -2407,6 +2731,21 @@ type vaultMoveVaultRecord_shareDurationDataDS struct { Seconds types.Int64 `tfsdk:"seconds"` } +var vaultPasswordMetadataAttrTypesDS = objectAttrsTypeDSVaultPasswordMetadata(false) +var vaultPasswordMetadataAttrTypesDSRecurse = objectAttrsTypeDSVaultPasswordMetadata(true) + +type vaultPasswordMetadataDataDS struct { + Dictionary types.Bool `tfsdk:"dictionary"` + Duplicate types.Bool `tfsdk:"duplicate"` + Hash types.String `tfsdk:"hash"` + Length types.Int64 `tfsdk:"length"` + LowerCount types.Int64 `tfsdk:"lower_count"` + NumberCount types.Int64 `tfsdk:"number_count"` + SpecialCount types.Int64 `tfsdk:"special_count"` + Strength types.Int64 `tfsdk:"strength"` + UpperCount types.Int64 `tfsdk:"upper_count"` +} + var vaultVaultAttrTypesDS = objectAttrsTypeDSVaultVault(false) var vaultVaultAttrTypesDSRecurse = objectAttrsTypeDSVaultVault(true) @@ -2501,13 +2840,14 @@ var vaultVaultRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultVaultR var vaultVaultRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord_additionalObjects(true) type vaultVaultRecord_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Parent types.Object `tfsdk:"parent"` - Secret types.Object `tfsdk:"secret"` - ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` - Tile types.Object `tfsdk:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder"` + Audit types.Object `tfsdk:"audit"` + Parent types.Object `tfsdk:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` } var vaultVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultVaultRecovery(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index d986824..a97a206 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -78,6 +78,27 @@ type segmentCountDataRS struct { Name types.String `tfsdk:"name"` } +var accountVaultVaultRecordAttrTypesRS = objectAttrsTypeRSAccountVaultVaultRecord(false) +var accountVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSAccountVaultVaultRecord(true) + +type accountVaultVaultRecordDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) @@ -376,6 +397,27 @@ type certificateCertificate_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } +var clientApplicationVaultVaultRecordAttrTypesRS = objectAttrsTypeRSClientApplicationVaultVaultRecord(false) +var clientApplicationVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSClientApplicationVaultVaultRecord(true) + +type clientApplicationVaultVaultRecordDataRS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var clientClientApplicationAttrTypesRS = objectAttrsTypeRSClientClientApplication(false) var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApplication(true) @@ -528,6 +570,27 @@ var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml type clientSaml2Client_attributesDataRS struct { } +var deletedVaultHolderVaultVaultRecordAttrTypesRS = objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(false) +var deletedVaultHolderVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(true) + +type deletedVaultHolderVaultVaultRecordDataRS struct { + DeletedVaultHolderUUID types.String `tfsdk:"deleted_vault_holder_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) @@ -546,10 +609,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1092,6 +1155,27 @@ type groupProvisioningGroup_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } +var groupVaultVaultRecordAttrTypesRS = objectAttrsTypeRSGroupVaultVaultRecord(false) +var groupVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSGroupVaultVaultRecord(true) + +type groupVaultVaultRecordDataRS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` +} + var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) var launchpadDisplayedLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(true) @@ -1218,6 +1302,178 @@ type markItemMarkersDataRS struct { Markers types.List `tfsdk:"markers"` } +var nestedAuthInternalAccountAttrTypesRS = objectAttrsTypeRSNestedAuthInternalAccount(false) +var nestedAuthInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedAuthInternalAccount(true) + +type nestedAuthInternalAccountDataRS struct { + AccountDirectoryUUID types.String `tfsdk:"account_directory_uuid"` + UUID types.String `tfsdk:"uuid"` + ActivationCode types.String `tfsdk:"activation_code"` + ActivationDeadline types.String `tfsdk:"activation_deadline"` + Company types.String `tfsdk:"company"` + FirstName types.String `tfsdk:"first_name"` + LastName types.String `tfsdk:"last_name"` + Status types.String `tfsdk:"status"` + Telephone types.String `tfsdk:"telephone"` +} + +var nestedClientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSNestedClientOAuth2ClientPermission(false) +var nestedClientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSNestedClientOAuth2ClientPermission(true) + +type nestedClientOAuth2ClientPermissionDataRS struct { + ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` +} + +var nestedGroupAccountGroupAttrTypesRS = objectAttrsTypeRSNestedGroupAccountGroup(false) +var nestedGroupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupAccountGroup(true) + +type nestedGroupAccountGroupDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + EndDate types.String `tfsdk:"end_date"` + Folder types.Object `tfsdk:"folder"` + LastUsed types.String `tfsdk:"last_used"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAccountAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAccount(false) +var nestedGroupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAccount(true) + +type nestedGroupGroupAccountDataRS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` + DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` + EndDate types.String `tfsdk:"end_date"` + LastUsed types.String `tfsdk:"last_used"` + Nested types.Bool `tfsdk:"nested"` + ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` + Rights types.String `tfsdk:"rights"` + TwoFactorStatus types.String `tfsdk:"two_factor_status"` + VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` +} + +var nestedGroupGroupAuditAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAudit(false) +var nestedGroupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAudit(true) + +type nestedGroupGroupAuditDataRS struct { + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` +} + +var nestedOrganizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(false) +var nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(true) + +type nestedOrganizationAccountOrganizationalUnitDataRS struct { + AccountUUID types.String `tfsdk:"account_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedOrganizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(false) +var nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(true) + +type nestedOrganizationOrganizationalUnitAccountDataRS struct { + OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` +} + +var nestedProvisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSNestedProvisioningGroupOnSystem(false) +var nestedProvisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningGroupOnSystem(true) + +type nestedProvisioningGroupOnSystemDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + SystemUUID types.String `tfsdk:"system_uuid"` +} + +var nestedProvisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedAccount(false) +var nestedProvisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningProvisionedAccount(true) + +type nestedProvisioningProvisionedAccountDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + UUID types.String `tfsdk:"uuid"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + UID types.Int64 `tfsdk:"uid"` +} + +var nestedProvisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(false) +var nestedProvisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(true) + +type nestedProvisioningProvisionedSystemSyncLogDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` +} + +var nestedServiceaccountServiceAccountGroupAttrTypesRS = objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(false) +var nestedServiceaccountServiceAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(true) + +type nestedServiceaccountServiceAccountGroupDataRS struct { + ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` +} + +var nestedWebhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSNestedWebhookWebhookDelivery(false) +var nestedWebhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSNestedWebhookWebhookDelivery(true) + +type nestedWebhookWebhookDeliveryDataRS struct { + WebhookUUID types.String `tfsdk:"webhook_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AdditionalObjects types.Object `tfsdk:"additional_objects"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` +} + var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) var notificationCertificateExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationCertificateExpiredNotification(true) @@ -1683,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -1957,43 +2213,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) @@ -2336,6 +2592,21 @@ type vaultMoveVaultRecord_shareDurationDataRS struct { Seconds types.Int64 `tfsdk:"seconds"` } +var vaultPasswordMetadataAttrTypesRS = objectAttrsTypeRSVaultPasswordMetadata(false) +var vaultPasswordMetadataAttrTypesRSRecurse = objectAttrsTypeRSVaultPasswordMetadata(true) + +type vaultPasswordMetadataDataRS struct { + Dictionary types.Bool `tfsdk:"dictionary"` + Duplicate types.Bool `tfsdk:"duplicate"` + Hash types.String `tfsdk:"hash"` + Length types.Int64 `tfsdk:"length"` + LowerCount types.Int64 `tfsdk:"lower_count"` + NumberCount types.Int64 `tfsdk:"number_count"` + SpecialCount types.Int64 `tfsdk:"special_count"` + Strength types.Int64 `tfsdk:"strength"` + UpperCount types.Int64 `tfsdk:"upper_count"` +} + var vaultVaultAttrTypesRS = objectAttrsTypeRSVaultVault(false) var vaultVaultAttrTypesRSRecurse = objectAttrsTypeRSVaultVault(true) @@ -2430,14 +2701,15 @@ var vaultVaultRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultVaultR var vaultVaultRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord_additionalObjects(true) type vaultVaultRecord_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile"` - ParentUUID types.String `tfsdk:"parent_uuid"` - Secret types.Object `tfsdk:"secret"` - ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` - Tile types.Object `tfsdk:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder"` + Audit types.Object `tfsdk:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile"` + ParentUUID types.String `tfsdk:"parent_uuid"` + PasswordMetadata types.Object `tfsdk:"password_metadata"` + Secret types.Object `tfsdk:"secret"` + ShareSummary types.Object `tfsdk:"share_summary"` + Shares types.Object `tfsdk:"shares"` + Tile types.Object `tfsdk:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder"` } var vaultVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultVaultRecovery(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index 468e7a4..ff37f4d 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -171,7 +171,7 @@ func findFirst[T keyhubmodel.Linkableable](ctx context.Context, wrapper interfac } func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -188,7 +188,7 @@ func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel. } func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -205,7 +205,7 @@ func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string } func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -222,7 +222,7 @@ func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *s } func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -239,7 +239,7 @@ func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) ( } func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -256,7 +256,7 @@ func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *st } func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -273,7 +273,7 @@ func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) } func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -298,7 +298,7 @@ func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel } func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -311,7 +311,7 @@ func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthA } func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -328,7 +328,7 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str } func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { - if uuid == nil { + if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) @@ -349,10 +349,22 @@ func errorReportToString(ctx context.Context, err error) string { if !ok { return err.Error() } - msg := fmt.Sprintf("Error %d from backend: %s", *report.GetCode(), *report.GetMessage()) + var msg string + if report.GetApplicationError() == nil { + msg = fmt.Sprintf("Error %d from backend: %s", *report.GetCode(), stringPointerToString(report.GetMessage())) + } else { + msg = fmt.Sprintf("Error %d (%s) from backend: %s", *report.GetCode(), *report.GetApplicationError(), stringPointerToString(report.GetMessage())) + } tflog.Info(ctx, msg) if report.GetStacktrace() != nil { tflog.Info(ctx, strings.Join(report.GetStacktrace(), "\n")) } return msg } + +func stringPointerToString(input *string) string { + if input != nil { + return *input + } + return "" +} diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 6679dba..eaeb53e 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -71,6 +71,29 @@ func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeDSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -379,6 +402,29 @@ func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeDSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -426,6 +472,7 @@ func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) ma objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} objectAttrs["vault_record_count"] = types.Int64Type return objectAttrs @@ -524,6 +571,29 @@ func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr return objectAttrs } +func objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["deleted_vault_holder_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -543,10 +613,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1075,6 +1145,29 @@ func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeDSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1191,6 +1284,252 @@ func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeDSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + } + objectAttrs["account_directory_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} + objectAttrs["active"] = types.BoolType + objectAttrs["can_request_groups"] = types.BoolType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["directory_name"] = types.StringType + objectAttrs["directory_password_change_required"] = types.BoolType + objectAttrs["directory_rotating_password"] = types.StringType + objectAttrs["directory_type"] = types.StringType + objectAttrs["email"] = types.StringType + objectAttrs["id_in_directory"] = types.StringType + objectAttrs["key_hub_password_change_required"] = types.BoolType + objectAttrs["last_modified_at"] = types.StringType + objectAttrs["license_role"] = types.StringType + objectAttrs["locale"] = types.StringType + objectAttrs["reregistration_required"] = types.BoolType + objectAttrs["token_password_enabled"] = types.BoolType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["valid_in_directory"] = types.BoolType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["admin"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeDSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} + return objectAttrs +} + +func objectAttrsTypeDSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + return objectAttrs +} + +func objectAttrsTypeDSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["webhook_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + func objectAttrsTypeDSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)} @@ -1638,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} return objectAttrs } @@ -1885,43 +2224,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} return objectAttrs } @@ -2142,6 +2481,7 @@ func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse boo objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} return objectAttrs } @@ -2227,6 +2567,20 @@ func objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse bool) map[strin return objectAttrs } +func objectAttrsTypeDSVaultPasswordMetadata(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["dictionary"] = types.BoolType + objectAttrs["duplicate"] = types.BoolType + objectAttrs["hash"] = types.StringType + objectAttrs["length"] = types.Int64Type + objectAttrs["lower_count"] = types.Int64Type + objectAttrs["number_count"] = types.Int64Type + objectAttrs["special_count"] = types.Int64Type + objectAttrs["strength"] = types.Int64Type + objectAttrs["upper_count"] = types.Int64Type + return objectAttrs +} + func objectAttrsTypeDSVaultVault(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -2314,6 +2668,7 @@ func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[strin objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(recurse)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)} diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 47ca6dd..0f9907f 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -71,6 +71,28 @@ func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeRSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -348,6 +370,28 @@ func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeRSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -492,6 +536,28 @@ func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr return objectAttrs } +func objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["deleted_vault_holder_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -510,10 +576,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1024,6 +1090,28 @@ func objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(recurse bool) map return objectAttrs } +func objectAttrsTypeRSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["color"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["share_end_time"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["derived"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["filename"] = types.StringType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} + objectAttrs["url"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["warning_period"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1139,6 +1227,188 @@ func objectAttrsTypeRSMarkItemMarkers(recurse bool) map[string]attr.Type { return objectAttrs } +func objectAttrsTypeRSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["account_directory_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["activation_code"] = types.StringType + objectAttrs["activation_deadline"] = types.StringType + objectAttrs["company"] = types.StringType + objectAttrs["first_name"] = types.StringType + objectAttrs["last_name"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["telephone"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + } + objectAttrs["client_application_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["for_group_uuid"] = types.StringType + objectAttrs["for_system_uuid"] = types.StringType + objectAttrs["value"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["end_date"] = types.StringType + objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} + objectAttrs["last_used"] = types.StringType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["disconnected_nested"] = types.BoolType + objectAttrs["end_date"] = types.StringType + objectAttrs["last_used"] = types.StringType + objectAttrs["nested"] = types.BoolType + objectAttrs["provisioning_end_time"] = types.StringType + objectAttrs["rights"] = types.StringType + objectAttrs["two_factor_status"] = types.StringType + objectAttrs["visible_for_provisioning"] = types.BoolType + return objectAttrs +} + +func objectAttrsTypeRSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} + } + objectAttrs["group_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditAccount(false)}} + objectAttrs["comment"] = types.StringType + objectAttrs["created_at"] = types.StringType + objectAttrs["created_by"] = types.StringType + objectAttrs["group_name"] = types.StringType + objectAttrs["name_on_audit"] = types.StringType + objectAttrs["reviewed_at"] = types.StringType + objectAttrs["reviewed_by"] = types.StringType + objectAttrs["status"] = types.StringType + objectAttrs["submitted_at"] = types.StringType + objectAttrs["submitted_by"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + } + objectAttrs["account_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + } + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["system_uuid"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["uid"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + } + objectAttrs["provisioned_system_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["created_at"] = types.StringType + objectAttrs["errors"] = types.Int64Type + objectAttrs["log"] = types.StringType + objectAttrs["modifications"] = types.Int64Type + return objectAttrs +} + +func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} + } + objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + return objectAttrs +} + +func objectAttrsTypeRSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} + } + objectAttrs["webhook_uuid"] = types.StringType + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} + objectAttrs["reponse_headers"] = types.StringType + objectAttrs["request_headers"] = types.StringType + objectAttrs["response"] = types.StringType + objectAttrs["status"] = types.Int64Type + objectAttrs["time"] = types.Int64Type + objectAttrs["trigger_time"] = types.StringType + return objectAttrs +} + func objectAttrsTypeRSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)} @@ -1565,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} return objectAttrs } @@ -1810,43 +2080,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} return objectAttrs } @@ -2154,6 +2424,20 @@ func objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse bool) map[strin return objectAttrs } +func objectAttrsTypeRSVaultPasswordMetadata(recurse bool) map[string]attr.Type { + objectAttrs := make(map[string]attr.Type) + objectAttrs["dictionary"] = types.BoolType + objectAttrs["duplicate"] = types.BoolType + objectAttrs["hash"] = types.StringType + objectAttrs["length"] = types.Int64Type + objectAttrs["lower_count"] = types.Int64Type + objectAttrs["number_count"] = types.Int64Type + objectAttrs["special_count"] = types.Int64Type + objectAttrs["strength"] = types.Int64Type + objectAttrs["upper_count"] = types.Int64Type + return objectAttrs +} + func objectAttrsTypeRSVaultVault(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -2242,6 +2526,7 @@ func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[strin objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} objectAttrs["delete_tile"] = types.BoolType objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(recurse)} objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)} diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 24561f1..a40f55e 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -121,6 +121,85 @@ func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribu } return schemaAttrs } +func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -863,6 +942,85 @@ func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) } return schemaAttrs } +func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -912,6 +1070,7 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch "audit", "groupclients", "groups", + "secret", "tile", "vaultRecordCount", ), @@ -1003,6 +1162,10 @@ func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), Computed: true, } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + Computed: true, + } schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), Computed: true, @@ -1223,6 +1386,85 @@ func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string] schemaAttrs := make(map[string]dsschema.Attribute) return schemaAttrs } +func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["deleted_vault_holder_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -1292,22 +1534,22 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), Computed: true, } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), Computed: true, } - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), - Computed: true, - } schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), Computed: true, } + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -2618,8 +2860,18 @@ func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsRestLink(recurse), @@ -2632,7 +2884,76 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri }, Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ + schemaAttrs["color"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["share_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "parent", + "passwordMetadata", + "secret", + "shareSummary", + "shares", + "tile", + "vaultholder", + ), + ), + }, + } + schemaAttrs["derived"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["filename"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["types"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["warning_period"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["group"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), Computed: true, } @@ -2816,57 +3137,837 @@ func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dssc schemaAttrs["issue_time"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_key"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["not_before_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["version"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["markers"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_directory_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "activeLogin", + "audit", + "groups", + "pendingRecoveryRequests", + "settings", + "storedAttributes", + "vault", + ), + ), + }, + } + schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(false), + }, + Computed: true, + } + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["directory_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["directory_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["email"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["license_role"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["locale"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["activation_code"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["first_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["telephone"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + schemaAttrs["value"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["admin"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "vault", + ), + ), + }, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["group_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Computed: true, + } + schemaAttrs["comment"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + "provgroups", + "serviceAccounts", + ), + ), + }, + } + schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Computed: true, + } + schemaAttrs["system"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["validity"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["uid"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + schemaAttrs["created_at"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["errors"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["log"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["modifications"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, + } + return schemaAttrs +} +func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Computed: true, + } + } + schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, } - schemaAttrs["license_key"] = dsschema.StringAttribute{ + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, Computed: true, } - schemaAttrs["not_before_time"] = dsschema.StringAttribute{ + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, Computed: true, } - schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ - Computed: true, + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "audit", + ), + ), + }, } - schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ - Computed: true, + schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), + Computed: true, } - schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["version"] = dsschema.Int64Attribute{ + schemaAttrs["request_headers"] = dsschema.StringAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["level"] = dsschema.StringAttribute{ + schemaAttrs["response"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + schemaAttrs["status"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), - Computed: true, + schemaAttrs["time"] = dsschema.Int64Attribute{ + Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["markers"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), - }, + schemaAttrs["trigger_time"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs @@ -3835,36 +4936,36 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Computed: true, } - schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, } - schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Computed: true, } - schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Computed: true, } schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } return schemaAttrs @@ -4284,42 +5385,54 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Computed: true, + } + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Computed: true, + } + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + Computed: true, + } + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + Computed: true, + } + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Computed: true, } schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Computed: true, - } schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, @@ -4328,108 +5441,96 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - Computed: true, - } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - Computed: true, - } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), - Computed: true, - } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), Computed: true, } schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } return schemaAttrs @@ -4657,6 +5758,7 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] stringvalidator.OneOf( "audit", "groups", + "secret", ), ), }, @@ -4810,6 +5912,10 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), Computed: true, } + schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { @@ -4961,6 +6067,37 @@ func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[s } return schemaAttrs } +func dataSourceSchemaAttrsVaultPasswordMetadata(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["dictionary"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["duplicate"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["hash"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["length"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["lower_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["special_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["strength"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["upper_count"] = dsschema.Int64Attribute{ + Computed: true, + } + return schemaAttrs +} func dataSourceSchemaAttrsVaultVault(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5034,6 +6171,7 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att stringvalidator.OneOf( "audit", "parent", + "passwordMetadata", "secret", "shareSummary", "shares", @@ -5166,6 +6304,10 @@ func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[s Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), Computed: true, } + schemaAttrs["password_metadata"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultPasswordMetadata(recurse), + Computed: true, + } schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), Computed: true, diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 03c965e..f7f3dbd 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -8,6 +8,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" @@ -87,13 +89,15 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -129,6 +133,72 @@ func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute } return schemaAttrs } +func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -141,70 +211,91 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["date_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_account"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_certificate"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_client"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_directory"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_group"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_group2"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_group_classification"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_organizational_unit"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_service_account"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_system"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_vault_record"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["on_webhook"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["parameter1"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["parameter2"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["parameter3"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["performed_by"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["security_level"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -238,13 +329,15 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, @@ -256,7 +349,8 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ Optional: true, @@ -359,13 +453,15 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, @@ -377,7 +473,8 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ Optional: true, @@ -632,19 +729,22 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["certificate_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -668,7 +768,8 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["key_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -692,19 +793,22 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["certificate_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -728,7 +832,8 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -740,6 +845,72 @@ func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) m } return schemaAttrs } +func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -752,16 +923,19 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -774,10 +948,12 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ Computed: true, @@ -818,16 +994,19 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ - Required: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -840,10 +1019,12 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -964,13 +1145,15 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1005,13 +1188,15 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1071,6 +1256,72 @@ func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rs schemaAttrs := make(map[string]rsschema.Attribute) return schemaAttrs } +func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -1083,16 +1334,19 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -1100,13 +1354,15 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Default: booldefault.StaticBool(false), } schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, @@ -1132,22 +1388,22 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), Optional: true, } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), Optional: true, } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), - Optional: true, - } schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), Optional: true, } + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1166,16 +1422,19 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -1183,13 +1442,15 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Default: booldefault.StaticBool(false), } schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -1214,13 +1475,15 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ Optional: true, @@ -1454,13 +1717,15 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -1655,13 +1920,15 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1707,13 +1974,15 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1759,13 +2028,15 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["months"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -1843,13 +2114,15 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -1941,13 +2214,15 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -1989,13 +2264,15 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2048,13 +2325,15 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2129,13 +2408,15 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -2338,13 +2619,15 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2380,20 +2663,88 @@ func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) m } return schemaAttrs } -func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Required: true, + } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["filename"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, + } + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -2440,13 +2791,15 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -2460,9 +2813,8 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Default: int64default.StaticInt64(0), } schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MANUAL"), + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["logo"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -2485,142 +2837,583 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema } return schemaAttrs } -func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["title"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uri"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["current_license_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_contact"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["customer_domains"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["details"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["features"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["issue_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["license_key"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["not_before_time"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ + Optional: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["version"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["level"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["markers"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsMarkItemMarker(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["account_directory_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["activation_code"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["company"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["first_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["last_name"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["telephone"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + Optional: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), + }, + Optional: true, + } + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["status"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["submitted_at"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["submitted_by"] = rsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["system_uuid"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), - }, - Optional: true, + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + Optional: true, + } + } + schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["title"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["errors"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["log"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["modifications"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } return schemaAttrs } -func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["current_license_status"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["customer_company"] = rsschema.StringAttribute{ - Optional: true, + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + Optional: true, + } } - schemaAttrs["customer_contact"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["customer_domains"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["features"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["license_key"] = rsschema.StringAttribute{ - Optional: true, + return schemaAttrs +} +func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + Optional: true, + } } - schemaAttrs["not_before_time"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookPush(false), + Optional: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["version"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["request_headers"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["level"] = rsschema.StringAttribute{ + schemaAttrs["response"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + schemaAttrs["status"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), - Optional: true, + schemaAttrs["time"] = rsschema.Int64Attribute{ + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["markers"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsMarkItemMarker(recurse), - }, + schemaAttrs["trigger_time"] = rsschema.StringAttribute{ Optional: true, } return schemaAttrs @@ -2822,19 +3615,22 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["depth"] = rsschema.Int64Attribute{ Computed: true, @@ -2900,19 +3696,22 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3055,13 +3854,15 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -3099,13 +3900,15 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -3213,13 +4016,15 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -3275,7 +4080,8 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] Required: true, } schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3385,13 +4191,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3405,10 +4213,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Optional: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -3448,36 +4258,36 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Optional: true, } - schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, } - schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Optional: true, } - schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Optional: true, } schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } return schemaAttrs @@ -3498,13 +4308,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3518,10 +4330,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st Optional: true, } schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3545,25 +4359,31 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[s NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3853,13 +4673,15 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -3874,50 +4696,64 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Optional: true, } schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Optional: true, + } + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Optional: true, + } + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + Optional: true, + } + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + Optional: true, + } + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Optional: true, } schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Optional: true, - } schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, @@ -3926,108 +4762,96 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - Optional: true, - } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - Optional: true, - } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), - Optional: true, - } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), Optional: true, } schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } return schemaAttrs @@ -4238,13 +5062,15 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -4258,10 +5084,12 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Required: true, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, @@ -4289,13 +5117,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -4345,13 +5175,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -4365,10 +5197,12 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str Required: true, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -4456,22 +5290,26 @@ func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschem NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["record_count"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } schemaAttrs["vault_deleted_vault_holder_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -4539,19 +5377,68 @@ func resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[str } return schemaAttrs } +func resourceSchemaAttrsVaultPasswordMetadata(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["dictionary"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["duplicate"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["hash"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["length"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["lower_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["number_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["special_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["strength"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + schemaAttrs["upper_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["access_available"] = rsschema.BoolAttribute{ Computed: true, @@ -4585,13 +5472,15 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -4602,13 +5491,16 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri Required: true, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -4647,13 +5539,15 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -4664,10 +5558,12 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema Required: true, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -4736,6 +5632,10 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ Computed: true, } + schemaAttrs["password_metadata"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultPasswordMetadata(recurse), + Computed: true, + } schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), Optional: true, @@ -4797,13 +5697,15 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -4872,7 +5774,8 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Required: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ Computed: true, @@ -4893,13 +5796,15 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookPush(false), diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 43e7eaf..2353ef2 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -55,6 +55,25 @@ func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj type data.Name = obj.Attributes()["name"].(basetypes.StringValue) } +func fillDataStructFromTFObjectDSAccountVaultVaultRecord(data *accountVaultVaultRecordDataDS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -301,6 +320,25 @@ func fillDataStructFromTFObjectDSCertificateCertificate_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectDSClientApplicationVaultVaultRecord(data *clientApplicationVaultVaultRecordDataDS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -339,6 +377,7 @@ func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) } @@ -412,6 +451,25 @@ func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { } +func fillDataStructFromTFObjectDSDeletedVaultHolderVaultVaultRecord(data *deletedVaultHolderVaultVaultRecordDataDS, obj types.Object) { + data.DeletedVaultHolderUUID = obj.Attributes()["deleted_vault_holder_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -428,10 +486,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -845,6 +903,25 @@ func fillDataStructFromTFObjectDSGroupProvisioningGroup_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectDSGroupVaultVaultRecord(data *groupVaultVaultRecordDataDS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -933,6 +1010,204 @@ func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, ob data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) } +func fillDataStructFromTFObjectDSNestedAuthInternalAccount(data *nestedAuthInternalAccountDataDS, obj types.Object) { + data.AccountDirectoryUUID = obj.Attributes()["account_directory_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) + data.Active = obj.Attributes()["active"].(basetypes.BoolValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) + data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) + data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) + data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) + data.Email = obj.Attributes()["email"].(basetypes.StringValue) + data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) + data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) + data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) + data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) + data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) + data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) + data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNestedClientOAuth2ClientPermission(data *nestedClientOAuth2ClientPermissionDataDS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) + data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataDS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataDS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectDSNestedGroupGroupAudit(data *nestedGroupGroupAuditDataDS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectDSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataDS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataDS, obj types.Object) { + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedProvisioningGroupOnSystemDataDS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) + data.System = obj.Attributes()["system"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataDS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSNestedProvisioningProvisionedSystemSyncLog(data *nestedProvisioningProvisionedSystemSyncLogDataDS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectDSNestedServiceaccountServiceAccountGroup(data *nestedServiceaccountServiceAccountGroupDataDS, obj types.Object) { + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectDSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataDS, obj types.Object) { + data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataDS, obj types.Object) { data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) @@ -1263,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1440,43 +1715,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { @@ -1631,6 +1906,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *servic func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataDS, obj types.Object) { @@ -1691,6 +1967,18 @@ func fillDataStructFromTFObjectDSVaultMoveVaultRecord_shareDuration(data *vaultM data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } +func fillDataStructFromTFObjectDSVaultPasswordMetadata(data *vaultPasswordMetadataDataDS, obj types.Object) { + data.Dictionary = obj.Attributes()["dictionary"].(basetypes.BoolValue) + data.Duplicate = obj.Attributes()["duplicate"].(basetypes.BoolValue) + data.Hash = obj.Attributes()["hash"].(basetypes.StringValue) + data.Length = obj.Attributes()["length"].(basetypes.Int64Value) + data.LowerCount = obj.Attributes()["lower_count"].(basetypes.Int64Value) + data.NumberCount = obj.Attributes()["number_count"].(basetypes.Int64Value) + data.SpecialCount = obj.Attributes()["special_count"].(basetypes.Int64Value) + data.Strength = obj.Attributes()["strength"].(basetypes.Int64Value) + data.UpperCount = obj.Attributes()["upper_count"].(basetypes.Int64Value) +} + func fillDataStructFromTFObjectDSVaultVault(data *vaultVaultDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1757,6 +2045,7 @@ func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRe func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultVaultRecord_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index e862d28..3777f29 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -55,6 +55,24 @@ func fillDataStructFromTFObjectRSSegmentCount(data *segmentCountDataRS, obj type data.Name = obj.Attributes()["name"].(basetypes.StringValue) } +func fillDataStructFromTFObjectRSAccountVaultVaultRecord(data *accountVaultVaultRecordDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -272,6 +290,24 @@ func fillDataStructFromTFObjectRSCertificateCertificate_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(data *clientApplicationVaultVaultRecordDataRS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -382,6 +418,24 @@ func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { } +func fillDataStructFromTFObjectRSDeletedVaultHolderVaultVaultRecord(data *deletedVaultHolderVaultVaultRecordDataRS, obj types.Object) { + data.DeletedVaultHolderUUID = obj.Attributes()["deleted_vault_holder_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -397,10 +451,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -796,6 +850,24 @@ func fillDataStructFromTFObjectRSGroupProvisioningGroup_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } +func fillDataStructFromTFObjectRSGroupVaultVaultRecord(data *groupVaultVaultRecordDataRS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Color = obj.Attributes()["color"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) + data.Types = obj.Attributes()["types"].(basetypes.ListValue) + data.URL = obj.Attributes()["url"].(basetypes.StringValue) + data.Username = obj.Attributes()["username"].(basetypes.StringValue) + data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -883,6 +955,142 @@ func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, ob data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) } +func fillDataStructFromTFObjectRSNestedAuthInternalAccount(data *nestedAuthInternalAccountDataRS, obj types.Object) { + data.AccountDirectoryUUID = obj.Attributes()["account_directory_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) + data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) + data.Company = obj.Attributes()["company"].(basetypes.StringValue) + data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) + data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedClientOAuth2ClientPermission(data *nestedClientOAuth2ClientPermissionDataRS, obj types.Object) { + data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) + data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) + data.Value = obj.Attributes()["value"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataRS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) + data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) + data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) + data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) + data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) + data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) + data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) + data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) + data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) +} + +func fillDataStructFromTFObjectRSNestedGroupGroupAudit(data *nestedGroupGroupAuditDataRS, obj types.Object) { + data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) + data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) + data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) + data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) + data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) + data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataRS, obj types.Object) { + data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataRS, obj types.Object) { + data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedProvisioningGroupOnSystemDataRS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) + data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) +} + +func fillDataStructFromTFObjectRSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataRS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSNestedProvisioningProvisionedSystemSyncLog(data *nestedProvisioningProvisionedSystemSyncLogDataRS, obj types.Object) { + data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) + data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) + data.Log = obj.Attributes()["log"].(basetypes.StringValue) + data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) +} + +func fillDataStructFromTFObjectRSNestedServiceaccountServiceAccountGroup(data *nestedServiceaccountServiceAccountGroupDataRS, obj types.Object) { + data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) + data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) +} + +func fillDataStructFromTFObjectRSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataRS, obj types.Object) { + data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) + data.Links = obj.Attributes()["links"].(basetypes.ListValue) + data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) + data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) + data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) + data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) + data.Response = obj.Attributes()["response"].(basetypes.StringValue) + data.Status = obj.Attributes()["status"].(basetypes.Int64Value) + data.Time = obj.Attributes()["time"].(basetypes.Int64Value) + data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) +} + func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataRS, obj types.Object) { data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) @@ -1192,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1367,43 +1575,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { @@ -1620,6 +1828,18 @@ func fillDataStructFromTFObjectRSVaultMoveVaultRecord_shareDuration(data *vaultM data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) } +func fillDataStructFromTFObjectRSVaultPasswordMetadata(data *vaultPasswordMetadataDataRS, obj types.Object) { + data.Dictionary = obj.Attributes()["dictionary"].(basetypes.BoolValue) + data.Duplicate = obj.Attributes()["duplicate"].(basetypes.BoolValue) + data.Hash = obj.Attributes()["hash"].(basetypes.StringValue) + data.Length = obj.Attributes()["length"].(basetypes.Int64Value) + data.LowerCount = obj.Attributes()["lower_count"].(basetypes.Int64Value) + data.NumberCount = obj.Attributes()["number_count"].(basetypes.Int64Value) + data.SpecialCount = obj.Attributes()["special_count"].(basetypes.Int64Value) + data.Strength = obj.Attributes()["strength"].(basetypes.Int64Value) + data.UpperCount = obj.Attributes()["upper_count"].(basetypes.Int64Value) +} + func fillDataStructFromTFObjectRSVaultVault(data *vaultVaultDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1687,6 +1907,7 @@ func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultV data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index c2446df..12c1617 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -16,7 +16,7 @@ import ( func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -39,7 +39,7 @@ func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -74,7 +74,7 @@ func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ErrorReport_applicationErrorParametersable @@ -84,7 +84,7 @@ func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -98,7 +98,7 @@ func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -127,7 +127,7 @@ func tfObjectToTKHDSLinkable(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NonLinkableable @@ -137,7 +137,7 @@ func tfObjectToTKHDSNonLinkable(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -152,7 +152,7 @@ func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -163,9 +163,82 @@ func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types return tkh, diags } +func tfObjectToTKHDSAccountVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -232,7 +305,7 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -252,7 +325,7 @@ func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -268,7 +341,7 @@ func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -373,7 +446,7 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -399,7 +472,7 @@ func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -411,7 +484,7 @@ func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, o func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -431,7 +504,7 @@ func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -473,7 +546,7 @@ func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -486,7 +559,7 @@ func tfObjectToTKHDSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -533,7 +606,7 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -554,7 +627,7 @@ func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -596,7 +669,7 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -622,7 +695,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable @@ -632,7 +705,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, r func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable @@ -642,7 +715,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable @@ -652,7 +725,7 @@ func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, re func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -774,7 +847,7 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -794,7 +867,7 @@ func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recu func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -812,7 +885,7 @@ func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -828,7 +901,7 @@ func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, o func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -857,7 +930,7 @@ func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -870,7 +943,7 @@ func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -890,7 +963,7 @@ func tfObjectToTKHDSAuthStoredAccountAttributes(ctx context.Context, recurse boo func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -958,7 +1031,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -978,7 +1051,7 @@ func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1032,7 +1105,7 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1046,9 +1119,82 @@ func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context return tkh, diags } +func tfObjectToTKHDSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1108,7 +1254,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["o_auth2_client"].IsNull() { val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1116,7 +1262,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["ldap_client"].IsNull() { val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1124,7 +1270,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["saml2_client"].IsNull() { val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1141,7 +1287,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1161,7 +1307,7 @@ func tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx context.Context, func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1208,7 +1354,7 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1229,6 +1375,11 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex diags.Append(d...) tkh.SetGroups(val) } + { + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } { val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1240,7 +1391,7 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1264,7 +1415,7 @@ func tfObjectToTKHDSClientLdapClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1303,7 +1454,7 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1356,7 +1507,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1376,7 +1527,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1434,7 +1585,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1454,7 +1605,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1470,7 +1621,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.C func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientOAuth2Client_attributesable @@ -1480,7 +1631,7 @@ func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse b func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1503,7 +1654,7 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientSaml2Client_attributesable @@ -1511,9 +1662,82 @@ func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bo return tkh, diags } +func tfObjectToTKHDSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1568,35 +1792,35 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["o_id_c_directory"].IsNull() { val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1612,7 +1836,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1632,7 +1856,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1672,7 +1896,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1692,7 +1916,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryStatusReport(ctx context.Context, r func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1737,7 +1961,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1757,7 +1981,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1783,7 +2007,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx context.Cont func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1799,7 +2023,7 @@ func tfObjectToTKHDSDirectoryInternalDirectory(ctx context.Context, recurse bool func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1850,7 +2074,7 @@ func tfObjectToTKHDSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.DirectoryMaintenanceDirectoryable @@ -1860,7 +2084,7 @@ func tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx context.Context, recurse b func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1886,7 +2110,7 @@ func tfObjectToTKHDSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1951,7 +2175,7 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1971,7 +2195,7 @@ func tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1992,7 +2216,7 @@ func tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx context.Context, rec func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2013,7 +2237,7 @@ func tfObjectToTKHDSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2127,7 +2351,7 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2211,7 +2435,7 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2231,7 +2455,7 @@ func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2243,7 +2467,7 @@ func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2260,7 +2484,7 @@ func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, o func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2276,7 +2500,7 @@ func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, rec func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2288,7 +2512,7 @@ func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2359,7 +2583,7 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2420,7 +2644,7 @@ func tfObjectToTKHDSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2458,7 +2682,7 @@ func tfObjectToTKHDSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2478,7 +2702,7 @@ func tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2494,7 +2718,7 @@ func tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx context.Context, recur func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2521,7 +2745,7 @@ func tfObjectToTKHDSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2579,7 +2803,7 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2591,7 +2815,7 @@ func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bo func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2611,7 +2835,7 @@ func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2642,7 +2866,7 @@ func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2658,7 +2882,7 @@ func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2679,7 +2903,7 @@ func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Conte func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2736,7 +2960,7 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2756,7 +2980,7 @@ func tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2772,7 +2996,7 @@ func tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2809,7 +3033,7 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2829,7 +3053,7 @@ func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2845,7 +3069,7 @@ func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2862,7 +3086,7 @@ func tfObjectToTKHDSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2882,7 +3106,7 @@ func tfObjectToTKHDSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2914,7 +3138,7 @@ func tfObjectToTKHDSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2934,7 +3158,7 @@ func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2963,7 +3187,7 @@ func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3109,7 +3333,7 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3135,7 +3359,7 @@ func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3182,7 +3406,7 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3202,7 +3426,7 @@ func tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3216,14 +3440,14 @@ func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3243,20 +3467,93 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse tkh.SetPermissions(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetColor(val) } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLogo(val) + tkh.SetShareEndTime(val) } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) } @@ -3267,7 +3564,7 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3287,7 +3584,7 @@ func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3344,7 +3641,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["vault_record_launchpad_tile"].IsNull() { val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3352,7 +3649,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["sso_application_launchpad_tile"].IsNull() { val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3360,7 +3657,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["manual_launchpad_tile"].IsNull() { val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3377,7 +3674,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3395,14 +3692,702 @@ func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return tkh, diags } -func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { +func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable + tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + { + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadManualLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + return tkh, diags +} + +func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LicenseKeyHubLicenseInfoable + tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHDSNestedAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.AuthInternalAccountable + tkh = keyhubmodel.NewAuthInternalAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccountPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + }) + diags.Append(d...) + tkh.SetDirectoryRotatingPassword(val) + } + { + val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryType(val) + } + tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastModifiedAt(val) + } + { + val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + diags.Append(d...) + tkh.SetLicenseRole(val) + } + tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupAccountGroupable + tkh = keyhubmodel.NewGroupAccountGroup() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHDSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHDSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) + } + if recurse { + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable - tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3421,184 +4406,230 @@ func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo diags.Append(d...) tkh.SetPermissions(val) } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOwner(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadManualLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + if recurse { + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } -func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { +func tfObjectToTKHDSNestedProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LicenseKeyHubLicenseInfoable - tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) + tkh.SetLinks(val) } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetCustomerDomains(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetDetails(val) + tkh.SetLastActive(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) diags.Append(d...) - tkh.SetExpirationTime(val) + tkh.SetValidity(val) + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHDSNestedProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetFeatures(val) + tkh.SetLinks(val) } { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetIssueTime(val) + tkh.SetPermissions(val) } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetNotBeforeTime(val) + tkh.SetCreatedAt(val) + } + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + if recurse { + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { +func tfObjectToTKHDSNestedServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkerable - tkh = keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetLevel(val) + tkh.SetLinks(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetMarkItemMarkerType(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetParameters(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { +func tfObjectToTKHDSNestedWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkersable - tkh = keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetMarkers(val) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + if recurse { + { + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3646,7 +4677,7 @@ func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Conte func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3674,7 +4705,7 @@ func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Conte func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3702,7 +4733,7 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Contex func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable @@ -3712,7 +4743,7 @@ func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx con func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable @@ -3722,7 +4753,7 @@ func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx contex func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3739,7 +4770,7 @@ func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, r func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3769,7 +4800,7 @@ func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Cont func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationNotificationable @@ -3779,7 +4810,7 @@ func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3799,7 +4830,7 @@ func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3816,7 +4847,7 @@ func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Conte func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3836,7 +4867,7 @@ func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context. func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3856,7 +4887,7 @@ func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3872,7 +4903,7 @@ func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3888,7 +4919,7 @@ func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Conte func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3926,7 +4957,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3946,7 +4977,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3962,7 +4993,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4012,7 +5043,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4066,7 +5097,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4086,7 +5117,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4102,7 +5133,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4122,7 +5153,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4153,7 +5184,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, re func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4173,7 +5204,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4189,7 +5220,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4236,7 +5267,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable @@ -4246,7 +5277,7 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4270,7 +5301,7 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, r func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4290,7 +5321,7 @@ func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Cont func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4311,7 +5342,7 @@ func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, re func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4367,7 +5398,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4387,7 +5418,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4426,7 +5457,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4448,7 +5479,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4474,7 +5505,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4516,7 +5547,7 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, rec func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4529,7 +5560,7 @@ func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4550,7 +5581,7 @@ func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4589,7 +5620,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4609,7 +5640,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4630,7 +5661,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx co func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4648,7 +5679,7 @@ func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4698,7 +5729,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4718,7 +5749,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4734,7 +5765,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4751,7 +5782,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4770,7 +5801,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4785,7 +5816,7 @@ func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recu func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4801,7 +5832,7 @@ func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, rec func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4825,7 +5856,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse boo func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4842,7 +5873,7 @@ func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, re func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4907,67 +5938,67 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["provisioned_a_d"].IsNull() { val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -4983,7 +6014,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5003,7 +6034,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Con func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5047,7 +6078,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, rec func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5067,7 +6098,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5111,7 +6142,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, re func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5131,7 +6162,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx cont func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5147,7 +6178,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx c func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5194,7 +6225,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context. func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5208,7 +6239,7 @@ func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Co func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5230,7 +6261,7 @@ func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5242,7 +6273,7 @@ func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5258,7 +6289,7 @@ func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Co func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5274,7 +6305,7 @@ func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx con func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5290,7 +6321,7 @@ func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx cont func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5306,7 +6337,7 @@ func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Contex func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5319,7 +6350,7 @@ func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5336,7 +6367,7 @@ func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestAcceptModificationRequestParametersable @@ -5346,7 +6377,7 @@ func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Conte func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5363,7 +6394,7 @@ func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse boo func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5383,7 +6414,7 @@ func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recur func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5395,7 +6426,7 @@ func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5407,7 +6438,7 @@ func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recu func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5419,7 +6450,7 @@ func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable @@ -5429,7 +6460,7 @@ func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Cont func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5445,7 +6476,7 @@ func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantAccessRequestable @@ -5455,7 +6486,7 @@ func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantApplicationRequestable @@ -5465,7 +6496,7 @@ func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5488,7 +6519,7 @@ func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, rec func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5505,7 +6536,7 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurs func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5522,7 +6553,7 @@ func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5543,7 +6574,7 @@ func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinGroupRequestable @@ -5553,7 +6584,7 @@ func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, o func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinVaultRequestable @@ -5563,7 +6594,7 @@ func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, o func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5614,299 +6645,299 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["grant_application_request"].IsNull() { val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["setup_authorizing_group_request"].IsNull() { val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5922,7 +6953,7 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5942,7 +6973,7 @@ func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Contex func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5963,7 +6994,7 @@ func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Con func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestPasswordResetRequestable @@ -5973,7 +7004,7 @@ func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse boo func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6004,7 +7035,7 @@ func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recur func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6016,7 +7047,7 @@ func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6028,7 +7059,7 @@ func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6040,7 +7071,7 @@ func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, r func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestReviewAuditRequestable @@ -6050,7 +7081,7 @@ func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6066,7 +7097,7 @@ func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6090,7 +7121,7 @@ func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6114,7 +7145,7 @@ func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable @@ -6124,7 +7155,7 @@ func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context. func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable @@ -6134,7 +7165,7 @@ func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Conte func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferAuditorGroupRequestable @@ -6144,7 +7175,7 @@ func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recu func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6160,7 +7191,7 @@ func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable @@ -6170,7 +7201,7 @@ func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable @@ -6180,7 +7211,7 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx co func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable @@ -6190,7 +7221,7 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable @@ -6200,7 +7231,7 @@ func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6216,7 +7247,7 @@ func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx conte func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6259,7 +7290,7 @@ func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, rec func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6271,7 +7302,7 @@ func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, rec func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6334,7 +7365,7 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6380,7 +7411,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6400,7 +7431,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx context func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6416,7 +7447,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx cont func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6436,7 +7467,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6474,7 +7505,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recu func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6494,7 +7525,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6506,7 +7537,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recu func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6522,12 +7553,17 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C diags.Append(d...) tkh.SetGroups(val) } + { + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSecret(val) + } return tkh, diags } func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6549,7 +7585,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable @@ -6559,7 +7595,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable @@ -6569,7 +7605,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6581,7 +7617,7 @@ func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6600,7 +7636,7 @@ func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6643,7 +7679,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6663,7 +7699,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6684,7 +7720,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6702,7 +7738,7 @@ func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6735,7 +7771,7 @@ func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6746,9 +7782,29 @@ func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return tkh, diags } +func tfObjectToTKHDSVaultPasswordMetadata(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultPasswordMetadataable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultPasswordMetadataable + tkh = keyhubmodel.NewVaultPasswordMetadata() + tkh.SetDictionary(objAttrs["dictionary"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDuplicate(objAttrs["duplicate"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHash(objAttrs["hash"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLength(int64PToInt32P(objAttrs["length"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLowerCount(int64PToInt32P(objAttrs["lower_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNumberCount(int64PToInt32P(objAttrs["number_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSpecialCount(int64PToInt32P(objAttrs["special_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetStrength(int64PToInt32P(objAttrs["strength"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUpperCount(int64PToInt32P(objAttrs["upper_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6788,7 +7844,7 @@ func tfObjectToTKHDSVaultVault(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.VaultVaultHolderable @@ -6798,7 +7854,7 @@ func tfObjectToTKHDSVaultVaultHolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6871,7 +7927,7 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6891,7 +7947,7 @@ func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6932,7 +7988,7 @@ func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6952,7 +8008,7 @@ func tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6967,7 +8023,7 @@ func tfObjectToTKHDSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6984,7 +8040,7 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7009,7 +8065,7 @@ func tfObjectToTKHDSVaultVaultRecordShareSummary(ctx context.Context, recurse bo func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7025,6 +8081,11 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu diags.Append(d...) tkh.SetParent(val) } + { + val, d := tfObjectToTKHDSVaultPasswordMetadata(ctx, recurse, objAttrs["password_metadata"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordMetadata(val) + } { val, d := tfObjectToTKHDSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) @@ -7055,7 +8116,7 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7072,7 +8133,7 @@ func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7084,7 +8145,7 @@ func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7101,7 +8162,7 @@ func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7204,7 +8265,7 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7255,7 +8316,7 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7275,7 +8336,7 @@ func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7291,7 +8352,7 @@ func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7311,7 +8372,7 @@ func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7329,7 +8390,7 @@ func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7429,7 +8490,7 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 1a0cb81..a096a00 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -16,7 +16,7 @@ import ( func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -39,7 +39,7 @@ func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -74,7 +74,7 @@ func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ErrorReport_applicationErrorParametersable @@ -84,7 +84,7 @@ func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -98,7 +98,7 @@ func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.Linkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -127,7 +127,7 @@ func tfObjectToTKHRSLinkable(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NonLinkableable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NonLinkableable @@ -137,7 +137,7 @@ func tfObjectToTKHRSNonLinkable(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RestLinkable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -152,7 +152,7 @@ func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Obj func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -163,9 +163,82 @@ func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types return tkh, diags } +func tfObjectToTKHRSAccountVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -232,7 +305,7 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -252,7 +325,7 @@ func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -268,7 +341,7 @@ func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -373,7 +446,7 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -399,7 +472,7 @@ func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, obj func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -411,7 +484,7 @@ func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, o func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -431,7 +504,7 @@ func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -473,7 +546,7 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -486,7 +559,7 @@ func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -533,7 +606,7 @@ func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVa func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -554,7 +627,7 @@ func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -599,7 +672,7 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -625,7 +698,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, ob func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable @@ -635,7 +708,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, r func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable @@ -645,7 +718,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recur func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable @@ -655,7 +728,7 @@ func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, re func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -692,7 +765,7 @@ func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVa func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -712,7 +785,7 @@ func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recu func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -730,7 +803,7 @@ func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -746,7 +819,7 @@ func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, o func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -775,7 +848,7 @@ func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -788,7 +861,7 @@ func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -808,7 +881,7 @@ func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse boo func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -876,7 +949,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -896,7 +969,7 @@ func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -950,7 +1023,7 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -964,9 +1037,82 @@ func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context return tkh, diags } +func tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1026,7 +1172,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["o_auth2_client"].IsNull() { val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1034,7 +1180,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["ldap_client"].IsNull() { val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1042,7 +1188,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o if !objAttrs["saml2_client"].IsNull() { val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val @@ -1059,7 +1205,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1079,7 +1225,7 @@ func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1126,7 +1272,7 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1170,7 +1316,7 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1194,7 +1340,7 @@ func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1233,7 +1379,7 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1286,7 +1432,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1306,7 +1452,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Cont func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1364,7 +1510,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1384,7 +1530,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1400,7 +1546,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientOAuth2Client_attributesable @@ -1410,7 +1556,7 @@ func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse b func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1433,7 +1579,7 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ClientSaml2Client_attributesable @@ -1441,9 +1587,82 @@ func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bo return tkh, diags } +func tfObjectToTKHRSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + diags.Append(d...) + tkh.SetColor(val) + } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetShareEndTime(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1498,35 +1717,35 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["o_id_c_directory"].IsNull() { val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1542,7 +1761,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1562,7 +1781,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1602,7 +1821,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1622,7 +1841,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, r func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1667,7 +1886,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1687,7 +1906,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1713,7 +1932,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Cont func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1729,7 +1948,7 @@ func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1780,7 +1999,7 @@ func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.DirectoryMaintenanceDirectoryable @@ -1790,7 +2009,7 @@ func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse b func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1816,7 +2035,7 @@ func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1869,7 +2088,7 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1889,7 +2108,7 @@ func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1910,7 +2129,7 @@ func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, rec func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -1931,7 +2150,7 @@ func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bo func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2045,7 +2264,7 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2107,7 +2326,7 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2127,7 +2346,7 @@ func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2139,7 +2358,7 @@ func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2156,7 +2375,7 @@ func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, o func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2172,7 +2391,7 @@ func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, rec func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2184,7 +2403,7 @@ func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVa func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2255,7 +2474,7 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2316,7 +2535,7 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2354,7 +2573,7 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2374,7 +2593,7 @@ func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2390,7 +2609,7 @@ func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recur func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2417,7 +2636,7 @@ func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2475,7 +2694,7 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2487,7 +2706,7 @@ func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bo func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2507,7 +2726,7 @@ func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2538,7 +2757,7 @@ func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2554,7 +2773,7 @@ func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2575,7 +2794,7 @@ func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Conte func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2632,7 +2851,7 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2652,7 +2871,7 @@ func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2668,7 +2887,7 @@ func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2705,7 +2924,7 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2725,7 +2944,7 @@ func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2741,7 +2960,7 @@ func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2758,7 +2977,7 @@ func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2778,7 +2997,7 @@ func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2810,7 +3029,7 @@ func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2830,7 +3049,7 @@ func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -2859,7 +3078,7 @@ func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recu func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3044,7 +3263,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3070,7 +3289,7 @@ func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, obj func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3117,7 +3336,7 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3137,7 +3356,7 @@ func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3151,14 +3370,14 @@ func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHRSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3178,31 +3397,104 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse tkh.SetPermissions(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetColor(val) } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLogo(val) + tkh.SetShareEndTime(val) } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetTile(val) + tkh.SetEndDate(val) } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetTypes(val) + } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) + }) + diags.Append(d...) + tkh.SetWarningPeriod(val) + } + if recurse { + { + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetGroup(val) + } + tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetLogo(val) + } + { + val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + } + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3222,7 +3514,7 @@ func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurs func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3279,7 +3571,7 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["vault_record_launchpad_tile"].IsNull() { val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3287,7 +3579,7 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["sso_application_launchpad_tile"].IsNull() { val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val @@ -3295,14 +3587,570 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob if !objAttrs["manual_launchpad_tile"].IsNull() { val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } if recurse { { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable + tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { + tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable + tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable + tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) + } + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadManualLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() + tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + return tkh, diags +} + +func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.LicenseKeyHubLicenseInfoable + tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() + { + val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { + return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) + }) + diags.Append(d...) + tkh.SetCurrentLicenseStatus(val) + } + tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCustomerDomains(val) + } + { + val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetDetails(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpirationTime(val) + } + { + val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetFeatures(val) + } + { + val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetIssueTime(val) + } + tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetNotBeforeTime(val) + } + tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() + { + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + diags.Append(d...) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) + } + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() + return tkh, diags +} + +func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } + return tkh, diags +} + +func tfObjectToTKHRSNestedAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.AuthInternalAccountable + tkh = keyhubmodel.NewAuthInternalAccount() + { + val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.AuthInternalAccount)).AuthAccount = *(val.(*keyhubmodel.AuthAccount)) + tkh.SetTypeEscaped(dtype) + } + } + tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetActivationDeadline(val) + } + tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { + return *val.(*keyhubmodel.AuthInternalAccountStatus) + }) + diags.Append(d...) + tkh.SetStatus(val) + } + tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSNestedClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) + } + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForSystem(val) + } + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupAccountGroupable + tkh = keyhubmodel.NewGroupAccountGroup() + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.GroupAccountGroup)).GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFolder(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetProvisioningEndTime(val) + } + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) + } + { + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) + diags.Append(d...) + tkh.SetTwoFactorStatus(val) + } + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetAccounts(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetCreatedAt(val) + } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) + } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.OrganizationAccountOrganizationalUnit)).OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } + } + return tkh, diags +} + +func tfObjectToTKHRSNestedOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.OrganizationOrganizationalUnitAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + { + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetDirectory(val) + } + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3310,34 +4158,14 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return tkh, diags } -func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable - tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { - tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { +func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable - tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3356,184 +4184,208 @@ func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo diags.Append(d...) tkh.SetPermissions(val) } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetOwner(val) } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + { + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSystem(val) + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadManualLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHRSNestedProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() + { + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.ProvisioningProvisionedAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } + } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } -func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { +func tfObjectToTKHRSNestedProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LicenseKeyHubLicenseInfoable - tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() - { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) - } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCustomerDomains(val) - } + var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable + tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetDetails(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpirationTime(val) + tkh.SetLinks(val) } { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetFeatures(val) + tkh.SetPermissions(val) } { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetIssueTime(val) + tkh.SetCreatedAt(val) } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetNotBeforeTime(val) + tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { +func tfObjectToTKHRSNestedServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkerable - tkh = keyhubmodel.NewMarkItemMarker() + var tkh keyhubmodel.ServiceaccountServiceAccountGroupable + tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetLevel(val) + tkh.SetLinks(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetMarkItemMarkerType(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetParameters(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() { - return nil, diags + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + if recurse { + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { +func tfObjectToTKHRSNestedWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkersable - tkh = keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.WebhookWebhookDeliveryable + tkh = keyhubmodel.NewWebhookWebhookDelivery() { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetMarkers(val) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + { + val, d := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPayload(val) + } + tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetTriggerTime(val) + } + if recurse { + { + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3581,7 +4433,7 @@ func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Conte func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3609,7 +4461,7 @@ func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Conte func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3637,7 +4489,7 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Contex func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable @@ -3647,7 +4499,7 @@ func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx con func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable @@ -3657,7 +4509,7 @@ func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx contex func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3674,7 +4526,7 @@ func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, r func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3704,7 +4556,7 @@ func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Cont func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.NotificationNotificationable @@ -3714,7 +4566,7 @@ func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3734,7 +4586,7 @@ func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3751,7 +4603,7 @@ func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Conte func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3771,7 +4623,7 @@ func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context. func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3791,7 +4643,7 @@ func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3807,7 +4659,7 @@ func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3823,7 +4675,7 @@ func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Conte func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3850,7 +4702,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3870,7 +4722,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx con func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3886,7 +4738,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3936,7 +4788,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3968,7 +4820,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, r func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -3988,7 +4840,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx con func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4004,7 +4856,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4024,7 +4876,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Co func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4055,7 +4907,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, re func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4075,7 +4927,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4099,7 +4951,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4146,7 +4998,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable @@ -4156,7 +5008,7 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.C func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4180,7 +5032,7 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, r func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4200,7 +5052,7 @@ func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Cont func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4221,7 +5073,7 @@ func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, re func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4277,7 +5129,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4297,7 +5149,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4336,7 +5188,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4358,7 +5210,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4390,7 +5242,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4432,7 +5284,7 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, rec func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4445,7 +5297,7 @@ func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4466,7 +5318,7 @@ func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4505,7 +5357,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4525,7 +5377,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx conte func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4549,7 +5401,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4567,7 +5419,7 @@ func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4595,7 +5447,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4615,7 +5467,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Co func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4631,7 +5483,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4648,7 +5500,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Contex func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4667,7 +5519,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Co func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4682,7 +5534,7 @@ func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recu func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4698,7 +5550,7 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4722,7 +5574,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse boo func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4739,7 +5591,7 @@ func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, re func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4804,67 +5656,67 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["provisioned_a_d"].IsNull() { val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -4880,7 +5732,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4900,7 +5752,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Con func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4944,7 +5796,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, rec func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -4964,7 +5816,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5008,7 +5860,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, re func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5028,7 +5880,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx cont func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5044,7 +5896,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx c func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5094,7 +5946,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context. func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5108,7 +5960,7 @@ func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Co func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5130,7 +5982,7 @@ func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5142,7 +5994,7 @@ func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5158,7 +6010,7 @@ func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Co func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5174,7 +6026,7 @@ func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx con func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5190,7 +6042,7 @@ func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx cont func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5206,7 +6058,7 @@ func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Contex func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5219,7 +6071,7 @@ func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5236,7 +6088,7 @@ func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestAcceptModificationRequestParametersable @@ -5246,7 +6098,7 @@ func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Conte func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5263,7 +6115,7 @@ func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse boo func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5283,7 +6135,7 @@ func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recur func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5295,7 +6147,7 @@ func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5307,7 +6159,7 @@ func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recu func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5319,7 +6171,7 @@ func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable @@ -5329,7 +6181,7 @@ func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Cont func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5345,7 +6197,7 @@ func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantAccessRequestable @@ -5355,7 +6207,7 @@ func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestGrantApplicationRequestable @@ -5365,7 +6217,7 @@ func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5388,7 +6240,7 @@ func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, rec func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5405,7 +6257,7 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurs func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5422,7 +6274,7 @@ func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5443,7 +6295,7 @@ func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinGroupRequestable @@ -5453,7 +6305,7 @@ func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, o func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestJoinVaultRequestable @@ -5463,7 +6315,7 @@ func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, o func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5514,299 +6366,299 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["grant_application_request"].IsNull() { val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } if !objAttrs["setup_authorizing_group_request"].IsNull() { val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() + dtype := val.GetTypeEscaped() (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := tkh.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -5822,7 +6674,7 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5842,7 +6694,7 @@ func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Contex func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5868,7 +6720,7 @@ func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Con func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5882,7 +6734,7 @@ func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse boo func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5913,7 +6765,7 @@ func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recur func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5925,7 +6777,7 @@ func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5937,7 +6789,7 @@ func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5949,7 +6801,7 @@ func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, r func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestReviewAuditRequestable @@ -5959,7 +6811,7 @@ func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5975,7 +6827,7 @@ func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -5999,7 +6851,7 @@ func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, rec func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6023,7 +6875,7 @@ func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable @@ -6033,7 +6885,7 @@ func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context. func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable @@ -6043,7 +6895,7 @@ func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Conte func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferAuditorGroupRequestable @@ -6053,7 +6905,7 @@ func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recu func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6069,7 +6921,7 @@ func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Con func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable @@ -6079,7 +6931,7 @@ func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx contex func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable @@ -6089,7 +6941,7 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx co func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable @@ -6099,7 +6951,7 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable @@ -6109,7 +6961,7 @@ func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6125,7 +6977,7 @@ func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx conte func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6168,7 +7020,7 @@ func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, rec func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6180,7 +7032,7 @@ func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, rec func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6243,7 +7095,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6289,7 +7141,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6309,7 +7161,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx context func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6325,7 +7177,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx cont func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6345,7 +7197,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6383,7 +7235,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recu func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6403,7 +7255,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6415,7 +7267,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recu func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6444,7 +7296,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6466,7 +7318,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable @@ -6476,7 +7328,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnable func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable @@ -6486,7 +7338,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx cont func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6498,7 +7350,7 @@ func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6517,7 +7369,7 @@ func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6560,7 +7412,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6580,7 +7432,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6601,7 +7453,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Contex func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6619,7 +7471,7 @@ func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6652,7 +7504,7 @@ func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objV func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6663,9 +7515,29 @@ func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recu return tkh, diags } +func tfObjectToTKHRSVaultPasswordMetadata(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultPasswordMetadataable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.VaultPasswordMetadataable + tkh = keyhubmodel.NewVaultPasswordMetadata() + tkh.SetDictionary(objAttrs["dictionary"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDuplicate(objAttrs["duplicate"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetHash(objAttrs["hash"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLength(int64PToInt32P(objAttrs["length"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetLowerCount(int64PToInt32P(objAttrs["lower_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNumberCount(int64PToInt32P(objAttrs["number_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSpecialCount(int64PToInt32P(objAttrs["special_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetStrength(int64PToInt32P(objAttrs["strength"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetUpperCount(int64PToInt32P(objAttrs["upper_count"].(basetypes.Int64Value).ValueInt64Pointer())) + return tkh, diags +} + func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6705,7 +7577,7 @@ func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.O func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultHolderable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } var tkh keyhubmodel.VaultVaultHolderable @@ -6715,7 +7587,7 @@ func tfObjectToTKHRSVaultVaultHolder(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6788,7 +7660,7 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6808,7 +7680,7 @@ func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6849,7 +7721,7 @@ func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, ob func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6869,7 +7741,7 @@ func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordSecretsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6885,7 +7757,7 @@ func tfObjectToTKHRSVaultVaultRecordSecrets(ctx context.Context, recurse bool, o func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6902,7 +7774,7 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordShareSummaryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6927,7 +7799,7 @@ func tfObjectToTKHRSVaultVaultRecordShareSummary(ctx context.Context, recurse bo func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecord_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6944,6 +7816,11 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu diags.Append(d...) tkh.SetParent(val) } + { + val, d := tfObjectToTKHRSVaultPasswordMetadata(ctx, recurse, objAttrs["password_metadata"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetPasswordMetadata(val) + } { val, d := tfObjectToTKHRSVaultVaultRecordSecrets(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) @@ -6980,7 +7857,7 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -6997,7 +7874,7 @@ func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7009,7 +7886,7 @@ func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal t func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7026,7 +7903,7 @@ func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7129,7 +8006,7 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7180,7 +8057,7 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7200,7 +8077,7 @@ func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, r func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7216,7 +8093,7 @@ func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7236,7 +8113,7 @@ func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7254,7 +8131,7 @@ func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, ob func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() @@ -7354,7 +8231,7 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics - if objVal.IsNull() { + if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index edf6fe8..55a6d6c 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -221,6 +221,72 @@ func tkhToTFObjectDSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) return objVal, diags } +func tkhToTFObjectDSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = accountVaultVaultRecordAttrTypesDSRecurse + } else { + attrs = accountVaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1196,6 +1262,72 @@ func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh k return objVal, diags } +func tkhToTFObjectDSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientApplicationVaultVaultRecordAttrTypesDSRecurse + } else { + attrs = clientApplicationVaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1394,6 +1526,11 @@ func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh diags.Append(d...) obj["groups"] = val } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } { val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) diags.Append(d...) @@ -1754,6 +1891,72 @@ func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.C return objVal, diags } +func tkhToTFObjectDSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesDSRecurse + } else { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["deleted_vault_holder_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1815,10 +2018,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1826,18 +2029,18 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["o_id_c_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) obj["l_d_a_p_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3748,19 +3951,27 @@ func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh k return objVal, diags } -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse + attrs = groupVaultVaultRecordAttrTypesDSRecurse } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDS + attrs = groupVaultVaultRecordAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3781,40 +3992,98 @@ func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val + obj["types"] = val } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse + attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS + attrs = launchpadDisplayedLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val + } + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -3948,7 +4217,775 @@ func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyh return val }) diags.Append(d...) - obj["items"] = val + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse + } else { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesDSRecurse + } else { + attrs = markItemMarkerAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesDSRecurse + } else { + attrs = markItemMarker_parametersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesDSRecurse + } else { + attrs = markItemMarkersAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedAuthInternalAccountAttrTypesDSRecurse + } else { + attrs = nestedAuthInternalAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_directory_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedClientOAuth2ClientPermissionAttrTypesDSRecurse + } else { + attrs = nestedClientOAuth2ClientPermissionAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) + diags.Append(d...) + obj["for_group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + diags.Append(d...) + obj["for_system"] = val + } + obj["value"] = stringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupAccountGroupAttrTypesDSRecurse + } else { + attrs = nestedGroupAccountGroupAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupGroupAccountAttrTypesDSRecurse + } else { + attrs = nestedGroupGroupAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupGroupAuditAttrTypesDSRecurse + } else { + attrs = nestedGroupGroupAuditAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["additional"] = types.ListNull(types.StringType) + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse + } else { + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesDSRecurse + } else { + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["organizational_unit_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedProvisioningGroupOnSystemAttrTypesDSRecurse + } else { + attrs = nestedProvisioningGroupOnSystemAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3956,19 +4993,27 @@ func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse + attrs = nestedProvisioningProvisionedAccountAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesDS + attrs = nestedProvisioningProvisionedAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3989,220 +5034,176 @@ func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.L diags.Append(d...) obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesDSRecurse } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadManualLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - - obj := make(map[string]attr.Value) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS + obj["provisioned_system_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } - - obj := make(map[string]attr.Value) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["additional"] = types.ListNull(types.StringType) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse + attrs = nestedServiceaccountServiceAccountGroupAttrTypesDSRecurse } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS + attrs = nestedServiceaccountServiceAccountGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } + obj["service_account_uuid"] = types.StringNull() { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["details"] = val + obj["links"] = val } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["features"] = val - } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesDSRecurse - } else { - attrs = markItemMarkerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) - { - val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val + obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarker_parametersAttrTypesDSRecurse + attrs = nestedWebhookWebhookDeliveryAttrTypesDSRecurse } else { - attrs = markItemMarker_parametersAttrTypesDS + attrs = nestedWebhookWebhookDeliveryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = markItemMarkersAttrTypesDSRecurse - } else { - attrs = markItemMarkersAttrTypesDS + { + val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["webhook_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["markers"] = val + obj["permissions"] = val + } + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5877,16 +6878,22 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) @@ -5895,22 +6902,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) @@ -5919,10 +6920,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6808,16 +7809,40 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_provisioned_system_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) @@ -6826,28 +7851,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["review_audit_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) @@ -6855,12 +7880,6 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["abstract_organizational_unit_modification_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) @@ -6874,28 +7893,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["setup_nested_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -6904,28 +7923,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_service_account_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) @@ -6934,58 +7935,58 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["remove_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -6994,40 +7995,40 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["enable_technical_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7848,6 +8849,11 @@ func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, diags.Append(d...) obj["groups"] = val } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -8160,6 +9166,34 @@ func tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubm return objVal, diags } +func tkhToTFObjectDSVaultPasswordMetadata(recurse bool, tkh keyhubmodel.VaultPasswordMetadataable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultPasswordMetadataAttrTypesDSRecurse + } else { + attrs = vaultPasswordMetadataAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["dictionary"] = types.BoolPointerValue(tkh.GetDictionary()) + obj["duplicate"] = types.BoolPointerValue(tkh.GetDuplicate()) + obj["hash"] = types.StringPointerValue(tkh.GetHash()) + obj["length"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLength())) + obj["lower_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLowerCount())) + obj["number_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNumberCount())) + obj["special_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetSpecialCount())) + obj["strength"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStrength())) + obj["upper_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUpperCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectDSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -8497,6 +9531,11 @@ func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm diags.Append(d...) obj["parent"] = val } + { + val, d := tkhToTFObjectDSVaultPasswordMetadata(recurse, tkh.GetPasswordMetadata()) + diags.Append(d...) + obj["password_metadata"] = val + } { val, d := tkhToTFObjectDSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index f1a56f3..ec5be40 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -221,6 +221,71 @@ func tkhToTFObjectRSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) return objVal, diags } +func tkhToTFObjectRSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = accountVaultVaultRecordAttrTypesRSRecurse + } else { + attrs = accountVaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1122,6 +1187,71 @@ func tkhToTFObjectRSCertificateCertificate_additionalObjects(recurse bool, tkh k return objVal, diags } +func tkhToTFObjectRSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientApplicationVaultVaultRecordAttrTypesRSRecurse + } else { + attrs = clientApplicationVaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1647,6 +1777,71 @@ func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.C return objVal, diags } +func tkhToTFObjectRSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesRSRecurse + } else { + attrs = deletedVaultHolderVaultVaultRecordAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["deleted_vault_holder_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1699,10 +1894,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1710,18 +1905,18 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["o_id_c_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) obj["l_d_a_p_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3504,19 +3699,27 @@ func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh k return objVal, diags } -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse + attrs = groupVaultVaultRecordAttrTypesRSRecurse } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRS + attrs = groupVaultVaultRecordAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3537,36 +3740,37 @@ func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val + obj["types"] = val } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse + attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS + attrs = launchpadDisplayedLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -3574,19 +3778,75 @@ func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) + { + elemType := attrs["logo"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["logo"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse + } else { + attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags } func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { @@ -3695,19 +3955,433 @@ func tkhToTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTilePrimerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse + } else { + attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadManualLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["title"] = types.StringPointerValue(tkh.GetTitle()) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["uri"] = types.StringPointerValue(tkh.GetUri()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse + } else { + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse + } else { + attrs = licenseKeyHubLicenseInfoAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) + obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) + obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) + { + elemType := attrs["customer_domains"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["customer_domains"] = val + } + { + elemType := attrs["details"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["details"] = val + } + obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) + { + elemType := attrs["features"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["features"] = val + } + obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) + obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) + obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) + obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) + obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) + obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) + obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkerAttrTypesRSRecurse + } else { + attrs = markItemMarkerAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + { + val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + diags.Append(d...) + obj["parameters"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarker_parametersAttrTypesRSRecurse + } else { + attrs = markItemMarker_parametersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = markItemMarkersAttrTypesRSRecurse + } else { + attrs = markItemMarkersAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedAuthInternalAccountAttrTypesRSRecurse + } else { + attrs = nestedAuthInternalAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["account_directory_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) + obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) + obj["company"] = types.StringPointerValue(tkh.GetCompany()) + obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) + obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedClientOAuth2ClientPermissionAttrTypesRSRecurse + } else { + attrs = nestedClientOAuth2ClientPermissionAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["client_application_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupAccountGroupAttrTypesRSRecurse + } else { + attrs = nestedGroupAccountGroupAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["account_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + { + val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) + diags.Append(d...) + obj["folder"] = val + } + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = nestedGroupGroupAccountAttrTypesRSRecurse + } else { + attrs = nestedGroupGroupAccountAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse + attrs = nestedGroupGroupAuditAttrTypesRSRecurse } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesRS + attrs = nestedGroupGroupAuditAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["group_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -3728,220 +4402,325 @@ func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.L diags.Append(d...) obj["permissions"] = val } + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS + attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val + if recurse { + { + val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } + obj["account_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse } else { - attrs = launchpadManualLaunchpadTileAttrTypesRS + attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + if recurse { + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["organizational_unit_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse + attrs = nestedProvisioningGroupOnSystemAttrTypesRSRecurse } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS + attrs = nestedProvisioningGroupOnSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse + attrs = nestedProvisioningProvisionedAccountAttrTypesRSRecurse } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS + attrs = nestedProvisioningProvisionedAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["provisioned_system_uuid"] = types.StringNull() + obj["uuid"] = withUuidToTF(tkh) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesRSRecurse } else { - attrs = licenseKeyHubLicenseInfoAttrTypesRS + attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } + obj["provisioned_system_uuid"] = types.StringNull() { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["details"] = val + obj["links"] = val } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["features"] = val + obj["permissions"] = val } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) + obj["log"] = types.StringPointerValue(tkh.GetLog()) + obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarkerAttrTypesRSRecurse + attrs = nestedServiceaccountServiceAccountGroupAttrTypesRSRecurse } else { - attrs = markItemMarkerAttrTypesRS + attrs = nestedServiceaccountServiceAccountGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + if recurse { + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } + } + obj["service_account_uuid"] = types.StringNull() { - val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["parameters"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = markItemMarker_parametersAttrTypesRSRecurse + attrs = nestedWebhookWebhookDeliveryAttrTypesRSRecurse } else { - attrs = markItemMarker_parametersAttrTypesRS + attrs = nestedWebhookWebhookDeliveryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = markItemMarkersAttrTypesRSRecurse - } else { - attrs = markItemMarkersAttrTypesRS + { + val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + obj["additional_objects"] = val + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["webhook_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["markers"] = val + obj["permissions"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) + diags.Append(d...) + obj["payload"] = val } + obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) + obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) + obj["response"] = types.StringPointerValue(tkh.GetResponse()) + obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) + obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) + obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5479,16 +6258,22 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) @@ -5497,22 +6282,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) @@ -5521,10 +6300,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6370,16 +7149,40 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_provisioned_system_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_provisioned_system_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + diags.Append(d...) + obj["revoke_admin_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + diags.Append(d...) + obj["grant_group_on_system_request_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) @@ -6388,28 +7191,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["review_audit_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) @@ -6417,12 +7220,6 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["abstract_organizational_unit_modification_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) @@ -6436,28 +7233,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["setup_nested_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -6466,28 +7263,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_service_account_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) @@ -6496,58 +7275,58 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["remove_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -6556,40 +7335,40 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["enable_technical_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7682,6 +8461,34 @@ func tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubm return objVal, diags } +func tkhToTFObjectRSVaultPasswordMetadata(recurse bool, tkh keyhubmodel.VaultPasswordMetadataable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = vaultPasswordMetadataAttrTypesRSRecurse + } else { + attrs = vaultPasswordMetadataAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + obj["dictionary"] = types.BoolPointerValue(tkh.GetDictionary()) + obj["duplicate"] = types.BoolPointerValue(tkh.GetDuplicate()) + obj["hash"] = types.StringPointerValue(tkh.GetHash()) + obj["length"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLength())) + obj["lower_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetLowerCount())) + obj["number_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNumberCount())) + obj["special_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetSpecialCount())) + obj["strength"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStrength())) + obj["upper_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUpperCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + func tkhToTFObjectRSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -8014,6 +8821,11 @@ func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm } obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) + { + val, d := tkhToTFObjectRSVaultPasswordMetadata(recurse, tkh.GetPasswordMetadata()) + diags.Append(d...) + obj["password_metadata"] = val + } { val, d := tkhToTFObjectRSVaultVaultRecordSecrets(recurse, tkh.GetSecret()) diags.Append(d...) diff --git a/internal/provider/group_resource.go b/internal/provider/group_resource.go index d5a52a3..062b340 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/group_resource.go @@ -34,7 +34,7 @@ type groupResource struct { } func (r *groupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = req.ProviderTypeName + "_group" + resp.TypeName = ProviderName + "_group" } func (r *groupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 836a4ce..86a8232 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -29,6 +29,8 @@ type KeyHubProvider struct { version string } +const ProviderName = "keyhubpreview" + // KeyHubProviderModel describes the provider data model. type KeyHubProviderModel struct { Issuer types.String `tfsdk:"issuer"` @@ -37,8 +39,9 @@ type KeyHubProviderModel struct { } func (p *KeyHubProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse) { - resp.TypeName = "keyhubpreview" + resp.TypeName = ProviderName resp.Version = p.version + tflog.Info(ctx, "Provider name set to "+resp.TypeName) } func (p *KeyHubProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse) { @@ -149,7 +152,7 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe ctx = tflog.MaskFieldValuesWithFieldKeys(ctx, "keyhub_clientsecret") tflog.Info(ctx, "Connecting to Topicus KeyHub") - adapter, err := keyhub.NewKeyHubRequestAdapter(http.DefaultClient, issuer, clientid, clientsecret) + adapter, err := keyhub.NewKeyHubRequestAdapter(&http.Client{}, issuer, clientid, clientsecret) if err != nil { resp.Diagnostics.AddError( "Unable to create Topicus KeyHub API client", @@ -170,6 +173,7 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe func (p *KeyHubProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ NewGroupResource, + NewVaultRecordResource, } } diff --git a/internal/provider/resource-vaultrecord.go b/internal/provider/resource-vaultrecord.go new file mode 100644 index 0000000..0f84fb7 --- /dev/null +++ b/internal/provider/resource-vaultrecord.go @@ -0,0 +1,262 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/diag" + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-framework/types/basetypes" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubgroup "github.com/topicuskeyhub/sdk-go/group" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &vaultRecordResource{} + _ resource.ResourceWithImportState = &vaultRecordResource{} + _ resource.ResourceWithConfigure = &vaultRecordResource{} +) + +func NewVaultRecordResource() resource.Resource { + return &vaultRecordResource{} +} + +// groupResource defines the resource implementation. +type vaultRecordResource struct { + client *keyhub.KeyHubClient +} + +func (r *vaultRecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_vaultrecord" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *vaultRecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsGroupVaultVaultRecord(true), + } +} + +func (r *vaultRecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *vaultRecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkhGroup, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub vaultrecord") + newWrapper := keyhubmodels.NewVaultVaultRecordLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.VaultVaultRecordable{newTkh}) + wrapper, err := r.client.Group().ByGroupidInt64(*tkhGroup.GetLinks()[0].GetId()).Vault().Record().Post( + ctx, newWrapper, &keyhubgroup.ItemVaultRecordRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubgroup.ItemVaultRecordRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf = fillGroupUuid(ctx, tf, data) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *vaultRecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + uuid := data.UUID.ValueString() + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading vaultrecord from Topicus KeyHub by UUID") + wrapper, err := r.client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ + Uuid: []string{uuid}, + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", &uuid, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf = fillGroupUuid(ctx, tf, data) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *vaultRecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkhGroup, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Updating Topicus KeyHub vaultrecord") + tkh, err := r.client.Group().ByGroupidInt64(*tkhGroup.GetLinks()[0].GetId()).Vault().Record().ByIdInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( + ctx, newTkh, &keyhubgroup.ItemVaultRecordRecordItemRequestBuilderPutRequestConfiguration{ + QueryParameters: &keyhubgroup.ItemVaultRecordRecordItemRequestBuilderPutQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf = fillGroupUuid(ctx, tf, data) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + tflog.Info(ctx, "Updated a Topicus KeyHub vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *vaultRecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data groupGroupDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Deleting vaultrecord from Topicus KeyHub") + err := r.client.Group().ByGroupidInt64(-1).Vault().Record().ByIdInt64(-1).WithUrl(getSelfLink(data.Links).Href.ValueString()).Delete(ctx, nil) + if !isHttpStatusCodeOk(ctx, 404, err, &resp.Diagnostics) { + return + } + tflog.Info(ctx, "Deleted vaultrecord from Topicus KeyHub") +} + +func (r *vaultRecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} + +func getSelfLink(linksAttr basetypes.ListValue) restLinkDataRS { + var links restLinkDataRS + fillDataStructFromTFObjectRSRestLink(&links, linksAttr.Elements()[0].(basetypes.ObjectValue)) + return links +} + +func isHttpStatusCodeOk(ctx context.Context, status int32, err error, diags *diag.Diagnostics) bool { + if err != nil { + report, ok := err.(keyhubmodels.ErrorReportable) + if !ok || *report.GetCode() != status { + diags.AddError("Client Error", fmt.Sprintf("Unexpected status code: %s", errorReportToString(ctx, err))) + return false + } + } + return true +} + +func fillGroupUuid(ctx context.Context, tf basetypes.ObjectValue, data groupVaultVaultRecordDataRS) basetypes.ObjectValue { + obj := tf.Attributes() + obj["group_uuid"] = types.StringValue(data.GroupUUID.ValueString()) + return types.ObjectValueMust(tf.AttributeTypes(ctx), obj) +} + +func collectAdditional(additionalObjects basetypes.ObjectValue) []string { + ret := make([]string, 0) + for name, attr := range additionalObjects.Attributes() { + if !attr.IsNull() && !attr.IsUnknown() { + ret = append(ret, name) + } + } + return ret +} From e414adc8545bae9e1633e64f20e906a87e668929 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 13 Oct 2023 08:44:18 +0200 Subject: [PATCH 15/34] First generated resources --- docs/resources/group.md | 110 ++--- docs/resources/vaultrecord.md | 2 +- .../provider-install-verification/main.tf | 45 +- internal/provider/full-data-struct-ds.go | 70 +-- internal/provider/full-data-struct-rs.go | 70 +-- internal/provider/full-helpers.go | 101 ++-- internal/provider/full-object-attrs-ds.go | 70 +-- internal/provider/full-object-attrs-rs.go | 70 +-- internal/provider/full-schema-ds.go | 188 ++++---- internal/provider/full-schema-rs.go | 440 +++++++++++++----- .../provider/full-tf-to-data-struct-ds.go | 70 +-- .../provider/full-tf-to-data-struct-rs.go | 70 +-- internal/provider/full-tf-to-tkh-ds.go | 282 +++++------ internal/provider/full-tf-to-tkh-rs.go | 282 +++++------ internal/provider/full-tkh-to-tf-ds.go | 282 +++++------ internal/provider/full-tkh-to-tf-rs.go | 282 +++++------ internal/provider/provider.go | 3 +- .../{group_resource.go => resource-group.go} | 106 ++--- .../provider/resource-group_vaultrecord.go | 225 +++++++++ internal/provider/resource-grouponsystem.go | 167 +++++++ internal/provider/resource-vaultrecord.go | 262 ----------- main.go | 5 +- 22 files changed, 1771 insertions(+), 1431 deletions(-) rename internal/provider/{group_resource.go => resource-group.go} (52%) create mode 100644 internal/provider/resource-group_vaultrecord.go create mode 100644 internal/provider/resource-grouponsystem.go delete mode 100644 internal/provider/resource-vaultrecord.go diff --git a/docs/resources/group.md b/docs/resources/group.md index d2c5c60..14b0e90 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -104,16 +104,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -135,16 +135,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -187,13 +187,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--account_permissions)) +- `shared_secret_uuid` (String) ### Nested Schema for `additional_objects.client_permissions.items.permissions.attributes` @@ -214,7 +214,7 @@ Optional: ### Nested Schema for `additional_objects.client_permissions.items.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -247,7 +247,6 @@ Optional: Required: -- `client_client_application_primer_type` (String) - `name` (String) Optional: @@ -262,6 +261,7 @@ Optional: Read-Only: +- `client_client_application_primer_type` (String) - `last_modified_at` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) @@ -275,11 +275,11 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) @@ -296,13 +296,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--account_permissions)) +- `shared_secret_uuid` (String) ### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` @@ -341,7 +341,7 @@ Optional: ### Nested Schema for `additional_objects.administered_clients.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -391,7 +391,6 @@ Optional: - `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_internal_ldap)) - `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap)) - `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -404,6 +403,7 @@ Read-Only: - `external_uuid` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) - `uuid` (String) @@ -492,11 +492,11 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) @@ -533,7 +533,7 @@ Read-Only: ### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -566,7 +566,7 @@ Required: ### Nested Schema for `additional_objects.administered_systems.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -659,7 +659,7 @@ Read-Only: ### Nested Schema for `additional_objects.authorized_groups.items.uuid.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -682,7 +682,7 @@ Optional: ### Nested Schema for `additional_objects.authorized_groups.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -716,20 +716,20 @@ Optional: Optional: - `activation_required` (Boolean) -- `owner_uuid` (String) -- `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) +- `owner_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) +- `technical_administrator_uuid` (String) -### Nested Schema for `additional_objects.clients.items.permissions` +### Nested Schema for `additional_objects.clients.items.technical_administrator_uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -738,7 +738,7 @@ Optional: -### Nested Schema for `additional_objects.clients.items.permissions` +### Nested Schema for `additional_objects.clients.items.technical_administrator_uuid` Optional: @@ -779,7 +779,6 @@ Optional: - `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_internal_ldap)) - `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap)) - `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -792,6 +791,7 @@ Read-Only: - `external_uuid` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) - `uuid` (String) @@ -880,11 +880,11 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) @@ -921,7 +921,7 @@ Read-Only: ### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -954,7 +954,7 @@ Required: ### Nested Schema for `additional_objects.content_administered_systems.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1040,7 +1040,7 @@ Optional: ### Nested Schema for `additional_objects.helpdesk.items.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1093,16 +1093,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -1116,16 +1116,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -1149,7 +1149,6 @@ Optional: Required: -- `client_client_application_primer_type` (String) - `name` (String) Optional: @@ -1164,6 +1163,7 @@ Optional: Read-Only: +- `client_client_application_primer_type` (String) - `last_modified_at` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) @@ -1177,11 +1177,11 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) @@ -1198,13 +1198,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--account_permissions)) +- `shared_secret_uuid` (String) ### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` @@ -1243,7 +1243,7 @@ Optional: ### Nested Schema for `additional_objects.owned_clients.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1284,7 +1284,6 @@ Optional: - `active` (Boolean) - `default_directory` (Boolean) -- `directory_account_directory_primer_type` (String) - `helpdesk_group_uuid` (String) - `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) @@ -1296,6 +1295,7 @@ Optional: Read-Only: - `account_validity_supported` (Boolean) +- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) - `uuid` (String) @@ -1363,7 +1363,7 @@ Read-Only: ### Nested Schema for `additional_objects.owned_directories.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1415,7 +1415,7 @@ Read-Only: ### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1454,19 +1454,19 @@ Required: Optional: - `description` (String) -- `parent_uuid` (String) Read-Only: - `depth` (Number) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `parent_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) - `uuid` (String) ### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1516,7 +1516,6 @@ Optional: - `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_internal_ldap)) - `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap)) - `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -1529,6 +1528,7 @@ Read-Only: - `external_uuid` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) +- `provisioning_provisioned_system_primer_type` (String) - `uuid` (String) @@ -1617,11 +1617,11 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) @@ -1658,7 +1658,7 @@ Read-Only: ### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1691,7 +1691,7 @@ Required: ### Nested Schema for `additional_objects.owned_systems.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1752,7 +1752,6 @@ Optional: - `account_uuid` (String) - `action` (String) - `comment` (String) -- `rights` (String) Read-Only: @@ -1765,12 +1764,13 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) - `nested` (Boolean) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) +- `rights` (String) - `username` (String) ### Nested Schema for `additional_objects.recent_audits.items.submitted_by.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1793,7 +1793,7 @@ Optional: ### Nested Schema for `additional_objects.recent_audits.items.submitted_by` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1834,12 +1834,12 @@ Optional: - `active` (Boolean) - `description` (String) -- `password_uuid` (String) - `technical_administrator_uuid` (String) Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `password_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) - `username` (String) - `uuid` (String) @@ -1847,7 +1847,7 @@ Read-Only: ### Nested Schema for `additional_objects.service_accounts.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1912,7 +1912,7 @@ Read-Only: ### Nested Schema for `additional_objects.systems.items.permissions.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1935,7 +1935,7 @@ Optional: ### Nested Schema for `additional_objects.systems.items.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1998,7 +1998,7 @@ Read-Only: ### Nested Schema for `additional_objects.vault.records.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -2021,7 +2021,7 @@ Optional: ### Nested Schema for `additional_objects.vault.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -2086,7 +2086,7 @@ Read-Only: ### Nested Schema for `additional_objects.webhooks.items.uuid` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -2123,7 +2123,7 @@ Read-Only: ### Nested Schema for `audit_config.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -2146,7 +2146,7 @@ Optional: ### Nested Schema for `links` -Optional: +Read-Only: - `href` (String) - `id` (Number) diff --git a/docs/resources/vaultrecord.md b/docs/resources/vaultrecord.md index 6219b4d..d499572 100644 --- a/docs/resources/vaultrecord.md +++ b/docs/resources/vaultrecord.md @@ -143,7 +143,7 @@ Optional: ### Nested Schema for `links` -Optional: +Read-Only: - `href` (String) - `id` (Number) diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 508cf8a..a158767 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -24,11 +24,11 @@ provider "keyhubpreview" { clientsecret = var.keyhub_secret_local } -data "keyhubpreview_group" "test" { - # uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" - uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" - additional = ["accounts"] -} +#data "keyhubpreview_group" "test" { +# # uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" +# uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" +# additional = ["accounts"] +#} #output "data_group" { # value = data.keyhubpreview_group.test @@ -42,29 +42,28 @@ data "keyhubpreview_group" "test" { # value = data.keyhubpreview_client.test #} -resource "keyhubpreview_vaultrecord" "terrarecord" { - name = "Terraform Record" - group_uuid = data.keyhubpreview_group.test.uuid +#resource "keyhubpreview_vaultrecord" "terrarecord" { +# name = "Terraform Record" +# group_uuid = data.keyhubpreview_group.test.uuid +# additional_objects = { +# secret = { +# password = "test3" +# } +# } +#} + +resource "keyhubpreview_group" "terra" { + name = "Terraform x" additional_objects = { - secret = { - password = "test3" + accounts = { + items = [{ + uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" + rights = "MANAGER" + }] } } } -#resource "keyhubpreview_group" "terra" { -# name = "Terraform" -# additional_objects = { -# accounts = { -# items = [{ -# uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" -# rights = "MANAGER" -# }] -# } -# } -# admin = true -#} -# #output "resource_group" { # value = resource.keyhubpreview_group.terra #} diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index d3f3edf..006c563 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -644,10 +644,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - InternalDirectory types.Object `tfsdk:"internal_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1265,8 +1265,8 @@ type launchpadLaunchpadTileDataDS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecord types.Object `tfsdk:"vault_record"` - VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } @@ -2077,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2353,43 +2353,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index a97a206..427567a 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -609,10 +609,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - InternalDirectory types.Object `tfsdk:"internal_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1210,8 +1210,8 @@ type launchpadLaunchpadTileDataRS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } @@ -1939,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2213,43 +2213,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index ff37f4d..7fb0344 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -21,7 +21,7 @@ import ( keyhubdirectory "github.com/topicuskeyhub/sdk-go/directory" keyhubgroup "github.com/topicuskeyhub/sdk-go/group" keyhubgroupclassification "github.com/topicuskeyhub/sdk-go/groupclassification" - keyhubmodel "github.com/topicuskeyhub/sdk-go/models" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" keyhuborganizationalunit "github.com/topicuskeyhub/sdk-go/organizationalunit" keyhubserviceaccount "github.com/topicuskeyhub/sdk-go/serviceaccount" keyhubsystem "github.com/topicuskeyhub/sdk-go/system" @@ -155,7 +155,7 @@ func parseCast[T any, Z any](val basetypes.StringValue, parser func(string) (Z, return caster(parsed), diags } -func findFirst[T keyhubmodel.Linkableable](ctx context.Context, wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { +func findFirst[T keyhubmodels.Linkableable](ctx context.Context, wrapper interface{ GetItems() []T }, name string, uuid *string, err error) (T, diag.Diagnostics) { var diags diag.Diagnostics var noVal T if err != nil { @@ -170,7 +170,7 @@ func findFirst[T keyhubmodel.Linkableable](ctx context.Context, wrapper interfac } -func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { +func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.GroupGroupPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -180,14 +180,14 @@ func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel. Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.GroupGroupable](ctx, wrapper, "group", uuid, err) + ret, diag := findFirst[keyhubmodels.GroupGroupable](ctx, wrapper, "group", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.GroupGroup).GroupGroupPrimer, diag + return &ret.(*keyhubmodels.GroupGroup).GroupGroupPrimer, diag } -func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { +func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -197,14 +197,14 @@ func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.DirectoryAccountDirectoryable](ctx, wrapper, "directory", uuid, err) + ret, diag := findFirst[keyhubmodels.DirectoryAccountDirectoryable](ctx, wrapper, "directory", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.DirectoryAccountDirectory).DirectoryAccountDirectoryPrimer, diag + return &ret.(*keyhubmodels.DirectoryAccountDirectory).DirectoryAccountDirectoryPrimer, diag } -func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { +func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -214,14 +214,14 @@ func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *s Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.OrganizationOrganizationalUnitable](ctx, wrapper, "organizational unit", uuid, err) + ret, diag := findFirst[keyhubmodels.OrganizationOrganizationalUnitable](ctx, wrapper, "organizational unit", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.OrganizationOrganizationalUnit).OrganizationOrganizationalUnitPrimer, diag + return &ret.(*keyhubmodels.OrganizationOrganizationalUnit).OrganizationOrganizationalUnitPrimer, diag } -func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { +func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.CertificateCertificatePrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -231,14 +231,14 @@ func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) ( Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.CertificateCertificateable](ctx, wrapper, "certificate", uuid, err) + ret, diag := findFirst[keyhubmodels.CertificateCertificateable](ctx, wrapper, "certificate", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.CertificateCertificate).CertificateCertificatePrimer, diag + return &ret.(*keyhubmodels.CertificateCertificate).CertificateCertificatePrimer, diag } -func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { +func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -248,14 +248,14 @@ func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *st Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.ProvisioningProvisionedSystemable](ctx, wrapper, "provisioned system", uuid, err) + ret, diag := findFirst[keyhubmodels.ProvisioningProvisionedSystemable](ctx, wrapper, "provisioned system", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.ProvisioningProvisionedSystem).ProvisioningProvisionedSystemPrimer, diag + return &ret.(*keyhubmodels.ProvisioningProvisionedSystem).ProvisioningProvisionedSystemPrimer, diag } -func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { +func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.GroupGroupClassificationPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -265,14 +265,14 @@ func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.GroupGroupClassificationable](ctx, wrapper, "group classification", uuid, err) + ret, diag := findFirst[keyhubmodels.GroupGroupClassificationable](ctx, wrapper, "group classification", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.GroupGroupClassification).GroupGroupClassificationPrimer, diag + return &ret.(*keyhubmodels.GroupGroupClassification).GroupGroupClassificationPrimer, diag } -func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { +func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.ClientClientApplicationPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -282,22 +282,22 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.ClientClientApplicationable](ctx, wrapper, "client application", uuid, err) + ret, diag := findFirst[keyhubmodels.ClientClientApplicationable](ctx, wrapper, "client application", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.ClientClientApplication).ClientClientApplicationPrimer, diag + return &ret.(*keyhubmodels.ClientClientApplication).ClientClientApplicationPrimer, diag } -func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { +func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.AuthAccountPrimerable, diag.Diagnostics) { account, diag := findAuthAccountByUUID(ctx, uuid) if account == nil { return account, diag } - return &account.(*keyhubmodel.AuthAccount).AuthAccountPrimer, diag + return &account.(*keyhubmodels.AuthAccount).AuthAccountPrimer, diag } -func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthAccountable, diag.Diagnostics) { +func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodels.AuthAccountable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -307,10 +307,10 @@ func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodel.AuthA Uuid: []string{*uuid}, }, }) - return findFirst[keyhubmodel.AuthAccountable](ctx, wrapper, "account", uuid, err) + return findFirst[keyhubmodels.AuthAccountable](ctx, wrapper, "account", uuid, err) } -func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { +func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -320,14 +320,14 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.ServiceaccountServiceAccountable](ctx, wrapper, "service account", uuid, err) + ret, diag := findFirst[keyhubmodels.ServiceaccountServiceAccountable](ctx, wrapper, "service account", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.ServiceaccountServiceAccount).ServiceaccountServiceAccountPrimer, diag + return &ret.(*keyhubmodels.ServiceaccountServiceAccount).ServiceaccountServiceAccountPrimer, diag } -func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { +func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.VaultVaultRecordPrimerable, diag.Diagnostics) { if uuid == nil || *uuid == "" { return nil, diag.Diagnostics{} } @@ -337,15 +337,15 @@ func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhub Uuid: []string{*uuid}, }, }) - ret, diag := findFirst[keyhubmodel.VaultVaultRecordable](ctx, wrapper, "vault record", uuid, err) + ret, diag := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vault record", uuid, err) if ret == nil { return ret, diag } - return &ret.(*keyhubmodel.VaultVaultRecord).VaultVaultRecordPrimer, diag + return &ret.(*keyhubmodels.VaultVaultRecord).VaultVaultRecordPrimer, diag } func errorReportToString(ctx context.Context, err error) string { - report, ok := err.(keyhubmodel.ErrorReportable) + report, ok := err.(keyhubmodels.ErrorReportable) if !ok { return err.Error() } @@ -368,3 +368,36 @@ func stringPointerToString(input *string) string { } return "" } + +func getSelfLink(linksAttr basetypes.ListValue) restLinkDataRS { + var links restLinkDataRS + fillDataStructFromTFObjectRSRestLink(&links, linksAttr.Elements()[0].(basetypes.ObjectValue)) + return links +} + +func isHttpStatusCodeOk(ctx context.Context, status int32, err error, diags *diag.Diagnostics) bool { + if err != nil { + report, ok := err.(keyhubmodels.ErrorReportable) + if !ok || *report.GetCode() != status { + diags.AddError("Client Error", fmt.Sprintf("Unexpected status code: %s", errorReportToString(ctx, err))) + return false + } + } + return true +} + +func setAttributeValue(ctx context.Context, tf basetypes.ObjectValue, key string, value attr.Value) basetypes.ObjectValue { + obj := tf.Attributes() + obj[key] = value + return types.ObjectValueMust(tf.AttributeTypes(ctx), obj) +} + +func collectAdditional(additionalObjects basetypes.ObjectValue) []string { + ret := make([]string, 0) + for name, attr := range additionalObjects.Attributes() { + if !attr.IsNull() && !attr.IsUnknown() { + ret = append(ret, name) + } + } + return ret +} diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index eaeb53e..21d19c6 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -613,10 +613,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} return objectAttrs } @@ -1201,8 +1201,8 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1977,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} return objectAttrs } @@ -2224,43 +2224,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 0f9907f..b743374 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -576,10 +576,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} return objectAttrs } @@ -1144,8 +1144,8 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1835,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} return objectAttrs } @@ -2080,43 +2080,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index a40f55e..2ced78b 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -1534,8 +1534,8 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), Computed: true, } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ @@ -1546,8 +1546,8 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), Computed: true, } return schemaAttrs @@ -3039,14 +3039,14 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), Computed: true, } - schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), - Computed: true, - } schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), Computed: true, } + schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Computed: true, + } schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), Computed: true, @@ -4936,24 +4936,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Computed: true, } - schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ @@ -4964,8 +4964,8 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Computed: true, } return schemaAttrs @@ -5385,152 +5385,152 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - Computed: true, - } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), - Computed: true, - } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - Computed: true, - } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), - Computed: true, - } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, } schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), - Computed: true, - } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), - Computed: true, - } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } - schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Computed: true, + } + schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + Computed: true, + } + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + Computed: true, + } + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), Computed: true, } schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Computed: true, + } + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Computed: true, + } schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Computed: true, + } + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } return schemaAttrs diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index f7f3dbd..f7167bc 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -51,6 +51,7 @@ func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute ElementType: types.StringType, Optional: true, } + schemaAttrs["exception"] = rsschema.StringAttribute{ Optional: true, } @@ -64,6 +65,7 @@ func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]rsschema.Attribute { @@ -92,6 +94,7 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -99,6 +102,7 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + return schemaAttrs } func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute { @@ -108,16 +112,20 @@ func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["href"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["id"] = rsschema.Int64Attribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } schemaAttrs["rel"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["type_escaped"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -151,6 +159,7 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -158,6 +167,7 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, @@ -188,6 +198,7 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem ElementType: types.StringType, Computed: true, } + schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } @@ -214,6 +225,7 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -221,6 +233,7 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -307,6 +320,7 @@ func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -332,6 +346,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -339,6 +354,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, } @@ -353,7 +369,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -361,6 +377,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute }, Computed: true, } + schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, } @@ -368,7 +385,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["directory_name"] = rsschema.StringAttribute{ Computed: true, @@ -377,10 +394,10 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, } schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["directory_type"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["email"] = rsschema.StringAttribute{ Computed: true, @@ -395,7 +412,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, } schemaAttrs["license_role"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["locale"] = rsschema.StringAttribute{ Computed: true, @@ -407,7 +424,7 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ Computed: true, @@ -428,6 +445,7 @@ func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema. ElementType: types.Int64Type, Required: true, } + return schemaAttrs } func resourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]rsschema.Attribute { @@ -445,6 +463,7 @@ func resourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]rssc }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { @@ -456,6 +475,7 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -463,6 +483,7 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, } @@ -477,7 +498,7 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -662,6 +683,7 @@ func resourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[str }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]rsschema.Attribute { @@ -688,10 +710,12 @@ func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribu ElementType: types.StringType, Optional: true, } + schemaAttrs["operations"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } + schemaAttrs["type_escaped"] = rsschema.StringAttribute{ Optional: true, } @@ -715,6 +739,7 @@ func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rss }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { @@ -732,6 +757,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -739,6 +765,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, } @@ -750,6 +777,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema ElementType: types.StringType, Optional: true, } + schemaAttrs["expiration"] = rsschema.StringAttribute{ Computed: true, } @@ -775,6 +803,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -785,6 +814,7 @@ func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[ }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { @@ -796,6 +826,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -803,6 +834,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, } @@ -814,6 +846,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs ElementType: types.StringType, Optional: true, } + schemaAttrs["expiration"] = rsschema.StringAttribute{ Computed: true, } @@ -863,6 +896,7 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -870,6 +904,7 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, @@ -900,6 +935,7 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri ElementType: types.StringType, Computed: true, } + schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } @@ -926,6 +962,7 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -933,6 +970,7 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -947,6 +985,7 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem ElementType: types.StringType, Optional: true, } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -986,6 +1025,7 @@ func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { @@ -997,6 +1037,7 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1004,6 +1045,7 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -1018,6 +1060,7 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r ElementType: types.StringType, Optional: true, } + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1072,7 +1115,7 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri Default: booldefault.StaticBool(true), } schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -1087,6 +1130,7 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att }, Computed: true, } + schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), Optional: true, @@ -1119,7 +1163,7 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att Default: booldefault.StaticBool(true), } schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ Computed: true, @@ -1148,6 +1192,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1155,6 +1200,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -1174,6 +1220,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { @@ -1191,6 +1238,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1198,6 +1246,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -1221,6 +1270,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(re }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -1274,6 +1324,7 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1281,6 +1332,7 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, @@ -1311,6 +1363,7 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str ElementType: types.StringType, Computed: true, } + schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } @@ -1337,6 +1390,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1344,6 +1398,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1388,8 +1443,8 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), Optional: true, } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ @@ -1400,8 +1455,8 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), Optional: true, } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), Optional: true, } return schemaAttrs @@ -1414,6 +1469,7 @@ func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) m }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { @@ -1425,6 +1481,7 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1432,6 +1489,7 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1478,6 +1536,7 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1485,6 +1544,7 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ Optional: true, } @@ -1516,6 +1576,7 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -1652,7 +1713,7 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr } schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Optional: true, + Computed: true, } schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, @@ -1676,6 +1737,7 @@ func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[strin }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -1698,6 +1760,7 @@ func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rs }, Optional: true, } + schemaAttrs["group_count"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -1720,6 +1783,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1727,6 +1791,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1746,6 +1811,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), Optional: true, + Computed: true, } schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ Computed: true, @@ -1769,7 +1835,9 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { ElementType: types.StringType, Computed: true, } + schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, } schemaAttrs["description"] = rsschema.StringAttribute{ @@ -1789,6 +1857,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Optional: true, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, } schemaAttrs["private_group"] = rsschema.BoolAttribute{ @@ -1835,7 +1904,7 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr Required: true, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ Computed: true, @@ -1856,7 +1925,7 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr Required: true, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -1871,6 +1940,7 @@ func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[strin }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rsschema.Attribute { @@ -1923,6 +1993,7 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1930,12 +2001,14 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), }, Optional: true, } + schemaAttrs["comment"] = rsschema.StringAttribute{ Optional: true, } @@ -1977,6 +2050,7 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1984,6 +2058,7 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -2015,7 +2090,7 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, } schemaAttrs["rights"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Computed: true, @@ -2031,6 +2106,7 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2038,10 +2114,13 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["months"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Computed: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2052,6 +2131,7 @@ func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string] }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2117,6 +2197,7 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2124,6 +2205,7 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } @@ -2177,6 +2259,7 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche ElementType: types.StringType, Optional: true, } + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -2206,6 +2289,7 @@ func resourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) ma }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { @@ -2217,6 +2301,7 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2224,6 +2309,7 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } @@ -2267,6 +2353,7 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2274,6 +2361,7 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -2288,10 +2376,10 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -2303,6 +2391,7 @@ func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2328,6 +2417,7 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2335,6 +2425,7 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } @@ -2348,6 +2439,7 @@ func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2400,6 +2492,7 @@ func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rssch }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { @@ -2411,6 +2504,7 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2418,6 +2512,7 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -2437,6 +2532,7 @@ func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2447,12 +2543,14 @@ func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[str }, Optional: true, } + schemaAttrs["segments"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsSegmentCount(recurse), }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2580,6 +2678,7 @@ func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema. }, Optional: true, } + schemaAttrs["overdue_audit_groups"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -2622,6 +2721,7 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2629,6 +2729,7 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -2653,6 +2754,7 @@ func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[ }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2681,6 +2783,7 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2688,6 +2791,7 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, @@ -2718,6 +2822,7 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. ElementType: types.StringType, Computed: true, } + schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } @@ -2738,6 +2843,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2745,6 +2851,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -2757,6 +2864,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string ElementType: types.StringType, Optional: true, } + schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), Optional: true, @@ -2777,6 +2885,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[strin }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { @@ -2794,6 +2903,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2801,6 +2911,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -2820,17 +2931,18 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema ElementType: types.StringType, Optional: true, } + schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), - Optional: true, - } schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), Optional: true, } + schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Optional: true, + } schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), Optional: true, @@ -2845,6 +2957,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[ }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { @@ -2856,6 +2969,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2863,6 +2977,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2909,10 +3024,12 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche ElementType: types.StringType, Optional: true, } + schemaAttrs["details"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } + schemaAttrs["expiration_time"] = rsschema.StringAttribute{ Optional: true, } @@ -2920,6 +3037,7 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche ElementType: types.StringType, Optional: true, } + schemaAttrs["issue_time"] = rsschema.StringAttribute{ Optional: true, } @@ -2977,6 +3095,7 @@ func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attrib }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { @@ -3028,6 +3147,7 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3035,6 +3155,7 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -3065,7 +3186,7 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem } schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Optional: true, + Computed: true, } schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, @@ -3096,7 +3217,7 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem Required: true, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ Computed: true, @@ -3117,7 +3238,7 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem Required: true, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -3142,6 +3263,7 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3149,12 +3271,14 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), }, Optional: true, } + schemaAttrs["comment"] = rsschema.StringAttribute{ Optional: true, } @@ -3240,6 +3364,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3247,6 +3372,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } @@ -3305,6 +3431,7 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3312,6 +3439,7 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["created_at"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -3348,6 +3476,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3355,6 +3484,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } @@ -3387,6 +3517,7 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3394,6 +3525,7 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookPush(false), Optional: true, @@ -3504,10 +3636,12 @@ func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool ElementType: types.StringType, Optional: true, } + schemaAttrs["groups"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } + schemaAttrs["request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), Optional: true, @@ -3526,6 +3660,7 @@ func resourceSchemaAttrsNotificationNotifications(recurse bool) map[string]rssch }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]rsschema.Attribute { @@ -3547,6 +3682,7 @@ func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]rsschema.Attribute { @@ -3555,6 +3691,7 @@ func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]rsschema.Attribute { @@ -3593,6 +3730,7 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(rec }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3618,6 +3756,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3625,6 +3764,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } @@ -3642,7 +3782,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] Required: true, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -3670,6 +3810,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(rec }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3688,6 +3829,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bo }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { @@ -3699,6 +3841,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3706,6 +3849,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, } @@ -3721,6 +3865,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recu ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3818,6 +3963,7 @@ func resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { @@ -3857,6 +4003,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3864,6 +4011,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } @@ -3892,6 +4040,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) m }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { @@ -3903,6 +4052,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3910,6 +4060,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } @@ -3930,6 +4081,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string] ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3997,6 +4149,7 @@ func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map }, Optional: true, } + schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -4019,6 +4172,7 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4026,6 +4180,7 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, } @@ -4047,6 +4202,7 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recur }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4093,6 +4249,7 @@ func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bo }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4194,6 +4351,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4201,6 +4359,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -4258,24 +4417,24 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Optional: true, } - schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ @@ -4286,8 +4445,8 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Optional: true, } return schemaAttrs @@ -4300,6 +4459,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse boo }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { @@ -4311,6 +4471,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4318,6 +4479,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -4345,6 +4507,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recur ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { @@ -4362,6 +4525,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4369,6 +4533,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["created_at"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -4395,6 +4560,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recu }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4467,6 +4633,7 @@ func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string] }, Optional: true, } + schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -4676,6 +4843,7 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4683,6 +4851,7 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -4706,152 +4875,152 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - Optional: true, - } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), - Optional: true, - } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - Optional: true, - } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), - Optional: true, - } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, } schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), - Optional: true, - } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), - Optional: true, - } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } - schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Optional: true, + } + schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + Optional: true, + } + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + Optional: true, + } + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), Optional: true, } schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Optional: true, + } + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Optional: true, + } schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + Optional: true, + } + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } return schemaAttrs @@ -4864,6 +5033,7 @@ func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4906,6 +5076,7 @@ func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[stri ElementType: types.StringType, Optional: true, } + schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -5030,7 +5201,7 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st Computed: true, } schemaAttrs["current_rights"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -5065,6 +5236,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5072,6 +5244,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -5095,7 +5268,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Optional: true, } schemaAttrs["password_uuid"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["password_rotation"] = rsschema.StringAttribute{ Required: true, @@ -5120,6 +5293,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5127,6 +5301,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } @@ -5149,6 +5324,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -5167,6 +5343,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]rsschema.Attribute { @@ -5178,6 +5355,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5185,6 +5363,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -5212,6 +5391,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurs ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]rsschema.Attribute { @@ -5273,6 +5453,7 @@ func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attr ElementType: types.Int64Type, Optional: true, } + schemaAttrs["key_hub_version"] = rsschema.StringAttribute{ Optional: true, } @@ -5293,6 +5474,7 @@ func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5300,6 +5482,7 @@ func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } @@ -5321,6 +5504,7 @@ func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -5433,6 +5617,7 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5440,6 +5625,7 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["access_available"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -5454,6 +5640,7 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attribute { @@ -5475,6 +5662,7 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5482,6 +5670,7 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, @@ -5512,6 +5701,7 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri ElementType: types.StringType, Computed: true, } + schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } @@ -5531,6 +5721,7 @@ func resourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema.Attribute { @@ -5542,6 +5733,7 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5549,6 +5741,7 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, @@ -5573,6 +5766,7 @@ func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[ ElementType: types.StringType, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]rsschema.Attribute { @@ -5614,6 +5808,7 @@ func resourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]rs }, Optional: true, } + schemaAttrs["parent"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), Optional: true, @@ -5700,6 +5895,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5707,6 +5903,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -5770,6 +5967,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu ElementType: types.StringType, Optional: true, } + schemaAttrs["url"] = rsschema.StringAttribute{ Required: true, } @@ -5799,6 +5997,7 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5806,6 +6005,7 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookPush(false), Optional: true, @@ -5838,6 +6038,7 @@ func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[ }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -5856,6 +6057,7 @@ func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]r }, Optional: true, } + return schemaAttrs } func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema.Attribute { diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 2353ef2..29ba992 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -486,10 +486,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -948,8 +948,8 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } @@ -1538,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1715,43 +1715,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 3777f29..bb36a6e 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -451,10 +451,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -893,8 +893,8 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } @@ -1400,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1575,43 +1575,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 12c1617..4451bf8 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -1792,11 +1792,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1816,11 +1816,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3638,19 +3638,19 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } - if !objAttrs["vault_record_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } @@ -5938,43 +5938,43 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5994,11 +5994,11 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6645,299 +6645,299 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index a096a00..7a8246a 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -1717,11 +1717,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1741,11 +1741,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3568,19 +3568,19 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } - if !objAttrs["vault_record_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["vault_record_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } @@ -5656,43 +5656,43 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5712,11 +5712,11 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6366,299 +6366,299 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 55a6d6c..cd626e2 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -2018,10 +2018,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -2036,10 +2036,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["l_d_a_p_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -4172,18 +4172,18 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) - val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["vault_record_launchpad_tile"] = val - } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) diags.Append(d...) obj["sso_application_launchpad_tile"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) + val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) + diags.Append(d...) + obj["vault_record_launchpad_tile"] = val + } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkhCast) @@ -6878,34 +6878,34 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) @@ -6920,10 +6920,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_azure_tenant"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7809,40 +7809,16 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) - diags.Append(d...) - obj["password_reset_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) @@ -7851,40 +7827,34 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_application_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) @@ -7893,34 +7863,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) - diags.Append(d...) - obj["verify_internal_account_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["remove_provisioned_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) @@ -7929,22 +7893,22 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["password_reset_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["update_group_membership_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) @@ -7953,40 +7917,58 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["grant_group_on_system_request_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + diags.Append(d...) + obj["join_vault_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + diags.Append(d...) + obj["grant_access_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + diags.Append(d...) + obj["revoke_admin_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -7994,6 +7976,18 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["setup_authorizing_group_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_organizational_unit_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + diags.Append(d...) + obj["create_service_account_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) @@ -8001,34 +7995,40 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["remove_group_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + diags.Append(d...) + obj["grant_application_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index ec5be40..2b741fe 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1894,10 +1894,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1912,10 +1912,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["l_d_a_p_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3902,18 +3902,18 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp obj["logo"] = val } obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) - val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["vault_record_launchpad_tile"] = val - } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) diags.Append(d...) obj["sso_application_launchpad_tile"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) + val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) + diags.Append(d...) + obj["vault_record_launchpad_tile"] = val + } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkhCast) @@ -6258,34 +6258,34 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) @@ -6300,10 +6300,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_azure_tenant"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7149,40 +7149,16 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) - diags.Append(d...) - obj["password_reset_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) @@ -7191,40 +7167,34 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_application_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) @@ -7233,34 +7203,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) - diags.Append(d...) - obj["verify_internal_account_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["remove_provisioned_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) @@ -7269,22 +7233,22 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["password_reset_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["update_group_membership_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) @@ -7293,40 +7257,58 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["grant_group_on_system_request_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + diags.Append(d...) + obj["join_vault_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + diags.Append(d...) + obj["grant_access_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + diags.Append(d...) + obj["revoke_admin_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -7334,6 +7316,18 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["setup_authorizing_group_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_organizational_unit_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + diags.Append(d...) + obj["create_service_account_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) @@ -7341,34 +7335,40 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["remove_group_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + diags.Append(d...) + obj["grant_application_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 86a8232..8984ffb 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -172,8 +172,9 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe func (p *KeyHubProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ + NewGroupVaultrecordResource, NewGroupResource, - NewVaultRecordResource, + NewGrouponsystemResource, } } diff --git a/internal/provider/group_resource.go b/internal/provider/resource-group.go similarity index 52% rename from internal/provider/group_resource.go rename to internal/provider/resource-group.go index 062b340..2150254 100644 --- a/internal/provider/group_resource.go +++ b/internal/provider/resource-group.go @@ -1,5 +1,4 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. package provider @@ -13,8 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-log/tflog" keyhub "github.com/topicuskeyhub/sdk-go" - keyhubgroup "github.com/topicuskeyhub/sdk-go/group" - keyhubmodel "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/group" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" ) // Ensure provider defined types fully satisfy framework interfaces. @@ -28,19 +27,18 @@ func NewGroupResource() resource.Resource { return &groupResource{} } -// groupResource defines the resource implementation. type groupResource struct { client *keyhub.KeyHubClient } func (r *groupResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { resp.TypeName = ProviderName + "_group" + tflog.Info(ctx, "Registred resource "+resp.TypeName) } func (r *groupResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { resp.Schema = schema.Schema{ - MarkdownDescription: "Group resource", - Attributes: resourceSchemaAttrsGroupGroup(true), + Attributes: resourceSchemaAttrsGroupGroup(true), } } @@ -54,7 +52,7 @@ func (r *groupResource) Configure(ctx context.Context, req resource.ConfigureReq if !ok { resp.Diagnostics.AddError( - "Unexpected Resource Configure Type", + "Unexpected Data Source Configure Type", fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), ) @@ -78,31 +76,37 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, return } - newgroup, diags := tfObjectToTKHRSGroupGroup(ctx, true, obj) + newTkh, diags := tfObjectToTKHRSGroupGroup(ctx, true, obj) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - ctx = tflog.SetField(ctx, "keyhub_group_name", data.Name.ValueString()) - tflog.Debug(ctx, "Creating Topicus KeyHub group") - wrapper := keyhubmodel.NewGroupGroupLinkableWrapper() - wrapper.SetItems([]keyhubmodel.GroupGroupable{newgroup}) - createdwrapper, err := r.client.Group().Post(ctx, wrapper, nil) - if err != nil { - resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to create group, got error: %s", err)) + tflog.Info(ctx, "Creating Topicus KeyHub group") + newWrapper := keyhubmodels.NewGroupGroupLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.GroupGroupable{newTkh}) + wrapper, err := r.client.Group().Post( + ctx, newWrapper, &keyhubreq.GroupRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubreq.GroupRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.GroupGroupable](ctx, wrapper, "group", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { return } - group := createdwrapper.GetItems()[0] - tfGroup, diags := tkhToTFObjectRSGroupGroup(true, group) + tf, diags := tkhToTFObjectRSGroupGroup(true, tkh) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - fillDataStructFromTFObjectRSGroupGroup(&data, tfGroup) + fillDataStructFromTFObjectRSGroupGroup(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) - tflog.Trace(ctx, "Created a new Topicus KeyHub group") + tflog.Info(ctx, "Created a new Topicus KeyHub group") resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } @@ -113,69 +117,37 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp return } - ctx = tflog.SetField(ctx, "keyhub_group_uuid", data.UUID.ValueString()) ctx = context.WithValue(ctx, keyHubClientKey, r.client) - tflog.Debug(ctx, "Reading group from Topicus KeyHub by UUID") - groups, err := r.client.Group().Get(ctx, &keyhubgroup.GroupRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubgroup.GroupRequestBuilderGetQueryParameters{ - Uuid: []string{data.UUID.ValueString()}, - }, - }) - if err != nil { - resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to read group, got error: %s", err)) - return - } - if len(groups.GetItems()) == 0 { - resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to find group with UUID %s", data.UUID.ValueString())) + tflog.Info(ctx, "Reading group from Topicus KeyHub") + tkh, err := r.client.Group().ByGroupidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( + ctx, &keyhubreq.WithGroupItemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.WithGroupItemRequestBuilderGetQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { return } - group := groups.GetItems()[0] - tfGroup, diags := tkhToTFObjectRSGroupGroup(true, group) + + tf, diags := tkhToTFObjectRSGroupGroup(true, tkh) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return } - fillDataStructFromTFObjectRSGroupGroup(&data, tfGroup) + fillDataStructFromTFObjectRSGroupGroup(&data, tf) - // Save data into Terraform state resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) } func (r *groupResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data groupGroupDataRS - resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { - return - } - - // If applicable, this is a great opportunity to initialize any necessary - // provider client data and make a call using it. - // httpResp, err := r.client.Do(httpReq) - // if err != nil { - // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to update example, got error: %s", err)) - // return - // } - - // Save updated data into Terraform state - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + resp.Diagnostics.AddError("Cannot update a group", "Topicus KeyHub does not support updating a group via Terraform. The requested changes are not applied.") } func (r *groupResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data groupGroupDataRS - resp.Diagnostics.Append(req.State.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { - return - } - - // If applicable, this is a great opportunity to initialize any necessary - // provider client data and make a call using it. - // httpResp, err := r.client.Do(httpReq) - // if err != nil { - // resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to delete example, got error: %s", err)) - // return - // } + resp.Diagnostics.AddError("Cannot delete a group", "Topicus KeyHub does not support deleting a group via Terraform. The requested changes are not applied.") } func (r *groupResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resource.ImportStatePassthroughID(ctx, path.Root("id"), req, resp) + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) } diff --git a/internal/provider/resource-group_vaultrecord.go b/internal/provider/resource-group_vaultrecord.go new file mode 100644 index 0000000..72f4595 --- /dev/null +++ b/internal/provider/resource-group_vaultrecord.go @@ -0,0 +1,225 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/group" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &groupVaultrecordResource{} + _ resource.ResourceWithImportState = &groupVaultrecordResource{} + _ resource.ResourceWithConfigure = &groupVaultrecordResource{} +) + +func NewGroupVaultrecordResource() resource.Resource { + return &groupVaultrecordResource{} +} + +type groupVaultrecordResource struct { + client *keyhub.KeyHubClient +} + +func (r *groupVaultrecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_group_vaultrecord" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *groupVaultrecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsGroupVaultVaultRecord(true), + } +} + +func (r *groupVaultrecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *groupVaultrecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub group_vaultrecord") + newWrapper := keyhubmodels.NewVaultVaultRecordLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.VaultVaultRecordable{newTkh}) + tkhParent, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + wrapper, err := r.client.Group().ByGroupidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().Post( + ctx, newWrapper, &keyhubreq.ItemVaultRecordRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubreq.ItemVaultRecordRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "group_vaultrecord", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "group_uuid", types.StringValue(data.GroupUUID.ValueString())) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub group_vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *groupVaultrecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading group_vaultrecord from Topicus KeyHub") + tkhParent, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkh, err := r.client.Group().ByGroupidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( + ctx, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "group_uuid", types.StringValue(data.GroupUUID.ValueString())) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *groupVaultrecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Updating Topicus KeyHub group_vaultrecord") + tkhParent, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkh, err := r.client.Group().ByGroupidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( + ctx, newTkh, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutRequestConfiguration{ + QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "group_uuid", types.StringValue(data.GroupUUID.ValueString())) + fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) + + tflog.Info(ctx, "Updated a Topicus KeyHub group_vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *groupVaultrecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data groupVaultVaultRecordDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Deleting group_vaultrecord from Topicus KeyHub") + err := r.client.Group().ByGroupidInt64(-1).Vault().Record().ByRecordidInt64(-1).WithUrl(getSelfLink(data.Links).Href.ValueString()).Delete(ctx, nil) + if !isHttpStatusCodeOk(ctx, 404, err, &resp.Diagnostics) { + return + } + tflog.Info(ctx, "Deleted group_vaultrecord from Topicus KeyHub") +} + +func (r *groupVaultrecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} diff --git a/internal/provider/resource-grouponsystem.go b/internal/provider/resource-grouponsystem.go new file mode 100644 index 0000000..7ca012a --- /dev/null +++ b/internal/provider/resource-grouponsystem.go @@ -0,0 +1,167 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/system" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &grouponsystemResource{} + _ resource.ResourceWithImportState = &grouponsystemResource{} + _ resource.ResourceWithConfigure = &grouponsystemResource{} +) + +func NewGrouponsystemResource() resource.Resource { + return &grouponsystemResource{} +} + +type grouponsystemResource struct { + client *keyhub.KeyHubClient +} + +func (r *grouponsystemResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_grouponsystem" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *grouponsystemResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsNestedProvisioningGroupOnSystem(true), + } +} + +func (r *grouponsystemResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *grouponsystemResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data nestedProvisioningGroupOnSystemDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, nestedProvisioningGroupOnSystemAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub grouponsystem") + newWrapper := keyhubmodels.NewProvisioningGroupOnSystemLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.ProvisioningGroupOnSystemable{newTkh}) + tkhParent, diags := findProvisioningProvisionedSystemPrimerByUUID(ctx, data.SystemUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + wrapper, err := r.client.System().BySystemidInt64(*tkhParent.GetLinks()[0].GetId()).Group().Post( + ctx, newWrapper, &keyhubreq.ItemGroupRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubreq.ItemGroupRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.ProvisioningGroupOnSystemable](ctx, wrapper, "grouponsystem", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSNestedProvisioningGroupOnSystem(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "system_uuid", types.StringValue(data.SystemUUID.ValueString())) + fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub grouponsystem") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *grouponsystemResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data nestedProvisioningGroupOnSystemDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading grouponsystem from Topicus KeyHub") + tkhParent, diags := findProvisioningProvisionedSystemPrimerByUUID(ctx, data.SystemUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkh, err := r.client.System().BySystemidInt64(*tkhParent.GetLinks()[0].GetId()).Group().ByGroupidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( + ctx, &keyhubreq.ItemGroupWithGroupItemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.ItemGroupWithGroupItemRequestBuilderGetQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSNestedProvisioningGroupOnSystem(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "system_uuid", types.StringValue(data.SystemUUID.ValueString())) + fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *grouponsystemResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + resp.Diagnostics.AddError("Cannot update a grouponsystem", "Topicus KeyHub does not support updating a grouponsystem via Terraform. The requested changes are not applied.") +} + +func (r *grouponsystemResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + resp.Diagnostics.AddError("Cannot delete a grouponsystem", "Topicus KeyHub does not support deleting a grouponsystem via Terraform. The requested changes are not applied.") +} + +func (r *grouponsystemResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} diff --git a/internal/provider/resource-vaultrecord.go b/internal/provider/resource-vaultrecord.go deleted file mode 100644 index 0f84fb7..0000000 --- a/internal/provider/resource-vaultrecord.go +++ /dev/null @@ -1,262 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package provider - -import ( - "context" - "fmt" - - "github.com/hashicorp/terraform-plugin-framework/diag" - "github.com/hashicorp/terraform-plugin-framework/path" - "github.com/hashicorp/terraform-plugin-framework/resource" - "github.com/hashicorp/terraform-plugin-framework/resource/schema" - "github.com/hashicorp/terraform-plugin-framework/types" - "github.com/hashicorp/terraform-plugin-framework/types/basetypes" - "github.com/hashicorp/terraform-plugin-log/tflog" - keyhub "github.com/topicuskeyhub/sdk-go" - keyhubgroup "github.com/topicuskeyhub/sdk-go/group" - keyhubmodels "github.com/topicuskeyhub/sdk-go/models" - keyhubvaultrecord "github.com/topicuskeyhub/sdk-go/vaultrecord" -) - -// Ensure provider defined types fully satisfy framework interfaces. -var ( - _ resource.Resource = &vaultRecordResource{} - _ resource.ResourceWithImportState = &vaultRecordResource{} - _ resource.ResourceWithConfigure = &vaultRecordResource{} -) - -func NewVaultRecordResource() resource.Resource { - return &vaultRecordResource{} -} - -// groupResource defines the resource implementation. -type vaultRecordResource struct { - client *keyhub.KeyHubClient -} - -func (r *vaultRecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { - resp.TypeName = ProviderName + "_vaultrecord" - tflog.Info(ctx, "Registred resource "+resp.TypeName) -} - -func (r *vaultRecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { - resp.Schema = schema.Schema{ - Attributes: resourceSchemaAttrsGroupVaultVaultRecord(true), - } -} - -func (r *vaultRecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { - // Prevent panic if the provider has not been configured. - if req.ProviderData == nil { - return - } - - client, ok := req.ProviderData.(*keyhub.KeyHubClient) - - if !ok { - resp.Diagnostics.AddError( - "Unexpected Data Source Configure Type", - fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), - ) - - return - } - - r.client = client -} - -func (r *vaultRecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { - var data groupVaultVaultRecordDataRS - resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { - return - } - - ctx = context.WithValue(ctx, keyHubClientKey, r.client) - obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tkhGroup, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tflog.Info(ctx, "Creating Topicus KeyHub vaultrecord") - newWrapper := keyhubmodels.NewVaultVaultRecordLinkableWrapper() - newWrapper.SetItems([]keyhubmodels.VaultVaultRecordable{newTkh}) - wrapper, err := r.client.Group().ByGroupidInt64(*tkhGroup.GetLinks()[0].GetId()).Vault().Record().Post( - ctx, newWrapper, &keyhubgroup.ItemVaultRecordRequestBuilderPostRequestConfiguration{ - QueryParameters: &keyhubgroup.ItemVaultRecordRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), - }, - }) - tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", nil, err) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tf = fillGroupUuid(ctx, tf, data) - fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) - - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) - - tflog.Info(ctx, "Created a new Topicus KeyHub vaultrecord") - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *vaultRecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { - var data groupVaultVaultRecordDataRS - resp.Diagnostics.Append(req.State.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { - return - } - - uuid := data.UUID.ValueString() - ctx = context.WithValue(ctx, keyHubClientKey, r.client) - tflog.Info(ctx, "Reading vaultrecord from Topicus KeyHub by UUID") - wrapper, err := r.client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ - Uuid: []string{uuid}, - Additional: collectAdditional(data.AdditionalObjects), - }, - }) - tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vaultrecord", &uuid, err) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tf = fillGroupUuid(ctx, tf, data) - fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) - - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *vaultRecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { - var data groupVaultVaultRecordDataRS - resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { - return - } - - ctx = context.WithValue(ctx, keyHubClientKey, r.client) - obj, diags := types.ObjectValueFrom(ctx, groupVaultVaultRecordAttrTypesRSRecurse, data) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - newTkh, diags := tfObjectToTKHRSGroupVaultVaultRecord(ctx, true, obj) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tkhGroup, diags := findGroupGroupPrimerByUUID(ctx, data.GroupUUID.ValueStringPointer()) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tflog.Info(ctx, "Updating Topicus KeyHub vaultrecord") - tkh, err := r.client.Group().ByGroupidInt64(*tkhGroup.GetLinks()[0].GetId()).Vault().Record().ByIdInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( - ctx, newTkh, &keyhubgroup.ItemVaultRecordRecordItemRequestBuilderPutRequestConfiguration{ - QueryParameters: &keyhubgroup.ItemVaultRecordRecordItemRequestBuilderPutQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), - }, - }) - - if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { - return - } - - tf, diags := tkhToTFObjectRSGroupVaultVaultRecord(true, tkh) - resp.Diagnostics.Append(diags...) - if resp.Diagnostics.HasError() { - return - } - - tf = fillGroupUuid(ctx, tf, data) - fillDataStructFromTFObjectRSGroupVaultVaultRecord(&data, tf) - - tflog.Info(ctx, "Updated a Topicus KeyHub vaultrecord") - resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) -} - -func (r *vaultRecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { - var data groupGroupDataRS - resp.Diagnostics.Append(req.State.Get(ctx, &data)...) - if resp.Diagnostics.HasError() { - return - } - - ctx = context.WithValue(ctx, keyHubClientKey, r.client) - tflog.Info(ctx, "Deleting vaultrecord from Topicus KeyHub") - err := r.client.Group().ByGroupidInt64(-1).Vault().Record().ByIdInt64(-1).WithUrl(getSelfLink(data.Links).Href.ValueString()).Delete(ctx, nil) - if !isHttpStatusCodeOk(ctx, 404, err, &resp.Diagnostics) { - return - } - tflog.Info(ctx, "Deleted vaultrecord from Topicus KeyHub") -} - -func (r *vaultRecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { - resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) -} - -func getSelfLink(linksAttr basetypes.ListValue) restLinkDataRS { - var links restLinkDataRS - fillDataStructFromTFObjectRSRestLink(&links, linksAttr.Elements()[0].(basetypes.ObjectValue)) - return links -} - -func isHttpStatusCodeOk(ctx context.Context, status int32, err error, diags *diag.Diagnostics) bool { - if err != nil { - report, ok := err.(keyhubmodels.ErrorReportable) - if !ok || *report.GetCode() != status { - diags.AddError("Client Error", fmt.Sprintf("Unexpected status code: %s", errorReportToString(ctx, err))) - return false - } - } - return true -} - -func fillGroupUuid(ctx context.Context, tf basetypes.ObjectValue, data groupVaultVaultRecordDataRS) basetypes.ObjectValue { - obj := tf.Attributes() - obj["group_uuid"] = types.StringValue(data.GroupUUID.ValueString()) - return types.ObjectValueMust(tf.AttributeTypes(ctx), obj) -} - -func collectAdditional(additionalObjects basetypes.ObjectValue) []string { - ret := make([]string, 0) - for name, attr := range additionalObjects.Attributes() { - if !attr.IsNull() && !attr.IsUnknown() { - ret = append(ret, name) - } - } - return ret -} diff --git a/main.go b/main.go index 67054ee..8c9feaa 100644 --- a/main.go +++ b/main.go @@ -31,7 +31,7 @@ import ( // system/{systemid}/group // serviceaccount/{accountid}/group -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode impl +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode model //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource account --linkable authAccount //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource certificate --linkable certificateCertificate //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource client --linkable clientClientApplication @@ -43,6 +43,9 @@ import ( //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource system --linkable provisioningProvisionedSystem //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource vaultrecord --linkable vaultVaultRecord //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource webhook --linkable webhookWebhook +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group_vaultrecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource grouponsystem // If you do not have terraform installed, you can remove the formatting command, but its suggested to // ensure the documentation is formatted properly. From fa0f655934e91427fa3a30ec37b41a71312b937d Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 13 Oct 2023 09:48:55 +0200 Subject: [PATCH 16/34] Add more resources --- docs/resources/client_vaultrecord.md | 162 +++++++++ docs/resources/clientapplication.md | 328 ++++++++++++++++++ docs/resources/group.md | 4 +- .../{vaultrecord.md => group_vaultrecord.md} | 4 +- docs/resources/grouponsystem.md | 176 ++++++++++ docs/resources/serviceaccount.md | 141 ++++++++ internal/provider/full-data-struct-ds.go | 66 ++-- internal/provider/full-data-struct-rs.go | 66 ++-- internal/provider/full-object-attrs-ds.go | 66 ++-- internal/provider/full-object-attrs-rs.go | 66 ++-- internal/provider/full-schema-ds.go | 172 ++++----- internal/provider/full-schema-rs.go | 172 ++++----- .../provider/full-tf-to-data-struct-ds.go | 66 ++-- .../provider/full-tf-to-data-struct-rs.go | 66 ++-- internal/provider/full-tf-to-tkh-ds.go | 266 +++++++------- internal/provider/full-tf-to-tkh-rs.go | 266 +++++++------- internal/provider/full-tkh-to-tf-ds.go | 258 +++++++------- internal/provider/full-tkh-to-tf-rs.go | 258 +++++++------- internal/provider/provider.go | 3 + .../provider/resource-client_vaultrecord.go | 225 ++++++++++++ .../provider/resource-clientapplication.go | 153 ++++++++ internal/provider/resource-serviceaccount.go | 192 ++++++++++ main.go | 5 +- 23 files changed, 2282 insertions(+), 899 deletions(-) create mode 100644 docs/resources/client_vaultrecord.md create mode 100644 docs/resources/clientapplication.md rename docs/resources/{vaultrecord.md => group_vaultrecord.md} (96%) create mode 100644 docs/resources/grouponsystem.md create mode 100644 docs/resources/serviceaccount.md create mode 100644 internal/provider/resource-client_vaultrecord.go create mode 100644 internal/provider/resource-clientapplication.go create mode 100644 internal/provider/resource-serviceaccount.go diff --git a/docs/resources/client_vaultrecord.md b/docs/resources/client_vaultrecord.md new file mode 100644 index 0000000..6ddbd39 --- /dev/null +++ b/docs/resources/client_vaultrecord.md @@ -0,0 +1,162 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_client_vaultrecord Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_client_vaultrecord (Resource) + + + + + + +## Schema + +### Required + +- `client_application_uuid` (String) +- `name` (String) + +### Optional + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `color` (String) +- `end_date` (String) +- `filename` (String) +- `url` (String) +- `username` (String) +- `warning_period` (String) + +### Read-Only + +- `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `share_end_time` (String) +- `types` (List of String) +- `uuid` (String) + + +### Nested Schema for `additional_objects` + +Optional: + +- `delete_tile` (Boolean) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `parent_uuid` (String) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) +- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) + + +### Nested Schema for `additional_objects.secret` + +Optional: + +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) + + + +### Nested Schema for `additional_objects.tile` + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.password_metadata` + +Optional: + +- `dictionary` (Boolean) +- `duplicate` (Boolean) +- `hash` (String) +- `length` (Number) +- `lower_count` (Number) +- `number_count` (Number) +- `special_count` (Number) +- `strength` (Number) +- `upper_count` (Number) + + + +### Nested Schema for `additional_objects.share_summary` + +Optional: + +- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) + + +### Nested Schema for `additional_objects.share_summary.children` + +Optional: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + +### Nested Schema for `additional_objects.share_summary.parent` + +Optional: + +- `name` (String) +- `vault_vault_record_share_type` (String) + + + + +### Nested Schema for `additional_objects.shares` + +Optional: + +- `items` (List of String) + + + +### Nested Schema for `additional_objects.vaultholder` + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/resources/clientapplication.md b/docs/resources/clientapplication.md new file mode 100644 index 0000000..2b8aa82 --- /dev/null +++ b/docs/resources/clientapplication.md @@ -0,0 +1,328 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_clientapplication Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_clientapplication (Resource) + + + + + + +## Schema + +### Required + +- `name` (String) + +### Optional + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `client_id` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client)) +- `owner_uuid` (String) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--saml2_client)) +- `scopes` (List of String) +- `technical_administrator_uuid` (String) + +### Read-Only + +- `client_client_application_primer_type` (String) +- `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `sso_application` (Boolean) +- `uuid` (String) + + +### Nested Schema for `additional_objects` + +Optional: + +- `delete_tile` (Boolean) +- `groupclients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `vault_record_count` (Number) + + +### Nested Schema for `additional_objects.groupclients` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items)) + + +### Nested Schema for `additional_objects.groupclients.items` + +Optional: + +- `activation_required` (Boolean) + +Read-Only: + +- `client_uuid` (String) +- `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--permissions)) +- `technical_administrator_uuid` (String) + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator_uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groupclients.items.technical_administrator_uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.secret` + +Optional: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + + +### Nested Schema for `additional_objects.tile` + +Optional: + +- `uri` (String) + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.groups` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) + + +### Nested Schema for `additional_objects.groups.items` + +Required: + +- `name` (String) + +Optional: + +- `application_administration` (Boolean) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--audit_config)) +- `authorizing_group_auditing_uuid` (String) +- `authorizing_group_delegation_uuid` (String) +- `authorizing_group_membership_uuid` (String) +- `authorizing_group_provisioning_uuid` (String) +- `classification_uuid` (String) +- `description` (String) +- `extended_access` (String) +- `hide_audit_trail` (Boolean) +- `nested_under_uuid` (String) +- `organizational_unit_uuid` (String) +- `private_group` (Boolean) +- `record_trail` (Boolean) +- `rotating_password_required` (Boolean) +- `single_managed` (Boolean) +- `vault_recovery` (String) +- `vault_requires_activation` (Boolean) + +Read-Only: + +- `admin` (Boolean) +- `audit_requested` (Boolean) +- `auditor` (Boolean) +- `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `uuid` (String) + + +### Nested Schema for `additional_objects.groups.items.uuid` + +Optional: + +- `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--uuid--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--uuid--permissions)) + + +### Nested Schema for `additional_objects.groups.items.uuid.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.uuid.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.groups.items.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.uuid` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `ldap_client` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) + +Read-Only: + +- `bind_dn` (String) +- `shared_secret_uuid` (String) +- `used_for_provisioning` (Boolean) + + + +### Nested Schema for `o_auth2_client` + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) +- `shared_secret_uuid` (String) + + +### Nested Schema for `o_auth2_client.attributes` + + + +### Nested Schema for `o_auth2_client.account_permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `saml2_client` + +Required: + +- `subject_format` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--saml2_client--attributes)) +- `metadata` (String) +- `metadata_url` (String) + + +### Nested Schema for `saml2_client.attributes` + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/resources/group.md b/docs/resources/group.md index 14b0e90..abe61ef 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -3,12 +3,12 @@ page_title: "keyhubpreview_group Resource - terraform-provider-keyhubpreview" subcategory: "" description: |- - Group resource + --- # keyhubpreview_group (Resource) -Group resource + diff --git a/docs/resources/vaultrecord.md b/docs/resources/group_vaultrecord.md similarity index 96% rename from docs/resources/vaultrecord.md rename to docs/resources/group_vaultrecord.md index d499572..90ff682 100644 --- a/docs/resources/vaultrecord.md +++ b/docs/resources/group_vaultrecord.md @@ -1,12 +1,12 @@ --- # generated by https://github.com/hashicorp/terraform-plugin-docs -page_title: "keyhubpreview_vaultrecord Resource - terraform-provider-keyhubpreview" +page_title: "keyhubpreview_group_vaultrecord Resource - terraform-provider-keyhubpreview" subcategory: "" description: |- --- -# keyhubpreview_vaultrecord (Resource) +# keyhubpreview_group_vaultrecord (Resource) diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md new file mode 100644 index 0000000..81104cf --- /dev/null +++ b/docs/resources/grouponsystem.md @@ -0,0 +1,176 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_grouponsystem Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_grouponsystem (Resource) + + + + + + +## Schema + +### Required + +- `name_in_system` (String) +- `owner_uuid` (String) +- `provisioned_system_uuid` (String) +- `provisioning_group_on_system_primer_type` (String) + +### Optional + +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `display_name` (String) +- `short_name_in_system` (String) +- `system_uuid` (String) + +### Read-Only + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) + + +### Nested Schema for `additional_objects` + +Optional: + +- `provgroups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--provgroups)) +- `service_accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) + + +### Nested Schema for `additional_objects.provgroups` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items)) + + +### Nested Schema for `additional_objects.provgroups.items` + +Optional: + +- `activation_required` (Boolean) + +Read-Only: + +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--group_on_system)) +- `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--permissions)) + + +### Nested Schema for `additional_objects.provgroups.items.permissions` + +Required: + +- `name_in_system` (String) +- `owner_uuid` (String) +- `provisioning_group_on_system_primer_type` (String) + +Optional: + +- `display_name` (String) +- `short_name_in_system` (String) +- `system_uuid` (String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--permissions--permissions)) + + +### Nested Schema for `additional_objects.provgroups.items.permissions.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.provgroups.items.permissions.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `additional_objects.provgroups.items.permissions` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.provgroups.items.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + +### Nested Schema for `additional_objects.service_accounts` + +Optional: + +- `items` (List of String) + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md new file mode 100644 index 0000000..a89953a --- /dev/null +++ b/docs/resources/serviceaccount.md @@ -0,0 +1,141 @@ +--- +# generated by https://github.com/hashicorp/terraform-plugin-docs +page_title: "keyhubpreview_serviceaccount Resource - terraform-provider-keyhubpreview" +subcategory: "" +description: |- + +--- + +# keyhubpreview_serviceaccount (Resource) + + + + + + +## Schema + +### Required + +- `name` (String) +- `password_rotation` (String) +- `system_uuid` (String) + +### Optional + +- `active` (Boolean) +- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `description` (String) +- `technical_administrator_uuid` (String) + +### Read-Only + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `password_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `username` (String) +- `uuid` (String) + + +### Nested Schema for `additional_objects` + +Optional: + +- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) + +Read-Only: + +- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) +- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) + + +### Nested Schema for `additional_objects.secret` + +Optional: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + + +### Nested Schema for `additional_objects.audit` + +Optional: + +- `created_at` (String) +- `created_by` (String) +- `last_modified_at` (String) +- `last_modified_by` (String) + + + +### Nested Schema for `additional_objects.groups` + +Optional: + +- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) + + +### Nested Schema for `additional_objects.groups.items` + +Required: + +- `name_in_system` (String) +- `provisioning_group_on_system_primer_type` (String) + +Optional: + +- `display_name` (String) +- `short_name_in_system` (String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) + + +### Nested Schema for `additional_objects.groups.items.permissions` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `additional_objects.groups.items.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 006c563..f643f81 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -644,10 +644,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - InternalDirectory types.Object `tfsdk:"internal_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1265,9 +1265,9 @@ type launchpadLaunchpadTileDataDS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecord types.Object `tfsdk:"vault_record"` - SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -2077,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2354,42 +2354,42 @@ type requestModificationRequestDataDS struct { RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 427567a..618facb 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -609,10 +609,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - InternalDirectory types.Object `tfsdk:"internal_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1210,9 +1210,9 @@ type launchpadLaunchpadTileDataRS struct { LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` Logo types.List `tfsdk:"logo"` VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` + SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -1939,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2214,42 +2214,42 @@ type requestModificationRequestDataRS struct { RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 21d19c6..c8e3a26 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -613,10 +613,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1201,9 +1201,9 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} return objectAttrs } @@ -1977,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} return objectAttrs } @@ -2225,42 +2225,42 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index b743374..30e5bfb 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -576,10 +576,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -1144,9 +1144,9 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["launchpad_launchpad_tile_type"] = types.StringType objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} + objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} return objectAttrs } @@ -1835,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} return objectAttrs } @@ -2081,42 +2081,42 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 2ced78b..fcd4579 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -1534,8 +1534,8 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), Computed: true, } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ @@ -1546,8 +1546,8 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), Computed: true, } - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), Computed: true, } return schemaAttrs @@ -3039,10 +3039,6 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), Computed: true, } - schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - Computed: true, - } schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), Computed: true, @@ -3051,6 +3047,10 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), Computed: true, } + schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -4936,10 +4936,6 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Computed: true, - } schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, @@ -4952,20 +4948,24 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), - Computed: true, - } schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Computed: true, } + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Computed: true, + } schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Computed: true, + } + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } return schemaAttrs @@ -5389,148 +5389,148 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), - Computed: true, - } - schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Computed: true, } schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Computed: true, + } + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } - schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), Computed: true, } schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } return schemaAttrs diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index f7167bc..3614c87 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -1443,8 +1443,8 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), Optional: true, } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ @@ -1455,8 +1455,8 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), Optional: true, } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), Optional: true, } return schemaAttrs @@ -2935,10 +2935,6 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - Optional: true, - } schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), Optional: true, @@ -2947,6 +2943,10 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), Optional: true, } + schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -4417,10 +4417,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Optional: true, - } schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, @@ -4433,20 +4429,24 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), - Optional: true, - } schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Optional: true, } + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Optional: true, + } schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Optional: true, + } + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } return schemaAttrs @@ -4879,148 +4879,148 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), - Optional: true, - } - schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Optional: true, } schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Optional: true, + } + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } - schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), Optional: true, } schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } return schemaAttrs diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 29ba992..5e90299 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -486,10 +486,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -948,9 +948,9 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { @@ -1538,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1716,42 +1716,42 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index bb36a6e..ae2fca4 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -451,10 +451,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -893,9 +893,9 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) + data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { @@ -1400,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1576,42 +1576,42 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 4451bf8..5f65330 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -1792,11 +1792,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1816,11 +1816,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3638,14 +3638,6 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["vault_record_launchpad_tile"].IsNull() { val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3662,6 +3654,14 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob val.SetTypeEscaped(dtype) tkh = val } + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5938,14 +5938,6 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5970,19 +5962,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5994,11 +5986,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6653,187 +6653,187 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6845,59 +6845,59 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6909,35 +6909,35 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 7a8246a..3e8338a 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -1717,11 +1717,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1741,11 +1741,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3568,14 +3568,6 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetVaultRecord(val) } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["vault_record_launchpad_tile"].IsNull() { val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3592,6 +3584,14 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob val.SetTypeEscaped(dtype) tkh = val } + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5656,14 +5656,6 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5688,19 +5680,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5712,11 +5704,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6374,187 +6374,187 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6566,59 +6566,59 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6630,35 +6630,35 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index cd626e2..6a00a07 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -2018,10 +2018,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -2036,10 +2036,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["l_d_a_p_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -4172,12 +4172,6 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) - val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["sso_application_launchpad_tile"] = val - } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) @@ -4190,6 +4184,12 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["manual_launchpad_tile"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) + diags.Append(d...) + obj["sso_application_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6877,12 +6877,6 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) @@ -6901,18 +6895,18 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_ldap"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) obj["provisioned_ldap_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) @@ -6920,10 +6914,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_azure_oidc_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_sync_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7815,130 +7815,124 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) - diags.Append(d...) - obj["create_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) @@ -7947,10 +7941,16 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + diags.Append(d...) + obj["add_group_admin_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -7959,46 +7959,46 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) @@ -8007,28 +8007,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["disable2fa_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 2b741fe..011ec33 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1894,10 +1894,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1912,10 +1912,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["l_d_a_p_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3902,12 +3902,6 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp obj["logo"] = val } obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) - val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["sso_application_launchpad_tile"] = val - } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) @@ -3920,6 +3914,12 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["manual_launchpad_tile"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) + diags.Append(d...) + obj["sso_application_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6257,12 +6257,6 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) @@ -6281,18 +6275,18 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_ldap"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) obj["provisioned_ldap_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) @@ -6300,10 +6294,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_azure_oidc_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_sync_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7155,130 +7155,124 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) - diags.Append(d...) - obj["create_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) @@ -7287,10 +7281,16 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["create_group_on_system_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + diags.Append(d...) + obj["add_group_admin_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -7299,46 +7299,46 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) @@ -7347,28 +7347,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["disable2fa_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 8984ffb..383e9b0 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -172,9 +172,12 @@ func (p *KeyHubProvider) Configure(ctx context.Context, req provider.ConfigureRe func (p *KeyHubProvider) Resources(ctx context.Context) []func() resource.Resource { return []func() resource.Resource{ + NewClientapplicationResource, + NewClientVaultrecordResource, NewGroupVaultrecordResource, NewGroupResource, NewGrouponsystemResource, + NewServiceaccountResource, } } diff --git a/internal/provider/resource-client_vaultrecord.go b/internal/provider/resource-client_vaultrecord.go new file mode 100644 index 0000000..ef3079f --- /dev/null +++ b/internal/provider/resource-client_vaultrecord.go @@ -0,0 +1,225 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/client" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &clientVaultrecordResource{} + _ resource.ResourceWithImportState = &clientVaultrecordResource{} + _ resource.ResourceWithConfigure = &clientVaultrecordResource{} +) + +func NewClientVaultrecordResource() resource.Resource { + return &clientVaultrecordResource{} +} + +type clientVaultrecordResource struct { + client *keyhub.KeyHubClient +} + +func (r *clientVaultrecordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_client_vaultrecord" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *clientVaultrecordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsClientApplicationVaultVaultRecord(true), + } +} + +func (r *clientVaultrecordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *clientVaultrecordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data clientApplicationVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, clientApplicationVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub client_vaultrecord") + newWrapper := keyhubmodels.NewVaultVaultRecordLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.VaultVaultRecordable{newTkh}) + tkhParent, diags := findClientClientApplicationPrimerByUUID(ctx, data.ClientApplicationUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + wrapper, err := r.client.Client().ByClientidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().Post( + ctx, newWrapper, &keyhubreq.ItemVaultRecordRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubreq.ItemVaultRecordRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "client_vaultrecord", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSClientApplicationVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "client_application_uuid", types.StringValue(data.ClientApplicationUUID.ValueString())) + fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub client_vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *clientVaultrecordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data clientApplicationVaultVaultRecordDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading client_vaultrecord from Topicus KeyHub") + tkhParent, diags := findClientClientApplicationPrimerByUUID(ctx, data.ClientApplicationUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkh, err := r.client.Client().ByClientidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( + ctx, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSClientApplicationVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "client_application_uuid", types.StringValue(data.ClientApplicationUUID.ValueString())) + fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *clientVaultrecordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data clientApplicationVaultVaultRecordDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, clientApplicationVaultVaultRecordAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Updating Topicus KeyHub client_vaultrecord") + tkhParent, diags := findClientClientApplicationPrimerByUUID(ctx, data.ClientApplicationUUID.ValueStringPointer()) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tkh, err := r.client.Client().ByClientidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( + ctx, newTkh, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutRequestConfiguration{ + QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSClientApplicationVaultVaultRecord(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + tf = setAttributeValue(ctx, tf, "client_application_uuid", types.StringValue(data.ClientApplicationUUID.ValueString())) + fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(&data, tf) + + tflog.Info(ctx, "Updated a Topicus KeyHub client_vaultrecord") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *clientVaultrecordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + var data clientApplicationVaultVaultRecordDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Deleting client_vaultrecord from Topicus KeyHub") + err := r.client.Client().ByClientidInt64(-1).Vault().Record().ByRecordidInt64(-1).WithUrl(getSelfLink(data.Links).Href.ValueString()).Delete(ctx, nil) + if !isHttpStatusCodeOk(ctx, 404, err, &resp.Diagnostics) { + return + } + tflog.Info(ctx, "Deleted client_vaultrecord from Topicus KeyHub") +} + +func (r *clientVaultrecordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} diff --git a/internal/provider/resource-clientapplication.go b/internal/provider/resource-clientapplication.go new file mode 100644 index 0000000..6b8e431 --- /dev/null +++ b/internal/provider/resource-clientapplication.go @@ -0,0 +1,153 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubreq "github.com/topicuskeyhub/sdk-go/client" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &clientapplicationResource{} + _ resource.ResourceWithImportState = &clientapplicationResource{} + _ resource.ResourceWithConfigure = &clientapplicationResource{} +) + +func NewClientapplicationResource() resource.Resource { + return &clientapplicationResource{} +} + +type clientapplicationResource struct { + client *keyhub.KeyHubClient +} + +func (r *clientapplicationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_clientapplication" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *clientapplicationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsClientClientApplication(true), + } +} + +func (r *clientapplicationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *clientapplicationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data clientClientApplicationDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, clientClientApplicationAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSClientClientApplication(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub clientapplication") + newWrapper := keyhubmodels.NewClientClientApplicationLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.ClientClientApplicationable{newTkh}) + wrapper, err := r.client.Client().Post( + ctx, newWrapper, &keyhubreq.ClientRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubreq.ClientRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.ClientClientApplicationable](ctx, wrapper, "clientapplication", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSClientClientApplication(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectRSClientClientApplication(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub clientapplication") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *clientapplicationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data clientClientApplicationDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading clientapplication from Topicus KeyHub") + tkh, err := r.client.Client().ByClientidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( + ctx, &keyhubreq.WithClientItemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.WithClientItemRequestBuilderGetQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSClientClientApplication(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectRSClientClientApplication(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *clientapplicationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + resp.Diagnostics.AddError("Cannot update a clientapplication", "Topicus KeyHub does not support updating a clientapplication via Terraform. The requested changes are not applied.") +} + +func (r *clientapplicationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + resp.Diagnostics.AddError("Cannot delete a clientapplication", "Topicus KeyHub does not support deleting a clientapplication via Terraform. The requested changes are not applied.") +} + +func (r *clientapplicationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} diff --git a/internal/provider/resource-serviceaccount.go b/internal/provider/resource-serviceaccount.go new file mode 100644 index 0000000..210c74b --- /dev/null +++ b/internal/provider/resource-serviceaccount.go @@ -0,0 +1,192 @@ +// Code generated by "terraform-provider-keyhub-generator"; DO NOT EDIT. + +package provider + +import ( + "context" + "fmt" + + "github.com/hashicorp/terraform-plugin-framework/path" + "github.com/hashicorp/terraform-plugin-framework/resource" + "github.com/hashicorp/terraform-plugin-framework/resource/schema" + "github.com/hashicorp/terraform-plugin-framework/types" + "github.com/hashicorp/terraform-plugin-log/tflog" + keyhub "github.com/topicuskeyhub/sdk-go" + keyhubmodels "github.com/topicuskeyhub/sdk-go/models" + keyhubreq "github.com/topicuskeyhub/sdk-go/serviceaccount" +) + +// Ensure provider defined types fully satisfy framework interfaces. +var ( + _ resource.Resource = &serviceaccountResource{} + _ resource.ResourceWithImportState = &serviceaccountResource{} + _ resource.ResourceWithConfigure = &serviceaccountResource{} +) + +func NewServiceaccountResource() resource.Resource { + return &serviceaccountResource{} +} + +type serviceaccountResource struct { + client *keyhub.KeyHubClient +} + +func (r *serviceaccountResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse) { + resp.TypeName = ProviderName + "_serviceaccount" + tflog.Info(ctx, "Registred resource "+resp.TypeName) +} + +func (r *serviceaccountResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse) { + resp.Schema = schema.Schema{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccount(true), + } +} + +func (r *serviceaccountResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse) { + // Prevent panic if the provider has not been configured. + if req.ProviderData == nil { + return + } + + client, ok := req.ProviderData.(*keyhub.KeyHubClient) + + if !ok { + resp.Diagnostics.AddError( + "Unexpected Data Source Configure Type", + fmt.Sprintf("Expected *keyhub.KeyHubClient, got: %T. Please report this issue to the provider developers.", req.ProviderData), + ) + + return + } + + r.client = client +} + +func (r *serviceaccountResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse) { + var data serviceaccountServiceAccountDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, serviceaccountServiceAccountAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSServiceaccountServiceAccount(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Creating Topicus KeyHub serviceaccount") + newWrapper := keyhubmodels.NewServiceaccountServiceAccountLinkableWrapper() + newWrapper.SetItems([]keyhubmodels.ServiceaccountServiceAccountable{newTkh}) + wrapper, err := r.client.Serviceaccount().Post( + ctx, newWrapper, &keyhubreq.ServiceaccountRequestBuilderPostRequestConfiguration{ + QueryParameters: &keyhubreq.ServiceaccountRequestBuilderPostQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + tkh, diags := findFirst[keyhubmodels.ServiceaccountServiceAccountable](ctx, wrapper, "serviceaccount", nil, err) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tf, diags := tkhToTFObjectRSServiceaccountServiceAccount(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectRSServiceaccountServiceAccount(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) + + tflog.Info(ctx, "Created a new Topicus KeyHub serviceaccount") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *serviceaccountResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse) { + var data serviceaccountServiceAccountDataRS + resp.Diagnostics.Append(req.State.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + tflog.Info(ctx, "Reading serviceaccount from Topicus KeyHub") + tkh, err := r.client.Serviceaccount().ByServiceaccountidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( + ctx, &keyhubreq.WithServiceaccountItemRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubreq.WithServiceaccountItemRequestBuilderGetQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSServiceaccountServiceAccount(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectRSServiceaccountServiceAccount(&data, tf) + + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *serviceaccountResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse) { + var data serviceaccountServiceAccountDataRS + resp.Diagnostics.Append(req.Plan.Get(ctx, &data)...) + if resp.Diagnostics.HasError() { + return + } + + ctx = context.WithValue(ctx, keyHubClientKey, r.client) + obj, diags := types.ObjectValueFrom(ctx, serviceaccountServiceAccountAttrTypesRSRecurse, data) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + newTkh, diags := tfObjectToTKHRSServiceaccountServiceAccount(ctx, true, obj) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + + tflog.Info(ctx, "Updating Topicus KeyHub serviceaccount") + tkh, err := r.client.Serviceaccount().ByServiceaccountidInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( + ctx, newTkh, &keyhubreq.WithServiceaccountItemRequestBuilderPutRequestConfiguration{ + QueryParameters: &keyhubreq.WithServiceaccountItemRequestBuilderPutQueryParameters{ + Additional: collectAdditional(data.AdditionalObjects), + }, + }) + + if !isHttpStatusCodeOk(ctx, -1, err, &resp.Diagnostics) { + return + } + + tf, diags := tkhToTFObjectRSServiceaccountServiceAccount(true, tkh) + resp.Diagnostics.Append(diags...) + if resp.Diagnostics.HasError() { + return + } + fillDataStructFromTFObjectRSServiceaccountServiceAccount(&data, tf) + + tflog.Info(ctx, "Updated a Topicus KeyHub serviceaccount") + resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) +} + +func (r *serviceaccountResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse) { + resp.Diagnostics.AddError("Cannot delete a serviceaccount", "Topicus KeyHub does not support deleting a serviceaccount via Terraform. The requested changes are not applied.") +} + +func (r *serviceaccountResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse) { + resource.ImportStatePassthroughID(ctx, path.Root("uuid"), req, resp) +} diff --git a/main.go b/main.go index 8c9feaa..a6d6ba3 100644 --- a/main.go +++ b/main.go @@ -43,9 +43,12 @@ import ( //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource system --linkable provisioningProvisionedSystem //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource vaultrecord --linkable vaultVaultRecord //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource webhook --linkable webhookWebhook -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource clientapplication +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource client_vaultrecord //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group_vaultrecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group //go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource grouponsystem +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource serviceaccount // If you do not have terraform installed, you can remove the formatting command, but its suggested to // ensure the documentation is formatted properly. From c4079d8185181eaa4f30dac014e41f0bd2f72f1d Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 13 Oct 2023 10:19:46 +0200 Subject: [PATCH 17/34] Upgrade dependencies --- go.mod | 42 ++++++++--------- go.sum | 147 +++++++++++++++++++-------------------------------------- 2 files changed, 69 insertions(+), 120 deletions(-) diff --git a/go.mod b/go.mod index 8c1d213..e50e707 100644 --- a/go.mod +++ b/go.mod @@ -5,12 +5,12 @@ go 1.19 require ( github.com/google/uuid v1.3.1 github.com/hashicorp/terraform-plugin-docs v0.16.0 - github.com/hashicorp/terraform-plugin-framework v1.4.0 + github.com/hashicorp/terraform-plugin-framework v1.4.1 github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 github.com/hashicorp/terraform-plugin-go v0.19.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-testing v1.5.1 - github.com/microsoft/kiota-abstractions-go v1.2.1 + github.com/microsoft/kiota-abstractions-go v1.3.0 github.com/topicuskeyhub/sdk-go v0.28.1 ) @@ -18,7 +18,7 @@ require ( github.com/Masterminds/goutils v1.1.1 // indirect github.com/Masterminds/semver/v3 v3.2.1 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect - github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 // indirect + github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect @@ -30,18 +30,18 @@ require ( github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/golang/protobuf v1.5.3 // indirect - github.com/google/go-cmp v0.5.9 // indirect + github.com/google/go-cmp v0.6.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect - github.com/hashicorp/go-plugin v1.5.1 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.6.0 // indirect - github.com/hashicorp/hc-install v0.6.0 // indirect - github.com/hashicorp/hcl/v2 v2.18.0 // indirect + github.com/hashicorp/hc-install v0.6.1 // indirect + github.com/hashicorp/hcl/v2 v2.18.1 // indirect github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.19.0 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect @@ -67,24 +67,24 @@ require ( github.com/russross/blackfriday v1.6.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.1 // indirect + github.com/std-uritemplate/std-uritemplate/go v0.0.42 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect - github.com/vmihailenco/msgpack/v5 v5.3.5 // indirect + github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect - github.com/yosida95/uritemplate/v3 v3.0.2 // indirect - github.com/zclconf/go-cty v1.14.0 // indirect - go.opentelemetry.io/otel v1.18.0 // indirect - go.opentelemetry.io/otel/metric v1.18.0 // indirect - go.opentelemetry.io/otel/trace v1.18.0 // indirect - golang.org/x/crypto v0.13.0 // indirect - golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect - golang.org/x/mod v0.12.0 // indirect - golang.org/x/net v0.15.0 // indirect - golang.org/x/oauth2 v0.12.0 // indirect - golang.org/x/sys v0.12.0 // indirect + github.com/zclconf/go-cty v1.14.1 // indirect + go.opentelemetry.io/otel v1.19.0 // indirect + go.opentelemetry.io/otel/metric v1.19.0 // indirect + go.opentelemetry.io/otel/trace v1.19.0 // indirect + golang.org/x/crypto v0.14.0 // indirect + golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect + golang.org/x/mod v0.13.0 // indirect + golang.org/x/net v0.17.0 // indirect + golang.org/x/oauth2 v0.13.0 // indirect + golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb // indirect - google.golang.org/grpc v1.58.1 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect + google.golang.org/grpc v1.58.3 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index 2511ccc..4bb6960 100644 --- a/go.sum +++ b/go.sum @@ -1,3 +1,4 @@ +dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= @@ -7,16 +8,13 @@ github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYr github.com/Masterminds/sprig/v3 v3.2.1/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk= github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= -github.com/Microsoft/go-winio v0.5.2 h1:a9IhgEQBCUEk6QCdml9CiJGhAws+YwffDHEMp1VMrpA= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= -github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371 h1:kkhsdkhsCvIsutKu5zLMgWtgh9YxGCNAw8Ad8hjwfYg= -github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= +github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX7IL/m9Y5LO+KQYv+t1CQOiFe6+SV2J7bE= +github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= -github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= -github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -32,6 +30,7 @@ github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEM github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA= github.com/coreos/go-oidc v2.2.1+incompatible h1:mh48q/BqXqgjVHpy2ZY7WnWAbenxRjsz9N1i1YxjHAk= github.com/coreos/go-oidc v2.2.1+incompatible/go.mod h1:CgnwVTmzoESiwO9qyAFEMiHoZ1nMCKZlZ9V6mm3/LKc= +github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -41,27 +40,25 @@ github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYF github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= -github.com/go-git/gcfg v1.5.0 h1:Q5ViNfGF8zFgyJWPqYwA7qGFoMTEiBmdlkcfRmpIMa4= github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI= -github.com/go-git/go-billy/v5 v5.4.1 h1:Uwp5tDRkPr+l/TnbHOQzp+tmJfLceOlbVucgpTz8ix4= -github.com/go-git/go-git/v5 v5.6.1 h1:q4ZRqQl4pR/ZJHc1L5CFjGA1a10u76aV1iC+nh+bHsk= -github.com/go-git/go-git/v5 v5.8.1 h1:Zo79E4p7TRk0xoRgMq0RShiTHGKcKI4+DI6BfJc/Q+A= +github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= +github.com/go-git/go-git/v5 v5.9.0 h1:cD9SFA7sHVRdJ7AYck1ZaAa/yeuBvGPxwXDL8cxrObY= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= -github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= @@ -81,51 +78,35 @@ github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVH github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= -github.com/hashicorp/go-plugin v1.5.0 h1:g6Lj3USwF5LaB8HlvCxPjN2X4nFE08ko2BJNVpl7TIE= -github.com/hashicorp/go-plugin v1.5.0/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= -github.com/hashicorp/go-plugin v1.5.1 h1:oGm7cWBaYIp3lJpx1RUEfLWophprE2EV/KUeqBYo+6k= -github.com/hashicorp/go-plugin v1.5.1/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= +github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= github.com/hashicorp/go-uuid v1.0.3/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= -github.com/hashicorp/hc-install v0.5.2 h1:SfwMFnEXVVirpwkDuSF5kymUOhrUxrTq3udEseZdOD0= -github.com/hashicorp/hc-install v0.5.2/go.mod h1:9QISwe6newMWIfEiXpzuu1k9HAGtQYgnSH8H9T8wmoI= -github.com/hashicorp/hc-install v0.6.0 h1:fDHnU7JNFNSQebVKYhHZ0va1bC6SrPQ8fpebsvNr2w4= -github.com/hashicorp/hc-install v0.6.0/go.mod h1:10I912u3nntx9Umo1VAeYPUUuehk0aRQJYpMwbX5wQA= -github.com/hashicorp/hcl/v2 v2.17.0 h1:z1XvSUyXd1HP10U4lrLg5e0JMVz6CPaJvAgxM0KNZVY= -github.com/hashicorp/hcl/v2 v2.17.0/go.mod h1:gJyW2PTShkJqQBKpAmPO3yxMxIuoXkOF2TpqXzrQyx4= -github.com/hashicorp/hcl/v2 v2.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8= -github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= +github.com/hashicorp/hc-install v0.6.1 h1:IGxShH7AVhPaSuSJpKtVi/EFORNjO+OYVJJrAtGG2mY= +github.com/hashicorp/hc-install v0.6.1/go.mod h1:0fW3jpg+wraYSnFDJ6Rlie3RvLf1bIqVIkzoon4KoVE= +github.com/hashicorp/hcl/v2 v2.18.1 h1:6nxnOJFku1EuSawSD81fuviYUV8DxFr3fp2dUi3ZYSo= +github.com/hashicorp/hcl/v2 v2.18.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= -github.com/hashicorp/terraform-exec v0.18.1 h1:LAbfDvNQU1l0NOQlTuudjczVhHj061fNX5H8XZxHlH4= -github.com/hashicorp/terraform-exec v0.18.1/go.mod h1:58wg4IeuAJ6LVsLUeD2DWZZoc/bYi6dzhLHzxM41980= github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM= github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= -github.com/hashicorp/terraform-plugin-framework v1.3.5 h1:FJ6s3CVWVAxlhiF/jhy6hzs4AnPHiflsp9KgzTGl1wo= -github.com/hashicorp/terraform-plugin-framework v1.3.5/go.mod h1:2gGDpWiTI0irr9NSTLFAKlTi6KwGti3AoU19rFqU30o= -github.com/hashicorp/terraform-plugin-framework v1.4.0 h1:WKbtCRtNrjsh10eA7NZvC/Qyr7zp77j+D21aDO5th9c= -github.com/hashicorp/terraform-plugin-framework v1.4.0/go.mod h1:XC0hPcQbBvlbxwmjxuV/8sn8SbZRg4XwGMs22f+kqV0= +github.com/hashicorp/terraform-plugin-framework v1.4.1 h1:ZC29MoB3Nbov6axHdgPbMz7799pT5H8kIrM8YAsaVrs= +github.com/hashicorp/terraform-plugin-framework v1.4.1/go.mod h1:XC0hPcQbBvlbxwmjxuV/8sn8SbZRg4XwGMs22f+kqV0= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= -github.com/hashicorp/terraform-plugin-go v0.18.0 h1:IwTkOS9cOW1ehLd/rG0y+u/TGLK9y6fGoBjXVUquzpE= -github.com/hashicorp/terraform-plugin-go v0.18.0/go.mod h1:l7VK+2u5Kf2y+A+742GX0ouLut3gttudmvMgN0PA74Y= github.com/hashicorp/terraform-plugin-go v0.19.0 h1:BuZx/6Cp+lkmiG0cOBk6Zps0Cb2tmqQpDM3iAtnhDQU= github.com/hashicorp/terraform-plugin-go v0.19.0/go.mod h1:EhRSkEPNoylLQntYsk5KrDHTZJh9HQoumZXbOGOXmec= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0 h1:gY4SG34ANc6ZSeWEKC9hDTChY0ZiN+Myon17fSA0Xgc= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.28.0/go.mod h1:deXEw/iJXtJxNV9d1c/OVJrvL7Zh0a++v7rzokW6wVY= github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 h1:wcOKYwPI9IorAJEBLzgclh3xVolO7ZorYd6U1vnok14= github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0/go.mod h1:qH/34G25Ugdj5FcM95cSoXzUgIbgfhVLXCcEcYaMwq8= -github.com/hashicorp/terraform-plugin-testing v1.4.0 h1:DVIXxw7VHZvnwWVik4HzhpC2yytaJ5FpiHxz5debKmE= -github.com/hashicorp/terraform-plugin-testing v1.4.0/go.mod h1:b7Bha24iGrbZQjT+ZE8m9crck1YjdVOZ8mfGCQ19OxA= github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c= github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0= github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJDC6YlgCVbWDtNmmZKtBno= @@ -140,8 +121,6 @@ github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= -github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk= -github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg= github.com/imdario/mergo v0.3.15 h1:M8XP7IuFNsqUx6VPK2P9OSmsYsI/YFaGil0uD21V3dM= github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= @@ -164,10 +143,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/microsoft/kiota-abstractions-go v1.2.0 h1:lUriJgqdCY/QajwWQOgTCQE9Atywfe2NHhgoTCSXTRE= -github.com/microsoft/kiota-abstractions-go v1.2.0/go.mod h1:RkxyZ5x87Njik7iVeQY9M2wtrrL1MJZcXiI/BxD/82g= -github.com/microsoft/kiota-abstractions-go v1.2.1 h1:TnLF7rjy1GfhuGK2ra/a3Vuz6piFXTR1OfdNoqesagA= -github.com/microsoft/kiota-abstractions-go v1.2.1/go.mod h1:rEeeaytcnal/If3f1tz6/spFz4V+Hiqvz3rxF+oWQFA= +github.com/microsoft/kiota-abstractions-go v1.3.0 h1:mZTAg+Lf43+hoqTYWT53F/Dg+f0bqtHULnTI/GyiXn8= +github.com/microsoft/kiota-abstractions-go v1.3.0/go.mod h1:yPSuzNSOIVQSFFe1iT+3Lu5zmis22E8Wg+bkyjhd+pY= github.com/microsoft/kiota-http-go v1.1.0 h1:L5I93EiNtlP/X6YzeTlhjWt7Q1DxzC9CmWSVtX3b0tE= github.com/microsoft/kiota-http-go v1.1.0/go.mod h1:zESUM6ovki9LEupqziCbxJ+FAYoF0dFDYZVpOkAfSLc= github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ= @@ -203,11 +180,12 @@ github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= -github.com/skeema/knownhosts v1.1.0 h1:Wvr9V0MxhjRbl3f9nMnKnFfiWTJmtECJ9Njkea3ysW0= github.com/skeema/knownhosts v1.2.0 h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJCpM= github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= +github.com/std-uritemplate/std-uritemplate/go v0.0.42 h1:rG+XlE4drkVWs2NLfGS15N+vg+CUcjXElQKvJ0fctlI= +github.com/std-uritemplate/std-uritemplate/go v0.0.42/go.mod h1:Qov4Ay4U83j37XjgxMYevGJFLbnZ2o9cEOhGufBKgKY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -220,30 +198,20 @@ github.com/topicuskeyhub/sdk-go v0.28.1/go.mod h1:nP1C2RvZXfnEPjFy5AfdLJIWaM6IQA github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= -github.com/vmihailenco/msgpack/v5 v5.3.5 h1:5gO0H1iULLWGhs2H5tbAHIZTV8/cYafcFOr9znI5mJU= -github.com/vmihailenco/msgpack/v5 v5.3.5/go.mod h1:7xyJ9e+0+9SaZT0Wt1RGleJXzli6Q/V5KbhBonMG9jc= +github.com/vmihailenco/msgpack/v5 v5.4.0 h1:hRM0digJwyR6vll33NNAwCFguy5JuBD6jxDmQP3l608= +github.com/vmihailenco/msgpack/v5 v5.4.0/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= -github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4= -github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zclconf/go-cty v1.13.3 h1:m+b9q3YDbg6Bec5rr+KGy1MzEVzY/jC2X+YX4yqKtHI= -github.com/zclconf/go-cty v1.13.3/go.mod h1:YKQzy/7pZ7iq2jNFzy5go57xdxdWoLLpaEp4u238AE0= -github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc= -github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= -go.opentelemetry.io/otel v1.17.0 h1:MW+phZ6WZ5/uk2nd93ANk/6yJ+dVrvNWUjGhnnFU5jM= -go.opentelemetry.io/otel v1.17.0/go.mod h1:I2vmBGtFaODIVMBSTPVDlJSzBDNf93k60E6Ft0nyjo0= -go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs= -go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI= -go.opentelemetry.io/otel/metric v1.17.0 h1:iG6LGVz5Gh+IuO0jmgvpTB6YVrCGngi8QGm+pMd8Pdc= -go.opentelemetry.io/otel/metric v1.17.0/go.mod h1:h4skoxdZI17AxwITdmdZjjYJQH5nzijUUjm+wtPph5o= -go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ= -go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k= -go.opentelemetry.io/otel/trace v1.17.0 h1:/SWhSRHmDPOImIAetP1QAeMnZYiQXrTy4fMMYOdSKWQ= -go.opentelemetry.io/otel/trace v1.17.0/go.mod h1:I/4vKTgFclIsXRVucpH25X0mpFSczM7aHeaz0ZBLWjY= -go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10= -go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0= +github.com/zclconf/go-cty v1.14.1 h1:t9fyA35fwjjUMcmL5hLER+e/rEPqrbCK1/OSE4SI9KA= +github.com/zclconf/go-cty v1.14.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE= +go.opentelemetry.io/otel v1.19.0 h1:MuS/TNf4/j4IXsZuJegVzI1cwut7Qc00344rgH7p8bs= +go.opentelemetry.io/otel v1.19.0/go.mod h1:i0QyjOq3UPoTzff0PJB2N66fb4S0+rSbSB15/oyH9fY= +go.opentelemetry.io/otel/metric v1.19.0 h1:aTzpGtV0ar9wlV4Sna9sdJyII5jTVJEvKETPiOKwvpE= +go.opentelemetry.io/otel/metric v1.19.0/go.mod h1:L5rUsV9kM1IxCj1MmSdS+JQAcVm319EUrDVLrt7jqt8= +go.opentelemetry.io/otel/trace v1.19.0 h1:DFVQmlVbfVeOuBRrwdtaehRrWiL1JoVs9CPIQ1Dzxpg= +go.opentelemetry.io/otel/trace v1.19.0/go.mod h1:mfaSyvGyEJEI0nyV2I4qhNQnbBOUUmYZpYojqMnX2vo= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200820211705-5c72a883971a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= @@ -251,34 +219,25 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU= -golang.org/x/crypto v0.12.0 h1:tFM/ta59kqch6LlvYnPa0yx5a83cL2nHflFhYKvv9Yk= -golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw= -golang.org/x/crypto v0.13.0 h1:mvySKfSWJ+UKUii46M40LOvyWfN0s2U+46/jDd0e6Ck= -golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc= -golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME= -golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9 h1:GoHiUyI/Tp2nVkLI2mCxVkOjsbSXD66ic0XW0js0R9g= -golang.org/x/exp v0.0.0-20230905200255-921286631fa9/go.mod h1:S2oDrQGGwySpoQPVqRShND87VCbxmc6bL1Yd2oYrm6k= +golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI= +golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.12.0 h1:rmsUpXtvNzj340zd98LZ4KntptpfRHwpFOHG188oHXc= -golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/mod v0.13.0 h1:I/DsJXRlw/8l/0c24sM9yb0T4z9liZTduXvdAWYiysY= +golang.org/x/mod v0.13.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= -golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= -golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= -golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= -golang.org/x/oauth2 v0.11.0 h1:vPL4xzxBM4niKCW6g9whtaWVXTJf1U5e4aZxxFx/gbU= -golang.org/x/oauth2 v0.11.0/go.mod h1:LdF7O/8bLR/qWK9DrpXmbHLTouvRHK0SgJl0GmDBchk= -golang.org/x/oauth2 v0.12.0 h1:smVPGxink+n1ZI5pkQa8y6fZT0RW0MgCO5bFpepy4B4= -golang.org/x/oauth2 v0.12.0/go.mod h1:A74bZ3aGXgCY0qaIC9Ahg6Lglin4AMAco8cIv9baba4= +golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= +golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY= +golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -299,10 +258,8 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= -golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= -golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= @@ -316,29 +273,22 @@ golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/text v0.12.0 h1:k+n5B8goJNdU7hSvEtMUz3d1Q6D/XW4COJSJR6fN0mc= -golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= -google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= -google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d h1:uvYuEyMHKNt+lT4K3bN6fGswmK8qSvcreM3BwjDh+y4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230822172742-b8732ec3820d/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb h1:Isk1sSH7bovx8Rti2wZK0UZF6oraBDK74uoyLEEVFN0= -google.golang.org/genproto/googleapis/rpc v0.0.0-20230913181813-007df8e322eb/go.mod h1:+Bk1OCOj40wS2hwAMA+aCW9ypzm63QTBBHp6lQ3p+9M= -google.golang.org/grpc v1.57.0 h1:kfzNeI/klCGD2YPMUlaGNT3pxvYfga7smW3Vth8Zsiw= -google.golang.org/grpc v1.57.0/go.mod h1:Sd+9RMTACXwmub0zcNY2c4arhtrbBYD1AUHI/dt16Mo= -google.golang.org/grpc v1.58.1 h1:OL+Vz23DTtrrldqHK49FUOPHyY75rvFqJfXC84NYW58= -google.golang.org/grpc v1.58.1/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a h1:a2MQQVoTo96JC9PMGtGBymLp7+/RzpFc2yX/9WfFg1c= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:4cYg8o5yUbm77w8ZX00LhMVNl/YVBFJRYWDc0uYWMs0= +google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ= +google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= @@ -352,6 +302,5 @@ gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 8e57519f09b1117dcddf6b3826818e55172c732e Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 13 Oct 2023 18:12:37 +0200 Subject: [PATCH 18/34] Add validation --- internal/provider/full-data-struct-ds.go | 68 +- internal/provider/full-data-struct-rs.go | 68 +- internal/provider/full-object-attrs-ds.go | 68 +- internal/provider/full-object-attrs-rs.go | 68 +- internal/provider/full-schema-ds.go | 815 +++++----- internal/provider/full-schema-rs.go | 1340 +++++++++++++---- .../provider/full-tf-to-data-struct-ds.go | 68 +- .../provider/full-tf-to-data-struct-rs.go | 68 +- internal/provider/full-tf-to-tkh-ds.go | 298 ++-- internal/provider/full-tf-to-tkh-rs.go | 298 ++-- internal/provider/full-tkh-to-tf-ds.go | 288 ++-- internal/provider/full-tkh-to-tf-rs.go | 288 ++-- 12 files changed, 2214 insertions(+), 1521 deletions(-) diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index f643f81..e0dc6a9 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -644,10 +644,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - InternalDirectory types.Object `tfsdk:"internal_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1266,8 +1266,8 @@ type launchpadLaunchpadTileDataDS struct { Logo types.List `tfsdk:"logo"` VaultRecord types.Object `tfsdk:"vault_record"` VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` - ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -2077,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2353,43 +2353,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 618facb..cbb9f07 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -609,10 +609,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - InternalDirectory types.Object `tfsdk:"internal_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1211,8 +1211,8 @@ type launchpadLaunchpadTileDataRS struct { Logo types.List `tfsdk:"logo"` VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` - ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` + ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` } var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) @@ -1939,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2213,43 +2213,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index c8e3a26..82f9cf1 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -613,10 +613,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} return objectAttrs } @@ -1202,8 +1202,8 @@ func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1977,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} return objectAttrs } @@ -2224,43 +2224,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 30e5bfb..cb4bb27 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -576,10 +576,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} return objectAttrs } @@ -1145,8 +1145,8 @@ func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type objectAttrs["logo"] = types.ListType{ElemType: types.StringType} objectAttrs["vault_record_uuid"] = types.StringType objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} return objectAttrs } @@ -1835,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} return objectAttrs } @@ -2080,43 +2080,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index fcd4579..9bef507 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -4,6 +4,8 @@ package provider import ( + "regexp" + "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" dsschema "github.com/hashicorp/terraform-plugin-framework/datasource/schema" @@ -132,6 +134,9 @@ func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dssch schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -157,23 +162,17 @@ func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dssch schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "parent", - "passwordMetadata", - "secret", - "shareSummary", - "shares", - "tile", - "vaultholder", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", + )), }, } schemaAttrs["derived"] = dsschema.BoolAttribute{ @@ -224,11 +223,9 @@ func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Att ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ @@ -348,17 +345,9 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "activeLogin", - "audit", - "groups", - "pendingRecoveryRequests", - "settings", - "storedAttributes", - "vault", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "activeLogin", "audit", "groups", "pendingRecoveryRequests", "settings", "storedAttributes", "vault", + )), }, } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ @@ -656,17 +645,9 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "activeLogin", - "audit", - "groups", - "pendingRecoveryRequests", - "settings", - "storedAttributes", - "vault", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "activeLogin", "audit", "groups", "pendingRecoveryRequests", "settings", "storedAttributes", "vault", + )), }, } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ @@ -861,16 +842,17 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["key_data"] = dsschema.ListAttribute{ @@ -931,6 +913,9 @@ func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string] schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -953,6 +938,9 @@ func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[st schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -978,23 +966,17 @@ func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[st schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "parent", - "passwordMetadata", - "secret", - "shareSummary", - "shares", - "tile", - "vaultholder", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", + )), }, } schemaAttrs["derived"] = dsschema.BoolAttribute{ @@ -1060,21 +1042,17 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groupclients", - "groups", - "secret", - "tile", - "vaultRecordCount", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "groupclients", "groups", "secret", "tile", "vaultRecordCount", + )), }, } schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ @@ -1145,6 +1123,9 @@ func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -1265,11 +1246,9 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ @@ -1319,11 +1298,9 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) m ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ @@ -1397,6 +1374,9 @@ func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[s schemaAttrs["deleted_vault_holder_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -1422,23 +1402,17 @@ func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[s schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "parent", - "passwordMetadata", - "secret", - "shareSummary", - "shares", - "tile", - "vaultholder", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", + )), }, } schemaAttrs["derived"] = dsschema.BoolAttribute{ @@ -1500,18 +1474,17 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "markers", - "status", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "markers", "status", + )), }, } schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ @@ -1534,22 +1507,22 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), - Computed: true, - } - schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), - Computed: true, - } schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), Computed: true, } + schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Computed: true, + } schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), Computed: true, } + schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1591,6 +1564,9 @@ func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[stri schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -1795,17 +1771,17 @@ func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.At schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "vault", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "vault", + )), }, } schemaAttrs["end_date"] = dsschema.StringAttribute{ @@ -1893,42 +1869,17 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "accounts", - "administeredClients", - "administeredSystems", - "admins", - "audit", - "authorizedGroups", - "clientPermissions", - "clients", - "contentAdministeredSystems", - "groupauditinginfo", - "groupinfo", - "helpdesk", - "markers", - "myaccount", - "mydelegatedaccount", - "nestedGroups", - "ownedClients", - "ownedDirectories", - "ownedGroupsOnSystem", - "ownedOrganizationalUnits", - "ownedSystems", - "recentAudits", - "requeststatus", - "serviceAccounts", - "systems", - "vault", - "webhooks", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "accounts", "administeredClients", "administeredSystems", "admins", "audit", "authorizedGroups", "clientPermissions", "clients", "contentAdministeredSystems", "groupauditinginfo", "groupinfo", "helpdesk", "markers", "myaccount", "mydelegatedaccount", "nestedGroups", "ownedClients", "ownedDirectories", "ownedGroupsOnSystem", "ownedOrganizationalUnits", "ownedSystems", "recentAudits", "requeststatus", "serviceAccounts", "systems", "vault", "webhooks", + )), }, } schemaAttrs["application_administration"] = dsschema.BoolAttribute{ @@ -2045,11 +1996,9 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ @@ -2149,11 +2098,9 @@ func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attr ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ @@ -2338,17 +2285,17 @@ func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dssc schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "info", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "info", + )), }, } schemaAttrs["authorizing_group_auditing_required"] = dsschema.BoolAttribute{ @@ -2427,6 +2374,9 @@ func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[strin schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -2474,11 +2424,9 @@ func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Att ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ @@ -2544,11 +2492,9 @@ func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Att ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -2629,6 +2575,9 @@ func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Att schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -2822,11 +2771,9 @@ func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dssche ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["activation_required"] = dsschema.BoolAttribute{ @@ -2871,6 +2818,9 @@ func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschem schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2896,23 +2846,17 @@ func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschem schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "parent", - "passwordMetadata", - "secret", - "shareSummary", - "shares", - "tile", - "vaultholder", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", + )), }, } schemaAttrs["derived"] = dsschema.BoolAttribute{ @@ -3010,11 +2954,9 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["application"] = dsschema.SingleNestedAttribute{ @@ -3043,14 +2985,14 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), Computed: true, } - schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), - Computed: true, - } schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), Computed: true, } + schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -3158,6 +3100,9 @@ func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dssc schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["version"] = dsschema.Int64Attribute{ Computed: true, @@ -3203,6 +3148,9 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss schemaAttrs["account_directory_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3236,17 +3184,9 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "activeLogin", - "audit", - "groups", - "pendingRecoveryRequests", - "settings", - "storedAttributes", - "vault", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "activeLogin", "audit", "groups", "pendingRecoveryRequests", "settings", "storedAttributes", "vault", + )), }, } schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ @@ -3341,6 +3281,9 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3358,11 +3301,9 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ @@ -3389,6 +3330,9 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3411,17 +3355,17 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "vault", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "vault", + )), }, } schemaAttrs["end_date"] = dsschema.StringAttribute{ @@ -3456,6 +3400,9 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3489,11 +3436,9 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ @@ -3537,6 +3482,9 @@ func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschem schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3554,11 +3502,9 @@ func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschem ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ @@ -3610,6 +3556,9 @@ func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bo schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3629,16 +3578,17 @@ func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bo schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } return schemaAttrs @@ -3654,6 +3604,9 @@ func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bo schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3687,11 +3640,9 @@ func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bo ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ @@ -3711,6 +3662,9 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3740,13 +3694,9 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "provgroups", - "serviceAccounts", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "provgroups", "serviceAccounts", + )), }, } schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ @@ -3770,6 +3720,9 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3803,11 +3756,9 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["uid"] = dsschema.Int64Attribute{ @@ -3826,6 +3777,9 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse boo schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3843,11 +3797,9 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse boo ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["created_at"] = dsschema.StringAttribute{ @@ -3875,6 +3827,9 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3904,11 +3859,9 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } return schemaAttrs @@ -3924,6 +3877,9 @@ func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string] schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3941,11 +3897,9 @@ func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string] ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ @@ -4152,16 +4106,17 @@ func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) ma schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } return schemaAttrs @@ -4210,16 +4165,17 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[strin schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["depth"] = dsschema.Int64Attribute{ @@ -4278,11 +4234,9 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) ma ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ @@ -4339,6 +4293,9 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -4496,13 +4453,9 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "provgroups", - "serviceAccounts", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "provgroups", "serviceAccounts", + )), }, } schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ @@ -4653,12 +4606,9 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "systems", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "systems", + )), }, } schemaAttrs["account_count"] = dsschema.Int64Attribute{ @@ -4741,11 +4691,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[strin ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["uid"] = dsschema.Int64Attribute{ @@ -4884,23 +4832,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "account", - "audit", - "issuedPermissions", - "loginName", - "managementPermissions", - "markers", - "statistics", - "supportedGroupTypes", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "account", "audit", "issuedPermissions", "loginName", "managementPermissions", "markers", "statistics", "supportedGroupTypes", + )), }, } schemaAttrs["account_count"] = dsschema.Int64Attribute{ @@ -4936,36 +4878,36 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), - Computed: true, - } schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, } - schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Computed: true, - } - schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Computed: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Computed: true, + } + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Computed: true, + } + schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } return schemaAttrs @@ -5010,6 +4952,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -5047,11 +4992,9 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["created_at"] = dsschema.StringAttribute{ @@ -5354,12 +5297,9 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "resetStatus", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "resetStatus", + )), }, } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ @@ -5385,152 +5325,152 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - Computed: true, - } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Computed: true, - } schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Computed: true, + } + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Computed: true, } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Computed: true, + } + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), Computed: true, } return schemaAttrs @@ -5749,18 +5689,17 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "groups", - "secret", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "groups", "secret", + )), }, } schemaAttrs["description"] = dsschema.StringAttribute{ @@ -5815,11 +5754,9 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[st ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } return schemaAttrs @@ -5882,6 +5819,9 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[s schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -5983,12 +5923,9 @@ func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dssch ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "vault", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "vault", + )), }, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -6162,23 +6099,17 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - "parent", - "passwordMetadata", - "secret", - "shareSummary", - "shares", - "tile", - "vaultholder", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", + )), }, } schemaAttrs["derived"] = dsschema.BoolAttribute{ @@ -6241,6 +6172,9 @@ func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dssche schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } return schemaAttrs } @@ -6382,11 +6316,9 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["account"] = dsschema.SingleNestedAttribute{ @@ -6457,6 +6389,9 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["verbose_payloads"] = dsschema.BoolAttribute{ Computed: true, @@ -6487,11 +6422,9 @@ func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dssche ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "audit", - ), - ), + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", + )), }, } schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 3614c87..0728b4c 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -4,6 +4,10 @@ package provider import ( + "regexp" + + "github.com/hashicorp/terraform-plugin-framework-validators/int64validator" + "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" @@ -14,6 +18,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier" + "github.com/hashicorp/terraform-plugin-framework/schema/validator" "github.com/hashicorp/terraform-plugin-framework/types" ) @@ -51,7 +56,6 @@ func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute ElementType: types.StringType, Optional: true, } - schemaAttrs["exception"] = rsschema.StringAttribute{ Optional: true, } @@ -65,7 +69,6 @@ func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]rsschema.Attribute { @@ -94,7 +97,6 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -102,7 +104,6 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - return schemaAttrs } func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute { @@ -151,6 +152,9 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -159,7 +163,6 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -167,14 +170,21 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ Computed: true, @@ -193,20 +203,30 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem } schemaAttrs["filename"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + ), + }, } return schemaAttrs } @@ -225,7 +245,6 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -233,7 +252,6 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -320,7 +338,6 @@ func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -346,7 +363,6 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -354,7 +370,6 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, } @@ -377,7 +392,6 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute }, Computed: true, } - schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, } @@ -435,6 +449,11 @@ func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema. schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["action"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "CHANGE_LICENSE_ROLE_TO_PRO", "CHANGE_LICENSE_ROLE_TO_BUSINESS", "MARK_FOR_RENAME", + ), + }, } schemaAttrs["exclusive_selection"] = rsschema.BoolAttribute{ Computed: true, @@ -445,13 +464,15 @@ func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema. ElementType: types.Int64Type, Required: true, } - return schemaAttrs } func resourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["locale"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 31), + }, } return schemaAttrs } @@ -463,7 +484,6 @@ func resourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]rssc }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { @@ -475,7 +495,6 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -483,7 +502,6 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, } @@ -520,12 +538,20 @@ func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.At schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["directory_name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["directory_type"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", + ), + }, } schemaAttrs["in_groups"] = rsschema.BoolAttribute{ Computed: true, @@ -549,12 +575,22 @@ func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.At } schemaAttrs["password_mode"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "UNSET", "ONE_PASSWORD_UNSYNCED", "ONE_PASSWORD", "TWO_PASSWORDS", + ), + }, } schemaAttrs["ssh_public_key"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["two_factor_authentication"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "DISABLED", "EXTERNAL", "TOTP", "APP", "WEBAUTHN", "MIXED", + ), + }, } schemaAttrs["use_token_password"] = rsschema.BoolAttribute{ Computed: true, @@ -563,6 +599,11 @@ func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.At } schemaAttrs["vault_status"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "NOT_CREATED", "INITIALIZING", "LOCKED", "UNLOCKED", + ), + }, } return schemaAttrs } @@ -579,6 +620,11 @@ func resourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]rsschema.Attr } schemaAttrs["license_role"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "BUSINESS", "PRO", + ), + }, } schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ Optional: true, @@ -651,6 +697,9 @@ func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.At schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ Computed: true, @@ -660,18 +709,35 @@ func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.At } schemaAttrs["company"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["first_name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["last_name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "UNVERIFIED", "NOT_ACTIVATED", "ACTIVATION_EXPIRED", "ACTIVATED", + ), + }, } schemaAttrs["telephone"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -683,13 +749,17 @@ func resourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[str }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["status"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "UNVERIFIED", "NOT_ACTIVATED", "ACTIVATION_EXPIRED", "ACTIVATED", + ), + }, } return schemaAttrs } @@ -710,12 +780,10 @@ func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribu ElementType: types.StringType, Optional: true, } - schemaAttrs["operations"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["type_escaped"] = rsschema.StringAttribute{ Optional: true, } @@ -739,7 +807,6 @@ func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rss }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { @@ -757,7 +824,6 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -765,9 +831,11 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 128), + }, } schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ Computed: true, @@ -777,7 +845,6 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema ElementType: types.StringType, Optional: true, } - schemaAttrs["expiration"] = rsschema.StringAttribute{ Computed: true, } @@ -803,7 +870,6 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -814,7 +880,6 @@ func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[ }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { @@ -826,7 +891,6 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -834,9 +898,11 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 128), + }, } schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ Computed: true, @@ -846,7 +912,6 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs ElementType: types.StringType, Optional: true, } - schemaAttrs["expiration"] = rsschema.StringAttribute{ Computed: true, } @@ -888,6 +953,9 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri } schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -896,7 +964,6 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -904,14 +971,21 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ Computed: true, @@ -930,20 +1004,30 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri } schemaAttrs["filename"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + ), + }, } return schemaAttrs } @@ -962,7 +1046,6 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -970,22 +1053,26 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["scopes"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -999,9 +1086,15 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["o_auth2_client"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2Client(false), @@ -1025,7 +1118,6 @@ func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { @@ -1037,7 +1129,6 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1045,22 +1136,26 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["scopes"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1108,6 +1203,9 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ Computed: true, @@ -1130,7 +1228,6 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att }, Computed: true, } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), Optional: true, @@ -1150,6 +1247,9 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att } schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["initiate_login_uri"] = rsschema.StringAttribute{ Optional: true, @@ -1192,7 +1292,6 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1200,15 +1299,25 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["value"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", + ), + }, } return schemaAttrs } @@ -1220,7 +1329,6 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { @@ -1238,7 +1346,6 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1246,15 +1353,25 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["value"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", + ), + }, } schemaAttrs["client"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2Client(false), @@ -1270,7 +1387,6 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(re }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -1296,9 +1412,17 @@ func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attr } schemaAttrs["metadata_url"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["subject_format"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ID", "UPN", "USERNAME", "EMAIL", + ), + }, } return schemaAttrs } @@ -1316,6 +1440,9 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str } schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1324,7 +1451,6 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1332,14 +1458,21 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ Computed: true, @@ -1358,20 +1491,30 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str } schemaAttrs["filename"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + ), + }, } return schemaAttrs } @@ -1390,7 +1533,6 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1398,7 +1540,6 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1414,6 +1555,9 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -1421,6 +1565,9 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["default_directory"] = rsschema.BoolAttribute{ Computed: true, @@ -1429,6 +1576,9 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ Computed: true, @@ -1437,28 +1587,33 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } schemaAttrs["rotating_password"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "DEFAULT_OFF", "DEFAULT_ON", "ALWAYS_ON", + ), + }, } schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), - Optional: true, - } - schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), - Optional: true, - } schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), Optional: true, } + schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + Optional: true, + } schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), Optional: true, } + schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1469,7 +1624,6 @@ func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) m }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { @@ -1481,7 +1635,6 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1489,7 +1642,6 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, @@ -1505,6 +1657,9 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -1524,6 +1679,11 @@ func resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[ } schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "INIT_REQUIRED", "ONLINE", "DEGRADED", "NON_REDUNDANT", "OFFLINE", "DISABLED", + ), + }, } return schemaAttrs } @@ -1536,7 +1696,6 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1544,9 +1703,13 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", + ), + }, } schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ Optional: true, @@ -1576,7 +1739,6 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -1599,6 +1761,9 @@ func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rssc schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -1606,29 +1771,54 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["dialect"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), + Validators: []validator.String{ + stringvalidator.OneOf( + "ACTIVE_DIRECTORY", "OPENLDAP", + ), + }, } schemaAttrs["failover_host"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["host"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["password_recovery"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "DISABLED", "VERIFY_2FA", "VERIFY_MAIL", "VERIFY_MAIL_AND_2FA", + ), + }, } schemaAttrs["port"] = rsschema.Int64Attribute{ Computed: true, @@ -1637,18 +1827,35 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema } schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 128), + }, } schemaAttrs["search_filter"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["tls"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", + ), + }, } schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -1660,18 +1867,30 @@ func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["acr_values"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ Computed: true, @@ -1683,9 +1902,15 @@ func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema } schemaAttrs["issuer"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["logout_url"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ Computed: true, @@ -1694,6 +1919,11 @@ func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema } schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "GENERIC", "GOOGLE", "AZURE_AD", + ), + }, } return schemaAttrs } @@ -1707,6 +1937,9 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -1723,6 +1956,11 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr } schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANAGER", "NORMAL", + ), + }, } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -1737,7 +1975,6 @@ func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[strin }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -1760,7 +1997,6 @@ func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rs }, Optional: true, } - schemaAttrs["group_count"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -1783,7 +2019,6 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -1791,13 +2026,15 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -1821,24 +2058,38 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { } schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ Computed: true, Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, @@ -1847,6 +2098,11 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, Optional: true, Default: stringdefault.StaticString("NOT_ALLOWED"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NOT_ALLOWED", "ONE_WEEK", "TWO_WEEKS", "TWO_WEEKS_NO_CONFIRM", + ), + }, } schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ Computed: true, @@ -1855,10 +2111,16 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { } schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Computed: true, Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["private_group"] = rsschema.BoolAttribute{ Computed: true, @@ -1884,6 +2146,11 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, Optional: true, Default: stringdefault.StaticString("FULL"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "RECOVERY_KEY_ONLY", "FULL", + ), + }, } schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ Computed: true, @@ -1902,6 +2169,9 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Computed: true, @@ -1923,6 +2193,11 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr } schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANAGER", "NORMAL", + ), + }, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ Computed: true, @@ -1940,7 +2215,6 @@ func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[strin }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rsschema.Attribute { @@ -1993,7 +2267,6 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2001,14 +2274,12 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), }, Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ Optional: true, } @@ -2032,6 +2303,11 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib } schemaAttrs["status"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "NEW", "DRAFT", "UNDER_REVIEW", "FINAL", + ), + }, } schemaAttrs["submitted_at"] = rsschema.StringAttribute{ Computed: true, @@ -2050,7 +2326,6 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2058,7 +2333,6 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, } @@ -2067,6 +2341,11 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema } schemaAttrs["action"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "APPROVE", "CHANGE_TO_MANAGER", "CHANGE_TO_NORMAL", "REMOVE", "CONNECT_NESTED", + ), + }, } schemaAttrs["comment"] = rsschema.StringAttribute{ Optional: true, @@ -2106,7 +2385,6 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2114,13 +2392,11 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["months"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Computed: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2131,7 +2407,6 @@ func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string] }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2197,7 +2472,6 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2205,9 +2479,11 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -2244,11 +2520,17 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche Computed: true, Optional: true, Default: int64default.StaticInt64(0), + Validators: []validator.Int64{ + int64validator.Between(0, 12), + }, } schemaAttrs["minimum_nr_managers"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(1), + Validators: []validator.Int64{ + int64validator.AtLeast(1), + }, } schemaAttrs["record_trail_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2259,7 +2541,6 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche ElementType: types.StringType, Optional: true, } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -2289,7 +2570,6 @@ func resourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) ma }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { @@ -2301,7 +2581,6 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2309,9 +2588,11 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -2323,6 +2604,9 @@ func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string] schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -2353,7 +2637,6 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2361,7 +2644,6 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -2391,7 +2673,6 @@ func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2417,7 +2698,6 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2425,9 +2705,11 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -2439,7 +2721,6 @@ func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2492,7 +2773,6 @@ func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rssch }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { @@ -2504,7 +2784,6 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2512,13 +2791,15 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -2532,7 +2813,6 @@ func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2543,14 +2823,12 @@ func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[str }, Optional: true, } - schemaAttrs["segments"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsSegmentCount(recurse), }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2678,7 +2956,6 @@ func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema. }, Optional: true, } - schemaAttrs["overdue_audit_groups"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -2721,7 +2998,6 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2729,7 +3005,6 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -2754,7 +3029,6 @@ func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[ }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2775,6 +3049,9 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2783,7 +3060,6 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2791,14 +3067,21 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ Computed: true, @@ -2817,20 +3100,30 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. } schemaAttrs["filename"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + ), + }, } return schemaAttrs } @@ -2843,7 +3136,6 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2851,9 +3143,11 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ Computed: true, @@ -2864,7 +3158,6 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string ElementType: types.StringType, Optional: true, } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), Optional: true, @@ -2885,7 +3178,6 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[strin }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { @@ -2903,7 +3195,6 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2911,12 +3202,17 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ Computed: true, @@ -2931,22 +3227,24 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema ElementType: types.StringType, Optional: true, } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), Optional: true, } - schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), - Optional: true, - } schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), Optional: true, } + schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -2957,7 +3255,6 @@ func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[ }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { @@ -2969,7 +3266,6 @@ func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -2977,7 +3273,6 @@ func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - return schemaAttrs } func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -2992,6 +3287,9 @@ func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rs schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["title"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uri"] = rsschema.StringAttribute{ Required: true, @@ -3013,23 +3311,32 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["current_license_status"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "OK", "NOT_YET_VALID", "EXPIRED", "TERMINATED", "SOFT_LIMIT_REACHED", "HARD_LIMIT_REACHED", "HARD_LIMIT_EXCEEDED", "WRONG_DOMAIN", "PRO_LIMIT_EXCEEDED", "FEATURE_IN_USE", + ), + }, } schemaAttrs["customer_company"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 100), + }, } schemaAttrs["customer_contact"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 100), + }, } schemaAttrs["customer_domains"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["details"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ Optional: true, } @@ -3037,7 +3344,6 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche ElementType: types.StringType, Optional: true, } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ Optional: true, } @@ -3061,6 +3367,9 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche } schemaAttrs["uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + }, } schemaAttrs["version"] = rsschema.Int64Attribute{ Computed: true, @@ -3073,9 +3382,19 @@ func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribu schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["level"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "INFO", "WARNING", + ), + }, } schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "TLS_DISABLED", "TLS_UNVERIFIED", "WEAK_PASSWORD_HASHING", "GROUP_NO_MANAGER", "GROUP_ONE_MANAGER", "GROUP_UNREADABLE_VAULT", "GROUP_UNRECOVERABLE_VAULT", "GROUP_CRITERIA_UNSATISFIED_AUDIT_INTERVAL", "GROUP_CRITERIA_UNSATISFIED_AUDIT_MONTHS", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_PROVISIONING", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_MEMBERSHIP", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_DELEGATION", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_AUDITING", "GROUP_CRITERIA_UNSATISFIED_RECORD_TRAIL", "GROUP_CRITERIA_UNSATISFIED_ROTATING_PASSWORD_REQUIRED", "GROUP_CRITERIA_UNSATISFIED_VAULT_REQUIRES_ACTIVATION", "GROUP_CRITERIA_UNSATISFIED_MINIMUM_NR_MANAGERS", + ), + }, } schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), @@ -3095,16 +3414,21 @@ func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attrib }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_directory_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ Computed: true, @@ -3114,18 +3438,35 @@ func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rssch } schemaAttrs["company"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["first_name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["last_name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "UNVERIFIED", "NOT_ACTIVATED", "ACTIVATION_EXPIRED", "ACTIVATED", + ), + }, } schemaAttrs["telephone"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -3139,6 +3480,9 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str } schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3147,7 +3491,6 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3155,15 +3498,25 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["value"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", + ), + }, } return schemaAttrs } @@ -3177,9 +3530,15 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -3196,6 +3555,11 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem } schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANAGER", "NORMAL", + ), + }, } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -3212,9 +3576,15 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Computed: true, @@ -3236,6 +3606,11 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem } schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANAGER", "NORMAL", + ), + }, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ Computed: true, @@ -3255,6 +3630,9 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3263,7 +3641,6 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3271,14 +3648,12 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), }, Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ Optional: true, } @@ -3302,6 +3677,11 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. } schemaAttrs["status"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "NEW", "DRAFT", "UNDER_REVIEW", "FINAL", + ), + }, } schemaAttrs["submitted_at"] = rsschema.StringAttribute{ Computed: true, @@ -3321,9 +3701,15 @@ func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -3337,12 +3723,21 @@ func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -3356,6 +3751,9 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3364,7 +3762,6 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3372,24 +3769,37 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -3403,9 +3813,15 @@ func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[s } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ Computed: true, @@ -3423,6 +3839,9 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3431,7 +3850,6 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3439,7 +3857,6 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["created_at"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -3468,6 +3885,9 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma } schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3476,7 +3896,6 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3484,15 +3903,22 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, @@ -3509,6 +3935,9 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs } schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3517,7 +3946,6 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3525,7 +3953,6 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookPush(false), Optional: true, @@ -3573,6 +4000,11 @@ func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) } schemaAttrs["usage"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "LDAP_DIRECTORY", "PROVISIONED_AD", "PROVISIONED_LDAP", "WEBHOOK", "LDAP_CLIENT", "LDAP_SERVER_SETTING", "GLOBAL_TRUSTED_CERTIFICATE", "IDP", "KEYHUB", + ), + }, } schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhook(recurse), @@ -3591,6 +4023,11 @@ func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) } schemaAttrs["notification_group_audit_required_notification_type"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "CONFORM", "PERIODIC", "REQUESTED", + ), + }, } return schemaAttrs } @@ -3606,6 +4043,11 @@ func resourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) } schemaAttrs["reason"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ONE_MANAGER", "CRITERIA_UNSATISFIED_AUDIT_INTERVAL", "CRITERIA_UNSATISFIED_AUDIT_MONTHS", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_PROVISIONING", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_MEMBERSHIP", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_DELEGATION", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_AUDITING", "CRITERIA_UNSATISFIED_RECORD_TRAIL", "CRITERIA_UNSATISFIED_ROTATING_PASSWORD_REQUIRED", "CRITERIA_UNSATISFIED_VAULT_REQUIRES_ACTIVATION", "CRITERIA_UNSATISFIED_MINIMUM_NR_MANAGERS", + ), + }, } return schemaAttrs } @@ -3636,12 +4078,10 @@ func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool ElementType: types.StringType, Optional: true, } - schemaAttrs["groups"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), Optional: true, @@ -3660,7 +4100,6 @@ func resourceSchemaAttrsNotificationNotifications(recurse bool) map[string]rssch }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]rsschema.Attribute { @@ -3682,7 +4121,6 @@ func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]rsschema.Attribute { @@ -3691,7 +4129,6 @@ func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]rsschema.Attribute { @@ -3719,6 +4156,9 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[ } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -3730,7 +4170,6 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(rec }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3756,7 +4195,6 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3764,9 +4202,11 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -3780,6 +4220,9 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ Computed: true, @@ -3796,9 +4239,15 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[ } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -3810,7 +4259,6 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(rec }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3829,7 +4277,6 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bo }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { @@ -3841,7 +4288,6 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -3849,9 +4295,11 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -3865,7 +4313,6 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recu ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -3888,30 +4335,54 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st } schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["bind_password"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 128), + }, } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["failover_host"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["group_dn"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["host"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["object_classes"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["port"] = rsschema.Int64Attribute{ Computed: true, @@ -3920,6 +4391,9 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st } schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ Computed: true, @@ -3928,12 +4402,23 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st } schemaAttrs["tls"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", + ), + }, } schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["user_dn"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -3948,6 +4433,11 @@ func resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[ } schemaAttrs["result"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "OK", "CONFIGURATION_REQUIRED", "ERROR", + ), + }, } schemaAttrs["system"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), @@ -3963,7 +4453,6 @@ func resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { @@ -3985,6 +4474,11 @@ func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[s } schemaAttrs["state"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "CLOSED", "OPEN", "HALF_OPEN", + ), + }, } return schemaAttrs } @@ -4003,7 +4497,6 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4011,24 +4504,37 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -4040,7 +4546,6 @@ func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) m }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { @@ -4052,7 +4557,6 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4060,15 +4564,22 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, @@ -4081,7 +4592,6 @@ func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string] ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4149,7 +4659,6 @@ func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map }, Optional: true, } - schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -4172,7 +4681,6 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4180,17 +4688,22 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["next_uid"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(2000), + Validators: []validator.Int64{ + int64validator.Between(2000, 60000), + }, } return schemaAttrs } @@ -4202,7 +4715,6 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recur }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4221,6 +4733,11 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "OMIT", "TRUNCATE", "TRANSFER", "TRANSFER_TRUNCATE", "USERNAME", + ), + }, } return schemaAttrs } @@ -4234,6 +4751,9 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ Computed: true, @@ -4249,7 +4769,6 @@ func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bo }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4264,6 +4783,9 @@ func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, @@ -4274,12 +4796,18 @@ func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bo schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, @@ -4290,6 +4818,9 @@ func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[str schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["client_id"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["client_secret"] = rsschema.StringAttribute{ Required: true, @@ -4299,6 +4830,9 @@ func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[str } schemaAttrs["tenant"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -4319,6 +4853,11 @@ func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rss } schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "SSHA", "PBKDF2", + ), + }, } schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), @@ -4330,9 +4869,15 @@ func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[s schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["group_dn"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -4351,7 +4896,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4359,7 +4903,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -4367,9 +4910,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ Computed: true, @@ -4384,12 +4933,18 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["external_uuid"] = rsschema.StringAttribute{ Computed: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ Computed: true, @@ -4413,40 +4968,46 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["username_prefix"] = rsschema.StringAttribute{ Optional: true, - } - schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), - Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, } - schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Optional: true, - } - schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), + schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), Optional: true, } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Optional: true, + } + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Optional: true, + } + schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } return schemaAttrs @@ -4459,7 +5020,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse boo }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { @@ -4471,7 +5031,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4479,7 +5038,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -4487,9 +5045,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ Computed: true, @@ -4507,7 +5071,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recur ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { @@ -4525,7 +5088,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4533,7 +5095,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[s Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["created_at"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, @@ -4560,7 +5121,6 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recu }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -4633,7 +5193,6 @@ func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string] }, Optional: true, } - schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -4657,6 +5216,9 @@ func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bo schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -4664,6 +5226,9 @@ func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(rec schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -4671,6 +5236,9 @@ func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recu schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -4712,6 +5280,9 @@ func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rss schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["private_key"] = rsschema.StringAttribute{ Optional: true, @@ -4727,6 +5298,11 @@ func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[stri } schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, @@ -4737,6 +5313,9 @@ func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rssch schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["group_name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -4744,6 +5323,9 @@ func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[str schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["username"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -4777,9 +5359,17 @@ func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[st schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["permission_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", + ), + }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -4817,6 +5407,9 @@ func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map } schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -4843,7 +5436,6 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -4851,18 +5443,29 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["comment"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["feedback"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["mail_key"] = rsschema.StringAttribute{ Computed: true, @@ -4874,153 +5477,158 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc } schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, - } - schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - Optional: true, - } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "REQUESTED", "ALLOWED", "DISALLOWED", "CANCELLED", + ), + }, } schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Optional: true, + } + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Optional: true, } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + Optional: true, + } + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), Optional: true, } return schemaAttrs @@ -5033,7 +5641,6 @@ func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -5076,7 +5683,6 @@ func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[stri ElementType: types.StringType, Optional: true, } - schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ Computed: true, Optional: true, @@ -5084,6 +5690,11 @@ func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[stri } schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "REACTIVATION", "EXTERNAL", + ), + }, } return schemaAttrs } @@ -5091,6 +5702,9 @@ func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rssch schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["group_name"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -5116,6 +5730,9 @@ func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rssch schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -5123,6 +5740,11 @@ func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[st schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "PROVISIONING", "MEMBERSHIP", "DELEGATION", "AUDITING", + ), + }, } schemaAttrs["connect"] = rsschema.BoolAttribute{ Computed: true, @@ -5131,6 +5753,9 @@ func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[st } schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -5138,6 +5763,11 @@ func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string] schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_action"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "REMOVE", "CONVERT", "RETAIN", + ), + }, } schemaAttrs["connect"] = rsschema.BoolAttribute{ Computed: true, @@ -5146,6 +5776,9 @@ func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string] } schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -5189,6 +5822,9 @@ func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recur schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -5196,6 +5832,9 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["current_end_date"] = rsschema.StringAttribute{ Computed: true, @@ -5208,9 +5847,19 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st } schemaAttrs["rights"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANAGER", "NORMAL", + ), + }, } schemaAttrs["update_group_membership_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ADD", "MODIFY", "REMOVE", + ), + }, } return schemaAttrs } @@ -5218,6 +5867,9 @@ func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[st schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } return schemaAttrs } @@ -5236,7 +5888,6 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5244,7 +5895,6 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -5252,9 +5902,15 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["username"] = rsschema.StringAttribute{ Computed: true, @@ -5272,9 +5928,17 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs } schemaAttrs["password_rotation"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANUAL", "MANUAL_STORED_IN_VAULT", "DAILY", + ), + }, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -5293,7 +5957,6 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5301,15 +5964,22 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Optional: true, @@ -5324,7 +5994,6 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -5343,7 +6012,6 @@ func resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse bool }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[string]rsschema.Attribute { @@ -5355,7 +6023,6 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5363,7 +6030,6 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -5371,9 +6037,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["username"] = rsschema.StringAttribute{ Computed: true, @@ -5391,7 +6063,6 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurs ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]rsschema.Attribute { @@ -5453,7 +6124,6 @@ func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attr ElementType: types.Int64Type, Optional: true, } - schemaAttrs["key_hub_version"] = rsschema.StringAttribute{ Optional: true, } @@ -5474,7 +6144,6 @@ func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5482,7 +6151,6 @@ func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } @@ -5504,7 +6172,6 @@ func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -5529,6 +6196,9 @@ func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rssch } schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -5536,14 +6206,25 @@ func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.A schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["action"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("MOVE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "MOVE", "COPY", "SHARE", + ), + }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), @@ -5617,7 +6298,6 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5625,7 +6305,6 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["access_available"] = rsschema.BoolAttribute{ Computed: true, Optional: true, @@ -5640,7 +6319,6 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attribute { @@ -5662,7 +6340,6 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5670,14 +6347,21 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ Computed: true, @@ -5696,20 +6380,30 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri } schemaAttrs["filename"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["warning_period"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + ), + }, } return schemaAttrs } @@ -5721,7 +6415,6 @@ func resourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema.Attribute { @@ -5733,7 +6426,6 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5741,14 +6433,21 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ Computed: true, @@ -5766,7 +6465,6 @@ func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[ ElementType: types.StringType, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsVaultVaultRecordSecrets(recurse bool) map[string]rsschema.Attribute { @@ -5797,6 +6495,11 @@ func resourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]rsschema. } schemaAttrs["vault_vault_record_share_type"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ACCOUNT", "CLIENT", "GROUP", + ), + }, } return schemaAttrs } @@ -5808,7 +6511,6 @@ func resourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]rs }, Optional: true, } - schemaAttrs["parent"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), Optional: true, @@ -5857,6 +6559,9 @@ func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Att schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["private_key"] = rsschema.StringAttribute{ Optional: true, @@ -5895,7 +6600,6 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -5903,9 +6607,11 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -5921,55 +6627,103 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu Computed: true, Optional: true, Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "BASIC", "BEARER", "CUSTOM", + ), + }, } schemaAttrs["basic_auth_password"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["basic_auth_username"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["bearer_token"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["client_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["custom_header_name"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 64), + }, } schemaAttrs["custom_header_value"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 1024), + }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["tls"] = rsschema.StringAttribute{ Computed: true, Optional: true, Default: stringdefault.StaticString("SECURE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", + ), + }, } schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, @@ -5997,7 +6751,6 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), @@ -6005,7 +6758,6 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsWebhookWebhookPush(false), Optional: true, @@ -6038,7 +6790,6 @@ func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[ }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { @@ -6057,7 +6808,6 @@ func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]r }, Optional: true, } - return schemaAttrs } func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema.Attribute { @@ -6127,6 +6877,11 @@ func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Att } schemaAttrs["security_level"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "LOW", "MEDIUM", "HIGH", + ), + }, } schemaAttrs["seq"] = rsschema.Int64Attribute{ Computed: true, @@ -6154,6 +6909,11 @@ func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Att } schemaAttrs["webhook_webhook_push_type"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "ACCOUNT_2FA_DISABLED", "ACCOUNT_2FA_ENABLED", "ACCOUNT_ADDED_TO_GROUP", "ACCOUNT_ADDED_TO_ORGANIZATIONAL_UNIT", "ACCOUNT_CREATED", "ACCOUNT_DEPROVISIONED", "ACCOUNT_DISABLED", "ACCOUNT_ENABLED", "ACCOUNT_GROUP_ACTIVATED", "ACCOUNT_GROUP_ACTIVATION_REASON", "ACCOUNT_GROUP_DEPROVISIONED", "ACCOUNT_GROUP_PROVISIONED", "ACCOUNT_LOGIN", "ACCOUNT_LOGIN_FAILED", "ACCOUNT_MODIFIED_FOR_GROUP", "ACCOUNT_PASSWORD_CHANGED", "ACCOUNT_PROVISIONED", "ACCOUNT_PROVISIONING_DESTROYED", "ACCOUNT_PROVISIONING_INITED", "ACCOUNT_PROVISIONING_SETUP", "ACCOUNT_REMOVED", "ACCOUNT_REMOVED_FROM_GROUP", "ACCOUNT_REMOVED_FROM_ORGANIZATIONAL_UNIT", "ACCOUNT_REREGISTERED", "ACCOUNT_SSH_PUBLIC_KEY_MODIFIED", "ACCOUNT_TOKEN_SIGNED", "ACCOUNT_TOTP_OFFSET_CHANGED", "ACCOUNT_VAULT_UNLOCKED", "ADD_GROUP_ADMIN_ACCEPTED", "ADD_GROUP_ADMIN_DECLINED", "ADD_GROUP_ADMIN_REQUESTED", "AUDITOR_EXPORT_GENERATED", "CERTIFICATE_CREATED", "CERTIFICATE_MODIFIED", "CERTIFICATE_REMOVED", "CLIENT_ADDED_TO_GROUP", "CLIENT_CREATED", "CLIENT_MODIFIED", "CLIENT_MODIFIED_FOR_GROUP", "CLIENT_PERMISSION_GRANTED", "CLIENT_PERMISSION_REVOKED", "CLIENT_REMOVED", "CLIENT_REMOVED_FROM_GROUP", "CLIENT_SECRET_ROTATED", "CREATE_GROUP_ACCEPTED", "CREATE_GROUP_DECLINED", "CREATE_GROUP_REQUESTED", "CREATE_GROUP_ON_SYSTEM_ACCEPTED", "CREATE_GROUP_ON_SYSTEM_DECLINED", "CREATE_GROUP_ON_SYSTEM_REQUESTED", "CREATE_SERVICE_ACCOUNT_ACCEPTED", "CREATE_SERVICE_ACCOUNT_DECLINED", "CREATE_SERVICE_ACCOUNT_REQUESTED", "DIRECTORY_CREATED", "DIRECTORY_HELPDESK_MODIFIED", "DIRECTORY_MODIFIED", "DIRECTORY_REMOVED", "DISABLE_2FA_ACCEPTED", "DISABLE_2FA_DECLINED", "DISABLE_2FA_REQUESTED", "ENABLE_TECHNICAL_ADMINISTRATION_ACCEPTED", "ENABLE_TECHNICAL_ADMINISTRATION_DECLINED", "ENABLE_TECHNICAL_ADMINISTRATION_REQUESTED", "EXTENDED_ACCESS_ACCEPTED", "EXTENDED_ACCESS_DECLINED", "EXTENDED_ACCESS_REQUESTED", "GRANT_ACCESS_ACCEPTED", "GRANT_ACCESS_DECLINED", "GRANT_ACCESS_REQUESTED", "GRANT_APPLICATION_ACCEPTED", "GRANT_APPLICATION_DECLINED", "GRANT_APPLICATION_REQUESTED", "GRANT_CLIENT_PERMISSION_ACCEPTED", "GRANT_CLIENT_PERMISSION_DECLINED", "GRANT_CLIENT_PERMISSION_REQUESTED", "GRANT_GROUP_ON_SYSTEM_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUESTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUEST_REQUESTED", "GRANT_SERVICE_ACCOUNT_GROUP_ACCEPTED", "GRANT_SERVICE_ACCOUNT_GROUP_DECLINED", "GRANT_SERVICE_ACCOUNT_GROUP_REQUESTED", "GROUP_AUDIT_CREATED", "GROUP_AUDIT_REQUESTED", "GROUP_AUTHORIZATION_CONNECTED", "GROUP_AUTHORIZATION_DISCONNECTED", "GROUP_CLASSIFICATION_ASSIGNED", "GROUP_CLASSIFICATION_CREATED", "GROUP_CLASSIFICATION_MODIFIED", "GROUP_CLASSIFICATION_REMOVED", "GROUP_CREATED", "GROUP_MODIFIED", "GROUP_NESTING_CONNECTED", "GROUP_NESTING_DISCONNECTED", "GROUP_ON_SYSTEM_CREATED", "GROUP_ON_SYSTEM_DEPROVISIONED", "GROUP_ON_SYSTEM_PROVISIONED", "GROUP_ON_SYSTEM_REMOVED", "GROUP_REMOVED", "INTERNAL_ACCOUNT_ACTIVATED", "INTERNAL_ACCOUNT_CREATED", "INTERNAL_ACCOUNT_MODIFIED", "INTERNAL_ACCOUNT_REMOVED", "INVALID_SIGNATURE_DETECTED", "JOIN_GROUP_ACCEPTED", "JOIN_GROUP_DECLINED", "JOIN_GROUP_REQUESTED", "JOIN_VAULT_ACCEPTED", "JOIN_VAULT_DECLINED", "JOIN_VAULT_REQUESTED", "LICENSE_KEY_UPLOADED", "ORGANIZATIONAL_UNIT_CREATED", "ORGANIZATIONAL_UNIT_MODIFIED", "ORGANIZATIONAL_UNIT_REMOVED", "PROVISIONED_SYSTEM_ADDED_TO_GROUP", "PROVISIONED_SYSTEM_CREATED", "PROVISIONED_SYSTEM_MODIFIED", "PROVISIONED_SYSTEM_MODIFIED_FOR_GROUP", "PROVISIONED_SYSTEM_REMOVED", "PROVISIONED_SYSTEM_REMOVED_FROM_GROUP", "PROVISIONED_SYSTEM_UNKNOWN_ACCOUNT_DESTROYED", "REMOVE_GROUP_ACCEPTED", "REMOVE_GROUP_DECLINED", "REMOVE_GROUP_REQUESTED", "REMOVE_ORGANIZATIONAL_UNIT_ACCEPTED", "REMOVE_ORGANIZATIONAL_UNIT_DECLINED", "REMOVE_ORGANIZATIONAL_UNIT_REQUESTED", "REMOVE_PROVISIONED_SYSTEM_ACCEPTED", "REMOVE_PROVISIONED_SYSTEM_DECLINED", "REMOVE_PROVISIONED_SYSTEM_REQUESTED", "RESET_PASSWORD_ACCEPTED", "RESET_PASSWORD_DECLINED", "RESET_PASSWORD_FINISHED", "RESET_PASSWORD_REQUESTED", "REVIEW_AUDIT_ACCEPTED", "REVIEW_AUDIT_DECLINED", "REVIEW_AUDIT_REQUESTED", "REVOKE_ADMIN_ACCEPTED", "REVOKE_ADMIN_DECLINED", "REVOKE_ADMIN_REQUESTED", "SERVICE_ACCOUNT_ADDED_TO_GROUP", "SERVICE_ACCOUNT_CREATED", "SERVICE_ACCOUNT_GROUP_DEPROVISIONED", "SERVICE_ACCOUNT_GROUP_PROVISIONED", "SERVICE_ACCOUNT_MODIFIED", "SERVICE_ACCOUNT_PASSWORD_ROTATED", "SERVICE_ACCOUNT_PROVISIONING_DESTROYED", "SERVICE_ACCOUNT_PROVISIONING_INITED", "SERVICE_ACCOUNT_REMOVED", "SERVICE_ACCOUNT_REMOVED_FROM_GROUP", "SETUP_AUTHORIZING_GROUP_CONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_CONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_CONNECT_REQUESTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_REQUESTED", "SETUP_NESTED_GROUP_CONNECT_ACCEPTED", "SETUP_NESTED_GROUP_CONNECT_DECLINED", "SETUP_NESTED_GROUP_CONNECT_REQUESTED", "SETUP_NESTED_GROUP_DISCONNECT_ACCEPTED", "SETUP_NESTED_GROUP_DISCONNECT_DECLINED", "SETUP_NESTED_GROUP_DISCONNECT_REQUESTED", "TRANSFER_APPLICATION_ADMINISTRATION_ACCEPTED", "TRANSFER_APPLICATION_ADMINISTRATION_DECLINED", "TRANSFER_APPLICATION_ADMINISTRATION_REQUESTED", "TRANSFER_APPLICATION_OWNERSHIP_ACCEPTED", "TRANSFER_APPLICATION_OWNERSHIP_DECLINED", "TRANSFER_APPLICATION_OWNERSHIP_REQUESTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_ACCEPTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_DECLINED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_ACCEPTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_DECLINED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_REQUESTED", "TRANSFER_AUDITOR_GROUP_ACCEPTED", "TRANSFER_AUDITOR_GROUP_DECLINED", "TRANSFER_AUDITOR_GROUP_REQUESTED", "UPDATE_GROUP_MEMBERSHIP_ACCEPTED", "UPDATE_GROUP_MEMBERSHIP_DECLINED", "UPDATE_GROUP_MEMBERSHIP_REQUESTED", "VAULT_ACCESS_RESTORED", "VAULT_EXPORTED", "VAULT_PERSONAL_RESET", "VAULT_PERSONAL_SETUP", "VAULT_RECORD_CREATED", "VAULT_RECORD_MODIFIED", "VAULT_RECORD_MOVED_COPIED_SHARED", "VAULT_RECORD_READ", "VAULT_RECORD_REMOVED", "VAULT_RECOVERED", "VERIFY_INTERNAL_ACCOUNT_ACCEPTED", "VERIFY_INTERNAL_ACCOUNT_DECLINED", "VERIFY_INTERNAL_ACCOUNT_REQUESTED", "WEBHOOK_CREATED", "WEBHOOK_MODIFIED", "WEBHOOK_REMOVED", + ), + }, } return schemaAttrs } diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 5e90299..e9b8f5d 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -486,10 +486,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -949,8 +949,8 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) - data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { @@ -1538,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1715,43 +1715,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index ae2fca4..671357d 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -451,10 +451,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -894,8 +894,8 @@ func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) - data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) + data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { @@ -1400,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1575,43 +1575,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 5f65330..d5e93b9 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -1792,35 +1792,35 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3646,19 +3646,19 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["manual_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["manual_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } @@ -5938,14 +5938,6 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5954,11 +5946,11 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5970,35 +5962,43 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_a_d"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6645,147 +6645,147 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6797,147 +6797,147 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 3e8338a..9fa8967 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -1717,35 +1717,35 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3576,19 +3576,19 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["manual_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["sso_application_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) + if !objAttrs["manual_launchpad_tile"].IsNull() { + val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) + (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) val.SetTypeEscaped(dtype) tkh = val } @@ -5656,14 +5656,6 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5672,11 +5664,11 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5688,35 +5680,43 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_a_d"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6366,147 +6366,147 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6518,147 +6518,147 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 6a00a07..14256aa 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -2017,30 +2017,30 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) - val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["o_id_c_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) obj["l_d_a_p_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) + diags.Append(d...) + obj["internal_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) obj["maintenance_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) + val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["o_id_c_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -4178,18 +4178,18 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record_launchpad_tile"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) - val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["manual_launchpad_tile"] = val - } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) diags.Append(d...) obj["sso_application_launchpad_tile"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) + val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkhCast) + diags.Append(d...) + obj["manual_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6877,12 +6877,6 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) - diags.Append(d...) - obj["provisioned_internal_ldap"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6890,10 +6884,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_a_d"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) @@ -6902,16 +6896,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) - val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_a_d"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) @@ -6920,10 +6908,22 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_internal_ldap"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7808,18 +7808,6 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) @@ -7827,130 +7815,130 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -7959,34 +7947,34 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["remove_provisioned_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) @@ -7995,16 +7983,22 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["transfer_application_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + diags.Append(d...) + obj["extend_access_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) @@ -8013,22 +8007,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["remove_group_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 011ec33..a4b7ea3 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1893,30 +1893,30 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) - val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["o_id_c_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) diags.Append(d...) obj["l_d_a_p_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + diags.Append(d...) + obj["internal_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) obj["maintenance_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) + val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["o_id_c_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3908,18 +3908,18 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp diags.Append(d...) obj["vault_record_launchpad_tile"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) - val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["manual_launchpad_tile"] = val - } { tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) diags.Append(d...) obj["sso_application_launchpad_tile"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) + val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkhCast) + diags.Append(d...) + obj["manual_launchpad_tile"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6257,12 +6257,6 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) - diags.Append(d...) - obj["provisioned_internal_ldap"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6270,10 +6264,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_a_d"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) @@ -6282,16 +6276,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) - val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_a_d"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) @@ -6300,10 +6288,22 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_internal_ldap"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_tenant"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7148,18 +7148,6 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) @@ -7167,130 +7155,130 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) @@ -7299,34 +7287,34 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["remove_provisioned_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) @@ -7335,16 +7323,22 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["transfer_application_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + diags.Append(d...) + obj["extend_access_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) @@ -7353,22 +7347,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["remove_group_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val } objVal, d := types.ObjectValue(attrs, obj) From acbef061e8b3879db8ff934089e17a26fdbaa43c Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Mon, 16 Oct 2023 22:03:59 +0200 Subject: [PATCH 19/34] Add more validation --- docs/data-sources/group.md | 54 +- docs/data-sources/serviceaccount.md | 6 +- docs/resources/group.md | 4 +- docs/resources/grouponsystem.md | 4 +- docs/resources/serviceaccount.md | 2 +- .../provider-install-verification/main.tf | 6 +- internal/provider/full-data-struct-ds.go | 102 ++-- internal/provider/full-data-struct-rs.go | 102 ++-- internal/provider/full-object-attrs-ds.go | 102 ++-- internal/provider/full-object-attrs-rs.go | 102 ++-- internal/provider/full-schema-ds.go | 244 ++++----- internal/provider/full-schema-rs.go | 497 ++++++++++-------- .../provider/full-tf-to-data-struct-ds.go | 102 ++-- .../provider/full-tf-to-data-struct-rs.go | 102 ++-- internal/provider/full-tf-to-tkh-ds.go | 304 +++++------ internal/provider/full-tf-to-tkh-rs.go | 304 +++++------ internal/provider/full-tkh-to-tf-ds.go | 300 +++++------ internal/provider/full-tkh-to-tf-rs.go | 300 +++++------ 18 files changed, 1362 insertions(+), 1275 deletions(-) diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index abe1b41..2f96d59 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -3575,12 +3575,12 @@ Read-Only: - `name_in_system` (String) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) -- `provisioning_group_on_system_primer_type` (String) - `short_name_in_system` (String) - `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system)) +- `type` (String) -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: @@ -3591,18 +3591,18 @@ Read-Only: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.links` Read-Only: @@ -3612,8 +3612,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.permissions` Read-Only: @@ -3625,7 +3625,7 @@ Read-Only: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: @@ -3636,20 +3636,20 @@ Read-Only: -### Nested Schema for `additional_objects.owned_groups_on_system.items.system` +### Nested Schema for `additional_objects.owned_groups_on_system.items.type` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) - `provisioning_provisioned_system_primer_type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.links` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.links` Read-Only: @@ -3659,18 +3659,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit.uuid` Read-Only: @@ -3680,8 +3680,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.organizational_unit.uuid` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit.uuid` Read-Only: @@ -3692,8 +3692,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system.items.system.permissions` + +### Nested Schema for `additional_objects.owned_groups_on_system.items.type.permissions` Read-Only: @@ -4826,9 +4826,9 @@ Read-Only: - `name_in_system` (String) - `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) -- `provisioning_group_on_system_primer_type` (String) - `short_name_in_system` (String) - `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system)) +- `type` (String) ### Nested Schema for `additional_objects.systems.items.permissions.links` diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md index 4d662d0..8d4f8b2 100644 --- a/docs/data-sources/serviceaccount.md +++ b/docs/data-sources/serviceaccount.md @@ -77,11 +77,11 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) - `name_in_system` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) -- `provisioning_group_on_system_primer_type` (String) - `short_name_in_system` (String) +- `type` (String) -### Nested Schema for `additional_objects.groups.items.short_name_in_system` +### Nested Schema for `additional_objects.groups.items.type` Read-Only: @@ -92,7 +92,7 @@ Read-Only: -### Nested Schema for `additional_objects.groups.items.short_name_in_system` +### Nested Schema for `additional_objects.groups.items.type` Read-Only: diff --git a/docs/resources/group.md b/docs/resources/group.md index abe61ef..9e3179b 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -1399,7 +1399,7 @@ Required: - `name_in_system` (String) - `owner_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: @@ -1896,7 +1896,7 @@ Required: - `name_in_system` (String) - `owner_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 81104cf..5513c00 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -20,7 +20,7 @@ description: |- - `name_in_system` (String) - `owner_uuid` (String) - `provisioned_system_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) ### Optional @@ -74,7 +74,7 @@ Required: - `name_in_system` (String) - `owner_uuid` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index a89953a..efeed0e 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -82,7 +82,7 @@ Optional: Required: - `name_in_system` (String) -- `provisioning_group_on_system_primer_type` (String) +- `type` (String) Optional: diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index a158767..e25f27f 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -53,7 +53,7 @@ provider "keyhubpreview" { #} resource "keyhubpreview_group" "terra" { - name = "Terraform x" + name = "Terraform" additional_objects = { accounts = { items = [{ @@ -64,6 +64,10 @@ resource "keyhubpreview_group" "terra" { } } +resource "keyhubpreview_grouponsystem" "terragos" { + +} + #output "resource_group" { # value = resource.keyhubpreview_group.terra #} diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index e0dc6a9..87522ff 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -108,7 +108,7 @@ type auditAuditRecordDataDS struct { Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + AuditAuditRecordType types.String `tfsdk:"type"` DateTime types.String `tfsdk:"date_time"` OnAccount types.String `tfsdk:"on_account"` OnCertificate types.String `tfsdk:"on_certificate"` @@ -383,7 +383,7 @@ type certificateCertificateDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -410,7 +410,7 @@ type certificateCertificatePrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -455,7 +455,7 @@ var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApp type clientClientApplicationDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -467,8 +467,8 @@ type clientClientApplicationDataDS struct { Owner types.Object `tfsdk:"owner"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` OAuth2Client types.Object `tfsdk:"o_auth2_client"` - LDAPClient types.Object `tfsdk:"ldap_client"` Saml2Client types.Object `tfsdk:"saml2_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` } var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) @@ -484,7 +484,7 @@ var clientClientApplicationPrimerAttrTypesDSRecurse = objectAttrsTypeDSClientCli type clientClientApplicationPrimerDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -633,7 +633,7 @@ type directoryAccountDirectoryDataDS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` @@ -646,8 +646,8 @@ type directoryAccountDirectoryDataDS struct { UsernameCustomizable types.Bool `tfsdk:"username_customizable"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -665,7 +665,7 @@ type directoryAccountDirectoryPrimerDataDS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` } @@ -685,7 +685,7 @@ var directoryAccountDirectorySummaryAttrTypesDSRecurse = objectAttrsTypeDSDirect type directoryAccountDirectorySummaryDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"type"` DomainRestriction types.String `tfsdk:"domain_restriction"` FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` Name types.String `tfsdk:"name"` @@ -1340,7 +1340,7 @@ var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) type markItemMarkerDataDS struct { Level types.String `tfsdk:"level"` - MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + MarkItemMarkerType types.String `tfsdk:"type"` Parameters types.Object `tfsdk:"parameters"` } @@ -1518,7 +1518,7 @@ type nestedProvisioningGroupOnSystemDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1567,7 +1567,7 @@ type nestedServiceaccountServiceAccountGroupDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1865,7 +1865,7 @@ type provisioningGroupOnSystemDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1888,7 +1888,7 @@ type provisioningGroupOnSystemPrimerDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` } @@ -2063,7 +2063,7 @@ type provisioningProvisionedSystemDataDS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` @@ -2077,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2103,7 +2103,7 @@ type provisioningProvisionedSystemPrimerDataDS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` } @@ -2353,43 +2353,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` JoinGroupRequest types.Object `tfsdk:"join_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) @@ -2577,7 +2577,7 @@ type serviceaccountServiceAccountGroupDataDS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -2825,7 +2825,7 @@ var vaultVaultRecordShareAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordS type vaultVaultRecordShareDataDS struct { Name types.String `tfsdk:"name"` - VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` + VaultVaultRecordShareType types.String `tfsdk:"type"` } var vaultVaultRecordShareSummaryAttrTypesDS = objectAttrsTypeDSVaultVaultRecordShareSummary(false) @@ -2975,7 +2975,7 @@ type webhookWebhookPushDataDS struct { Timestamp types.String `tfsdk:"timestamp"` VaultRecord types.Object `tfsdk:"vault_record"` Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` + WebhookWebhookPushType types.String `tfsdk:"type"` } var webhookWebhook_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhook_additionalObjects(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index cbb9f07..3a8c603 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -106,7 +106,7 @@ type auditAuditRecordDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AdditionalObjects types.Object `tfsdk:"additional_objects"` - AuditAuditRecordType types.String `tfsdk:"audit_audit_record_type"` + AuditAuditRecordType types.String `tfsdk:"type"` DateTime types.String `tfsdk:"date_time"` OnAccount types.String `tfsdk:"on_account"` OnCertificate types.String `tfsdk:"on_certificate"` @@ -354,7 +354,7 @@ type certificateCertificateDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -380,7 +380,7 @@ type certificateCertificatePrimerDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"certificate_certificate_primer_type"` + CertificateCertificatePrimerType types.String `tfsdk:"type"` CertificateData types.List `tfsdk:"certificate_data"` Expiration types.String `tfsdk:"expiration"` FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` @@ -424,7 +424,7 @@ var clientClientApplicationAttrTypesRSRecurse = objectAttrsTypeRSClientClientApp type clientClientApplicationDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -435,8 +435,8 @@ type clientClientApplicationDataRS struct { OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` OAuth2Client types.Object `tfsdk:"o_auth2_client"` - LDAPClient types.Object `tfsdk:"ldap_client"` Saml2Client types.Object `tfsdk:"saml2_client"` + LDAPClient types.Object `tfsdk:"ldap_client"` } var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) @@ -452,7 +452,7 @@ var clientClientApplicationPrimerAttrTypesRSRecurse = objectAttrsTypeRSClientCli type clientClientApplicationPrimerDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - ClientClientApplicationPrimerType types.String `tfsdk:"client_client_application_primer_type"` + ClientClientApplicationPrimerType types.String `tfsdk:"type"` ClientID types.String `tfsdk:"client_id"` Name types.String `tfsdk:"name"` Scopes types.List `tfsdk:"scopes"` @@ -599,7 +599,7 @@ type directoryAccountDirectoryDataRS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -611,8 +611,8 @@ type directoryAccountDirectoryDataRS struct { UsernameCustomizable types.Bool `tfsdk:"username_customizable"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -630,7 +630,7 @@ type directoryAccountDirectoryPrimerDataRS struct { Permissions types.List `tfsdk:"permissions"` AccountValiditySupported types.Bool `tfsdk:"account_validity_supported"` Active types.Bool `tfsdk:"active"` - DirectoryAccountDirectoryPrimerType types.String `tfsdk:"directory_account_directory_primer_type"` + DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` } @@ -650,7 +650,7 @@ var directoryAccountDirectorySummaryAttrTypesRSRecurse = objectAttrsTypeRSDirect type directoryAccountDirectorySummaryDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - DirectoryAccountDirectorySummaryType types.String `tfsdk:"directory_account_directory_summary_type"` + DirectoryAccountDirectorySummaryType types.String `tfsdk:"type"` DomainRestriction types.String `tfsdk:"domain_restriction"` FullyResolvedIssuer types.String `tfsdk:"fully_resolved_issuer"` Name types.String `tfsdk:"name"` @@ -1285,7 +1285,7 @@ var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) type markItemMarkerDataRS struct { Level types.String `tfsdk:"level"` - MarkItemMarkerType types.String `tfsdk:"mark_item_marker_type"` + MarkItemMarkerType types.String `tfsdk:"type"` Parameters types.Object `tfsdk:"parameters"` } @@ -1412,7 +1412,7 @@ type nestedProvisioningGroupOnSystemDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` OwnerUUID types.String `tfsdk:"owner_uuid"` @@ -1452,7 +1452,7 @@ type nestedServiceaccountServiceAccountGroupDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -1737,7 +1737,7 @@ type provisioningGroupOnSystemDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` OwnerUUID types.String `tfsdk:"owner_uuid"` @@ -1759,7 +1759,7 @@ type provisioningGroupOnSystemPrimerDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` } @@ -1926,7 +1926,7 @@ type provisioningProvisionedSystemDataRS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` AdditionalObjects types.Object `tfsdk:"additional_objects"` @@ -1939,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -1965,7 +1965,7 @@ type provisioningProvisionedSystemPrimerDataRS struct { Active types.Bool `tfsdk:"active"` Name types.String `tfsdk:"name"` OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"provisioning_provisioned_system_primer_type"` + ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` } @@ -2213,43 +2213,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` JoinGroupRequest types.Object `tfsdk:"join_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) @@ -2440,7 +2440,7 @@ type serviceaccountServiceAccountGroupDataRS struct { Permissions types.List `tfsdk:"permissions"` DisplayName types.String `tfsdk:"display_name"` NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"provisioning_group_on_system_primer_type"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` AdditionalObjects types.Object `tfsdk:"additional_objects"` } @@ -2686,7 +2686,7 @@ var vaultVaultRecordShareAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordS type vaultVaultRecordShareDataRS struct { Name types.String `tfsdk:"name"` - VaultVaultRecordShareType types.String `tfsdk:"vault_vault_record_share_type"` + VaultVaultRecordShareType types.String `tfsdk:"type"` } var vaultVaultRecordShareSummaryAttrTypesRS = objectAttrsTypeRSVaultVaultRecordShareSummary(false) @@ -2835,7 +2835,7 @@ type webhookWebhookPushDataRS struct { Timestamp types.String `tfsdk:"timestamp"` VaultRecord types.Object `tfsdk:"vault_record"` Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"webhook_webhook_push_type"` + WebhookWebhookPushType types.String `tfsdk:"type"` } var webhookWebhook_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhook_additionalObjects(false) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 82f9cf1..17f5dd8 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -102,7 +102,7 @@ func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["date_time"] = types.StringType objectAttrs["on_account"] = types.StringType objectAttrs["on_certificate"] = types.StringType @@ -361,7 +361,7 @@ func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -385,7 +385,7 @@ func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -432,7 +432,7 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -443,8 +443,8 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client(false)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} return objectAttrs } @@ -458,7 +458,7 @@ func objectAttrsTypeDSClientClientApplicationPrimer(recurse bool) map[string]att objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -603,7 +603,7 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} @@ -615,8 +615,8 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["username_customizable"] = types.BoolType objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -632,7 +632,7 @@ func objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs @@ -650,7 +650,7 @@ func objectAttrsTypeDSDirectoryAccountDirectorySummary(recurse bool) map[string] objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["domain_restriction"] = types.StringType objectAttrs["fully_resolved_issuer"] = types.StringType objectAttrs["name"] = types.StringType @@ -1268,7 +1268,7 @@ func objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Typ func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType - objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker_parameters(recurse)} return objectAttrs } @@ -1453,7 +1453,7 @@ func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -1505,7 +1505,7 @@ func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[ objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs @@ -1781,7 +1781,7 @@ func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} @@ -1801,7 +1801,7 @@ func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -1964,7 +1964,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["account_count"] = types.Int64Type @@ -1977,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } @@ -2001,7 +2001,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[stri objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -2224,43 +2224,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} return objectAttrs } @@ -2429,7 +2429,7 @@ func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs @@ -2653,7 +2653,7 @@ func objectAttrsTypeDSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type func objectAttrsTypeDSVaultVaultRecordShare(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["name"] = types.StringType - objectAttrs["vault_vault_record_share_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } @@ -2795,7 +2795,7 @@ func objectAttrsTypeDSWebhookWebhookPush(recurse bool) map[string]attr.Type { objectAttrs["timestamp"] = types.StringType objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook_webhook_push_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index cb4bb27..f9f0511 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -100,7 +100,7 @@ func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["audit_audit_record_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["date_time"] = types.StringType objectAttrs["on_account"] = types.StringType objectAttrs["on_certificate"] = types.StringType @@ -330,7 +330,7 @@ func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -353,7 +353,7 @@ func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["alias"] = types.StringType - objectAttrs["certificate_certificate_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} objectAttrs["expiration"] = types.StringType objectAttrs["fingerprint_sha1"] = types.StringType @@ -399,7 +399,7 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -409,8 +409,8 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client(false)} + objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} return objectAttrs } @@ -424,7 +424,7 @@ func objectAttrsTypeRSClientClientApplicationPrimer(recurse bool) map[string]att objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["client_client_application_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["client_id"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["scopes"] = types.ListType{ElemType: types.StringType} @@ -567,7 +567,7 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["base_organizational_unit_uuid"] = types.StringType @@ -578,8 +578,8 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["username_customizable"] = types.BoolType objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} return objectAttrs } @@ -595,7 +595,7 @@ func objectAttrsTypeRSDirectoryAccountDirectoryPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["account_validity_supported"] = types.BoolType objectAttrs["active"] = types.BoolType - objectAttrs["directory_account_directory_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs @@ -613,7 +613,7 @@ func objectAttrsTypeRSDirectoryAccountDirectorySummary(recurse bool) map[string] objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["directory_account_directory_summary_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["domain_restriction"] = types.StringType objectAttrs["fully_resolved_issuer"] = types.StringType objectAttrs["name"] = types.StringType @@ -1211,7 +1211,7 @@ func objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Typ func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType - objectAttrs["mark_item_marker_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker_parameters(recurse)} return objectAttrs } @@ -1343,7 +1343,7 @@ func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["system_uuid"] = types.StringType @@ -1386,7 +1386,7 @@ func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[ objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -1649,7 +1649,7 @@ func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["system_uuid"] = types.StringType @@ -1668,7 +1668,7 @@ func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]a objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -1823,7 +1823,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType objectAttrs["account_count"] = types.Int64Type objectAttrs["content_administrator_uuid"] = types.StringType @@ -1835,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } @@ -1859,7 +1859,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[stri objectAttrs["active"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["provisioning_provisioned_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["uuid"] = types.StringType return objectAttrs } @@ -2080,43 +2080,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} return objectAttrs } @@ -2288,7 +2288,7 @@ func objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse bool) map[string objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["display_name"] = types.StringType objectAttrs["name_in_system"] = types.StringType - objectAttrs["provisioning_group_on_system_primer_type"] = types.StringType + objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } @@ -2510,7 +2510,7 @@ func objectAttrsTypeRSVaultVaultRecordSecrets(recurse bool) map[string]attr.Type func objectAttrsTypeRSVaultVaultRecordShare(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["name"] = types.StringType - objectAttrs["vault_vault_record_share_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } @@ -2651,7 +2651,7 @@ func objectAttrsTypeRSWebhookWebhookPush(recurse bool) map[string]attr.Type { objectAttrs["timestamp"] = types.StringType objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook_webhook_push_type"] = types.StringType + objectAttrs["type"] = types.StringType return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 9bef507..4ed23b1 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -135,7 +135,7 @@ func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -228,7 +228,7 @@ func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Att )), }, } - schemaAttrs["audit_audit_record_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["date_time"] = dsschema.StringAttribute{ @@ -817,7 +817,7 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche schemaAttrs["alias"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["certificate_data"] = dsschema.ListAttribute{ @@ -888,7 +888,7 @@ func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string] schemaAttrs["alias"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["certificate_certificate_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["certificate_data"] = dsschema.ListAttribute{ @@ -939,7 +939,7 @@ func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[st Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1023,7 +1023,7 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch }, Computed: true, } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_id"] = dsschema.StringAttribute{ @@ -1070,14 +1070,14 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), Computed: true, } - schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), - Computed: true, - } schemaAttrs["saml2_client"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsClientSaml2Client(false), Computed: true, } + schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1104,7 +1104,7 @@ func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string }, Computed: true, } - schemaAttrs["client_client_application_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["client_id"] = dsschema.StringAttribute{ @@ -1375,7 +1375,7 @@ func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[s Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1465,7 +1465,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1515,14 +1515,14 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), Computed: true, } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), - Computed: true, - } schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), Computed: true, } + schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -1555,7 +1555,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[stri schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory_account_directory_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["name"] = dsschema.StringAttribute{ @@ -1597,7 +1597,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[str }, Computed: true, } - schemaAttrs["directory_account_directory_summary_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["domain_restriction"] = dsschema.StringAttribute{ @@ -2819,7 +2819,7 @@ func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschem Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3114,7 +3114,7 @@ func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attri schemaAttrs["level"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["mark_item_marker_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ @@ -3149,7 +3149,7 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3282,7 +3282,7 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3331,7 +3331,7 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3401,7 +3401,7 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3483,7 +3483,7 @@ func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschem Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3557,7 +3557,7 @@ func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bo Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3605,7 +3605,7 @@ func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bo Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3663,7 +3663,7 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3684,7 +3684,7 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -3721,7 +3721,7 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3778,7 +3778,7 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse boo Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3828,7 +3828,7 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -3849,7 +3849,7 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -3878,7 +3878,7 @@ func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string] Required: recurse, Computed: !recurse, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4443,7 +4443,7 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -4498,7 +4498,7 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[stri schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -4826,7 +4826,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), Computed: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ @@ -4878,6 +4878,10 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Computed: true, + } schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Computed: true, @@ -4886,30 +4890,26 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), Computed: true, } - schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Computed: true, } schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Computed: true, - } schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Computed: true, } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Computed: true, - } schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), Computed: true, } + schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Computed: true, + } return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -4946,7 +4946,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), Computed: true, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ @@ -5325,152 +5325,152 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Computed: true, } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Computed: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), Computed: true, } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), Computed: true, } - schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Computed: true, } - schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Computed: true, } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), Computed: true, } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Computed: true, } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Computed: true, } schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), Computed: true, } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), Computed: true, } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), Computed: true, } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), Computed: true, } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Computed: true, } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Computed: true, } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Computed: true, } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Computed: true, } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), Computed: true, } schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Computed: true, } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Computed: true, } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), Computed: true, } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Computed: true, } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), Computed: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), Computed: true, } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Computed: true, } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Computed: true, } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), Computed: true, } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), Computed: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Computed: true, } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Computed: true, } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Computed: true, } return schemaAttrs @@ -5744,7 +5744,7 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[st schemaAttrs["name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioning_group_on_system_primer_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ @@ -6209,7 +6209,7 @@ func dataSourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]dsschem schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["vault_vault_record_share_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs @@ -6570,7 +6570,7 @@ func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.A Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), Computed: true, } - schemaAttrs["webhook_webhook_push_type"] = dsschema.StringAttribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 0728b4c..841a251 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -7,6 +7,7 @@ import ( "regexp" "github.com/hashicorp/terraform-plugin-framework-validators/int64validator" + "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" "github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator" rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" @@ -153,7 +154,7 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -252,7 +253,7 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["audit_audit_record_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -539,7 +540,7 @@ func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.At schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_name"] = rsschema.StringAttribute{ @@ -698,7 +699,7 @@ func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.At schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ @@ -783,6 +784,13 @@ func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribu schemaAttrs["operations"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "CREATE", "READ", "UPDATE", "DELETE", + ), + ), + }, } schemaAttrs["type_escaped"] = rsschema.StringAttribute{ Optional: true, @@ -837,7 +845,7 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema stringvalidator.UTF8LengthBetween(0, 128), }, } - schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -904,7 +912,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs stringvalidator.UTF8LengthBetween(0, 128), }, } - schemaAttrs["certificate_certificate_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -954,7 +962,7 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1053,7 +1061,7 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1087,27 +1095,27 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["o_auth2_client"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientOAuth2Client(false), Optional: true, } - schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), - Optional: true, - } schemaAttrs["saml2_client"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsClientSaml2Client(false), Optional: true, } + schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1136,7 +1144,7 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_client_application_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1204,7 +1212,7 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ @@ -1302,13 +1310,13 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["value"] = rsschema.StringAttribute{ @@ -1356,13 +1364,13 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["value"] = rsschema.StringAttribute{ @@ -1441,7 +1449,7 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1549,7 +1557,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1566,7 +1574,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["default_directory"] = rsschema.BoolAttribute{ @@ -1577,7 +1585,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ @@ -1606,14 +1614,14 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), Optional: true, } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), - Optional: true, - } schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), Optional: true, } + schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -1651,7 +1659,7 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["directory_account_directory_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -1703,7 +1711,7 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["directory_account_directory_summary_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -1762,7 +1770,7 @@ func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rssc schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -1784,7 +1792,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["dialect"] = rsschema.StringAttribute{ @@ -1803,7 +1811,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["host"] = rsschema.StringAttribute{ @@ -1854,7 +1862,7 @@ func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -1938,7 +1946,7 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["end_date"] = rsschema.StringAttribute{ @@ -2059,25 +2067,25 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ @@ -2088,7 +2096,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["description"] = rsschema.StringAttribute{ @@ -2112,14 +2120,14 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Computed: true, Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["private_group"] = rsschema.BoolAttribute{ @@ -2170,7 +2178,7 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ @@ -2396,6 +2404,13 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. ElementType: types.StringType, Optional: true, Computed: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", + ), + ), + }, } return schemaAttrs } @@ -2540,6 +2555,13 @@ func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rssche schemaAttrs["required_months"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", + ), + ), + }, } schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ Computed: true, @@ -2605,7 +2627,7 @@ func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string] schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -2812,6 +2834,11 @@ func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -3050,7 +3077,7 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3146,7 +3173,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ @@ -3205,13 +3232,13 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ @@ -3230,7 +3257,7 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ @@ -3332,6 +3359,11 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche schemaAttrs["customer_domains"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.UTF8LengthBetween(0, 100), + ), + }, } schemaAttrs["details"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -3343,6 +3375,13 @@ func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rssche schemaAttrs["features"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "CLUSTER_HA", "CLUSTER_HA_ENTERPRISE", "WORKFLOWS", "NESTED_GROUPS", "ENTERPRISE_ORGANISATION", "COMPLIANCE_PLUS", "OFFLINE_MODE", "SERVICE_ACCOUNTS", + ), + ), + }, } schemaAttrs["issue_time"] = rsschema.StringAttribute{ Optional: true, @@ -3388,7 +3427,7 @@ func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribu ), }, } - schemaAttrs["mark_item_marker_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -3421,13 +3460,13 @@ func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rssch schemaAttrs["account_directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["activation_code"] = rsschema.StringAttribute{ @@ -3481,7 +3520,7 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3501,13 +3540,13 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["value"] = rsschema.StringAttribute{ @@ -3531,13 +3570,13 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["end_date"] = rsschema.StringAttribute{ @@ -3577,13 +3616,13 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ @@ -3631,7 +3670,7 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3702,13 +3741,13 @@ func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -3724,19 +3763,19 @@ func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -3752,7 +3791,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3778,7 +3817,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -3792,13 +3831,13 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -3814,13 +3853,13 @@ func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[s schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ @@ -3840,7 +3879,7 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3886,7 +3925,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3912,7 +3951,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -3936,7 +3975,7 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -4120,6 +4159,11 @@ func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse schemaAttrs["systems"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -4128,6 +4172,11 @@ func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse schemaAttrs["groups"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -4157,7 +4206,7 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[ schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -4221,7 +4270,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ @@ -4240,13 +4289,13 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[ schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -4312,6 +4361,11 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recu schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -4354,7 +4408,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["failover_host"] = rsschema.StringAttribute{ @@ -4363,7 +4417,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_dn"] = rsschema.StringAttribute{ @@ -4411,7 +4465,7 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["user_dn"] = rsschema.StringAttribute{ @@ -4513,7 +4567,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -4527,13 +4581,13 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -4573,7 +4627,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -4591,6 +4645,13 @@ func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string] schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + ), + }, } return schemaAttrs } @@ -4752,7 +4813,7 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ @@ -4784,7 +4845,7 @@ func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["tenant"] = rsschema.StringAttribute{ @@ -4806,7 +4867,7 @@ func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bo schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["tenant"] = rsschema.StringAttribute{ @@ -4870,7 +4931,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[s schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_dn"] = rsschema.StringAttribute{ @@ -4917,10 +4978,10 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -4934,7 +4995,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["external_uuid"] = rsschema.StringAttribute{ @@ -4943,7 +5004,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ @@ -4969,7 +5030,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["username_prefix"] = rsschema.StringAttribute{ @@ -4978,6 +5039,10 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r stringvalidator.UTF8LengthBetween(0, 255), }, } + schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Optional: true, + } schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), Optional: true, @@ -4986,30 +5051,26 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), Optional: true, } - schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), Optional: true, } schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), Optional: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Optional: true, - } schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), Optional: true, } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Optional: true, - } schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), Optional: true, } + schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Optional: true, + } return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -5052,10 +5113,10 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["provisioning_provisioned_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } @@ -5070,6 +5131,11 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recur schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -5217,7 +5283,7 @@ func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bo schemaAttrs["application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5227,7 +5293,7 @@ func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(rec schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5237,7 +5303,7 @@ func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recu schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5281,7 +5347,7 @@ func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rss schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["private_key"] = rsschema.StringAttribute{ @@ -5368,7 +5434,7 @@ func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[st schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5408,7 +5474,7 @@ func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5446,7 +5512,7 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["comment"] = rsschema.StringAttribute{ @@ -5464,7 +5530,7 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["mail_key"] = rsschema.StringAttribute{ @@ -5483,152 +5549,152 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc ), }, } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), Optional: true, } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), Optional: true, } - schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), Optional: true, } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), Optional: true, } - schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), Optional: true, } - schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), Optional: true, } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), Optional: true, } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), Optional: true, } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), Optional: true, } schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), Optional: true, } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), Optional: true, } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), Optional: true, } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), Optional: true, } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), Optional: true, } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), Optional: true, } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), Optional: true, } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), Optional: true, } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), Optional: true, } schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), Optional: true, } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), Optional: true, } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), Optional: true, } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), Optional: true, } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), Optional: true, } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), Optional: true, } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), Optional: true, } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), Optional: true, } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), Optional: true, } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), Optional: true, } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), Optional: true, } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), Optional: true, } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), Optional: true, } return schemaAttrs @@ -5731,7 +5797,7 @@ func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rssch schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5754,7 +5820,7 @@ func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[st schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5777,7 +5843,7 @@ func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string] schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5823,7 +5889,7 @@ func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recur schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5833,7 +5899,7 @@ func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[st schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["current_end_date"] = rsschema.StringAttribute{ @@ -5909,7 +5975,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["username"] = rsschema.StringAttribute{ @@ -5937,7 +6003,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -5973,7 +6039,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioning_group_on_system_primer_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -6044,7 +6110,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["username"] = rsschema.StringAttribute{ @@ -6062,6 +6128,11 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurs schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -6197,7 +6268,7 @@ func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rssch schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -6207,7 +6278,7 @@ func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.A schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["action"] = rsschema.StringAttribute{ @@ -6223,7 +6294,7 @@ func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.A schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ @@ -6464,6 +6535,11 @@ func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[ schemaAttrs["items"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } return schemaAttrs } @@ -6493,7 +6569,7 @@ func resourceSchemaAttrsVaultVaultRecordShare(recurse bool) map[string]rsschema. schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["vault_vault_record_share_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( @@ -6560,7 +6636,7 @@ func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Att schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["private_key"] = rsschema.StringAttribute{ @@ -6610,7 +6686,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["active"] = rsschema.BoolAttribute{ @@ -6654,13 +6730,13 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["client_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["custom_header_name"] = rsschema.StringAttribute{ @@ -6678,13 +6754,13 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["name"] = rsschema.StringAttribute{ @@ -6696,7 +6772,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["system_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["tls"] = rsschema.StringAttribute{ @@ -6712,12 +6788,19 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$"), "The value must be a valid UUID"), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["types"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "ACCOUNT_2FA_DISABLED", "ACCOUNT_2FA_ENABLED", "ACCOUNT_ADDED_TO_GROUP", "ACCOUNT_ADDED_TO_ORGANIZATIONAL_UNIT", "ACCOUNT_CREATED", "ACCOUNT_DEPROVISIONED", "ACCOUNT_DISABLED", "ACCOUNT_ENABLED", "ACCOUNT_GROUP_ACTIVATED", "ACCOUNT_GROUP_ACTIVATION_REASON", "ACCOUNT_GROUP_DEPROVISIONED", "ACCOUNT_GROUP_PROVISIONED", "ACCOUNT_LOGIN", "ACCOUNT_LOGIN_FAILED", "ACCOUNT_MODIFIED_FOR_GROUP", "ACCOUNT_PASSWORD_CHANGED", "ACCOUNT_PROVISIONED", "ACCOUNT_PROVISIONING_DESTROYED", "ACCOUNT_PROVISIONING_INITED", "ACCOUNT_PROVISIONING_SETUP", "ACCOUNT_REMOVED", "ACCOUNT_REMOVED_FROM_GROUP", "ACCOUNT_REMOVED_FROM_ORGANIZATIONAL_UNIT", "ACCOUNT_REREGISTERED", "ACCOUNT_SSH_PUBLIC_KEY_MODIFIED", "ACCOUNT_TOKEN_SIGNED", "ACCOUNT_TOTP_OFFSET_CHANGED", "ACCOUNT_VAULT_UNLOCKED", "ADD_GROUP_ADMIN_ACCEPTED", "ADD_GROUP_ADMIN_DECLINED", "ADD_GROUP_ADMIN_REQUESTED", "AUDITOR_EXPORT_GENERATED", "CERTIFICATE_CREATED", "CERTIFICATE_MODIFIED", "CERTIFICATE_REMOVED", "CLIENT_ADDED_TO_GROUP", "CLIENT_CREATED", "CLIENT_MODIFIED", "CLIENT_MODIFIED_FOR_GROUP", "CLIENT_PERMISSION_GRANTED", "CLIENT_PERMISSION_REVOKED", "CLIENT_REMOVED", "CLIENT_REMOVED_FROM_GROUP", "CLIENT_SECRET_ROTATED", "CREATE_GROUP_ACCEPTED", "CREATE_GROUP_DECLINED", "CREATE_GROUP_REQUESTED", "CREATE_GROUP_ON_SYSTEM_ACCEPTED", "CREATE_GROUP_ON_SYSTEM_DECLINED", "CREATE_GROUP_ON_SYSTEM_REQUESTED", "CREATE_SERVICE_ACCOUNT_ACCEPTED", "CREATE_SERVICE_ACCOUNT_DECLINED", "CREATE_SERVICE_ACCOUNT_REQUESTED", "DIRECTORY_CREATED", "DIRECTORY_HELPDESK_MODIFIED", "DIRECTORY_MODIFIED", "DIRECTORY_REMOVED", "DISABLE_2FA_ACCEPTED", "DISABLE_2FA_DECLINED", "DISABLE_2FA_REQUESTED", "ENABLE_TECHNICAL_ADMINISTRATION_ACCEPTED", "ENABLE_TECHNICAL_ADMINISTRATION_DECLINED", "ENABLE_TECHNICAL_ADMINISTRATION_REQUESTED", "EXTENDED_ACCESS_ACCEPTED", "EXTENDED_ACCESS_DECLINED", "EXTENDED_ACCESS_REQUESTED", "GRANT_ACCESS_ACCEPTED", "GRANT_ACCESS_DECLINED", "GRANT_ACCESS_REQUESTED", "GRANT_APPLICATION_ACCEPTED", "GRANT_APPLICATION_DECLINED", "GRANT_APPLICATION_REQUESTED", "GRANT_CLIENT_PERMISSION_ACCEPTED", "GRANT_CLIENT_PERMISSION_DECLINED", "GRANT_CLIENT_PERMISSION_REQUESTED", "GRANT_GROUP_ON_SYSTEM_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUESTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUEST_REQUESTED", "GRANT_SERVICE_ACCOUNT_GROUP_ACCEPTED", "GRANT_SERVICE_ACCOUNT_GROUP_DECLINED", "GRANT_SERVICE_ACCOUNT_GROUP_REQUESTED", "GROUP_AUDIT_CREATED", "GROUP_AUDIT_REQUESTED", "GROUP_AUTHORIZATION_CONNECTED", "GROUP_AUTHORIZATION_DISCONNECTED", "GROUP_CLASSIFICATION_ASSIGNED", "GROUP_CLASSIFICATION_CREATED", "GROUP_CLASSIFICATION_MODIFIED", "GROUP_CLASSIFICATION_REMOVED", "GROUP_CREATED", "GROUP_MODIFIED", "GROUP_NESTING_CONNECTED", "GROUP_NESTING_DISCONNECTED", "GROUP_ON_SYSTEM_CREATED", "GROUP_ON_SYSTEM_DEPROVISIONED", "GROUP_ON_SYSTEM_PROVISIONED", "GROUP_ON_SYSTEM_REMOVED", "GROUP_REMOVED", "INTERNAL_ACCOUNT_ACTIVATED", "INTERNAL_ACCOUNT_CREATED", "INTERNAL_ACCOUNT_MODIFIED", "INTERNAL_ACCOUNT_REMOVED", "INVALID_SIGNATURE_DETECTED", "JOIN_GROUP_ACCEPTED", "JOIN_GROUP_DECLINED", "JOIN_GROUP_REQUESTED", "JOIN_VAULT_ACCEPTED", "JOIN_VAULT_DECLINED", "JOIN_VAULT_REQUESTED", "LICENSE_KEY_UPLOADED", "ORGANIZATIONAL_UNIT_CREATED", "ORGANIZATIONAL_UNIT_MODIFIED", "ORGANIZATIONAL_UNIT_REMOVED", "PROVISIONED_SYSTEM_ADDED_TO_GROUP", "PROVISIONED_SYSTEM_CREATED", "PROVISIONED_SYSTEM_MODIFIED", "PROVISIONED_SYSTEM_MODIFIED_FOR_GROUP", "PROVISIONED_SYSTEM_REMOVED", "PROVISIONED_SYSTEM_REMOVED_FROM_GROUP", "PROVISIONED_SYSTEM_UNKNOWN_ACCOUNT_DESTROYED", "REMOVE_GROUP_ACCEPTED", "REMOVE_GROUP_DECLINED", "REMOVE_GROUP_REQUESTED", "REMOVE_ORGANIZATIONAL_UNIT_ACCEPTED", "REMOVE_ORGANIZATIONAL_UNIT_DECLINED", "REMOVE_ORGANIZATIONAL_UNIT_REQUESTED", "REMOVE_PROVISIONED_SYSTEM_ACCEPTED", "REMOVE_PROVISIONED_SYSTEM_DECLINED", "REMOVE_PROVISIONED_SYSTEM_REQUESTED", "RESET_PASSWORD_ACCEPTED", "RESET_PASSWORD_DECLINED", "RESET_PASSWORD_FINISHED", "RESET_PASSWORD_REQUESTED", "REVIEW_AUDIT_ACCEPTED", "REVIEW_AUDIT_DECLINED", "REVIEW_AUDIT_REQUESTED", "REVOKE_ADMIN_ACCEPTED", "REVOKE_ADMIN_DECLINED", "REVOKE_ADMIN_REQUESTED", "SERVICE_ACCOUNT_ADDED_TO_GROUP", "SERVICE_ACCOUNT_CREATED", "SERVICE_ACCOUNT_GROUP_DEPROVISIONED", "SERVICE_ACCOUNT_GROUP_PROVISIONED", "SERVICE_ACCOUNT_MODIFIED", "SERVICE_ACCOUNT_PASSWORD_ROTATED", "SERVICE_ACCOUNT_PROVISIONING_DESTROYED", "SERVICE_ACCOUNT_PROVISIONING_INITED", "SERVICE_ACCOUNT_REMOVED", "SERVICE_ACCOUNT_REMOVED_FROM_GROUP", "SETUP_AUTHORIZING_GROUP_CONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_CONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_CONNECT_REQUESTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_REQUESTED", "SETUP_NESTED_GROUP_CONNECT_ACCEPTED", "SETUP_NESTED_GROUP_CONNECT_DECLINED", "SETUP_NESTED_GROUP_CONNECT_REQUESTED", "SETUP_NESTED_GROUP_DISCONNECT_ACCEPTED", "SETUP_NESTED_GROUP_DISCONNECT_DECLINED", "SETUP_NESTED_GROUP_DISCONNECT_REQUESTED", "TRANSFER_APPLICATION_ADMINISTRATION_ACCEPTED", "TRANSFER_APPLICATION_ADMINISTRATION_DECLINED", "TRANSFER_APPLICATION_ADMINISTRATION_REQUESTED", "TRANSFER_APPLICATION_OWNERSHIP_ACCEPTED", "TRANSFER_APPLICATION_OWNERSHIP_DECLINED", "TRANSFER_APPLICATION_OWNERSHIP_REQUESTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_ACCEPTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_DECLINED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_ACCEPTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_DECLINED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_REQUESTED", "TRANSFER_AUDITOR_GROUP_ACCEPTED", "TRANSFER_AUDITOR_GROUP_DECLINED", "TRANSFER_AUDITOR_GROUP_REQUESTED", "UPDATE_GROUP_MEMBERSHIP_ACCEPTED", "UPDATE_GROUP_MEMBERSHIP_DECLINED", "UPDATE_GROUP_MEMBERSHIP_REQUESTED", "VAULT_ACCESS_RESTORED", "VAULT_EXPORTED", "VAULT_PERSONAL_RESET", "VAULT_PERSONAL_SETUP", "VAULT_RECORD_CREATED", "VAULT_RECORD_MODIFIED", "VAULT_RECORD_MOVED_COPIED_SHARED", "VAULT_RECORD_READ", "VAULT_RECORD_REMOVED", "VAULT_RECOVERED", "VERIFY_INTERNAL_ACCOUNT_ACCEPTED", "VERIFY_INTERNAL_ACCOUNT_DECLINED", "VERIFY_INTERNAL_ACCOUNT_REQUESTED", "WEBHOOK_CREATED", "WEBHOOK_MODIFIED", "WEBHOOK_REMOVED", + ), + ), + }, } schemaAttrs["url"] = rsschema.StringAttribute{ Required: true, @@ -6907,7 +6990,7 @@ func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Att Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), Optional: true, } - schemaAttrs["webhook_webhook_push_type"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index e9b8f5d..89fc6ab 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -79,7 +79,7 @@ func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) @@ -285,7 +285,7 @@ func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertifi data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -306,7 +306,7 @@ func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateC data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -342,7 +342,7 @@ func fillDataStructFromTFObjectDSClientApplicationVaultVaultRecord(data *clientA func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -354,8 +354,8 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) - data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { @@ -365,7 +365,7 @@ func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *cl func fillDataStructFromTFObjectDSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -475,7 +475,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) @@ -488,8 +488,8 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -501,7 +501,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectoryPrimer(data *directory data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -515,7 +515,7 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectoryStatusReport(data *dir func fillDataStructFromTFObjectDSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["type"].(basetypes.StringValue) data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) @@ -999,7 +999,7 @@ func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLic func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) } @@ -1147,7 +1147,7 @@ func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedPro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1187,7 +1187,7 @@ func fillDataStructFromTFObjectDSNestedServiceaccountServiceAccountGroup(data *n data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1389,7 +1389,7 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1406,7 +1406,7 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystemPrimer(data *provision data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) } @@ -1524,7 +1524,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) @@ -1538,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1558,7 +1558,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimer(data *provi data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -1715,43 +1715,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { @@ -1867,7 +1867,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *service data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -2034,7 +2034,7 @@ func fillDataStructFromTFObjectDSVaultVaultRecordSecrets(data *vaultVaultRecordS func fillDataStructFromTFObjectDSVaultVaultRecordShare(data *vaultVaultRecordShareDataDS, obj types.Object) { data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataDS, obj types.Object) { @@ -2148,7 +2148,7 @@ func fillDataStructFromTFObjectDSWebhookWebhookPush(data *webhookWebhookPushData data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) + data.WebhookWebhookPushType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectDSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 671357d..fbdb3a5 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -77,7 +77,7 @@ func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["audit_audit_record_type"].(basetypes.StringValue) + data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) @@ -256,7 +256,7 @@ func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertifi data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -276,7 +276,7 @@ func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateC data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["certificate_certificate_primer_type"].(basetypes.StringValue) + data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) @@ -311,7 +311,7 @@ func fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(data *clientA func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientApplicationDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -322,8 +322,8 @@ func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientAppli data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) - data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) + data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { @@ -333,7 +333,7 @@ func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *cl func fillDataStructFromTFObjectRSClientClientApplicationPrimer(data *clientClientApplicationPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.ClientClientApplicationPrimerType = obj.Attributes()["client_client_application_primer_type"].(basetypes.StringValue) + data.ClientClientApplicationPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ClientID = obj.Attributes()["client_id"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) @@ -441,7 +441,7 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -453,8 +453,8 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -466,7 +466,7 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectoryPrimer(data *directory data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountValiditySupported = obj.Attributes()["account_validity_supported"].(basetypes.BoolValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["directory_account_directory_primer_type"].(basetypes.StringValue) + data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -480,7 +480,7 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectoryStatusReport(data *dir func fillDataStructFromTFObjectRSDirectoryAccountDirectorySummary(data *directoryAccountDirectorySummaryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DirectoryAccountDirectorySummaryType = obj.Attributes()["directory_account_directory_summary_type"].(basetypes.StringValue) + data.DirectoryAccountDirectorySummaryType = obj.Attributes()["type"].(basetypes.StringValue) data.DomainRestriction = obj.Attributes()["domain_restriction"].(basetypes.StringValue) data.FullyResolvedIssuer = obj.Attributes()["fully_resolved_issuer"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) @@ -944,7 +944,7 @@ func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLic func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) - data.MarkItemMarkerType = obj.Attributes()["mark_item_marker_type"].(basetypes.StringValue) + data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) } @@ -1041,7 +1041,7 @@ func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedPro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -1072,7 +1072,7 @@ func fillDataStructFromTFObjectRSNestedServiceaccountServiceAccountGroup(data *n data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -1261,7 +1261,7 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGro data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -1277,7 +1277,7 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystemPrimer(data *provision data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) } @@ -1387,7 +1387,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) @@ -1400,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1420,7 +1420,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimer(data *provi data.Active = obj.Attributes()["active"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["provisioning_provisioned_system_primer_type"].(basetypes.StringValue) + data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } @@ -1575,43 +1575,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { @@ -1730,7 +1730,7 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup(data *service data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["provisioning_group_on_system_primer_type"].(basetypes.StringValue) + data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) } @@ -1895,7 +1895,7 @@ func fillDataStructFromTFObjectRSVaultVaultRecordSecrets(data *vaultVaultRecordS func fillDataStructFromTFObjectRSVaultVaultRecordShare(data *vaultVaultRecordShareDataRS, obj types.Object) { data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.VaultVaultRecordShareType = obj.Attributes()["vault_vault_record_share_type"].(basetypes.StringValue) + data.VaultVaultRecordShareType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSVaultVaultRecordShareSummary(data *vaultVaultRecordShareSummaryDataRS, obj types.Object) { @@ -2008,7 +2008,7 @@ func fillDataStructFromTFObjectRSWebhookWebhookPush(data *webhookWebhookPushData data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["webhook_webhook_push_type"].(basetypes.StringValue) + data.WebhookWebhookPushType = obj.Attributes()["type"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index d5e93b9..01e335e 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -263,7 +263,7 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetAuditAuditRecordType(val) } @@ -989,7 +989,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -1077,7 +1077,7 @@ func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bo } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -1219,7 +1219,7 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1259,19 +1259,19 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } @@ -1332,7 +1332,7 @@ func tfObjectToTKHDSClientClientApplicationPrimer(ctx context.Context, recurse b tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1764,7 +1764,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1808,19 +1808,19 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1883,7 +1883,7 @@ func tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1941,7 +1941,7 @@ func tfObjectToTKHDSDirectoryAccountDirectorySummary(ctx context.Context, recurs tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -3851,7 +3851,7 @@ func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal typ tkh.SetLevel(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) tkh.SetMarkItemMarkerType(val) } @@ -4409,7 +4409,7 @@ func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -4559,7 +4559,7 @@ func tfObjectToTKHDSNestedServiceaccountServiceAccountGroup(ctx context.Context, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5369,7 +5369,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5445,7 +5445,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5905,7 +5905,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -5938,6 +5938,14 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5954,11 +5962,11 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5970,14 +5978,6 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5986,19 +5986,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6066,7 +6066,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, rec tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -6645,83 +6645,83 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6733,83 +6733,83 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6821,123 +6821,123 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -7392,7 +7392,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -8031,7 +8031,7 @@ func tfObjectToTKHDSVaultVaultRecordShare(ctx context.Context, recurse bool, obj tkh = keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultVaultRecordShareType(val) } @@ -8481,7 +8481,7 @@ func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetWebhook(val) } { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetWebhookWebhookPushType(val) } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 9fa8967..fadf22b 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -263,7 +263,7 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["audit_audit_record_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetAuditAuditRecordType(val) } @@ -907,7 +907,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -995,7 +995,7 @@ func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bo } tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["certificate_certificate_primer_type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { return *val.(*keyhubmodel.CertificateCertificateType) }) diags.Append(d...) @@ -1137,7 +1137,7 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1177,19 +1177,19 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } @@ -1250,7 +1250,7 @@ func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse b tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["client_client_application_primer_type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) @@ -1689,7 +1689,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1733,19 +1733,19 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1808,7 +1808,7 @@ func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["directory_account_directory_primer_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -1866,7 +1866,7 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["directory_account_directory_summary_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) @@ -3781,7 +3781,7 @@ func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal typ tkh.SetLevel(val) } { - val, d := parseCastPointer(objAttrs["mark_item_marker_type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) tkh.SetMarkItemMarkerType(val) } @@ -4187,7 +4187,7 @@ func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -4315,7 +4315,7 @@ func tfObjectToTKHRSNestedServiceaccountServiceAccountGroup(ctx context.Context, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5100,7 +5100,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5176,7 +5176,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -5623,7 +5623,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -5656,6 +5656,14 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5672,11 +5680,11 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5688,14 +5696,6 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["provisioned_internal_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5704,19 +5704,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5784,7 +5784,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, rec tkh.SetOrganizationalUnit(val) } { - val, d := parseCastPointer(objAttrs["provisioning_provisioned_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) @@ -6366,83 +6366,83 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6454,83 +6454,83 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6542,123 +6542,123 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -7122,7 +7122,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["provisioning_group_on_system_primer_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) @@ -7765,7 +7765,7 @@ func tfObjectToTKHRSVaultVaultRecordShare(ctx context.Context, recurse bool, obj tkh = keyhubmodel.NewVaultVaultRecordShare() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["vault_vault_record_share_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) diags.Append(d...) tkh.SetVaultVaultRecordShareType(val) } @@ -8222,7 +8222,7 @@ func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal tkh.SetWebhook(val) } { - val, d := parseCastPointer(objAttrs["webhook_webhook_push_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) diags.Append(d...) tkh.SetWebhookWebhookPushType(val) } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 14256aa..9af726c 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -328,7 +328,7 @@ func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec obj["permissions"] = val } obj["additional"] = types.ListNull(types.StringType) - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["type"] = stringerToTF(tkh.GetAuditAuditRecordType()) obj["date_time"] = timePointerToTF(tkh.GetDateTime()) obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) @@ -1124,7 +1124,7 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1217,7 +1217,7 @@ func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1368,7 +1368,7 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1399,18 +1399,18 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["o_auth2_client"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) - val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) - diags.Append(d...) - obj["ldap_client"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) diags.Append(d...) obj["saml2_client"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) + diags.Append(d...) + obj["ldap_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1479,7 +1479,7 @@ func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1999,7 +1999,7 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) @@ -2029,18 +2029,18 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["internal_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) - diags.Append(d...) - obj["maintenance_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) obj["o_id_c_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -2111,7 +2111,7 @@ func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmode } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -2175,7 +2175,7 @@ func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) @@ -4418,7 +4418,7 @@ func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera obj := make(map[string]attr.Value) obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) @@ -4974,7 +4974,7 @@ func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) { @@ -5142,7 +5142,7 @@ func tkhToTFObjectDSNestedServiceaccountServiceAccountGroup(recurse bool, tkh ke } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) @@ -6176,7 +6176,7 @@ func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) { @@ -6259,7 +6259,7 @@ func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -6852,7 +6852,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["organizational_unit"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) @@ -6877,6 +6877,12 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6890,10 +6896,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) @@ -6901,30 +6907,24 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_azure_sync_ldap_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_internal_ldap"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_ldap"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7000,7 +7000,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub diags.Append(d...) obj["organizational_unit"] = val } - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -7809,64 +7809,64 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["verify_internal_account_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) @@ -7875,64 +7875,64 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) @@ -7941,94 +7941,94 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8638,7 +8638,7 @@ func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) @@ -9467,7 +9467,7 @@ func tkhToTFObjectDSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVau obj := make(map[string]attr.Value) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + obj["type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9991,7 +9991,7 @@ func tkhToTFObjectDSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebh diags.Append(d...) obj["webhook"] = val } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + obj["type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index a4b7ea3..031339e 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -326,7 +326,7 @@ func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec diags.Append(d...) obj["permissions"] = val } - obj["audit_audit_record_type"] = stringerToTF(tkh.GetAuditAuditRecordType()) + obj["type"] = stringerToTF(tkh.GetAuditAuditRecordType()) obj["date_time"] = timePointerToTF(tkh.GetDateTime()) obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) @@ -1050,7 +1050,7 @@ func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1142,7 +1142,7 @@ func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C obj["permissions"] = val } obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["certificate_certificate_primer_type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) { elemType := attrs["certificate_data"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { @@ -1292,7 +1292,7 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1314,18 +1314,18 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["o_auth2_client"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) - val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) - diags.Append(d...) - obj["ldap_client"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) diags.Append(d...) obj["saml2_client"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) + diags.Append(d...) + obj["ldap_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1394,7 +1394,7 @@ func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["client_client_application_primer_type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) obj["name"] = types.StringPointerValue(tkh.GetName()) { @@ -1884,7 +1884,7 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) @@ -1905,18 +1905,18 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire diags.Append(d...) obj["internal_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) - diags.Append(d...) - obj["maintenance_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) obj["o_id_c_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1987,7 +1987,7 @@ func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmode } obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["directory_account_directory_primer_type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) @@ -2051,7 +2051,7 @@ func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["directory_account_directory_summary_type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) @@ -4148,7 +4148,7 @@ func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera obj := make(map[string]attr.Value) obj["level"] = stringerToTF(tkh.GetLevel()) - obj["mark_item_marker_type"] = stringerToTF(tkh.GetMarkItemMarkerType()) + obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) @@ -4528,7 +4528,7 @@ func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) @@ -4661,7 +4661,7 @@ func tkhToTFObjectRSNestedServiceaccountServiceAccountGroup(recurse bool, tkh ke } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -5620,7 +5620,7 @@ func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) @@ -5694,7 +5694,7 @@ func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmode } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -6245,7 +6245,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) @@ -6257,6 +6257,12 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6270,10 +6276,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_tenant"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) @@ -6281,30 +6287,24 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_azure_sync_ldap_directory"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_internal_ldap"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) obj["provisioned_ldap"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6376,7 +6376,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhub obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["provisioning_provisioned_system_primer_type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -7149,64 +7149,64 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["abstract_application_modification_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["verify_internal_account_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) @@ -7215,64 +7215,64 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) @@ -7281,94 +7281,94 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["transfer_provisioned_system_administration_request"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7953,7 +7953,7 @@ func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo } obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["provisioning_group_on_system_primer_type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) @@ -8760,7 +8760,7 @@ func tkhToTFObjectRSVaultVaultRecordShare(recurse bool, tkh keyhubmodel.VaultVau obj := make(map[string]attr.Value) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["vault_vault_record_share_type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) + obj["type"] = stringerToTF(tkh.GetVaultVaultRecordShareType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -9247,7 +9247,7 @@ func tkhToTFObjectRSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebh diags.Append(d...) obj["webhook"] = val } - obj["webhook_webhook_push_type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) + obj["type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) From 48a86860d7f705628a8670e87f9f4b7d37669912 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 17 Oct 2023 16:19:04 +0200 Subject: [PATCH 20/34] Flatten LinkableWrapper.items --- docs/data-sources/account.md | 42 +- docs/data-sources/certificate.md | 2 +- docs/data-sources/client.md | 266 +- docs/data-sources/directory.md | 12 +- docs/data-sources/group.md | 2302 ++++++------- docs/data-sources/serviceaccount.md | 24 +- docs/data-sources/system.md | 134 +- docs/data-sources/vaultrecord.md | 26 +- docs/data-sources/webhook.md | 10 +- docs/resources/client_vaultrecord.md | 14 +- docs/resources/clientapplication.md | 64 +- docs/resources/group.md | 746 ++-- docs/resources/group_vaultrecord.md | 14 +- docs/resources/grouponsystem.md | 50 +- docs/resources/serviceaccount.md | 22 +- .../provider-install-verification/main.tf | 10 +- internal/provider/full-data-struct-ds.go | 116 +- internal/provider/full-data-struct-rs.go | 118 +- internal/provider/full-helpers.go | 32 + internal/provider/full-object-attrs-ds.go | 116 +- internal/provider/full-object-attrs-rs.go | 118 +- internal/provider/full-schema-ds.go | 3040 +++++++++++------ internal/provider/full-schema-rs.go | 2244 +++++++----- .../provider/full-tf-to-data-struct-ds.go | 116 +- .../provider/full-tf-to-data-struct-rs.go | 118 +- internal/provider/full-tf-to-tkh-ds.go | 308 +- internal/provider/full-tf-to-tkh-rs.go | 310 +- internal/provider/full-tkh-to-tf-ds.go | 304 +- internal/provider/full-tkh-to-tf-rs.go | 306 +- 29 files changed, 6154 insertions(+), 4830 deletions(-) diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md index 0add2a4..dbcbe45 100644 --- a/docs/data-sources/account.md +++ b/docs/data-sources/account.md @@ -69,7 +69,7 @@ Read-Only: - `active_login` (Boolean) - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) - `pending_recovery_requests` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--pending_recovery_requests)) - `settings` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--settings)) - `stored_attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--stored_attributes)) @@ -89,13 +89,6 @@ Read-Only: ### Nested Schema for `additional_objects.groups` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) - - -### Nested Schema for `additional_objects.groups.items` - Optional: - `additional` (List of String) @@ -104,18 +97,18 @@ Read-Only: - `admin` (Boolean) - `end_date` (String) -- `folder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--folder)) +- `folder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--folder)) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `uuid` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.groups.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.groups.folder` Optional: @@ -123,12 +116,12 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--visible_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--folder--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--visible_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--folder--permissions)) - -### Nested Schema for `additional_objects.groups.items.visible_for_provisioning.links` + +### Nested Schema for `additional_objects.groups.folder.permissions` Read-Only: @@ -138,8 +131,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.visible_for_provisioning.permissions` + +### Nested Schema for `additional_objects.groups.folder.permissions` Read-Only: @@ -150,8 +143,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.groups.links` Read-Only: @@ -161,8 +154,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.groups.permissions` Read-Only: @@ -173,7 +166,6 @@ Read-Only: - ### Nested Schema for `additional_objects.pending_recovery_requests` @@ -340,10 +332,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--directory--permissions)) +- `type` (String) - `uuid` (String) diff --git a/docs/data-sources/certificate.md b/docs/data-sources/certificate.md index cd54306..9a935b1 100644 --- a/docs/data-sources/certificate.md +++ b/docs/data-sources/certificate.md @@ -27,7 +27,6 @@ description: |- - `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -37,6 +36,7 @@ description: |- - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `subject_dn` (String) +- `type` (String) ### Nested Schema for `additional_objects` diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index 43d1901..a9e522f 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -26,7 +26,6 @@ description: |- ### Read-Only - `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) -- `client_client_application_primer_type` (String) - `client_id` (String) - `last_modified_at` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) @@ -39,6 +38,7 @@ description: |- - `scopes` (List of String) - `sso_application` (Boolean) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) +- `type` (String) ### Nested Schema for `additional_objects` @@ -46,8 +46,8 @@ description: |- Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groupclients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) -- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - `vault_record_count` (Number) @@ -66,13 +66,6 @@ Read-Only: ### Nested Schema for `additional_objects.groupclients` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items)) - - -### Nested Schema for `additional_objects.groupclients.items` - Optional: - `additional` (List of String) @@ -80,29 +73,29 @@ Optional: Read-Only: - `activation_required` (Boolean) -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--client)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--links)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--permissions)) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--client)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--links)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--permissions)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--technical_administrator)) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +### Nested Schema for `additional_objects.groupclients.client` Read-Only: -- `client_client_application_primer_type` (String) - `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--client--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.groupclients.client.uuid` Read-Only: @@ -112,8 +105,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.groupclients.client.uuid` Read-Only: @@ -124,19 +117,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +### Nested Schema for `additional_objects.groupclients.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.groupclients.group.uuid` Read-Only: @@ -146,8 +139,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.groupclients.group.uuid` Read-Only: @@ -158,8 +151,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +### Nested Schema for `additional_objects.groupclients.links` Read-Only: @@ -169,19 +162,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +### Nested Schema for `additional_objects.groupclients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.groupclients.owner.uuid` Read-Only: @@ -191,8 +184,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.groupclients.owner.uuid` Read-Only: @@ -203,8 +196,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +### Nested Schema for `additional_objects.groupclients.permissions` Read-Only: @@ -214,19 +207,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator` + +### Nested Schema for `additional_objects.groupclients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.groupclients.technical_administrator.uuid` Read-Only: @@ -236,8 +229,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.groupclients.technical_administrator.uuid` Read-Only: @@ -249,17 +242,9 @@ Read-Only: - ### Nested Schema for `additional_objects.groups` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) - - -### Nested Schema for `additional_objects.groups.items` - Optional: - `additional` (List of String) @@ -268,23 +253,23 @@ Read-Only: - `admin` (Boolean) - `application_administration` (Boolean) -- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--audit_config)) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config)) - `audit_requested` (Boolean) - `auditor` (Boolean) -- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_auditing)) -- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_delegation)) -- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_membership)) -- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--authorizing_group_provisioning)) +- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_auditing)) +- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_delegation)) +- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_membership)) +- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_provisioning)) - `authorizing_group_types` (List of String) -- `classification` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--classification)) +- `classification` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--classification)) - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) - `name` (String) -- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--nested_under)) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--nested_under)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -293,17 +278,17 @@ Read-Only: - `vault_recovery` (String) - `vault_requires_activation` (Boolean) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.audit_config` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--links)) - `months` (List of String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--permissions)) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.audit_config.permissions` Read-Only: @@ -313,8 +298,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.audit_config.permissions` Read-Only: @@ -325,19 +310,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.authorizing_group_auditing` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_auditing--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_auditing--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.authorizing_group_auditing.uuid` Read-Only: @@ -347,8 +332,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.authorizing_group_auditing.uuid` Read-Only: @@ -359,19 +344,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.authorizing_group_delegation` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_delegation--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_delegation--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.authorizing_group_delegation.uuid` Read-Only: @@ -381,8 +366,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.authorizing_group_delegation.uuid` Read-Only: @@ -393,19 +378,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.authorizing_group_membership` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_membership--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_membership--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.authorizing_group_membership.uuid` Read-Only: @@ -415,8 +400,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.authorizing_group_membership.uuid` Read-Only: @@ -427,19 +412,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.authorizing_group_provisioning` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_provisioning--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.authorizing_group_provisioning.uuid` Read-Only: @@ -449,8 +434,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.authorizing_group_provisioning.uuid` Read-Only: @@ -461,18 +446,18 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.classification` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--classification--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--classification--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.classification.uuid` Read-Only: @@ -482,8 +467,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.classification.uuid` Read-Only: @@ -494,8 +479,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.links` Read-Only: @@ -505,19 +490,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.nested_under` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--nested_under--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--nested_under--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.nested_under.uuid` Read-Only: @@ -527,8 +512,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.nested_under.uuid` Read-Only: @@ -539,18 +524,18 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.links` + +### Nested Schema for `additional_objects.groups.organizational_unit.uuid` Read-Only: @@ -560,8 +545,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation.permissions` + +### Nested Schema for `additional_objects.groups.organizational_unit.uuid` Read-Only: @@ -572,8 +557,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.items.vault_requires_activation` + +### Nested Schema for `additional_objects.groups.permissions` Read-Only: @@ -584,7 +569,6 @@ Read-Only: - ### Nested Schema for `additional_objects.secret` @@ -621,7 +605,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -630,6 +613,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--ldap_client--client_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--ldap_client--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) diff --git a/docs/data-sources/directory.md b/docs/data-sources/directory.md index d2bb396..c744f0a 100644 --- a/docs/data-sources/directory.md +++ b/docs/data-sources/directory.md @@ -30,7 +30,6 @@ description: |- - `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--base_organizational_unit)) - `default_directory` (Boolean) -- `directory_account_directory_primer_type` (String) - `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--helpdesk_group)) - `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--internal_directory)) - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--l_d_a_p_directory)) @@ -41,6 +40,7 @@ description: |- - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `restrict2fa` (Boolean) - `rotating_password` (String) +- `type` (String) - `username_customizable` (Boolean) @@ -76,11 +76,11 @@ Read-Only: Read-Only: - `level` (String) -- `mark_item_marker_type` (String) - `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `type` (String) -### Nested Schema for `additional_objects.markers.markers.parameters` +### Nested Schema for `additional_objects.markers.markers.type` @@ -231,7 +231,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -240,6 +239,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--client_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -271,7 +271,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -280,6 +279,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--failover_trusted_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--failover_trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -311,7 +311,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -320,6 +319,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--trusted_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--l_d_a_p_directory--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 2f96d59..9939caf 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -57,59 +57,52 @@ description: |- Read-Only: -- `accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts)) -- `administered_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) -- `administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) -- `admins` (Attributes, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts)) +- `administered_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) +- `administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) +- `admins` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups)) -- `client_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) -- `clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients)) -- `content_administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) +- `client_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) +- `clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients)) +- `content_administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) - `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupauditinginfo)) - `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupinfo)) -- `helpdesk` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) +- `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) - `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) - `myaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount)) - `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount)) -- `nested_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--nested_groups)) -- `owned_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) -- `owned_directories` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) +- `nested_groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups)) +- `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) +- `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) - `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system)) -- `owned_organizational_units` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) -- `owned_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) -- `recent_audits` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) +- `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) +- `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) +- `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) - `requeststatus` (String) -- `service_accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) -- `systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems)) +- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) +- `systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems)) - `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) -- `webhooks` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) +- `webhooks` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) ### Nested Schema for `additional_objects.accounts` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items)) - - -### Nested Schema for `additional_objects.accounts.items` - Optional: - `additional` (List of String) Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts--directory)) - `disconnected_nested` (Boolean) - `display_name` (String) - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `two_factor_status` (String) @@ -118,21 +111,21 @@ Read-Only: - `validity` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.accounts.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--visible_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items--visible_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--directory--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning.links` + +### Nested Schema for `additional_objects.accounts.directory.uuid` Read-Only: @@ -142,8 +135,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning.permissions` + +### Nested Schema for `additional_objects.accounts.directory.uuid` Read-Only: @@ -154,8 +147,8 @@ Read-Only: - -### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.accounts.links` Read-Only: @@ -165,8 +158,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.accounts.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.accounts.permissions` Read-Only: @@ -177,68 +170,60 @@ Read-Only: - ### Nested Schema for `additional_objects.administered_clients` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items)) - - -### Nested Schema for `additional_objects.administered_clients.items` - Optional: - `additional` (List of String) Read-Only: -- `client_client_application_primer_type` (String) - `client_id` (String) - `last_modified_at` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--links)) - `name` (String) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--o_auth2_client)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--saml2_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client)) - `scopes` (List of String) - `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--technical_administrator)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.ldap_client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.client_certificate` + +### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.links` Read-Only: @@ -248,8 +233,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.permissions` Read-Only: @@ -260,20 +245,20 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret` + +### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.links` Read-Only: @@ -283,8 +268,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.permissions` Read-Only: @@ -296,8 +281,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.links` Read-Only: @@ -307,13 +292,13 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -321,12 +306,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.account_permissions` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials` Read-Only: @@ -336,24 +321,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials` - -### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--use_client_credentials--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--use_client_credentials--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials.links` Read-Only: @@ -363,8 +348,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials.permissions` Read-Only: @@ -376,19 +361,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.links` + +### Nested Schema for `additional_objects.administered_clients.owner.uuid` Read-Only: @@ -398,8 +383,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_clients.owner.uuid` Read-Only: @@ -410,8 +395,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.permissions` Read-Only: @@ -421,34 +406,34 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.saml2_client` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.administered_clients.saml2_client.subject_format` - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.links` + +### Nested Schema for `additional_objects.administered_clients.technical_administrator.uuid` Read-Only: @@ -458,8 +443,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_clients.technical_administrator.uuid` Read-Only: @@ -471,61 +456,53 @@ Read-Only: - ### Nested Schema for `additional_objects.administered_systems` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items)) - - -### Nested Schema for `additional_objects.administered_systems.items` - Optional: - `additional` (List of String) Read-Only: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--content_administrator)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--content_administrator)) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--technical_administrator)) +- `type` (String) - `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--attributes)) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--client_certificate)) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--failover_trusted_certificate)) - `group_dn` (String) - `host` (String) - `object_classes` (String) @@ -533,32 +510,32 @@ Read-Only: - `service_account_dn` (String) - `ssh_public_key_supported` (Boolean) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.attributes` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client_certificate` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -568,8 +545,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -580,25 +557,25 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid.failover_trusted_certificate` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--failover_trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--failover_trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -608,8 +585,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -620,25 +597,25 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid.trusted_certificate` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -648,8 +625,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -661,19 +638,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.content_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--content_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--content_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.administered_systems.content_administrator.uuid` Read-Only: @@ -683,8 +660,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_systems.content_administrator.uuid` Read-Only: @@ -695,8 +672,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.links` Read-Only: @@ -706,18 +683,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.administered_systems.organizational_unit.uuid` Read-Only: @@ -727,8 +704,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_systems.organizational_unit.uuid` Read-Only: @@ -739,19 +716,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.administered_systems.owner.uuid` Read-Only: @@ -761,8 +738,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_systems.owner.uuid` Read-Only: @@ -773,8 +750,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.permissions` Read-Only: @@ -784,37 +761,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_a_d` Read-Only: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory.tenant` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory--tenant--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory--tenant--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory.tenant.links` Read-Only: @@ -824,8 +801,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory.tenant.permissions` Read-Only: @@ -837,31 +814,31 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory` Read-Only: - `client_id` (String) - `client_secret` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory.tenant` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory--tenant--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory--tenant--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory.tenant.links` Read-Only: @@ -871,8 +848,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory.tenant.permissions` Read-Only: @@ -884,8 +861,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_tenant` Read-Only: @@ -895,43 +872,43 @@ Read-Only: - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap` Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.client_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` Read-Only: @@ -941,8 +918,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` Read-Only: @@ -953,20 +930,20 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` Read-Only: @@ -976,8 +953,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` Read-Only: @@ -990,17 +967,17 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap` Read-Only: - `gid` (Number) - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering)) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.numbering` Optional: @@ -1009,13 +986,13 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering--links)) - `name` (String) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.numbering.links` Read-Only: @@ -1025,8 +1002,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -1038,29 +1015,29 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory--directory)) - `group_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory.group_dn` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory--group_dn--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory--group_dn--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory.group_dn.links` Read-Only: @@ -1070,8 +1047,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory.group_dn.permissions` Read-Only: @@ -1083,19 +1060,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.administered_systems.technical_administrator.uuid` Read-Only: @@ -1105,8 +1082,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.administered_systems.technical_administrator.uuid` Read-Only: @@ -1118,32 +1095,24 @@ Read-Only: - ### Nested Schema for `additional_objects.admins` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items)) - - -### Nested Schema for `additional_objects.admins.items` - Optional: - `additional` (List of String) Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--admins--items--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--admins--directory)) - `disconnected_nested` (Boolean) - `display_name` (String) - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `two_factor_status` (String) @@ -1152,21 +1121,21 @@ Read-Only: - `validity` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.admins.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.admins.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--visible_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items--visible_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--directory--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.admins.items.visible_for_provisioning.links` + +### Nested Schema for `additional_objects.admins.directory.uuid` Read-Only: @@ -1176,8 +1145,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.admins.items.visible_for_provisioning.permissions` + +### Nested Schema for `additional_objects.admins.directory.uuid` Read-Only: @@ -1188,8 +1157,8 @@ Read-Only: - -### Nested Schema for `additional_objects.admins.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.admins.links` Read-Only: @@ -1199,8 +1168,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.admins.items.visible_for_provisioning` + +### Nested Schema for `additional_objects.admins.permissions` Read-Only: @@ -1211,7 +1180,6 @@ Read-Only: - ### Nested Schema for `additional_objects.audit` @@ -1562,33 +1530,26 @@ Read-Only: ### Nested Schema for `additional_objects.client_permissions` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items)) - - -### Nested Schema for `additional_objects.client_permissions.items` - Optional: - `additional` (List of String) Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--client)) -- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--for_group)) -- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--for_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client)) +- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_group)) +- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--permissions)) - `value` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value` + +### Nested Schema for `additional_objects.client_permissions.client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -1596,12 +1557,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.client_permissions.items.value.account_permissions` + +### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials` Read-Only: @@ -1611,24 +1572,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.attributes` + +### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials` - -### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret` + +### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--use_client_credentials--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--use_client_credentials--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` + +### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials.links` Read-Only: @@ -1638,8 +1599,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.shared_secret.uuid` + +### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials.permissions` Read-Only: @@ -1651,19 +1612,19 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.items.value` + +### Nested Schema for `additional_objects.client_permissions.for_group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.links` + +### Nested Schema for `additional_objects.client_permissions.for_group.uuid` Read-Only: @@ -1673,8 +1634,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.permissions` + +### Nested Schema for `additional_objects.client_permissions.for_group.uuid` Read-Only: @@ -1685,21 +1646,21 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.items.value` + +### Nested Schema for `additional_objects.client_permissions.for_system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.links` + +### Nested Schema for `additional_objects.client_permissions.for_system.uuid` Read-Only: @@ -1709,18 +1670,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.organizational_unit` + +### Nested Schema for `additional_objects.client_permissions.for_system.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--value--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.organizational_unit.uuid` + +### Nested Schema for `additional_objects.client_permissions.for_system.uuid.links` Read-Only: @@ -1730,8 +1691,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value.organizational_unit.uuid` + +### Nested Schema for `additional_objects.client_permissions.for_system.uuid.permissions` Read-Only: @@ -1742,8 +1703,8 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.items.value.permissions` + +### Nested Schema for `additional_objects.client_permissions.for_system.uuid` Read-Only: @@ -1754,8 +1715,8 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.items.value` + +### Nested Schema for `additional_objects.client_permissions.links` Read-Only: @@ -1765,8 +1726,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.value` + +### Nested Schema for `additional_objects.client_permissions.permissions` Read-Only: @@ -1777,17 +1738,9 @@ Read-Only: - ### Nested Schema for `additional_objects.clients` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items)) - - -### Nested Schema for `additional_objects.clients.items` - Optional: - `additional` (List of String) @@ -1795,29 +1748,29 @@ Optional: Read-Only: - `activation_required` (Boolean) -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--client)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--client)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--links)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--permissions)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--technical_administrator)) - -### Nested Schema for `additional_objects.clients.items.technical_administrator` + +### Nested Schema for `additional_objects.clients.client` Read-Only: -- `client_client_application_primer_type` (String) - `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--client--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.clients.client.uuid` Read-Only: @@ -1827,8 +1780,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.clients.client.uuid` Read-Only: @@ -1839,19 +1792,19 @@ Read-Only: - -### Nested Schema for `additional_objects.clients.items.technical_administrator` + +### Nested Schema for `additional_objects.clients.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.clients.group.uuid` Read-Only: @@ -1861,8 +1814,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.clients.group.uuid` Read-Only: @@ -1873,8 +1826,8 @@ Read-Only: - -### Nested Schema for `additional_objects.clients.items.technical_administrator` + +### Nested Schema for `additional_objects.clients.links` Read-Only: @@ -1884,19 +1837,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator` + +### Nested Schema for `additional_objects.clients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.clients.owner.uuid` Read-Only: @@ -1906,8 +1859,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.clients.owner.uuid` Read-Only: @@ -1918,8 +1871,8 @@ Read-Only: - -### Nested Schema for `additional_objects.clients.items.technical_administrator` + +### Nested Schema for `additional_objects.clients.permissions` Read-Only: @@ -1929,19 +1882,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator` + +### Nested Schema for `additional_objects.clients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.links` + +### Nested Schema for `additional_objects.clients.technical_administrator.uuid` Read-Only: @@ -1951,8 +1904,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator.permissions` + +### Nested Schema for `additional_objects.clients.technical_administrator.uuid` Read-Only: @@ -1964,61 +1917,53 @@ Read-Only: - ### Nested Schema for `additional_objects.content_administered_systems` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items)) - - -### Nested Schema for `additional_objects.content_administered_systems.items` - Optional: - `additional` (List of String) Read-Only: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--content_administrator)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--content_administrator)) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--technical_administrator)) +- `type` (String) - `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--attributes)) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--client_certificate)) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--failover_trusted_certificate)) - `group_dn` (String) - `host` (String) - `object_classes` (String) @@ -2026,32 +1971,32 @@ Read-Only: - `service_account_dn` (String) - `ssh_public_key_supported` (Boolean) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.attributes` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client_certificate` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -2061,8 +2006,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -2073,25 +2018,25 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.failover_trusted_certificate` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--failover_trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--failover_trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -2101,8 +2046,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -2113,25 +2058,25 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.trusted_certificate` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -2141,8 +2086,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -2154,19 +2099,19 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.content_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--content_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--content_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.content_administered_systems.content_administrator.uuid` Read-Only: @@ -2176,8 +2121,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.content_administrator.uuid` Read-Only: @@ -2188,8 +2133,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.links` Read-Only: @@ -2199,18 +2144,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.content_administered_systems.organizational_unit.uuid` Read-Only: @@ -2220,8 +2165,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.organizational_unit.uuid` Read-Only: @@ -2232,19 +2177,19 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.content_administered_systems.owner.uuid` Read-Only: @@ -2254,8 +2199,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.owner.uuid` Read-Only: @@ -2266,8 +2211,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.permissions` Read-Only: @@ -2277,37 +2222,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_a_d` Read-Only: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory.tenant` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory--tenant--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory--tenant--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory.tenant.links` Read-Only: @@ -2317,8 +2262,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory.tenant.permissions` Read-Only: @@ -2330,31 +2275,31 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory` Read-Only: - `client_id` (String) - `client_secret` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory.tenant` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory--tenant--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory--tenant--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory.tenant.links` Read-Only: @@ -2364,8 +2309,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory.tenant.permissions` Read-Only: @@ -2377,8 +2322,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_tenant` Read-Only: @@ -2388,43 +2333,43 @@ Read-Only: - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap` Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.client_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` Read-Only: @@ -2434,8 +2379,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` Read-Only: @@ -2446,20 +2391,20 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client--used_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` Read-Only: @@ -2469,8 +2414,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` Read-Only: @@ -2483,17 +2428,17 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap` Read-Only: - `gid` (Number) - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering)) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.numbering` Optional: @@ -2502,13 +2447,13 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering--links)) - `name` (String) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.numbering.links` Read-Only: @@ -2518,8 +2463,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -2531,29 +2476,29 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory--directory)) - `group_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory.group_dn` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory--group_dn--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory--group_dn--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory.group_dn.links` Read-Only: @@ -2563,8 +2508,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory.group_dn.permissions` Read-Only: @@ -2576,19 +2521,19 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.links` + +### Nested Schema for `additional_objects.content_administered_systems.technical_administrator.uuid` Read-Only: @@ -2598,8 +2543,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.technical_administrator.uuid` Read-Only: @@ -2611,7 +2556,6 @@ Read-Only: - ### Nested Schema for `additional_objects.groupauditinginfo` @@ -2645,24 +2589,17 @@ Read-Only: Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items)) - - -### Nested Schema for `additional_objects.helpdesk.items` - -Read-Only: - -- `directory_account_directory_summary_type` (String) - `domain_restriction` (String) - `fully_resolved_issuer` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) -- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--permissions)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--status)) +- `type` (String) - `username_customizable` (Boolean) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +### Nested Schema for `additional_objects.helpdesk.links` Read-Only: @@ -2672,8 +2609,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +### Nested Schema for `additional_objects.helpdesk.permissions` Read-Only: @@ -2683,8 +2620,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.username_customizable` + +### Nested Schema for `additional_objects.helpdesk.status` Read-Only: @@ -2694,7 +2631,6 @@ Read-Only: - ### Nested Schema for `additional_objects.markers` @@ -2708,11 +2644,11 @@ Read-Only: Read-Only: - `level` (String) -- `mark_item_marker_type` (String) - `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `type` (String) -### Nested Schema for `additional_objects.markers.markers.parameters` +### Nested Schema for `additional_objects.markers.markers.type` @@ -2750,10 +2686,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--permissions)) +- `type` (String) - `uuid` (String) @@ -2835,10 +2771,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--permissions)) +- `type` (String) - `uuid` (String) @@ -2892,21 +2828,14 @@ Read-Only: Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items)) - - -### Nested Schema for `additional_objects.nested_groups.items` - -Read-Only: - - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.nested_groups.items.uuid` + +### Nested Schema for `additional_objects.nested_groups.links` Read-Only: @@ -2916,8 +2845,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.nested_groups.items.uuid` + +### Nested Schema for `additional_objects.nested_groups.permissions` Read-Only: @@ -2928,68 +2857,60 @@ Read-Only: - ### Nested Schema for `additional_objects.owned_clients` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items)) - - -### Nested Schema for `additional_objects.owned_clients.items` - Optional: - `additional` (List of String) Read-Only: -- `client_client_application_primer_type` (String) - `client_id` (String) - `last_modified_at` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--links)) - `name` (String) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--o_auth2_client)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--saml2_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client)) - `scopes` (List of String) - `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--technical_administrator)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.ldap_client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.client_certificate` + +### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.links` Read-Only: @@ -2999,8 +2920,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.permissions` Read-Only: @@ -3011,20 +2932,20 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret` + +### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.links` Read-Only: @@ -3034,8 +2955,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.permissions` Read-Only: @@ -3047,8 +2968,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.links` Read-Only: @@ -3058,13 +2979,13 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -3072,12 +2993,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.account_permissions` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials` Read-Only: @@ -3087,24 +3008,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials` - -### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--use_client_credentials--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--use_client_credentials--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials.links` Read-Only: @@ -3114,8 +3035,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.shared_secret.uuid` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials.permissions` Read-Only: @@ -3127,19 +3048,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +### Nested Schema for `additional_objects.owned_clients.owner.uuid` Read-Only: @@ -3149,8 +3070,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_clients.owner.uuid` Read-Only: @@ -3161,8 +3082,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.permissions` Read-Only: @@ -3172,34 +3093,34 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.saml2_client` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.owned_clients.saml2_client.subject_format` - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.links` + +### Nested Schema for `additional_objects.owned_clients.technical_administrator.uuid` Read-Only: @@ -3209,8 +3130,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_clients.technical_administrator.uuid` Read-Only: @@ -3222,17 +3143,9 @@ Read-Only: - ### Nested Schema for `additional_objects.owned_directories` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items)) - - -### Nested Schema for `additional_objects.owned_directories.items` - Optional: - `additional` (List of String) @@ -3241,34 +3154,34 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--base_organizational_unit)) +- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--base_organizational_unit)) - `default_directory` (Boolean) -- `directory_account_directory_primer_type` (String) -- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--helpdesk_group)) -- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) -- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) -- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--maintenance_directory)) +- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--helpdesk_group)) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--links)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--maintenance_directory)) - `name` (String) -- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--o_id_c_directory)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--o_id_c_directory)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--permissions)) - `restrict2fa` (Boolean) - `rotating_password` (String) +- `type` (String) - `username_customizable` (Boolean) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.base_organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--base_organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--base_organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +### Nested Schema for `additional_objects.owned_directories.base_organizational_unit.uuid` Read-Only: @@ -3278,8 +3191,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_directories.base_organizational_unit.uuid` Read-Only: @@ -3290,19 +3203,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.helpdesk_group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--helpdesk_group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--helpdesk_group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.links` + +### Nested Schema for `additional_objects.owned_directories.helpdesk_group.uuid` Read-Only: @@ -3312,8 +3225,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_directories.helpdesk_group.uuid` Read-Only: @@ -3324,26 +3237,26 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.internal_directory` Read-Only: -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--owner)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory--owner)) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.owner` + +### Nested Schema for `additional_objects.owned_directories.internal_directory.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.owner.uuid` + +### Nested Schema for `additional_objects.owned_directories.internal_directory.owner.links` Read-Only: @@ -3353,8 +3266,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.owner.uuid` + +### Nested Schema for `additional_objects.owned_directories.internal_directory.owner.permissions` Read-Only: @@ -3366,17 +3279,17 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory` Read-Only: - `attributes_to_store` (String) - `base_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--client_certificate)) - `dialect` (String) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--failover_trusted_certificate)) - `host` (String) - `password_recovery` (String) - `port` (Number) @@ -3384,27 +3297,27 @@ Read-Only: - `search_bind_password` (String) - `search_filter` (String) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate)) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.client_certificate` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.links` Read-Only: @@ -3414,8 +3327,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.permissions` Read-Only: @@ -3426,25 +3339,25 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid.failover_trusted_certificate` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--failover_trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--failover_trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.links` Read-Only: @@ -3454,8 +3367,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.permissions` Read-Only: @@ -3466,25 +3379,25 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid.trusted_certificate` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--uuid--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.links` Read-Only: @@ -3494,8 +3407,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.permissions` Read-Only: @@ -3507,8 +3420,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.links` Read-Only: @@ -3518,12 +3431,12 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.maintenance_directory` - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.o_id_c_directory` Read-Only: @@ -3540,8 +3453,8 @@ Read-Only: - `vendor_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.permissions` Read-Only: @@ -3552,7 +3465,6 @@ Read-Only: - ### Nested Schema for `additional_objects.owned_groups_on_system` @@ -3645,7 +3557,7 @@ Read-Only: - `name` (String) - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `type` (String) - `uuid` (String) @@ -3709,13 +3621,6 @@ Read-Only: ### Nested Schema for `additional_objects.owned_organizational_units` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items)) - - -### Nested Schema for `additional_objects.owned_organizational_units.items` - Optional: - `additional` (List of String) @@ -3724,15 +3629,15 @@ Read-Only: - `depth` (Number) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--links)) - `name` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--owner)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--parent)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--owner)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--parent)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.links` Read-Only: @@ -3742,19 +3647,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` + +### Nested Schema for `additional_objects.owned_organizational_units.owner.uuid` Read-Only: @@ -3764,8 +3669,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_organizational_units.owner.uuid` Read-Only: @@ -3776,18 +3681,18 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.parent` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--parent--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--parent--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.links` + +### Nested Schema for `additional_objects.owned_organizational_units.parent.uuid` Read-Only: @@ -3797,8 +3702,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_organizational_units.parent.uuid` Read-Only: @@ -3809,8 +3714,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.permissions` Read-Only: @@ -3821,61 +3726,53 @@ Read-Only: - ### Nested Schema for `additional_objects.owned_systems` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items)) - - -### Nested Schema for `additional_objects.owned_systems.items` - Optional: - `additional` (List of String) Read-Only: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--content_administrator)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--content_administrator)) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--technical_administrator)) +- `type` (String) - `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--attributes)) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--client_certificate)) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--failover_trusted_certificate)) - `group_dn` (String) - `host` (String) - `object_classes` (String) @@ -3883,32 +3780,32 @@ Read-Only: - `service_account_dn` (String) - `ssh_public_key_supported` (Boolean) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.attributes` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client_certificate` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -3918,8 +3815,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client_certificate.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -3930,25 +3827,25 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid.failover_trusted_certificate` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--failover_trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--failover_trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -3958,8 +3855,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.failover_trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -3970,25 +3867,25 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid.trusted_certificate` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.links` Read-Only: @@ -3998,8 +3895,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.trusted_certificate.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.permissions` Read-Only: @@ -4011,19 +3908,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.content_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--content_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--content_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.content_administrator.uuid` Read-Only: @@ -4033,8 +3930,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.content_administrator.uuid` Read-Only: @@ -4045,8 +3942,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.links` Read-Only: @@ -4056,18 +3953,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.organizational_unit.uuid` Read-Only: @@ -4077,8 +3974,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.organizational_unit.uuid` Read-Only: @@ -4089,19 +3986,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.owner.uuid` Read-Only: @@ -4111,8 +4008,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.owner.uuid` Read-Only: @@ -4123,8 +4020,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.permissions` Read-Only: @@ -4134,37 +4031,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_a_d` Read-Only: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory.tenant` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory--tenant--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory--tenant--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory.tenant.links` Read-Only: @@ -4174,8 +4071,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory.tenant.permissions` Read-Only: @@ -4187,31 +4084,31 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory` Read-Only: - `client_id` (String) - `client_secret` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory.tenant` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory--tenant--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory--tenant--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory.tenant.links` Read-Only: @@ -4221,8 +4118,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory.tenant.permissions` Read-Only: @@ -4234,8 +4131,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_tenant` Read-Only: @@ -4245,43 +4142,43 @@ Read-Only: - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap` Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.client_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.client_certificate.uuid` Read-Only: @@ -4291,8 +4188,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.client_certificate.uuid` Read-Only: @@ -4303,20 +4200,20 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client--used_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.shared_secret.uuid` Read-Only: @@ -4326,8 +4223,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client.used_for_provisioning.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.shared_secret.uuid` Read-Only: @@ -4340,17 +4237,17 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap` Read-Only: - `gid` (Number) - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering)) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.numbering` Optional: @@ -4359,13 +4256,13 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering--links)) - `name` (String) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.numbering.links` Read-Only: @@ -4375,8 +4272,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -4388,29 +4285,29 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory--directory)) - `group_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory.group_dn` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory--group_dn--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory--group_dn--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory.group_dn.links` Read-Only: @@ -4420,8 +4317,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.directory.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory.group_dn.permissions` Read-Only: @@ -4433,19 +4330,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.links` + +### Nested Schema for `additional_objects.owned_systems.technical_administrator.uuid` Read-Only: @@ -4455,8 +4352,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.permissions` + +### Nested Schema for `additional_objects.owned_systems.technical_administrator.uuid` Read-Only: @@ -4468,39 +4365,31 @@ Read-Only: - ### Nested Schema for `additional_objects.recent_audits` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items)) - - -### Nested Schema for `additional_objects.recent_audits.items` - Optional: - `additional` (List of String) Read-Only: -- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--accounts)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts)) - `comment` (String) - `created_at` (String) - `created_by` (String) - `group_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--links)) - `name_on_audit` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `status` (String) - `submitted_at` (String) - `submitted_by` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +### Nested Schema for `additional_objects.recent_audits.accounts` Read-Only: @@ -4513,14 +4402,14 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--permissions)) - `rights` (String) - `username` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by.links` + +### Nested Schema for `additional_objects.recent_audits.accounts.username` Read-Only: @@ -4530,8 +4419,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by.permissions` + +### Nested Schema for `additional_objects.recent_audits.accounts.username` Read-Only: @@ -4542,8 +4431,8 @@ Read-Only: - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +### Nested Schema for `additional_objects.recent_audits.links` Read-Only: @@ -4553,8 +4442,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +### Nested Schema for `additional_objects.recent_audits.permissions` Read-Only: @@ -4565,17 +4454,9 @@ Read-Only: - ### Nested Schema for `additional_objects.service_accounts` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items)) - - -### Nested Schema for `additional_objects.service_accounts.items` - Optional: - `additional` (List of String) @@ -4584,18 +4465,18 @@ Read-Only: - `active` (Boolean) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--links)) - `name` (String) -- `password` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--password)) +- `password` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--password)) - `password_rotation` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--system)) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--technical_administrator)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--technical_administrator)) - `username` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.links` Read-Only: @@ -4605,20 +4486,20 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.password` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--password--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--password--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.links` + +### Nested Schema for `additional_objects.service_accounts.password.uuid` Read-Only: @@ -4628,8 +4509,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.permissions` + +### Nested Schema for `additional_objects.service_accounts.password.uuid` Read-Only: @@ -4640,8 +4521,8 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.permissions` Read-Only: @@ -4651,21 +4532,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.links` + +### Nested Schema for `additional_objects.service_accounts.system.uuid` Read-Only: @@ -4675,18 +4556,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.organizational_unit` + +### Nested Schema for `additional_objects.service_accounts.system.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.organizational_unit.uuid` + +### Nested Schema for `additional_objects.service_accounts.system.uuid.links` Read-Only: @@ -4696,8 +4577,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.organizational_unit.uuid` + +### Nested Schema for `additional_objects.service_accounts.system.uuid.permissions` Read-Only: @@ -4708,8 +4589,8 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts.items.uuid.permissions` + +### Nested Schema for `additional_objects.service_accounts.system.uuid` Read-Only: @@ -4720,19 +4601,19 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.links` + +### Nested Schema for `additional_objects.service_accounts.technical_administrator.uuid` Read-Only: @@ -4742,8 +4623,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid.permissions` + +### Nested Schema for `additional_objects.service_accounts.technical_administrator.uuid` Read-Only: @@ -4755,17 +4636,9 @@ Read-Only: - ### Nested Schema for `additional_objects.systems` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items)) - - -### Nested Schema for `additional_objects.systems.items` - Optional: - `additional` (List of String) @@ -4773,24 +4646,24 @@ Optional: Read-Only: - `activation_required` (Boolean) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group)) -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_on_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--permissions)) - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.links` + +### Nested Schema for `additional_objects.systems.group.uuid` Read-Only: @@ -4800,8 +4673,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.permissions` + +### Nested Schema for `additional_objects.systems.group.uuid` Read-Only: @@ -4812,8 +4685,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.group_on_system` Optional: @@ -4822,16 +4695,16 @@ Optional: Read-Only: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--links)) - `name_in_system` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--permissions)) - `short_name_in_system` (String) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--system)) - `type` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.links` + +### Nested Schema for `additional_objects.systems.group_on_system.type` Read-Only: @@ -4841,19 +4714,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.owner` + +### Nested Schema for `additional_objects.systems.group_on_system.type` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.owner.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.links` Read-Only: @@ -4863,8 +4736,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.owner.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.permissions` Read-Only: @@ -4875,8 +4748,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.items.permissions.permissions` + +### Nested Schema for `additional_objects.systems.group_on_system.type` Read-Only: @@ -4886,21 +4759,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.system` + +### Nested Schema for `additional_objects.systems.group_on_system.type` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.system.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.links` Read-Only: @@ -4910,18 +4783,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.system.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--system--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.system.uuid.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.organizational_unit.uuid` Read-Only: @@ -4931,8 +4804,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.system.uuid.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.organizational_unit.uuid` Read-Only: @@ -4943,8 +4816,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.items.permissions.system.uuid` + +### Nested Schema for `additional_objects.systems.group_on_system.type.permissions` Read-Only: @@ -4956,8 +4829,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.links` Read-Only: @@ -4967,8 +4840,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.permissions` Read-Only: @@ -4979,7 +4852,6 @@ Read-Only: - ### Nested Schema for `additional_objects.vault` @@ -5063,58 +4935,51 @@ Read-Only: ### Nested Schema for `additional_objects.webhooks` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items)) - - -### Nested Schema for `additional_objects.webhooks.items` - Optional: - `additional` (List of String) Read-Only: -- `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--account)) +- `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--account)) - `active` (Boolean) - `all_types` (Boolean) - `authentication_scheme` (String) - `basic_auth_password` (String) - `basic_auth_username` (String) - `bearer_token` (String) -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--client)) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--client_certificate)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client_certificate)) - `custom_header_name` (String) - `custom_header_value` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--directory)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--directory)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--system)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system)) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--trusted_certificate)) - `types` (List of String) - `url` (String) - `uuid` (String) - `verbose_payloads` (Boolean) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.account` Read-Only: - `display_name` (String) - `last_active` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--account--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--account--permissions)) - `username` (String) - `uuid` (String) - `validity` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.account.validity` Read-Only: @@ -5124,8 +4989,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.account.validity` Read-Only: @@ -5136,22 +5001,22 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.client` Read-Only: -- `client_client_application_primer_type` (String) - `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.client.uuid` Read-Only: @@ -5161,8 +5026,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.client.uuid` Read-Only: @@ -5173,25 +5038,25 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.client_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.client_certificate.uuid` Read-Only: @@ -5201,8 +5066,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.client_certificate.uuid` Read-Only: @@ -5213,21 +5078,21 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--directory--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.directory.uuid` Read-Only: @@ -5237,8 +5102,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.directory.uuid` Read-Only: @@ -5249,19 +5114,19 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.group.uuid` Read-Only: @@ -5271,8 +5136,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.group.uuid` Read-Only: @@ -5283,8 +5148,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.links` Read-Only: @@ -5294,8 +5159,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.permissions` Read-Only: @@ -5305,21 +5170,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.system.uuid` Read-Only: @@ -5329,18 +5194,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.organizational_unit` + +### Nested Schema for `additional_objects.webhooks.system.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.organizational_unit.uuid` + +### Nested Schema for `additional_objects.webhooks.system.uuid.links` Read-Only: @@ -5350,8 +5215,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.organizational_unit.uuid` + +### Nested Schema for `additional_objects.webhooks.system.uuid.permissions` Read-Only: @@ -5362,8 +5227,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.system.uuid` Read-Only: @@ -5374,25 +5239,25 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads` + +### Nested Schema for `additional_objects.webhooks.trusted_certificate` Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--verbose_payloads--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.links` + +### Nested Schema for `additional_objects.webhooks.trusted_certificate.uuid` Read-Only: @@ -5402,8 +5267,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.verbose_payloads.permissions` + +### Nested Schema for `additional_objects.webhooks.trusted_certificate.uuid` Read-Only: @@ -5416,7 +5281,6 @@ Read-Only: - ### Nested Schema for `audit_config` diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md index 8d4f8b2..911294b 100644 --- a/docs/data-sources/serviceaccount.md +++ b/docs/data-sources/serviceaccount.md @@ -43,7 +43,7 @@ description: |- Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) @@ -60,13 +60,6 @@ Read-Only: ### Nested Schema for `additional_objects.groups` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) - - -### Nested Schema for `additional_objects.groups.items` - Optional: - `additional` (List of String) @@ -74,14 +67,14 @@ Optional: Read-Only: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) - `name_in_system` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) - `short_name_in_system` (String) - `type` (String) - -### Nested Schema for `additional_objects.groups.items.type` + +### Nested Schema for `additional_objects.groups.links` Read-Only: @@ -91,8 +84,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.type` + +### Nested Schema for `additional_objects.groups.permissions` Read-Only: @@ -103,7 +96,6 @@ Read-Only: - ### Nested Schema for `additional_objects.secret` @@ -186,7 +178,7 @@ Read-Only: - `name` (String) - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--system--organizational_unit)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--system--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `type` (String) ### Nested Schema for `system.links` diff --git a/docs/data-sources/system.md b/docs/data-sources/system.md index f6918d8..6fac57b 100644 --- a/docs/data-sources/system.md +++ b/docs/data-sources/system.md @@ -43,12 +43,12 @@ description: |- - `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--provisioned_internal_ldap)) - `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--provisioned_ldap)) - `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--provisioned_ldap_directory)) -- `provisioning_provisioned_system_primer_type` (String) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) +- `type` (String) - `username_prefix` (String) @@ -83,7 +83,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -92,6 +91,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--client_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -123,7 +123,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -132,6 +131,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--failover_trusted_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--failover_trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -163,7 +163,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -172,6 +171,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--trusted_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -205,7 +205,7 @@ Read-Only: - `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--account)) - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `issued_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions)) +- `issued_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions)) - `login_name` (String) - `management_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--management_permissions)) - `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) @@ -267,33 +267,26 @@ Read-Only: ### Nested Schema for `additional_objects.issued_permissions` -Read-Only: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items)) - - -### Nested Schema for `additional_objects.issued_permissions.items` - Optional: - `additional` (List of String) Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--client)) -- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--for_group)) -- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--for_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--permissions)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client)) +- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_group)) +- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--permissions)) - `value` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value` + +### Nested Schema for `additional_objects.issued_permissions.client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -301,12 +294,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.issued_permissions.items.value.account_permissions` + +### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials` Read-Only: @@ -316,24 +309,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.attributes` + +### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials` - -### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret` + +### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--use_client_credentials--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--use_client_credentials--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret.uuid` + +### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials.links` Read-Only: @@ -343,8 +336,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.shared_secret.uuid` + +### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials.permissions` Read-Only: @@ -356,19 +349,19 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.items.value` + +### Nested Schema for `additional_objects.issued_permissions.for_group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.links` + +### Nested Schema for `additional_objects.issued_permissions.for_group.uuid` Read-Only: @@ -378,8 +371,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.permissions` + +### Nested Schema for `additional_objects.issued_permissions.for_group.uuid` Read-Only: @@ -390,21 +383,21 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.items.value` + +### Nested Schema for `additional_objects.issued_permissions.for_system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.links` + +### Nested Schema for `additional_objects.issued_permissions.for_system.uuid` Read-Only: @@ -414,18 +407,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.organizational_unit` + +### Nested Schema for `additional_objects.issued_permissions.for_system.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--items--value--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.organizational_unit.uuid` + +### Nested Schema for `additional_objects.issued_permissions.for_system.uuid.links` Read-Only: @@ -435,8 +428,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value.organizational_unit.uuid` + +### Nested Schema for `additional_objects.issued_permissions.for_system.uuid.permissions` Read-Only: @@ -447,8 +440,8 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.items.value.permissions` + +### Nested Schema for `additional_objects.issued_permissions.for_system.uuid` Read-Only: @@ -459,8 +452,8 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.items.value` + +### Nested Schema for `additional_objects.issued_permissions.links` Read-Only: @@ -470,8 +463,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.items.value` + +### Nested Schema for `additional_objects.issued_permissions.permissions` Read-Only: @@ -482,7 +475,6 @@ Read-Only: - ### Nested Schema for `additional_objects.management_permissions` @@ -506,11 +498,11 @@ Read-Only: Read-Only: - `level` (String) -- `mark_item_marker_type` (String) - `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `type` (String) -### Nested Schema for `additional_objects.markers.markers.parameters` +### Nested Schema for `additional_objects.markers.markers.type` @@ -684,10 +676,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_oidc_directory--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_oidc_directory--directory--permissions)) +- `type` (String) - `uuid` (String) @@ -731,10 +723,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_sync_ldap_directory--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_azure_sync_ldap_directory--directory--permissions)) +- `type` (String) - `uuid` (String) @@ -796,7 +788,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -805,6 +796,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--client_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_internal_ldap--client--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -930,10 +922,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_ldap_directory--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provisioned_ldap_directory--directory--permissions)) +- `type` (String) - `uuid` (String) diff --git a/docs/data-sources/vaultrecord.md b/docs/data-sources/vaultrecord.md index f77df22..39a242c 100644 --- a/docs/data-sources/vaultrecord.md +++ b/docs/data-sources/vaultrecord.md @@ -49,7 +49,7 @@ Read-Only: - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) -- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `shares` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares)) - `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) @@ -140,7 +140,7 @@ Read-Only: Read-Only: - `name` (String) -- `vault_vault_record_share_type` (String) +- `type` (String) @@ -149,7 +149,7 @@ Read-Only: Read-Only: - `name` (String) -- `vault_vault_record_share_type` (String) +- `type` (String) @@ -158,22 +158,15 @@ Read-Only: Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--items)) - - -### Nested Schema for `additional_objects.shares.items` - -Read-Only: - - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.shares.items.uuid` + +### Nested Schema for `additional_objects.shares.links` Read-Only: @@ -183,8 +176,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.shares.items.uuid` + +### Nested Schema for `additional_objects.shares.permissions` Read-Only: @@ -195,7 +188,6 @@ Read-Only: - ### Nested Schema for `additional_objects.tile` diff --git a/docs/data-sources/webhook.md b/docs/data-sources/webhook.md index c0740ff..1e602bb 100644 --- a/docs/data-sources/webhook.md +++ b/docs/data-sources/webhook.md @@ -109,13 +109,13 @@ Read-Only: Read-Only: -- `client_client_application_primer_type` (String) - `client_id` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--client--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) @@ -147,7 +147,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -156,6 +155,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--client_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) @@ -188,10 +188,10 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `directory_account_directory_primer_type` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--directory--links)) - `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--directory--permissions)) +- `type` (String) - `uuid` (String) @@ -283,7 +283,7 @@ Read-Only: - `name` (String) - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--system--organizational_unit)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--system--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `type` (String) - `uuid` (String) @@ -348,7 +348,6 @@ Read-Only: Read-Only: - `alias` (String) -- `certificate_certificate_primer_type` (String) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -357,6 +356,7 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--trusted_certificate--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--trusted_certificate--permissions)) - `subject_dn` (String) +- `type` (String) - `uuid` (String) diff --git a/docs/resources/client_vaultrecord.md b/docs/resources/client_vaultrecord.md index 6ddbd39..6569cfa 100644 --- a/docs/resources/client_vaultrecord.md +++ b/docs/resources/client_vaultrecord.md @@ -54,7 +54,7 @@ Read-Only: - `parent_uuid` (String) - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) -- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `shares` (List of String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) @@ -114,7 +114,7 @@ Optional: Optional: - `name` (String) -- `vault_vault_record_share_type` (String) +- `type` (String) @@ -123,18 +123,10 @@ Optional: Optional: - `name` (String) -- `vault_vault_record_share_type` (String) +- `type` (String) - -### Nested Schema for `additional_objects.shares` - -Optional: - -- `items` (List of String) - - ### Nested Schema for `additional_objects.vaultholder` diff --git a/docs/resources/clientapplication.md b/docs/resources/clientapplication.md index 2b8aa82..9712b76 100644 --- a/docs/resources/clientapplication.md +++ b/docs/resources/clientapplication.md @@ -32,11 +32,11 @@ description: |- ### Read-Only -- `client_client_application_primer_type` (String) - `last_modified_at` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) @@ -45,14 +45,14 @@ description: |- Optional: - `delete_tile` (Boolean) -- `groupclients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) +- `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) - `vault_record_count` (Number) @@ -60,26 +60,19 @@ Read-Only: Optional: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items)) - - -### Nested Schema for `additional_objects.groupclients.items` - -Optional: - - `activation_required` (Boolean) Read-Only: - `client_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--links)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--permissions)) - `technical_administrator_uuid` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator_uuid` + +### Nested Schema for `additional_objects.groupclients.links` Read-Only: @@ -89,8 +82,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.items.technical_administrator_uuid` + +### Nested Schema for `additional_objects.groupclients.permissions` Optional: @@ -101,7 +94,6 @@ Optional: - ### Nested Schema for `additional_objects.secret` @@ -134,13 +126,6 @@ Optional: ### Nested Schema for `additional_objects.groups` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) - - -### Nested Schema for `additional_objects.groups.items` - Required: - `name` (String) @@ -148,7 +133,7 @@ Required: Optional: - `application_administration` (Boolean) -- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--items--audit_config)) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config)) - `authorizing_group_auditing_uuid` (String) - `authorizing_group_delegation_uuid` (String) - `authorizing_group_membership_uuid` (String) @@ -172,12 +157,12 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.items.uuid` + +### Nested Schema for `additional_objects.groups.audit_config` Optional: @@ -185,11 +170,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--uuid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--uuid--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--permissions)) - -### Nested Schema for `additional_objects.groups.items.uuid.links` + +### Nested Schema for `additional_objects.groups.audit_config.permissions` Read-Only: @@ -199,8 +184,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.uuid.permissions` + +### Nested Schema for `additional_objects.groups.audit_config.permissions` Optional: @@ -211,8 +196,8 @@ Optional: - -### Nested Schema for `additional_objects.groups.items.uuid` + +### Nested Schema for `additional_objects.groups.links` Read-Only: @@ -222,8 +207,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.uuid` + +### Nested Schema for `additional_objects.groups.permissions` Optional: @@ -235,7 +220,6 @@ Optional: - ### Nested Schema for `ldap_client` diff --git a/docs/resources/group.md b/docs/resources/group.md index 9e3179b..fd24c2c 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -56,47 +56,40 @@ description: |- Optional: -- `accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts)) -- `admins` (Attributes, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) -- `client_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts)) +- `admins` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) +- `client_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) Read-Only: -- `administered_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) -- `administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) +- `administered_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) +- `administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups)) -- `clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients)) -- `content_administered_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) +- `clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients)) +- `content_administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) - `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupauditinginfo)) - `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupinfo)) -- `helpdesk` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) +- `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) - `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) - `myaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount)) - `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount)) -- `nested_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--nested_groups)) -- `owned_clients` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) -- `owned_directories` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) +- `nested_groups` (List of String) +- `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) +- `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) - `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system)) -- `owned_organizational_units` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) -- `owned_systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) -- `recent_audits` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) +- `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) +- `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) +- `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) - `requeststatus` (String) -- `service_accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) -- `systems` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems)) +- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) +- `systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems)) - `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) -- `webhooks` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) +- `webhooks` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) ### Nested Schema for `additional_objects.accounts` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--items)) - - -### Nested Schema for `additional_objects.accounts.items` - Required: - `rights` (String) @@ -117,17 +110,9 @@ Read-Only: - `visible_for_provisioning` (Boolean) - ### Nested Schema for `additional_objects.admins` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--items)) - - -### Nested Schema for `additional_objects.admins.items` - Required: - `rights` (String) @@ -148,38 +133,30 @@ Read-Only: - `visible_for_provisioning` (Boolean) - ### Nested Schema for `additional_objects.client_permissions` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items)) - - -### Nested Schema for `additional_objects.client_permissions.items` - Required: - `value` (String) Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client)) - `for_group_uuid` (String) - `for_system_uuid` (String) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--permissions)) - -### Nested Schema for `additional_objects.client_permissions.items.permissions` + +### Nested Schema for `additional_objects.client_permissions.client` Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -192,15 +169,15 @@ Optional: Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--items--permissions--account_permissions)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.items.permissions.attributes` + +### Nested Schema for `additional_objects.client_permissions.client.shared_secret_uuid` - -### Nested Schema for `additional_objects.client_permissions.items.permissions.account_permissions` + +### Nested Schema for `additional_objects.client_permissions.client.shared_secret_uuid` Optional: @@ -211,8 +188,8 @@ Optional: - -### Nested Schema for `additional_objects.client_permissions.items.permissions` + +### Nested Schema for `additional_objects.client_permissions.links` Read-Only: @@ -222,8 +199,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.items.permissions` + +### Nested Schema for `additional_objects.client_permissions.permissions` Optional: @@ -234,17 +211,9 @@ Optional: - ### Nested Schema for `additional_objects.administered_clients` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items)) - - -### Nested Schema for `additional_objects.administered_clients.items` - Required: - `name` (String) @@ -252,24 +221,24 @@ Required: Optional: - `client_id` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--ldap_client)) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--o_auth2_client)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client)) - `owner_uuid` (String) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--saml2_client)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) Read-Only: -- `client_client_application_primer_type` (String) - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--permissions)) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.ldap_client` Optional: @@ -283,12 +252,12 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client` Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -301,15 +270,15 @@ Optional: Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--account_permissions)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.shared_secret_uuid` - -### Nested Schema for `additional_objects.administered_clients.items.uuid.account_permissions` + +### Nested Schema for `additional_objects.administered_clients.o_auth2_client.shared_secret_uuid` Optional: @@ -320,8 +289,8 @@ Optional: - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.saml2_client` Required: @@ -329,17 +298,17 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.administered_clients.saml2_client.metadata_url` - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.links` Read-Only: @@ -349,8 +318,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.items.uuid` + +### Nested Schema for `additional_objects.administered_clients.permissions` Optional: @@ -361,17 +330,9 @@ Optional: - ### Nested Schema for `additional_objects.administered_systems` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items)) - - -### Nested Schema for `additional_objects.administered_systems.items` - Required: - `content_administrator_uuid` (String) @@ -381,16 +342,16 @@ Required: Optional: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) - `organizational_unit_uuid` (String) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--provisioned_ldap_directory)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -401,13 +362,13 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap` Required: @@ -417,7 +378,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--attributes)) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -431,21 +392,21 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.attributes` + +### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_a_d` Required: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory` Required: @@ -453,8 +414,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory` Required: @@ -464,8 +425,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_azure_tenant` Required: @@ -478,15 +439,15 @@ Optional: - `idp_domain` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap` Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.client` + +### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client` Optional: @@ -501,20 +462,20 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap` Required: - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering)) Optional: - `gid` (Number) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.gid` Required: @@ -527,11 +488,11 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--items--uuid--numbering--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--gid--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--gid--permissions)) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.gid.links` Read-Only: @@ -541,8 +502,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.gid.permissions` Optional: @@ -554,8 +515,8 @@ Optional: - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory` Required: @@ -563,8 +524,8 @@ Required: - `group_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.links` Read-Only: @@ -574,8 +535,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.items.uuid` + +### Nested Schema for `additional_objects.administered_systems.permissions` Optional: @@ -586,7 +547,6 @@ Optional: - ### Nested Schema for `additional_objects.audit` @@ -708,26 +668,19 @@ Optional: Optional: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items)) - - -### Nested Schema for `additional_objects.clients.items` - -Optional: - - `activation_required` (Boolean) Read-Only: - `client_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--links)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--permissions)) - `technical_administrator_uuid` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator_uuid` + +### Nested Schema for `additional_objects.clients.links` Read-Only: @@ -737,8 +690,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.items.technical_administrator_uuid` + +### Nested Schema for `additional_objects.clients.permissions` Optional: @@ -749,17 +702,9 @@ Optional: - ### Nested Schema for `additional_objects.content_administered_systems` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items)) - - -### Nested Schema for `additional_objects.content_administered_systems.items` - Required: - `content_administrator_uuid` (String) @@ -769,16 +714,16 @@ Required: Optional: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) - `organizational_unit_uuid` (String) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--provisioned_ldap_directory)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -789,13 +734,13 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap` Required: @@ -805,7 +750,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--attributes)) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -819,21 +764,21 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.attributes` + +### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_a_d` Required: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory` Required: @@ -841,8 +786,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory` Required: @@ -852,8 +797,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_tenant` Required: @@ -866,15 +811,15 @@ Optional: - `idp_domain` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap` Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.client` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client` Optional: @@ -889,20 +834,20 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap` Required: - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering)) Optional: - `gid` (Number) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.gid` Required: @@ -915,11 +860,11 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--items--uuid--numbering--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--gid--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--gid--permissions)) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.gid.links` Read-Only: @@ -929,8 +874,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.gid.permissions` Optional: @@ -942,8 +887,8 @@ Optional: - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory` Required: @@ -951,8 +896,8 @@ Required: - `group_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.links` Read-Only: @@ -962,8 +907,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.items.uuid` + +### Nested Schema for `additional_objects.content_administered_systems.permissions` Optional: @@ -974,7 +919,6 @@ Optional: - ### Nested Schema for `additional_objects.groupauditinginfo` @@ -1008,27 +952,20 @@ Optional: Optional: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items)) - - -### Nested Schema for `additional_objects.helpdesk.items` - -Optional: - -- `directory_account_directory_summary_type` (String) - `domain_restriction` (String) - `fully_resolved_issuer` (String) - `name` (String) -- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--status)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--status)) +- `type` (String) - `username_customizable` (Boolean) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--permissions)) - -### Nested Schema for `additional_objects.helpdesk.items.permissions` + +### Nested Schema for `additional_objects.helpdesk.status` Optional: @@ -1037,8 +974,8 @@ Optional: - `status` (String) - -### Nested Schema for `additional_objects.helpdesk.items.permissions` + +### Nested Schema for `additional_objects.helpdesk.links` Read-Only: @@ -1048,8 +985,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.items.permissions` + +### Nested Schema for `additional_objects.helpdesk.permissions` Optional: @@ -1060,7 +997,6 @@ Optional: - ### Nested Schema for `additional_objects.markers` @@ -1074,11 +1010,11 @@ Optional: Optional: - `level` (String) -- `mark_item_marker_type` (String) - `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `type` (String) -### Nested Schema for `additional_objects.markers.markers.parameters` +### Nested Schema for `additional_objects.markers.markers.type` @@ -1129,24 +1065,9 @@ Read-Only: - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.nested_groups` - -Optional: - -- `items` (List of String) - - ### Nested Schema for `additional_objects.owned_clients` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items)) - - -### Nested Schema for `additional_objects.owned_clients.items` - Required: - `name` (String) @@ -1154,24 +1075,24 @@ Required: Optional: - `client_id` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--ldap_client)) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--o_auth2_client)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client)) - `owner_uuid` (String) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--saml2_client)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) Read-Only: -- `client_client_application_primer_type` (String) - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--permissions)) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.ldap_client` Optional: @@ -1185,12 +1106,12 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client` Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -1203,15 +1124,15 @@ Optional: Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--account_permissions)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.shared_secret_uuid` - -### Nested Schema for `additional_objects.owned_clients.items.uuid.account_permissions` + +### Nested Schema for `additional_objects.owned_clients.o_auth2_client.shared_secret_uuid` Optional: @@ -1222,8 +1143,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.saml2_client` Required: @@ -1231,17 +1152,17 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid.attributes` + +### Nested Schema for `additional_objects.owned_clients.saml2_client.metadata_url` - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.links` Read-Only: @@ -1251,8 +1172,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.items.uuid` + +### Nested Schema for `additional_objects.owned_clients.permissions` Optional: @@ -1263,17 +1184,9 @@ Optional: - ### Nested Schema for `additional_objects.owned_directories` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items)) - - -### Nested Schema for `additional_objects.owned_directories.items` - Required: - `base_organizational_unit_uuid` (String) @@ -1285,31 +1198,31 @@ Optional: - `active` (Boolean) - `default_directory` (Boolean) - `helpdesk_group_uuid` (String) -- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--internal_directory)) -- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--l_d_a_p_directory)) -- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--maintenance_directory)) -- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--o_id_c_directory)) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--maintenance_directory)) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--o_id_c_directory)) - `restrict2fa` (Boolean) - `username_customizable` (Boolean) Read-Only: - `account_validity_supported` (Boolean) -- `directory_account_directory_primer_type` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.internal_directory` Required: - `owner_uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory` Required: @@ -1332,12 +1245,12 @@ Optional: - `trusted_certificate_uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.maintenance_directory` - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.o_id_c_directory` Required: @@ -1360,8 +1273,8 @@ Read-Only: - `fully_resolved_issuer` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.links` Read-Only: @@ -1371,8 +1284,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.items.uuid` + +### Nested Schema for `additional_objects.owned_directories.permissions` Optional: @@ -1383,7 +1296,6 @@ Optional: - ### Nested Schema for `additional_objects.owned_groups_on_system` @@ -1439,13 +1351,6 @@ Optional: ### Nested Schema for `additional_objects.owned_organizational_units` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items)) - - -### Nested Schema for `additional_objects.owned_organizational_units.items` - Required: - `name` (String) @@ -1458,13 +1363,13 @@ Optional: Read-Only: - `depth` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--links)) - `parent_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.links` Read-Only: @@ -1474,8 +1379,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.items.uuid` + +### Nested Schema for `additional_objects.owned_organizational_units.permissions` Optional: @@ -1486,17 +1391,9 @@ Optional: - ### Nested Schema for `additional_objects.owned_systems` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items)) - - -### Nested Schema for `additional_objects.owned_systems.items` - Required: - `content_administrator_uuid` (String) @@ -1506,16 +1403,16 @@ Required: Optional: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap)) - `active` (Boolean) - `organizational_unit_uuid` (String) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--provisioned_ldap_directory)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -1526,13 +1423,13 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--permissions)) -- `provisioning_provisioned_system_primer_type` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--permissions)) +- `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap` Required: @@ -1542,7 +1439,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--attributes)) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -1556,21 +1453,21 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.attributes` + +### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_a_d` Required: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory` Required: @@ -1578,8 +1475,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory` Required: @@ -1589,8 +1486,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_azure_tenant` Required: @@ -1603,15 +1500,15 @@ Optional: - `idp_domain` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap` Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.client` + +### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client` Optional: @@ -1626,20 +1523,20 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap` Required: - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering)) Optional: - `gid` (Number) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.gid` Required: @@ -1652,11 +1549,11 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--items--uuid--numbering--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--gid--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--gid--permissions)) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.gid.links` Read-Only: @@ -1666,8 +1563,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid.numbering.permissions` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.gid.permissions` Optional: @@ -1679,8 +1576,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory` Required: @@ -1688,8 +1585,8 @@ Required: - `group_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.links` Read-Only: @@ -1699,8 +1596,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.items.uuid` + +### Nested Schema for `additional_objects.owned_systems.permissions` Optional: @@ -1711,24 +1608,16 @@ Optional: - ### Nested Schema for `additional_objects.recent_audits` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items)) - - -### Nested Schema for `additional_objects.recent_audits.items` - Required: - `status` (String) Optional: -- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--accounts)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts)) - `comment` (String) Read-Only: @@ -1736,16 +1625,16 @@ Read-Only: - `created_at` (String) - `created_by` (String) - `group_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--links)) - `name_on_audit` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `submitted_at` (String) - `submitted_by` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +### Nested Schema for `additional_objects.recent_audits.accounts` Optional: @@ -1761,14 +1650,14 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--items--submitted_by--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--permissions)) - `rights` (String) - `username` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by.links` + +### Nested Schema for `additional_objects.recent_audits.accounts.username` Read-Only: @@ -1778,8 +1667,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by.permissions` + +### Nested Schema for `additional_objects.recent_audits.accounts.username` Optional: @@ -1790,8 +1679,8 @@ Optional: - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +### Nested Schema for `additional_objects.recent_audits.links` Read-Only: @@ -1801,8 +1690,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.items.submitted_by` + +### Nested Schema for `additional_objects.recent_audits.permissions` Optional: @@ -1813,17 +1702,9 @@ Optional: - ### Nested Schema for `additional_objects.service_accounts` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items)) - - -### Nested Schema for `additional_objects.service_accounts.items` - Required: - `name` (String) @@ -1838,14 +1719,14 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--links)) - `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--items--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--permissions)) - `username` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.links` Read-Only: @@ -1855,8 +1736,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.items.uuid` + +### Nested Schema for `additional_objects.service_accounts.permissions` Optional: @@ -1867,30 +1748,22 @@ Optional: - ### Nested Schema for `additional_objects.systems` Optional: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items)) - - -### Nested Schema for `additional_objects.systems.items` - -Optional: - - `activation_required` (Boolean) Read-Only: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--items--group_on_system)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system)) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--permissions)) - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.group_on_system` Required: @@ -1906,11 +1779,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--items--permissions--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--permissions)) - -### Nested Schema for `additional_objects.systems.items.permissions.links` + +### Nested Schema for `additional_objects.systems.group_on_system.permissions` Read-Only: @@ -1920,8 +1793,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions.permissions` + +### Nested Schema for `additional_objects.systems.group_on_system.permissions` Optional: @@ -1932,8 +1805,8 @@ Optional: - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.links` Read-Only: @@ -1943,8 +1816,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.items.permissions` + +### Nested Schema for `additional_objects.systems.permissions` Optional: @@ -1955,7 +1828,6 @@ Optional: - ### Nested Schema for `additional_objects.vault` @@ -2044,13 +1916,6 @@ Optional: ### Nested Schema for `additional_objects.webhooks` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items)) - - -### Nested Schema for `additional_objects.webhooks.items` - Required: - `url` (String) @@ -2079,12 +1944,12 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.items.uuid` + +### Nested Schema for `additional_objects.webhooks.links` Read-Only: @@ -2094,8 +1959,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.items.uuid` + +### Nested Schema for `additional_objects.webhooks.permissions` Optional: @@ -2107,7 +1972,6 @@ Optional: - ### Nested Schema for `audit_config` diff --git a/docs/resources/group_vaultrecord.md b/docs/resources/group_vaultrecord.md index 90ff682..1b64a34 100644 --- a/docs/resources/group_vaultrecord.md +++ b/docs/resources/group_vaultrecord.md @@ -54,7 +54,7 @@ Read-Only: - `parent_uuid` (String) - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) -- `shares` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--shares)) +- `shares` (List of String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) @@ -114,7 +114,7 @@ Optional: Optional: - `name` (String) -- `vault_vault_record_share_type` (String) +- `type` (String) @@ -123,18 +123,10 @@ Optional: Optional: - `name` (String) -- `vault_vault_record_share_type` (String) +- `type` (String) - -### Nested Schema for `additional_objects.shares` - -Optional: - -- `items` (List of String) - - ### Nested Schema for `additional_objects.vaultholder` diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 5513c00..11d0ba9 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -39,8 +39,8 @@ description: |- Optional: -- `provgroups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--provgroups)) -- `service_accounts` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) +- `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups)) +- `service_accounts` (List of String) Read-Only: @@ -51,24 +51,17 @@ Read-Only: Optional: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items)) - - -### Nested Schema for `additional_objects.provgroups.items` - -Optional: - - `activation_required` (Boolean) Read-Only: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--group_on_system)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--provgroups--group_on_system)) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--permissions)) - -### Nested Schema for `additional_objects.provgroups.items.permissions` + +### Nested Schema for `additional_objects.provgroups.group_on_system` Required: @@ -84,11 +77,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--permissions--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--items--permissions--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--group_on_system--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--group_on_system--permissions)) - -### Nested Schema for `additional_objects.provgroups.items.permissions.links` + +### Nested Schema for `additional_objects.provgroups.group_on_system.permissions` Read-Only: @@ -98,8 +91,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.provgroups.items.permissions.permissions` + +### Nested Schema for `additional_objects.provgroups.group_on_system.permissions` Optional: @@ -110,8 +103,8 @@ Optional: - -### Nested Schema for `additional_objects.provgroups.items.permissions` + +### Nested Schema for `additional_objects.provgroups.links` Read-Only: @@ -121,8 +114,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.provgroups.items.permissions` + +### Nested Schema for `additional_objects.provgroups.permissions` Optional: @@ -133,15 +126,6 @@ Optional: - - -### Nested Schema for `additional_objects.service_accounts` - -Optional: - -- `items` (List of String) - - ### Nested Schema for `additional_objects.audit` diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index efeed0e..fbe3884 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -46,7 +46,7 @@ Optional: Read-Only: - `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) ### Nested Schema for `additional_objects.secret` @@ -72,13 +72,6 @@ Optional: ### Nested Schema for `additional_objects.groups` -Optional: - -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items)) - - -### Nested Schema for `additional_objects.groups.items` - Required: - `name_in_system` (String) @@ -91,11 +84,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) - -### Nested Schema for `additional_objects.groups.items.permissions` + +### Nested Schema for `additional_objects.groups.links` Read-Only: @@ -105,8 +98,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.items.permissions` + +### Nested Schema for `additional_objects.groups.permissions` Optional: @@ -118,7 +111,6 @@ Optional: - ### Nested Schema for `links` diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index e25f27f..5518ff7 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -55,12 +55,10 @@ provider "keyhubpreview" { resource "keyhubpreview_group" "terra" { name = "Terraform" additional_objects = { - accounts = { - items = [{ - uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" - rights = "MANAGER" - }] - } + accounts = [{ + uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" + rights = "MANAGER" + }] } } diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 87522ff..45d2eef 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -256,7 +256,7 @@ var authAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccou type authAccount_additionalObjectsDataDS struct { ActiveLogin types.Bool `tfsdk:"active_login"` Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` + Groups types.List `tfsdk:"groups"` PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` Settings types.Object `tfsdk:"settings"` StoredAttributes types.Object `tfsdk:"stored_attributes"` @@ -497,8 +497,8 @@ var clientClientApplication_additionalObjectsAttrTypesDSRecurse = objectAttrsTyp type clientClientApplication_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` - Groupclients types.Object `tfsdk:"groupclients"` - Groups types.Object `tfsdk:"groups"` + Groupclients types.List `tfsdk:"groupclients"` + Groups types.List `tfsdk:"groups"` Secret types.Object `tfsdk:"secret"` Tile types.Object `tfsdk:"tile"` VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` @@ -644,10 +644,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - InternalDirectory types.Object `tfsdk:"internal_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` + LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1139,33 +1139,33 @@ var groupGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroup_additi var groupGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup_additionalObjects(true) type groupGroup_additionalObjectsDataDS struct { - Accounts types.Object `tfsdk:"accounts"` - AdministeredClients types.Object `tfsdk:"administered_clients"` - AdministeredSystems types.Object `tfsdk:"administered_systems"` - Admins types.Object `tfsdk:"admins"` + Accounts types.List `tfsdk:"accounts"` + AdministeredClients types.List `tfsdk:"administered_clients"` + AdministeredSystems types.List `tfsdk:"administered_systems"` + Admins types.List `tfsdk:"admins"` Audit types.Object `tfsdk:"audit"` AuthorizedGroups types.Object `tfsdk:"authorized_groups"` - ClientPermissions types.Object `tfsdk:"client_permissions"` - Clients types.Object `tfsdk:"clients"` - ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` + ClientPermissions types.List `tfsdk:"client_permissions"` + Clients types.List `tfsdk:"clients"` + ContentAdministeredSystems types.List `tfsdk:"content_administered_systems"` Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` Groupinfo types.Object `tfsdk:"groupinfo"` - Helpdesk types.Object `tfsdk:"helpdesk"` + Helpdesk types.List `tfsdk:"helpdesk"` Markers types.Object `tfsdk:"markers"` Myaccount types.Object `tfsdk:"myaccount"` Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` - NestedGroups types.Object `tfsdk:"nested_groups"` - OwnedClients types.Object `tfsdk:"owned_clients"` - OwnedDirectories types.Object `tfsdk:"owned_directories"` + NestedGroups types.List `tfsdk:"nested_groups"` + OwnedClients types.List `tfsdk:"owned_clients"` + OwnedDirectories types.List `tfsdk:"owned_directories"` OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` - OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` - OwnedSystems types.Object `tfsdk:"owned_systems"` - RecentAudits types.Object `tfsdk:"recent_audits"` + OwnedOrganizationalUnits types.List `tfsdk:"owned_organizational_units"` + OwnedSystems types.List `tfsdk:"owned_systems"` + RecentAudits types.List `tfsdk:"recent_audits"` Requeststatus types.String `tfsdk:"requeststatus"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` - Systems types.Object `tfsdk:"systems"` + ServiceAccounts types.List `tfsdk:"service_accounts"` + Systems types.List `tfsdk:"systems"` Vault types.Object `tfsdk:"vault"` - Webhooks types.Object `tfsdk:"webhooks"` + Webhooks types.List `tfsdk:"webhooks"` } var groupGroupsAuditStatsAttrTypesDS = objectAttrsTypeDSGroupGroupsAuditStats(false) @@ -1904,8 +1904,8 @@ var provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsT type provisioningGroupOnSystem_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` - Provgroups types.Object `tfsdk:"provgroups"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` + Provgroups types.List `tfsdk:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts"` } var provisioningGroupProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus(false) @@ -1962,7 +1962,7 @@ var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse = ob type provisioningProvisionNumberSequence_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` - Systems types.Object `tfsdk:"systems"` + Systems types.List `tfsdk:"systems"` } var provisioningProvisionedADAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAD(false) @@ -2077,14 +2077,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2148,7 +2148,7 @@ var provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse = objectAt type provisioningProvisionedSystem_additionalObjectsDataDS struct { Account types.Object `tfsdk:"account"` Audit types.Object `tfsdk:"audit"` - IssuedPermissions types.Object `tfsdk:"issued_permissions"` + IssuedPermissions types.List `tfsdk:"issued_permissions"` LoginName types.String `tfsdk:"login_name"` ManagementPermissions types.Object `tfsdk:"management_permissions"` Markers types.Object `tfsdk:"markers"` @@ -2353,42 +2353,42 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` } @@ -2636,7 +2636,7 @@ var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAtt type serviceaccountServiceAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` + Groups types.List `tfsdk:"groups"` Secret types.Object `tfsdk:"secret"` } @@ -2845,7 +2845,7 @@ type vaultVaultRecord_additionalObjectsDataDS struct { PasswordMetadata types.Object `tfsdk:"password_metadata"` Secret types.Object `tfsdk:"secret"` ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` + Shares types.List `tfsdk:"shares"` Tile types.Object `tfsdk:"tile"` Vaultholder types.Object `tfsdk:"vaultholder"` } diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 3a8c603..adb764a 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -253,7 +253,7 @@ var authAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccou type authAccount_additionalObjectsDataRS struct { ActiveLogin types.Bool `tfsdk:"active_login"` Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` + Groups types.List `tfsdk:"groups"` PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` Settings types.Object `tfsdk:"settings"` StoredAttributes types.Object `tfsdk:"stored_attributes"` @@ -466,8 +466,8 @@ var clientClientApplication_additionalObjectsAttrTypesRSRecurse = objectAttrsTyp type clientClientApplication_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` DeleteTile types.Bool `tfsdk:"delete_tile"` - Groupclients types.Object `tfsdk:"groupclients"` - Groups types.Object `tfsdk:"groups"` + Groupclients types.List `tfsdk:"groupclients"` + Groups types.List `tfsdk:"groups"` Secret types.Object `tfsdk:"secret"` Tile types.Object `tfsdk:"tile"` VaultRecordCount types.Int64 `tfsdk:"vault_record_count"` @@ -609,10 +609,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` - InternalDirectory types.Object `tfsdk:"internal_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` + LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1087,33 +1087,33 @@ var groupGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroup_additi var groupGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup_additionalObjects(true) type groupGroup_additionalObjectsDataRS struct { - Accounts types.Object `tfsdk:"accounts"` - AdministeredClients types.Object `tfsdk:"administered_clients"` - AdministeredSystems types.Object `tfsdk:"administered_systems"` - Admins types.Object `tfsdk:"admins"` + Accounts types.List `tfsdk:"accounts"` + AdministeredClients types.List `tfsdk:"administered_clients"` + AdministeredSystems types.List `tfsdk:"administered_systems"` + Admins types.List `tfsdk:"admins"` Audit types.Object `tfsdk:"audit"` AuthorizedGroups types.Object `tfsdk:"authorized_groups"` - ClientPermissions types.Object `tfsdk:"client_permissions"` - Clients types.Object `tfsdk:"clients"` - ContentAdministeredSystems types.Object `tfsdk:"content_administered_systems"` + ClientPermissions types.List `tfsdk:"client_permissions"` + Clients types.List `tfsdk:"clients"` + ContentAdministeredSystems types.List `tfsdk:"content_administered_systems"` Groupauditinginfo types.Object `tfsdk:"groupauditinginfo"` Groupinfo types.Object `tfsdk:"groupinfo"` - Helpdesk types.Object `tfsdk:"helpdesk"` + Helpdesk types.List `tfsdk:"helpdesk"` Markers types.Object `tfsdk:"markers"` Myaccount types.Object `tfsdk:"myaccount"` Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount"` - NestedGroups types.Object `tfsdk:"nested_groups"` - OwnedClients types.Object `tfsdk:"owned_clients"` - OwnedDirectories types.Object `tfsdk:"owned_directories"` + NestedGroups types.List `tfsdk:"nested_groups"` + OwnedClients types.List `tfsdk:"owned_clients"` + OwnedDirectories types.List `tfsdk:"owned_directories"` OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system"` - OwnedOrganizationalUnits types.Object `tfsdk:"owned_organizational_units"` - OwnedSystems types.Object `tfsdk:"owned_systems"` - RecentAudits types.Object `tfsdk:"recent_audits"` + OwnedOrganizationalUnits types.List `tfsdk:"owned_organizational_units"` + OwnedSystems types.List `tfsdk:"owned_systems"` + RecentAudits types.List `tfsdk:"recent_audits"` Requeststatus types.String `tfsdk:"requeststatus"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` - Systems types.Object `tfsdk:"systems"` + ServiceAccounts types.List `tfsdk:"service_accounts"` + Systems types.List `tfsdk:"systems"` Vault types.Object `tfsdk:"vault"` - Webhooks types.Object `tfsdk:"webhooks"` + Webhooks types.List `tfsdk:"webhooks"` } var groupGroupsAuditStatsAttrTypesRS = objectAttrsTypeRSGroupGroupsAuditStats(false) @@ -1672,7 +1672,7 @@ var organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectA type organizationOrganizationalUnit_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` - CreateAsParentOf types.Object `tfsdk:"create_as_parent_of"` + CreateAsParentOf types.List `tfsdk:"create_as_parent_of"` } var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false) @@ -1775,8 +1775,8 @@ var provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsT type provisioningGroupOnSystem_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` - Provgroups types.Object `tfsdk:"provgroups"` - ServiceAccounts types.Object `tfsdk:"service_accounts"` + Provgroups types.List `tfsdk:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts"` } var provisioningGroupProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus(false) @@ -1832,7 +1832,7 @@ var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse = ob type provisioningProvisionNumberSequence_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` - Systems types.Object `tfsdk:"systems"` + Systems types.List `tfsdk:"systems"` } var provisioningProvisionedADAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAD(false) @@ -1939,14 +1939,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2009,7 +2009,7 @@ var provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse = objectAt type provisioningProvisionedSystem_additionalObjectsDataRS struct { Account types.Object `tfsdk:"account"` Audit types.Object `tfsdk:"audit"` - IssuedPermissions types.Object `tfsdk:"issued_permissions"` + IssuedPermissions types.List `tfsdk:"issued_permissions"` LoginName types.String `tfsdk:"login_name"` ManagementPermissions types.Object `tfsdk:"management_permissions"` Markers types.Object `tfsdk:"markers"` @@ -2213,42 +2213,42 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` CreateGroupRequest types.Object `tfsdk:"create_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` } @@ -2498,7 +2498,7 @@ var serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse = objectAtt type serviceaccountServiceAccount_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` - Groups types.Object `tfsdk:"groups"` + Groups types.List `tfsdk:"groups"` Secret types.Object `tfsdk:"secret"` } @@ -2707,7 +2707,7 @@ type vaultVaultRecord_additionalObjectsDataRS struct { PasswordMetadata types.Object `tfsdk:"password_metadata"` Secret types.Object `tfsdk:"secret"` ShareSummary types.Object `tfsdk:"share_summary"` - Shares types.Object `tfsdk:"shares"` + Shares types.List `tfsdk:"shares"` Tile types.Object `tfsdk:"tile"` Vaultholder types.Object `tfsdk:"vaultholder"` } diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index 7fb0344..ebce815 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -11,6 +11,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" + rsschema "github.com/hashicorp/terraform-plugin-framework/resource/schema" "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" "github.com/hashicorp/terraform-plugin-log/tflog" @@ -113,6 +114,21 @@ func withUuidToTF(val interface{ GetUuid() *string }) attr.Value { return types.StringPointerValue(val.GetUuid()) } +func toItemsList(ctx context.Context, val attr.Value) basetypes.ObjectValue { + attrType := map[string]attr.Type{"items": val.Type(ctx)} + if val.IsNull() || val.IsUnknown() { + return types.ObjectNull(attrType) + } + return types.ObjectValueMust(attrType, map[string]attr.Value{"items": val}) +} + +func getItemsAttr(val basetypes.ObjectValue, attrType attr.Type) attr.Value { + if val.IsNull() || val.IsUnknown() { + return types.ListNull(attrType.(basetypes.ListType).ElementType()) + } + return val.Attributes()["items"] +} + func parsePointer[T any](val basetypes.StringValue, parser func(string) (T, error)) (*T, diag.Diagnostics) { if val.IsNull() || val.IsUnknown() { return nil, diag.Diagnostics{} @@ -375,6 +391,22 @@ func getSelfLink(linksAttr basetypes.ListValue) restLinkDataRS { return links } +func resetListNestedAttributeFlags(schema rsschema.ListNestedAttribute) rsschema.ListNestedAttribute { + schema.Optional = false + schema.Computed = false + schema.Required = false + schema.PlanModifiers = nil + return schema +} + +func resetListAttributeFlags(schema rsschema.ListAttribute) rsschema.ListAttribute { + schema.Optional = false + schema.Computed = false + schema.Required = false + schema.PlanModifiers = nil + return schema +} + func isHttpStatusCodeOk(ctx context.Context, status int32, err error, diags *diag.Diagnostics) bool { if err != nil { report, ok := err.(keyhubmodels.ErrorReportable) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 17f5dd8..ec3df21 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -241,7 +241,7 @@ func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]att objectAttrs := make(map[string]attr.Type) objectAttrs["active_login"] = types.BoolType objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["groups"] = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(recurse)["items"] objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(recurse)} objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(recurse)} objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(recurse)} @@ -470,8 +470,8 @@ func objectAttrsTypeDSClientClientApplicationPrimer(recurse bool) map[string]att func objectAttrsTypeDSClientClientApplication_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)} + objectAttrs["groupclients"] = objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)["items"] + objectAttrs["groups"] = objectAttrsTypeDSGroupGroupLinkableWrapper(recurse)["items"] objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse)} objectAttrs["vault_record_count"] = types.Int64Type @@ -613,10 +613,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} return objectAttrs } @@ -1077,33 +1077,33 @@ func objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(recurse bool) map[strin func objectAttrsTypeDSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["accounts"] = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)["items"] + objectAttrs["administered_clients"] = objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)["items"] + objectAttrs["administered_systems"] = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)["items"] + objectAttrs["admins"] = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)["items"] objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse)} - objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["client_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] + objectAttrs["clients"] = objectAttrsTypeDSGroupGroupClientLinkableWrapper(recurse)["items"] + objectAttrs["content_administered_systems"] = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)["items"] objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditingInfo(recurse)} objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupInfo(recurse)} - objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["helpdesk"] = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)["items"] objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(recurse)} - objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse)} - objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["nested_groups"] = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse)["items"] + objectAttrs["owned_clients"] = objectAttrsTypeDSClientClientApplicationLinkableWrapper(recurse)["items"] + objectAttrs["owned_directories"] = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(recurse)["items"] objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse)} - objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse)} - objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse)} + objectAttrs["owned_organizational_units"] = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse)["items"] + objectAttrs["owned_systems"] = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse)["items"] + objectAttrs["recent_audits"] = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(recurse)["items"] objectAttrs["requeststatus"] = types.StringType - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(recurse)["items"] + objectAttrs["systems"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)["items"] objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} - objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse)} + objectAttrs["webhooks"] = objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1815,8 +1815,8 @@ func objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse bool) map[string]at func objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1869,7 +1869,7 @@ func objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + objectAttrs["systems"] = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1977,14 +1977,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} return objectAttrs } @@ -2043,7 +2043,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(recurse bo objectAttrs := make(map[string]attr.Type) objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)} objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["issued_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] objectAttrs["login_name"] = types.StringType objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse)} objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} @@ -2224,42 +2224,42 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} return objectAttrs } @@ -2480,7 +2480,7 @@ func objectAttrsTypeDSServiceaccountServiceAccountStatus(recurse bool) map[strin func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["groups"] = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"] objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(recurse)} return objectAttrs } @@ -2671,7 +2671,7 @@ func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[strin objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(recurse)} - objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(recurse)["items"] objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse)} objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(recurse)} return objectAttrs diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index f9f0511..4e1cc49 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -238,7 +238,7 @@ func objectAttrsTypeRSAuthAccount_additionalObjects(recurse bool) map[string]att objectAttrs := make(map[string]attr.Type) objectAttrs["active_login"] = types.BoolType objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse)} + objectAttrs["groups"] = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse)["items"] objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(recurse)} objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(recurse)} objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(recurse)} @@ -437,8 +437,8 @@ func objectAttrsTypeRSClientClientApplication_additionalObjects(recurse bool) ma objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} objectAttrs["delete_tile"] = types.BoolType - objectAttrs["groupclients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupLinkableWrapper(recurse)} + objectAttrs["groupclients"] = objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)["items"] + objectAttrs["groups"] = objectAttrsTypeRSGroupGroupLinkableWrapper(recurse)["items"] objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse)} objectAttrs["vault_record_count"] = types.Int64Type @@ -576,10 +576,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} return objectAttrs } @@ -1023,33 +1023,33 @@ func objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(recurse bool) map[strin func objectAttrsTypeRSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} - objectAttrs["administered_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["admins"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)} + objectAttrs["accounts"] = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)["items"] + objectAttrs["administered_clients"] = objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)["items"] + objectAttrs["administered_systems"] = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)["items"] + objectAttrs["admins"] = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)["items"] objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse)} - objectAttrs["client_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} - objectAttrs["clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)} - objectAttrs["content_administered_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} + objectAttrs["client_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] + objectAttrs["clients"] = objectAttrsTypeRSGroupGroupClientLinkableWrapper(recurse)["items"] + objectAttrs["content_administered_systems"] = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)["items"] objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditingInfo(recurse)} objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupInfo(recurse)} - objectAttrs["helpdesk"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)} + objectAttrs["helpdesk"] = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse)["items"] objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(recurse)} - objectAttrs["nested_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse)} - objectAttrs["owned_clients"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)} - objectAttrs["owned_directories"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse)} + objectAttrs["nested_groups"] = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse)["items"] + objectAttrs["owned_clients"] = objectAttrsTypeRSClientClientApplicationLinkableWrapper(recurse)["items"] + objectAttrs["owned_directories"] = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(recurse)["items"] objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse)} - objectAttrs["owned_organizational_units"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse)} - objectAttrs["owned_systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)} - objectAttrs["recent_audits"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse)} + objectAttrs["owned_organizational_units"] = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse)["items"] + objectAttrs["owned_systems"] = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse)["items"] + objectAttrs["recent_audits"] = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(recurse)["items"] objectAttrs["requeststatus"] = types.StringType - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(recurse)["items"] + objectAttrs["systems"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)["items"] objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - objectAttrs["webhooks"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse)} + objectAttrs["webhooks"] = objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1587,7 +1587,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurs func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["create_as_parent_of"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)} + objectAttrs["create_as_parent_of"] = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1682,8 +1682,8 @@ func objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse bool) map[string]at func objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["provgroups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)} - objectAttrs["service_accounts"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)} + objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1735,7 +1735,7 @@ func objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["systems"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)} + objectAttrs["systems"] = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"] return objectAttrs } @@ -1835,14 +1835,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} return objectAttrs } @@ -1900,7 +1900,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(recurse bo objectAttrs := make(map[string]attr.Type) objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)} objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["issued_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)} + objectAttrs["issued_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] objectAttrs["login_name"] = types.StringType objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse)} objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} @@ -2080,42 +2080,42 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} return objectAttrs } @@ -2338,7 +2338,7 @@ func objectAttrsTypeRSServiceaccountServiceAccountStatus(recurse bool) map[strin func objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse)} + objectAttrs["groups"] = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"] objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(recurse)} return objectAttrs } @@ -2529,7 +2529,7 @@ func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[strin objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(recurse)} objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(recurse)} objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(recurse)} - objectAttrs["shares"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)} + objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse)["items"] objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse)} objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(recurse)} return objectAttrs diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 4ed23b1..03eb5e6 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -34,9 +34,12 @@ func dataSourceSchemaAttrsErrorReport(recurse bool) map[string]dsschema.Attribut schemaAttrs["application_error"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["application_error_parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), + } + attr.Computed = true + schemaAttrs["application_error_parameters"] = attr } schemaAttrs["code"] = dsschema.Int64Attribute{ Computed: true, @@ -126,9 +129,12 @@ func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribu func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ @@ -202,9 +208,12 @@ func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dssch func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -299,18 +308,24 @@ func dataSourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[stri } func dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -362,9 +377,12 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -485,9 +503,12 @@ func dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]dss } func dataSourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["default_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + } + attr.Computed = true + schemaAttrs["default_organizational_unit"] = attr } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -551,45 +572,70 @@ func dataSourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string schemaAttrs["active_login"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["groups"] = attr } - schemaAttrs["pending_recovery_requests"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountRecoveryStatus(recurse), + } + attr.Computed = true + schemaAttrs["pending_recovery_requests"] = attr } - schemaAttrs["settings"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountSettings(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountSettings(recurse), + } + attr.Computed = true + schemaAttrs["settings"] = attr } - schemaAttrs["stored_attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse), + } + attr.Computed = true + schemaAttrs["stored_attributes"] = attr } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } return schemaAttrs } func dataSourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["directory_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), + } + attr.Computed = true + schemaAttrs["directory_stats"] = attr } - schemaAttrs["two_fa_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), + } + attr.Computed = true + schemaAttrs["two_fa_stats"] = attr } - schemaAttrs["validity_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + } + attr.Computed = true + schemaAttrs["validity_stats"] = attr } return schemaAttrs } @@ -608,9 +654,12 @@ func dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -662,9 +711,12 @@ func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema. schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -750,9 +802,12 @@ func dataSourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[stri } func dataSourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(recurse), + } + attr.Computed = true + schemaAttrs["internal_directory"] = attr } return schemaAttrs } @@ -797,9 +852,12 @@ func dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]d func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -921,18 +979,24 @@ func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string] } func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ @@ -1006,9 +1070,12 @@ func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[st func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1058,25 +1125,40 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["technical_administrator"] = attr } - schemaAttrs["o_auth2_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), + } + attr.Computed = true + schemaAttrs["o_auth2_client"] = attr } - schemaAttrs["saml2_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientSaml2Client(false), + } + attr.Computed = true + schemaAttrs["saml2_client"] = attr } - schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(false), + } + attr.Computed = true + schemaAttrs["ldap_client"] = attr } return schemaAttrs } @@ -1131,25 +1213,36 @@ func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string } func dataSourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["groupclients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr + } + { + attr := dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["groupclients"] = attr + } + { + attr := dataSourceSchemaAttrsGroupGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["groups"] = attr + } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + } + attr.Computed = true + schemaAttrs["secret"] = attr } - schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + } + attr.Computed = true + schemaAttrs["tile"] = attr } schemaAttrs["vault_record_count"] = dsschema.Int64Attribute{ Computed: true, @@ -1161,16 +1254,22 @@ func dataSourceSchemaAttrsClientLdapClient(recurse bool) map[string]dsschema.Att schemaAttrs["bind_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["client_certificate"] = attr } schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + } + attr.Computed = true + schemaAttrs["shared_secret"] = attr } schemaAttrs["used_for_provisioning"] = dsschema.BoolAttribute{ Computed: true, @@ -1185,9 +1284,12 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A }, Computed: true, } - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse), + } + attr.Computed = true + schemaAttrs["attributes"] = attr } schemaAttrs["callback_uri"] = dsschema.StringAttribute{ Computed: true, @@ -1210,9 +1312,12 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A schemaAttrs["share_secret_in_vault"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["shared_secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + } + attr.Computed = true + schemaAttrs["shared_secret"] = attr } schemaAttrs["show_landing_page"] = dsschema.BoolAttribute{ Computed: true, @@ -1225,9 +1330,12 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1251,13 +1359,19 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] )), }, } - schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["for_group"] = attr } - schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + } + attr.Computed = true + schemaAttrs["for_system"] = attr } schemaAttrs["value"] = dsschema.StringAttribute{ Computed: true, @@ -1277,9 +1391,12 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bo func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1303,20 +1420,29 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) m )), }, } - schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["for_group"] = attr } - schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + } + attr.Computed = true + schemaAttrs["for_system"] = attr } schemaAttrs["value"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), + } + attr.Computed = true + schemaAttrs["client"] = attr } return schemaAttrs } @@ -1332,9 +1458,12 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper( } func dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -1344,9 +1473,12 @@ func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string } func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(recurse), + } + attr.Computed = true + schemaAttrs["attributes"] = attr } schemaAttrs["metadata"] = dsschema.StringAttribute{ Computed: true, @@ -1366,9 +1498,12 @@ func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string] func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["deleted_vault_holder_uuid"] = dsschema.StringAttribute{ @@ -1442,9 +1577,12 @@ func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[s func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1487,16 +1625,22 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss )), }, } - schemaAttrs["base_organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + } + attr.Computed = true + schemaAttrs["base_organizational_unit"] = attr } schemaAttrs["default_directory"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["helpdesk_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["helpdesk_group"] = attr } schemaAttrs["restrict2fa"] = dsschema.BoolAttribute{ Computed: true, @@ -1507,21 +1651,33 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["l_d_a_p_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + } + attr.Computed = true + schemaAttrs["maintenance_directory"] = attr } - schemaAttrs["internal_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), + } + attr.Computed = true + schemaAttrs["o_id_c_directory"] = attr } - schemaAttrs["o_id_c_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + } + attr.Computed = true + schemaAttrs["internal_directory"] = attr } - schemaAttrs["maintenance_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), + } + attr.Computed = true + schemaAttrs["l_d_a_p_directory"] = attr } return schemaAttrs } @@ -1609,9 +1765,12 @@ func dataSourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[str schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + } + attr.Computed = true + schemaAttrs["status"] = attr } schemaAttrs["username_customizable"] = dsschema.BoolAttribute{ Computed: true, @@ -1630,25 +1789,37 @@ func dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurs } func dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + } + attr.Computed = true + schemaAttrs["status"] = attr } return schemaAttrs } func dataSourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + } + attr.Computed = true + schemaAttrs["owner"] = attr } return schemaAttrs } @@ -1660,9 +1831,12 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["client_certificate"] = attr } schemaAttrs["dialect"] = dsschema.StringAttribute{ Computed: true, @@ -1670,9 +1844,12 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["failover_trusted_certificate"] = attr } schemaAttrs["host"] = dsschema.StringAttribute{ Computed: true, @@ -1695,9 +1872,12 @@ func dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]dssche schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["trusted_certificate"] = attr } return schemaAttrs } @@ -1745,9 +1925,12 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1787,9 +1970,12 @@ func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.At schemaAttrs["end_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), + } + attr.Computed = true + schemaAttrs["folder"] = attr } schemaAttrs["last_used"] = dsschema.StringAttribute{ Computed: true, @@ -1817,13 +2003,19 @@ func dataSourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[str } func dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } return schemaAttrs } @@ -1843,9 +2035,12 @@ func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string] func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -1885,9 +2080,12 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["application_administration"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["audit_config"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditConfig(false), + } + attr.Computed = true + schemaAttrs["audit_config"] = attr } schemaAttrs["audit_requested"] = dsschema.BoolAttribute{ Computed: true, @@ -1895,29 +2093,44 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["auditor"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["authorizing_group_auditing"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["authorizing_group_auditing"] = attr } - schemaAttrs["authorizing_group_delegation"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["authorizing_group_delegation"] = attr } - schemaAttrs["authorizing_group_membership"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["authorizing_group_membership"] = attr } - schemaAttrs["authorizing_group_provisioning"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["authorizing_group_provisioning"] = attr } schemaAttrs["authorizing_group_types"] = dsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } - schemaAttrs["classification"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(false), + } + attr.Computed = true + schemaAttrs["classification"] = attr } schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, @@ -1928,13 +2141,19 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute schemaAttrs["hide_audit_trail"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["nested_under"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["nested_under"] = attr } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + } + attr.Computed = true + schemaAttrs["organizational_unit"] = attr } schemaAttrs["private_group"] = dsschema.BoolAttribute{ Computed: true, @@ -1959,9 +2178,12 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2001,9 +2223,12 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At )), }, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ Computed: true, @@ -2050,9 +2275,12 @@ func dataSourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]dssc } func dataSourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + } + attr.Computed = true + schemaAttrs["folder"] = attr } schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ Computed: true, @@ -2061,9 +2289,12 @@ func dataSourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]dssch } func dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -2077,9 +2308,12 @@ func dataSourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]dsschema. func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2225,9 +2459,12 @@ func dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[strin } func dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -2262,9 +2499,12 @@ func dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]dssche func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2382,30 +2622,42 @@ func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[strin } func dataSourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["classificaton"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse), + } + attr.Computed = true + schemaAttrs["classificaton"] = attr } return schemaAttrs } func dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["info"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse), + } + attr.Computed = true + schemaAttrs["info"] = attr } return schemaAttrs } func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2432,21 +2684,33 @@ func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Att schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + } + attr.Computed = true + schemaAttrs["client"] = attr } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["group"] = attr } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["technical_administrator"] = attr } return schemaAttrs } @@ -2462,18 +2726,24 @@ func dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[stri } func dataSourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2514,9 +2784,12 @@ func dataSourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[stri } func dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -2609,113 +2882,157 @@ func dataSourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[s } func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["accounts"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["administered_clients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["administered_systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["admins"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Computed: true, - DeprecationMessage: "This property will be removed in a future version.", - } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["authorized_groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), - Computed: true, - } - schemaAttrs["client_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["clients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["content_administered_systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["groupauditinginfo"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse), - Computed: true, - } - schemaAttrs["groupinfo"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupInfo(recurse), - Computed: true, - } - schemaAttrs["helpdesk"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["accounts"] = attr + } + { + attr := dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["administered_clients"] = attr + } + { + attr := dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["administered_systems"] = attr + } + { + attr := dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + attr.DeprecationMessage = "This property will be removed in a future version." + schemaAttrs["admins"] = attr + } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["myaccount"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + } + attr.Computed = true + schemaAttrs["authorized_groups"] = attr + } + { + attr := dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["client_permissions"] = attr + } + { + attr := dataSourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["clients"] = attr + } + { + attr := dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["content_administered_systems"] = attr + } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse), + } + attr.Computed = true + schemaAttrs["groupauditinginfo"] = attr } - schemaAttrs["mydelegatedaccount"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupInfo(recurse), + } + attr.Computed = true + schemaAttrs["groupinfo"] = attr } - schemaAttrs["nested_groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["helpdesk"] = attr } - schemaAttrs["owned_clients"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["owned_directories"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + } + attr.Computed = true + schemaAttrs["myaccount"] = attr } - schemaAttrs["owned_groups_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount(recurse), + } + attr.Computed = true + schemaAttrs["mydelegatedaccount"] = attr + } + { + attr := dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["nested_groups"] = attr + } + { + attr := dataSourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["owned_clients"] = attr + } + { + attr := dataSourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["owned_directories"] = attr + } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + } + attr.Computed = true + schemaAttrs["owned_groups_on_system"] = attr } - schemaAttrs["owned_organizational_units"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["owned_organizational_units"] = attr } - schemaAttrs["owned_systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["owned_systems"] = attr } - schemaAttrs["recent_audits"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["recent_audits"] = attr } schemaAttrs["requeststatus"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["service_accounts"] = attr } - schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["systems"] = attr } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } - schemaAttrs["webhooks"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["webhooks"] = attr } return schemaAttrs } @@ -2750,9 +3067,12 @@ func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschem func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2779,13 +3099,19 @@ func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dssche schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["group"] = attr } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(false), + } + attr.Computed = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } @@ -2801,18 +3127,24 @@ func dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) ma } func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ @@ -2897,9 +3229,12 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri }, Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + } + attr.Computed = true + schemaAttrs["group"] = attr } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -2908,9 +3243,12 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri ElementType: types.StringType, Computed: true, } - schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + } + attr.Computed = true + schemaAttrs["tile"] = attr } schemaAttrs["title"] = dsschema.StringAttribute{ Computed: true, @@ -2933,9 +3271,12 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[str func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2959,13 +3300,19 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche )), }, } - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + } + attr.Computed = true + schemaAttrs["application"] = attr } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["group"] = attr } schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ Computed: true, @@ -2977,21 +3324,33 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche ElementType: types.StringType, Computed: true, } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + } + attr.Computed = true + schemaAttrs["vault_record"] = attr } - schemaAttrs["vault_record_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + } + attr.Computed = true + schemaAttrs["vault_record_launchpad_tile"] = attr } - schemaAttrs["sso_application_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + } + attr.Computed = true + schemaAttrs["sso_application_launchpad_tile"] = attr } - schemaAttrs["manual_launchpad_tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + } + attr.Computed = true + schemaAttrs["manual_launchpad_tile"] = attr } return schemaAttrs } @@ -3023,9 +3382,12 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string] } func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -3117,9 +3479,12 @@ func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attri schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), + } + attr.Computed = true + schemaAttrs["parameters"] = attr } return schemaAttrs } @@ -3140,9 +3505,12 @@ func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attr func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_directory_uuid"] = dsschema.StringAttribute{ @@ -3201,9 +3569,12 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["directory_name"] = dsschema.StringAttribute{ Computed: true, @@ -3273,9 +3644,12 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ @@ -3306,13 +3680,19 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s )), }, } - schemaAttrs["for_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["for_group"] = attr } - schemaAttrs["for_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + } + attr.Computed = true + schemaAttrs["for_system"] = attr } schemaAttrs["value"] = dsschema.StringAttribute{ Computed: true, @@ -3322,9 +3702,12 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ @@ -3371,9 +3754,12 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch schemaAttrs["end_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), + } + attr.Computed = true + schemaAttrs["folder"] = attr } schemaAttrs["last_used"] = dsschema.StringAttribute{ Computed: true, @@ -3392,9 +3778,12 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ @@ -3441,9 +3830,12 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch )), }, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ Computed: true, @@ -3474,9 +3866,12 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ @@ -3548,9 +3943,12 @@ func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschem func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ @@ -3596,9 +3994,12 @@ func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bo func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ @@ -3645,18 +4046,24 @@ func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bo )), }, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } return schemaAttrs } func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ @@ -3699,22 +4106,31 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri )), }, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + } + attr.Computed = true + schemaAttrs["system"] = attr } return schemaAttrs } func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ @@ -3769,9 +4185,12 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ @@ -3819,9 +4238,12 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse boo func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ @@ -3869,9 +4291,12 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ @@ -3902,9 +4327,12 @@ func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string] )), }, } - schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), + } + attr.Computed = true + schemaAttrs["payload"] = attr } schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ Computed: true, @@ -3928,31 +4356,46 @@ func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string] } func dataSourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), + } + attr.Computed = true + schemaAttrs["certificate"] = attr } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["expiration"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["ldap_client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), + } + attr.Computed = true + schemaAttrs["ldap_client"] = attr } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } schemaAttrs["usage"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), + } + attr.Computed = true + schemaAttrs["webhook"] = attr } return schemaAttrs } @@ -3961,9 +4404,12 @@ func dataSourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse boo schemaAttrs["due_date"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + } + attr.Computed = true + schemaAttrs["group"] = attr } schemaAttrs["notification_group_audit_required_notification_type"] = dsschema.StringAttribute{ Computed: true, @@ -3972,13 +4418,19 @@ func dataSourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse boo } func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + } + attr.Computed = true + schemaAttrs["group"] = attr } - schemaAttrs["parameters"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), + } + attr.Computed = true + schemaAttrs["parameters"] = attr } schemaAttrs["reason"] = dsschema.StringAttribute{ Computed: true, @@ -3998,9 +4450,12 @@ func dataSourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) ma schemaAttrs["active_accounts"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["license_info"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), + } + attr.Computed = true + schemaAttrs["license_info"] = attr } return schemaAttrs } @@ -4014,9 +4469,12 @@ func dataSourceSchemaAttrsNotificationModificationRequestNotification(recurse bo ElementType: types.StringType, Computed: true, } - schemaAttrs["request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + } + attr.Computed = true + schemaAttrs["request"] = attr } return schemaAttrs } @@ -4039,9 +4497,12 @@ func dataSourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse boo schemaAttrs["api_version"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientOAuth2Client(recurse), + } + attr.Computed = true + schemaAttrs["client"] = attr } return schemaAttrs } @@ -4074,18 +4535,24 @@ func dataSourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) } func dataSourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), + } + attr.Computed = true + schemaAttrs["record"] = attr } return schemaAttrs } func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4133,18 +4600,24 @@ func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(r } func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4184,22 +4657,31 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[strin schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } - schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + } + attr.Computed = true + schemaAttrs["parent"] = attr } return schemaAttrs } func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4239,9 +4721,12 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) ma )), }, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } return schemaAttrs } @@ -4257,9 +4742,12 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(r } func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -4311,17 +4799,23 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(re } func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["attributes"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), + } + attr.Computed = true + schemaAttrs["attributes"] = attr } schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, @@ -4332,16 +4826,22 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["bind_password"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["client_certificate"] = attr } schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["failover_trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["failover_trusted_certificate"] = attr } schemaAttrs["group_dn"] = dsschema.StringAttribute{ Computed: true, @@ -4364,9 +4864,12 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["trusted_certificate"] = attr } schemaAttrs["user_dn"] = dsschema.StringAttribute{ Computed: true, @@ -4385,9 +4888,12 @@ func dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) ma schemaAttrs["result"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } return schemaAttrs } @@ -4420,9 +4926,12 @@ func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4458,13 +4967,19 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss )), }, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + } + attr.Computed = true + schemaAttrs["system"] = attr } return schemaAttrs } @@ -4516,33 +5031,47 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[strin } func dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["provgroups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["provgroups"] = attr } - schemaAttrs["service_accounts"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["service_accounts"] = attr } return schemaAttrs } func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["folder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), + } + attr.Computed = true + schemaAttrs["folder"] = attr } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroup(recurse), + } + attr.Computed = true + schemaAttrs["group"] = attr } - schemaAttrs["provisioning_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), + } + attr.Computed = true + schemaAttrs["provisioning_duration"] = attr } schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ Computed: true, @@ -4550,9 +5079,12 @@ func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[ schemaAttrs["provisioning_permission_end_time"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["status_report"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), + } + attr.Computed = true + schemaAttrs["status_report"] = attr } schemaAttrs["visible_on_dashboard"] = dsschema.BoolAttribute{ Computed: true, @@ -4585,9 +5117,12 @@ func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) m func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4634,13 +5169,17 @@ func dataSourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(rec } func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["systems"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["systems"] = attr } return schemaAttrs } @@ -4654,9 +5193,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4713,17 +5255,23 @@ func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse } func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, @@ -4738,9 +5286,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, @@ -4765,9 +5316,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[s } func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), + } + attr.Computed = true + schemaAttrs["client"] = attr } return schemaAttrs } @@ -4779,17 +5333,23 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]d schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["numbering"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + } + attr.Computed = true + schemaAttrs["numbering"] = attr } return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), + } + attr.Computed = true + schemaAttrs["directory"] = attr } schemaAttrs["group_dn"] = dsschema.StringAttribute{ Computed: true, @@ -4799,9 +5359,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -4822,9 +5385,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + } + attr.Computed = true + schemaAttrs["organizational_unit"] = attr } schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, @@ -4848,16 +5414,22 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["account_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["content_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["content_administrator"] = attr } schemaAttrs["external_uuid"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["owner"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ Computed: true, @@ -4871,44 +5443,71 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["technical_administrator"] = attr } schemaAttrs["username_prefix"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["provisioned_azure_oidc_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + } + attr.Computed = true + schemaAttrs["abstract_provisioned_ldap"] = attr } - schemaAttrs["abstract_provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + } + attr.Computed = true + schemaAttrs["provisioned_ldap"] = attr } - schemaAttrs["provisioned_a_d"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + } + attr.Computed = true + schemaAttrs["provisioned_azure_tenant"] = attr } - schemaAttrs["provisioned_azure_tenant"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + } + attr.Computed = true + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + } + attr.Computed = true + schemaAttrs["provisioned_azure_oidc_directory"] = attr } - schemaAttrs["provisioned_internal_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), + } + attr.Computed = true + schemaAttrs["provisioned_a_d"] = attr } - schemaAttrs["provisioned_ldap"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + } + attr.Computed = true + schemaAttrs["provisioned_ldap_directory"] = attr } - schemaAttrs["provisioned_ldap_directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + } + attr.Computed = true + schemaAttrs["provisioned_internal_ldap"] = attr } return schemaAttrs } @@ -4942,9 +5541,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[ schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + } + attr.Computed = true + schemaAttrs["organizational_unit"] = attr } schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, @@ -4971,9 +5573,12 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(rec func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5023,44 +5628,66 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(re } func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), + } + attr.Computed = true + schemaAttrs["account"] = attr } - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["issued_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["issued_permissions"] = attr } schemaAttrs["login_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["management_permissions"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + } + attr.Computed = true + schemaAttrs["management_permissions"] = attr } - schemaAttrs["markers"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["statistics"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + } + attr.Computed = true + schemaAttrs["statistics"] = attr } - schemaAttrs["supported_group_types"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + } + attr.Computed = true + schemaAttrs["supported_group_types"] = attr } return schemaAttrs } @@ -5102,33 +5729,45 @@ func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dss } func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["application"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(recurse), + } + attr.Computed = true + schemaAttrs["application"] = attr } return schemaAttrs } func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + } + attr.Computed = true + schemaAttrs["organizational_unit"] = attr } return schemaAttrs } func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } return schemaAttrs } func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["access_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + } + attr.Computed = true + schemaAttrs["access_duration"] = attr } return schemaAttrs } @@ -5158,9 +5797,12 @@ func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse boo } func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["new_admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["new_admin"] = attr } schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, @@ -5225,9 +5867,12 @@ func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[ schemaAttrs["permission_type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } return schemaAttrs } @@ -5236,9 +5881,12 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[str schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Computed = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } @@ -5247,21 +5895,30 @@ func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) schemaAttrs["activation_required"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Computed = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Computed = true + schemaAttrs["group_on_system"] = attr } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["service_account"] = attr } return schemaAttrs } @@ -5276,9 +5933,12 @@ func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dssch func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5302,9 +5962,12 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds )), }, } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + } + attr.Computed = true + schemaAttrs["account"] = attr } schemaAttrs["comment"] = dsschema.StringAttribute{ Computed: true, @@ -5312,9 +5975,12 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["feedback"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["group"] = attr } schemaAttrs["mail_key"] = dsschema.StringAttribute{ Computed: true, @@ -5325,153 +5991,264 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["transfer_auditor_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + } + attr.Computed = true + schemaAttrs["abstract_application_modification_request"] = attr } - schemaAttrs["abstract_provisioned_system_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + } + attr.Computed = true + schemaAttrs["abstract_provisioned_system_modification_request"] = attr } - schemaAttrs["create_service_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + } + attr.Computed = true + schemaAttrs["remove_provisioned_system_request"] = attr } - schemaAttrs["review_audit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + } + attr.Computed = true + schemaAttrs["grant_application_request"] = attr } - schemaAttrs["setup_nested_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + } + attr.Computed = true + schemaAttrs["review_audit_request"] = attr } - schemaAttrs["remove_provisioned_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + } + attr.Computed = true + schemaAttrs["revoke_admin_request"] = attr } - schemaAttrs["abstract_application_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + } + attr.Computed = true + schemaAttrs["grant_access_request"] = attr } - schemaAttrs["grant_application_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr } - schemaAttrs["abstract_organizational_unit_modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + } + attr.Computed = true + schemaAttrs["abstract_organizational_unit_modification_request"] = attr } - schemaAttrs["verify_internal_account_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + } + attr.Computed = true + schemaAttrs["remove_organizational_unit_request"] = attr } - schemaAttrs["disable2fa_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + } + attr.Computed = true + schemaAttrs["create_group_on_system_request"] = attr } - schemaAttrs["join_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_application_administration_request"] = attr } - schemaAttrs["join_vault_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + } + attr.Computed = true + schemaAttrs["update_group_membership_request"] = attr } - schemaAttrs["remove_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + } + attr.Computed = true + schemaAttrs["add_group_admin_request"] = attr } - schemaAttrs["transfer_application_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_organizational_unit_ownership_request"] = attr } - schemaAttrs["transfer_organizational_unit_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + } + attr.Computed = true + schemaAttrs["join_vault_request"] = attr } - schemaAttrs["remove_organizational_unit_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + } + attr.Computed = true + schemaAttrs["verify_internal_account_request"] = attr } - schemaAttrs["grant_client_permission_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + } + attr.Computed = true + schemaAttrs["join_group_request"] = attr } - schemaAttrs["enable_technical_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_group_on_system_ownership_request"] = attr } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + } + attr.Computed = true + schemaAttrs["remove_group_request"] = attr } - schemaAttrs["password_reset_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + } + attr.Computed = true + schemaAttrs["setup_authorizing_group_request"] = attr } - schemaAttrs["transfer_group_on_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + } + attr.Computed = true + schemaAttrs["setup_nested_group_request"] = attr } - schemaAttrs["setup_authorizing_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + } + attr.Computed = true + schemaAttrs["grant_group_on_system_request_request"] = attr } - schemaAttrs["grant_service_account_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + } + attr.Computed = true + schemaAttrs["disable2fa_request"] = attr } - schemaAttrs["create_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + } + attr.Computed = true + schemaAttrs["grant_group_on_system_request"] = attr } - schemaAttrs["transfer_application_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + } + attr.Computed = true + schemaAttrs["enable_technical_administration_request"] = attr } - schemaAttrs["grant_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + } + attr.Computed = true + schemaAttrs["create_group_request"] = attr } - schemaAttrs["update_group_membership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_auditor_group_request"] = attr } - schemaAttrs["extend_access_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + } + attr.Computed = true + schemaAttrs["grant_client_permission_request"] = attr } - schemaAttrs["add_group_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_application_ownership_request"] = attr } - schemaAttrs["grant_group_on_system_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + } + attr.Computed = true + schemaAttrs["create_service_account_request"] = attr } - schemaAttrs["grant_group_on_system_request_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_service_account_administration_request"] = attr } - schemaAttrs["revoke_admin_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + } + attr.Computed = true + schemaAttrs["password_reset_request"] = attr } - schemaAttrs["create_group_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + } + attr.Computed = true + schemaAttrs["grant_service_account_group_request"] = attr } - schemaAttrs["transfer_provisioned_system_ownership_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_provisioned_system_ownership_request"] = attr } - schemaAttrs["transfer_service_account_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + } + attr.Computed = true + schemaAttrs["extend_access_request"] = attr } - schemaAttrs["transfer_provisioned_system_administration_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + } + attr.Computed = true + schemaAttrs["transfer_provisioned_system_administration_request"] = attr } return schemaAttrs } @@ -5487,13 +6264,19 @@ func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool } func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["reset_status"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + } + attr.Computed = true + schemaAttrs["reset_status"] = attr } return schemaAttrs } @@ -5545,9 +6328,12 @@ func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dss } func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["admin"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["admin"] = attr } return schemaAttrs } @@ -5559,9 +6345,12 @@ func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[ schemaAttrs["connect"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + } + attr.Computed = true + schemaAttrs["requesting_group"] = attr } return schemaAttrs } @@ -5573,9 +6362,12 @@ func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[strin schemaAttrs["connect"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["requesting_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + } + attr.Computed = true + schemaAttrs["requesting_group"] = attr } return schemaAttrs } @@ -5593,9 +6385,12 @@ func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[s } func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["group_on_system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Computed = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } @@ -5617,17 +6412,23 @@ func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recur } func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["service_account"] = attr } return schemaAttrs } func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_to_update"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["account_to_update"] = attr } schemaAttrs["current_end_date"] = dsschema.StringAttribute{ Computed: true, @@ -5656,9 +6457,12 @@ func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5679,9 +6483,12 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, @@ -5705,25 +6512,34 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["password"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), + } + attr.Computed = true + schemaAttrs["password"] = attr } schemaAttrs["password_rotation"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["technical_administrator"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["technical_administrator"] = attr } return schemaAttrs } func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5773,9 +6589,12 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recur } func dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -5809,9 +6628,12 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[s schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, @@ -5844,17 +6666,24 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[s } func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["groups"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["groups"] = attr } - schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), + } + attr.Computed = true + schemaAttrs["secret"] = attr } return schemaAttrs } @@ -5863,13 +6692,19 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) schemaAttrs["disabled_count"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["password_scheme_enabled_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), + } + attr.Computed = true + schemaAttrs["password_scheme_enabled_stats"] = attr } - schemaAttrs["system_stats"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), + } + attr.Computed = true + schemaAttrs["system_stats"] = attr } return schemaAttrs } @@ -5902,9 +6737,12 @@ func dataSourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]dsschema.At func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -5951,13 +6789,19 @@ func dataSourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) m } func dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["vault"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } return schemaAttrs } @@ -5969,28 +6813,40 @@ func dataSourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]dss schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["target_group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + } + attr.Computed = true + schemaAttrs["target_group"] = attr } return schemaAttrs } func dataSourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["account"] = attr } schemaAttrs["action"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + } + attr.Computed = true + schemaAttrs["group"] = attr } - schemaAttrs["share_duration"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + } + attr.Computed = true + schemaAttrs["share_duration"] = attr } return schemaAttrs } @@ -6070,9 +6926,12 @@ func dataSourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]dsschema.Att func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -6222,53 +7081,81 @@ func dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string] }, Computed: true, } - schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShare(recurse), + } + attr.Computed = true + schemaAttrs["parent"] = attr } return schemaAttrs } func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["parent"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse), + } + attr.Computed = true + schemaAttrs["parent"] = attr } - schemaAttrs["password_metadata"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultPasswordMetadata(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultPasswordMetadata(recurse), + } + attr.Computed = true + schemaAttrs["password_metadata"] = attr } - schemaAttrs["secret"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordSecrets(recurse), + } + attr.Computed = true + schemaAttrs["secret"] = attr } - schemaAttrs["share_summary"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultRecordShareSummary(recurse), + } + attr.Computed = true + schemaAttrs["share_summary"] = attr } - schemaAttrs["shares"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := dataSourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["shares"] = attr } - schemaAttrs["tile"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), + } + attr.Computed = true + schemaAttrs["tile"] = attr } - schemaAttrs["vaultholder"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultHolder(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsVaultVaultHolder(recurse), + } + attr.Computed = true + schemaAttrs["vaultholder"] = attr } return schemaAttrs } func dataSourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + } + attr.Computed = true + schemaAttrs["account"] = attr } schemaAttrs["private_key"] = dsschema.StringAttribute{ Computed: true, @@ -6295,9 +7182,12 @@ func dataSourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]dssc func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -6321,9 +7211,12 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri )), }, } - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + } + attr.Computed = true + schemaAttrs["account"] = attr } schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, @@ -6343,13 +7236,19 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri schemaAttrs["bearer_token"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), + } + attr.Computed = true + schemaAttrs["client"] = attr } - schemaAttrs["client_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + } + attr.Computed = true + schemaAttrs["client_certificate"] = attr } schemaAttrs["custom_header_name"] = dsschema.StringAttribute{ Computed: true, @@ -6357,27 +7256,39 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri schemaAttrs["custom_header_value"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), + } + attr.Computed = true + schemaAttrs["directory"] = attr } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["group"] = attr } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + } + attr.Computed = true + schemaAttrs["system"] = attr } schemaAttrs["tls"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["trusted_certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(false), + } + attr.Computed = true + schemaAttrs["trusted_certificate"] = attr } schemaAttrs["types"] = dsschema.ListAttribute{ ElementType: types.StringType, @@ -6401,9 +7312,12 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + } + attr.Computed = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -6427,9 +7341,12 @@ func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dssche )), }, } - schemaAttrs["payload"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), + } + attr.Computed = true + schemaAttrs["payload"] = attr } schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ Computed: true, @@ -6463,9 +7380,12 @@ func dataSourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) ma } func dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -6484,9 +7404,12 @@ func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dssche schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["object"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLinkable(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsLinkable(recurse), + } + attr.Computed = true + schemaAttrs["object"] = attr } schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -6496,45 +7419,75 @@ func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dssche } func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["account"] = attr } - schemaAttrs["by_party"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["by_party"] = attr } - schemaAttrs["certificate"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["certificate"] = attr } - schemaAttrs["client"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["client"] = attr } - schemaAttrs["directory"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["directory"] = attr } - schemaAttrs["group"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["group"] = attr } - schemaAttrs["group2"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["group2"] = attr } - schemaAttrs["group_classification"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["group_classification"] = attr } - schemaAttrs["modification_request"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["modification_request"] = attr } - schemaAttrs["organizational_unit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["organizational_unit"] = attr } schemaAttrs["parameter1"] = dsschema.StringAttribute{ Computed: true, @@ -6551,24 +7504,36 @@ func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.A schemaAttrs["seq"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["service_account"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["service_account"] = attr } - schemaAttrs["system"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["system"] = attr } schemaAttrs["timestamp"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["vault_record"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["vault_record"] = attr } - schemaAttrs["webhook"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Computed = true + schemaAttrs["webhook"] = attr } schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, @@ -6577,9 +7542,12 @@ func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.A } func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audit"] = dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 841a251..deea286 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -44,9 +44,12 @@ func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute schemaAttrs["application_error"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["application_error_parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), + } + attr.Optional = true + schemaAttrs["application_error_parameters"] = attr } schemaAttrs["code"] = rsschema.Int64Attribute{ Computed: true, @@ -146,9 +149,12 @@ func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ @@ -234,9 +240,12 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditAuditRecord_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditAuditRecord_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -343,18 +352,24 @@ func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string } func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -640,45 +655,70 @@ func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]r schemaAttrs["active_login"] = rsschema.BoolAttribute{ Computed: true, } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["groups"] = attr } - schemaAttrs["pending_recovery_requests"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), + } + attr.Computed = true + schemaAttrs["pending_recovery_requests"] = attr } - schemaAttrs["settings"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), + } + attr.Computed = true + schemaAttrs["settings"] = attr } - schemaAttrs["stored_attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), + } + attr.Computed = true + schemaAttrs["stored_attributes"] = attr } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } return schemaAttrs } func resourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["directory_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), + } + attr.Optional = true + schemaAttrs["directory_stats"] = attr } - schemaAttrs["two_fa_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), + } + attr.Optional = true + schemaAttrs["two_fa_stats"] = attr } - schemaAttrs["validity_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + } + attr.Optional = true + schemaAttrs["validity_stats"] = attr } return schemaAttrs } @@ -766,9 +806,12 @@ func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string } func resourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(recurse), - Required: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(recurse), + } + attr.Required = true + schemaAttrs["internal_directory"] = attr } return schemaAttrs } @@ -820,9 +863,12 @@ func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rss func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsCertificateCertificate_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsCertificateCertificate_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -945,18 +991,24 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs } func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ @@ -1042,9 +1094,12 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1104,17 +1159,26 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["o_auth2_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + } + attr.Optional = true + schemaAttrs["o_auth2_client"] = attr } - schemaAttrs["saml2_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientSaml2Client(false), + } + attr.Optional = true + schemaAttrs["saml2_client"] = attr } - schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + } + attr.Optional = true + schemaAttrs["ldap_client"] = attr } return schemaAttrs } @@ -1176,28 +1240,39 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r } func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ Optional: true, } - schemaAttrs["groupclients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Optional: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["groupclients"] = attr } - schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["groups"] = attr } - schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGeneratedSecret(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + } + attr.Optional = true + schemaAttrs["secret"] = attr } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + } + attr.Optional = true + schemaAttrs["tile"] = attr } schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ Computed: true, @@ -1236,9 +1311,12 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att }, Computed: true, } - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), + } + attr.Optional = true + schemaAttrs["attributes"] = attr } schemaAttrs["callback_uri"] = rsschema.StringAttribute{ Optional: true, @@ -1288,9 +1366,12 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1342,9 +1423,12 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1381,9 +1465,12 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map ), }, } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + } + attr.Optional = true + schemaAttrs["client"] = attr } return schemaAttrs } @@ -1399,9 +1486,12 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(re } func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -1411,9 +1501,12 @@ func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]r } func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), + } + attr.Optional = true + schemaAttrs["attributes"] = attr } schemaAttrs["metadata"] = rsschema.StringAttribute{ Optional: true, @@ -1441,9 +1534,12 @@ func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rs func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ @@ -1529,9 +1625,12 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -1606,21 +1705,33 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["l_d_a_p_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + } + attr.Optional = true + schemaAttrs["maintenance_directory"] = attr } - schemaAttrs["internal_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), + } + attr.Optional = true + schemaAttrs["o_id_c_directory"] = attr } - schemaAttrs["o_id_c_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + } + attr.Optional = true + schemaAttrs["internal_directory"] = attr } - schemaAttrs["maintenance_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), + } + attr.Optional = true + schemaAttrs["l_d_a_p_directory"] = attr } return schemaAttrs } @@ -1728,9 +1839,12 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + } + attr.Optional = true + schemaAttrs["status"] = attr } schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ Computed: true, @@ -1751,17 +1865,26 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse } func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + } + attr.Computed = true + schemaAttrs["status"] = attr } return schemaAttrs } @@ -1938,9 +2061,12 @@ func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -1952,9 +2078,12 @@ func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attr schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + } + attr.Computed = true + schemaAttrs["folder"] = attr } schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, @@ -1987,13 +2116,19 @@ func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[strin } func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } return schemaAttrs } @@ -2015,9 +2150,12 @@ func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rs func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -2053,10 +2191,13 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["audit_config"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), - Optional: true, - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), + } + attr.Optional = true + attr.Computed = true + schemaAttrs["audit_config"] = attr } schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ Computed: true, @@ -2170,9 +2311,12 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -2236,9 +2380,12 @@ func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rssche } func resourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + } + attr.Optional = true + schemaAttrs["folder"] = attr } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Optional: true, @@ -2247,9 +2394,12 @@ func resourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]rsschem } func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -2263,9 +2413,12 @@ func resourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]rsschema.At func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -2426,9 +2579,12 @@ func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string] } func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -2475,9 +2631,12 @@ func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassification_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassification_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -2634,22 +2793,31 @@ func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string] } func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["info"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), + } + attr.Computed = true + schemaAttrs["info"] = attr } return schemaAttrs } func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClient_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupClient_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -2699,18 +2867,24 @@ func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string } func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -2747,9 +2921,12 @@ func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string } func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -2860,113 +3037,157 @@ func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[str } func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accounts"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Optional: true, - } - schemaAttrs["administered_clients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["administered_systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["admins"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse), - Optional: true, - DeprecationMessage: "This property will be removed in a future version.", - } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, - } - schemaAttrs["authorized_groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), - Computed: true, - } - schemaAttrs["client_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Optional: true, - } - schemaAttrs["clients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["content_administered_systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["groupauditinginfo"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), - Computed: true, - } - schemaAttrs["groupinfo"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), - Computed: true, - } - schemaAttrs["helpdesk"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse), - Computed: true, - } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["accounts"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["administered_clients"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["administered_systems"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + attr.DeprecationMessage = "This property will be removed in a future version." + schemaAttrs["admins"] = attr + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["myaccount"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + } + attr.Computed = true + schemaAttrs["authorized_groups"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["client_permissions"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["clients"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["content_administered_systems"] = attr + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), + } + attr.Computed = true + schemaAttrs["groupauditinginfo"] = attr } - schemaAttrs["mydelegatedaccount"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), + } + attr.Computed = true + schemaAttrs["groupinfo"] = attr } - schemaAttrs["nested_groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["helpdesk"] = attr } - schemaAttrs["owned_clients"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["owned_directories"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + } + attr.Computed = true + schemaAttrs["myaccount"] = attr } - schemaAttrs["owned_groups_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + } + attr.Computed = true + schemaAttrs["mydelegatedaccount"] = attr + } + { + attr := resetListAttributeFlags(resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Computed = true + schemaAttrs["nested_groups"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_clients"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_directories"] = attr + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + } + attr.Computed = true + schemaAttrs["owned_groups_on_system"] = attr } - schemaAttrs["owned_organizational_units"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_organizational_units"] = attr } - schemaAttrs["owned_systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_systems"] = attr } - schemaAttrs["recent_audits"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["recent_audits"] = attr } schemaAttrs["requeststatus"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["service_accounts"] = attr } - schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["systems"] = attr } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } - schemaAttrs["webhooks"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["webhooks"] = attr } return schemaAttrs } @@ -3013,9 +3234,12 @@ func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema. func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3041,10 +3265,13 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - Computed: true, - PlanModifiers: []planmodifier.Object{objectplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + } + attr.Computed = true + attr.PlanModifiers = []planmodifier.Object{objectplanmodifier.UseStateForUnknown()} + schemaAttrs["group_on_system"] = attr } return schemaAttrs } @@ -3060,18 +3287,24 @@ func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[ } func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ @@ -3185,9 +3418,12 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string ElementType: types.StringType, Optional: true, } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + } + attr.Optional = true + schemaAttrs["tile"] = attr } schemaAttrs["title"] = rsschema.StringAttribute{ Optional: true, @@ -3210,9 +3446,12 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[strin func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -3260,17 +3499,26 @@ func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["vault_record_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + } + attr.Optional = true + schemaAttrs["vault_record_launchpad_tile"] = attr } - schemaAttrs["sso_application_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), + } + attr.Optional = true + schemaAttrs["sso_application_launchpad_tile"] = attr } - schemaAttrs["manual_launchpad_tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), + } + attr.Optional = true + schemaAttrs["manual_launchpad_tile"] = attr } return schemaAttrs } @@ -3304,9 +3552,12 @@ func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rs } func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -3435,9 +3686,12 @@ func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribu ), }, } - schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), + } + attr.Optional = true + schemaAttrs["parameters"] = attr } return schemaAttrs } @@ -3512,9 +3766,12 @@ func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rssch func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ @@ -3562,9 +3819,12 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ @@ -3582,9 +3842,12 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(false), + } + attr.Computed = true + schemaAttrs["folder"] = attr } schemaAttrs["last_used"] = rsschema.StringAttribute{ Computed: true, @@ -3608,9 +3871,12 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ @@ -3662,9 +3928,12 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ @@ -3733,9 +4002,12 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ @@ -3755,9 +4027,12 @@ func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ @@ -3783,9 +4058,12 @@ func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ @@ -3845,9 +4123,12 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ @@ -3871,9 +4152,12 @@ func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[s func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ @@ -3917,9 +4201,12 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ @@ -3967,9 +4254,12 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ @@ -3992,9 +4282,12 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookPush(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookPush(false), + } + attr.Optional = true + schemaAttrs["payload"] = attr } schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ Optional: true, @@ -4018,24 +4311,36 @@ func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rs } func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsCertificateCertificate(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsCertificateCertificate(recurse), + } + attr.Optional = true + schemaAttrs["certificate"] = attr } - schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(recurse), + } + attr.Optional = true + schemaAttrs["directory"] = attr } schemaAttrs["expiration"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["ldap_client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + } + attr.Optional = true + schemaAttrs["ldap_client"] = attr } - schemaAttrs["system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), + } + attr.Optional = true + schemaAttrs["system"] = attr } schemaAttrs["usage"] = rsschema.StringAttribute{ Optional: true, @@ -4045,9 +4350,12 @@ func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) ), }, } - schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhook(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhook(recurse), + } + attr.Optional = true + schemaAttrs["webhook"] = attr } return schemaAttrs } @@ -4056,9 +4364,12 @@ func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) schemaAttrs["due_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + } + attr.Optional = true + schemaAttrs["group"] = attr } schemaAttrs["notification_group_audit_required_notification_type"] = rsschema.StringAttribute{ Optional: true, @@ -4072,13 +4383,19 @@ func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) } func resourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + } + attr.Optional = true + schemaAttrs["group"] = attr } - schemaAttrs["parameters"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), + } + attr.Optional = true + schemaAttrs["parameters"] = attr } schemaAttrs["reason"] = rsschema.StringAttribute{ Optional: true, @@ -4105,9 +4422,12 @@ func resourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[ Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["license_info"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), + } + attr.Optional = true + schemaAttrs["license_info"] = attr } return schemaAttrs } @@ -4121,9 +4441,12 @@ func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool ElementType: types.StringType, Optional: true, } - schemaAttrs["request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), + } + attr.Optional = true + schemaAttrs["request"] = attr } return schemaAttrs } @@ -4148,9 +4471,12 @@ func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(recurse), + } + attr.Optional = true + schemaAttrs["client"] = attr } return schemaAttrs } @@ -4189,18 +4515,24 @@ func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) ma } func resourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["record"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + } + attr.Optional = true + schemaAttrs["record"] = attr } return schemaAttrs } func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -4223,18 +4555,24 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(rec } func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -4281,9 +4619,12 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -4312,9 +4653,12 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(rec } func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -4371,21 +4715,28 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recu } func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["create_as_parent_of"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse), - Optional: true, + { + attr := resetListAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Optional = true + schemaAttrs["create_as_parent_of"] = attr } return schemaAttrs } func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["attributes"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), + } + attr.Optional = true + schemaAttrs["attributes"] = attr } schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, @@ -4493,9 +4844,12 @@ func resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[ ), }, } - schemaAttrs["system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), + } + attr.Optional = true + schemaAttrs["system"] = attr } return schemaAttrs } @@ -4539,9 +4893,12 @@ func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[s func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -4657,33 +5014,47 @@ func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string] } func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["provgroups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse), - Optional: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["provgroups"] = attr } - schemaAttrs["service_accounts"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse), - Optional: true, + { + attr := resetListAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Optional = true + schemaAttrs["service_accounts"] = attr } return schemaAttrs } func resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["folder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + } + attr.Optional = true + schemaAttrs["folder"] = attr } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroup(recurse), + } + attr.Optional = true + schemaAttrs["group"] = attr } - schemaAttrs["provisioning_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), + } + attr.Optional = true + schemaAttrs["provisioning_duration"] = attr } schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ Required: true, @@ -4691,9 +5062,12 @@ func resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[st schemaAttrs["provisioning_permission_end_time"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["status_report"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), + } + attr.Optional = true + schemaAttrs["status_report"] = attr } schemaAttrs["visible_on_dashboard"] = rsschema.BoolAttribute{ Computed: true, @@ -4730,9 +5104,12 @@ func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -4780,13 +5157,17 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recur } func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["systems"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := resetListAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Computed = true + schemaAttrs["systems"] = attr } return schemaAttrs } @@ -4805,9 +5186,12 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["uuid"] = rsschema.StringAttribute{ @@ -4834,9 +5218,12 @@ func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bo } func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -4899,9 +5286,12 @@ func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[str } func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + } + attr.Optional = true + schemaAttrs["client"] = attr } return schemaAttrs } @@ -4920,9 +5310,12 @@ func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rss ), }, } - schemaAttrs["numbering"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - Required: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + } + attr.Required = true + schemaAttrs["numbering"] = attr } return schemaAttrs } @@ -4945,9 +5338,12 @@ func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[s func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -5039,37 +5435,61 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["provisioned_azure_oidc_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + } + attr.Optional = true + schemaAttrs["abstract_provisioned_ldap"] = attr } - schemaAttrs["abstract_provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + } + attr.Optional = true + schemaAttrs["provisioned_ldap"] = attr } - schemaAttrs["provisioned_a_d"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + } + attr.Optional = true + schemaAttrs["provisioned_azure_tenant"] = attr } - schemaAttrs["provisioned_azure_tenant"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + } + attr.Optional = true + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } - schemaAttrs["provisioned_azure_sync_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + } + attr.Optional = true + schemaAttrs["provisioned_azure_oidc_directory"] = attr } - schemaAttrs["provisioned_internal_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), + } + attr.Optional = true + schemaAttrs["provisioned_a_d"] = attr } - schemaAttrs["provisioned_ldap"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + } + attr.Optional = true + schemaAttrs["provisioned_ldap_directory"] = attr } - schemaAttrs["provisioned_ldap_directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + } + attr.Optional = true + schemaAttrs["provisioned_internal_ldap"] = attr } return schemaAttrs } @@ -5142,9 +5562,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recur func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -5191,44 +5614,66 @@ func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recu } func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), + } + attr.Computed = true + schemaAttrs["account"] = attr } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["issued_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["issued_permissions"] = attr } schemaAttrs["login_name"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["management_permissions"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + } + attr.Computed = true + schemaAttrs["management_permissions"] = attr } - schemaAttrs["markers"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["statistics"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + } + attr.Computed = true + schemaAttrs["statistics"] = attr } - schemaAttrs["supported_group_types"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + } + attr.Computed = true + schemaAttrs["supported_group_types"] = attr } return schemaAttrs } @@ -5310,9 +5755,12 @@ func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recu } func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["access_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), + } + attr.Optional = true + schemaAttrs["access_duration"] = attr } return schemaAttrs } @@ -5446,9 +5894,12 @@ func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[strin Optional: true, Default: booldefault.StaticBool(true), } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Required: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Required = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } @@ -5459,17 +5910,23 @@ func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) ma Optional: true, Default: booldefault.StaticBool(true), } - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Required: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Required = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Required: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Required = true + schemaAttrs["group_on_system"] = attr } schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, @@ -5490,9 +5947,12 @@ func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschem func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -5549,153 +6009,264 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc ), }, } - schemaAttrs["transfer_auditor_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), + } + attr.Optional = true + schemaAttrs["abstract_application_modification_request"] = attr } - schemaAttrs["abstract_provisioned_system_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + } + attr.Optional = true + schemaAttrs["abstract_provisioned_system_modification_request"] = attr } - schemaAttrs["create_service_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + } + attr.Optional = true + schemaAttrs["remove_provisioned_system_request"] = attr } - schemaAttrs["review_audit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + } + attr.Optional = true + schemaAttrs["grant_application_request"] = attr } - schemaAttrs["setup_nested_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + } + attr.Optional = true + schemaAttrs["review_audit_request"] = attr } - schemaAttrs["remove_provisioned_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + } + attr.Optional = true + schemaAttrs["revoke_admin_request"] = attr } - schemaAttrs["abstract_application_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + } + attr.Optional = true + schemaAttrs["grant_access_request"] = attr } - schemaAttrs["grant_application_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr } - schemaAttrs["abstract_organizational_unit_modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + } + attr.Optional = true + schemaAttrs["abstract_organizational_unit_modification_request"] = attr } - schemaAttrs["verify_internal_account_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + } + attr.Optional = true + schemaAttrs["remove_organizational_unit_request"] = attr } - schemaAttrs["disable2fa_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + } + attr.Optional = true + schemaAttrs["create_group_on_system_request"] = attr } - schemaAttrs["join_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_application_administration_request"] = attr } - schemaAttrs["join_vault_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + } + attr.Optional = true + schemaAttrs["update_group_membership_request"] = attr } - schemaAttrs["remove_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + } + attr.Optional = true + schemaAttrs["add_group_admin_request"] = attr } - schemaAttrs["transfer_application_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_organizational_unit_ownership_request"] = attr } - schemaAttrs["transfer_organizational_unit_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + } + attr.Optional = true + schemaAttrs["join_vault_request"] = attr } - schemaAttrs["remove_organizational_unit_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + } + attr.Optional = true + schemaAttrs["verify_internal_account_request"] = attr } - schemaAttrs["grant_client_permission_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + } + attr.Optional = true + schemaAttrs["join_group_request"] = attr } - schemaAttrs["enable_technical_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_group_on_system_ownership_request"] = attr } - schemaAttrs["transfer_provisioned_system_content_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + } + attr.Optional = true + schemaAttrs["remove_group_request"] = attr } - schemaAttrs["password_reset_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + } + attr.Optional = true + schemaAttrs["setup_authorizing_group_request"] = attr } - schemaAttrs["transfer_group_on_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + } + attr.Optional = true + schemaAttrs["setup_nested_group_request"] = attr } - schemaAttrs["setup_authorizing_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + } + attr.Optional = true + schemaAttrs["grant_group_on_system_request_request"] = attr } - schemaAttrs["grant_service_account_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + } + attr.Optional = true + schemaAttrs["disable2fa_request"] = attr } - schemaAttrs["create_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + } + attr.Optional = true + schemaAttrs["grant_group_on_system_request"] = attr } - schemaAttrs["transfer_application_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + } + attr.Optional = true + schemaAttrs["enable_technical_administration_request"] = attr } - schemaAttrs["grant_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + } + attr.Optional = true + schemaAttrs["create_group_request"] = attr } - schemaAttrs["update_group_membership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_auditor_group_request"] = attr } - schemaAttrs["extend_access_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + } + attr.Optional = true + schemaAttrs["grant_client_permission_request"] = attr } - schemaAttrs["add_group_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_application_ownership_request"] = attr } - schemaAttrs["grant_group_on_system_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + } + attr.Optional = true + schemaAttrs["create_service_account_request"] = attr } - schemaAttrs["grant_group_on_system_request_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_service_account_administration_request"] = attr } - schemaAttrs["revoke_admin_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + } + attr.Optional = true + schemaAttrs["password_reset_request"] = attr } - schemaAttrs["create_group_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + } + attr.Optional = true + schemaAttrs["grant_service_account_group_request"] = attr } - schemaAttrs["transfer_provisioned_system_ownership_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_provisioned_system_ownership_request"] = attr } - schemaAttrs["transfer_service_account_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + } + attr.Optional = true + schemaAttrs["extend_access_request"] = attr } - schemaAttrs["transfer_provisioned_system_administration_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + } + attr.Optional = true + schemaAttrs["transfer_provisioned_system_administration_request"] = attr } return schemaAttrs } @@ -5711,17 +6282,26 @@ func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) } func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accept_params"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + } + attr.Optional = true + schemaAttrs["accept_params"] = attr } - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["reset_status"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), + } + attr.Computed = true + schemaAttrs["reset_status"] = attr } return schemaAttrs } @@ -5862,9 +6442,12 @@ func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[str } func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["group_on_system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - Required: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + } + attr.Required = true + schemaAttrs["group_on_system"] = attr } return schemaAttrs } @@ -5942,9 +6525,12 @@ func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[st func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -6011,9 +6597,12 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -6064,9 +6653,12 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse } func resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -6145,17 +6737,24 @@ func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[str } func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["groups"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse), - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["groups"] = attr } - schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGeneratedSecret(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + } + attr.Optional = true + schemaAttrs["secret"] = attr } return schemaAttrs } @@ -6164,13 +6763,19 @@ func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) ma schemaAttrs["disabled_count"] = rsschema.Int64Attribute{ Optional: true, } - schemaAttrs["password_scheme_enabled_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), + } + attr.Optional = true + schemaAttrs["password_scheme_enabled_stats"] = attr } - schemaAttrs["system_stats"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), + } + attr.Optional = true + schemaAttrs["system_stats"] = attr } return schemaAttrs } @@ -6203,9 +6808,12 @@ func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attr func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -6247,13 +6855,19 @@ func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map } func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["vault"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr } return schemaAttrs } @@ -6297,9 +6911,12 @@ func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.A stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["share_duration"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + } + attr.Optional = true + schemaAttrs["share_duration"] = attr } return schemaAttrs } @@ -6399,9 +7016,12 @@ func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attri func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -6587,17 +7207,23 @@ func resourceSchemaAttrsVaultVaultRecordShareSummary(recurse bool) map[string]rs }, Optional: true, } - schemaAttrs["parent"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordShare(recurse), + } + attr.Optional = true + schemaAttrs["parent"] = attr } return schemaAttrs } func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ Optional: true, @@ -6605,29 +7231,45 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["password_metadata"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultPasswordMetadata(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultPasswordMetadata(recurse), + } + attr.Computed = true + schemaAttrs["password_metadata"] = attr } - schemaAttrs["secret"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), + } + attr.Optional = true + schemaAttrs["secret"] = attr } - schemaAttrs["share_summary"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordShareSummary(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultRecordShareSummary(recurse), + } + attr.Computed = true + schemaAttrs["share_summary"] = attr } - schemaAttrs["shares"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse), - Computed: true, + { + attr := resetListAttributeFlags(resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Computed = true + schemaAttrs["shares"] = attr } - schemaAttrs["tile"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), + } + attr.Optional = true + schemaAttrs["tile"] = attr } - schemaAttrs["vaultholder"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultHolder(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVaultHolder(recurse), + } + attr.Computed = true + schemaAttrs["vaultholder"] = attr } return schemaAttrs } @@ -6664,9 +7306,12 @@ func resourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]rssche func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhook_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhook_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -6822,9 +7467,12 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - schemaAttrs["additional_objects"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), + } + attr.Optional = true + schemaAttrs["additional_objects"] = attr } } schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -6841,9 +7489,12 @@ func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["payload"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookPush(false), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookPush(false), + } + attr.Optional = true + schemaAttrs["payload"] = attr } schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ Optional: true, @@ -6877,9 +7528,12 @@ func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[ } func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } @@ -6898,9 +7552,12 @@ func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["object"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLinkable(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLinkable(recurse), + } + attr.Optional = true + schemaAttrs["object"] = attr } schemaAttrs["uuid"] = rsschema.StringAttribute{ Optional: true, @@ -6909,45 +7566,75 @@ func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema } func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["account"] = attr } - schemaAttrs["by_party"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["by_party"] = attr } - schemaAttrs["certificate"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["certificate"] = attr } - schemaAttrs["client"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["client"] = attr } - schemaAttrs["directory"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["directory"] = attr } - schemaAttrs["group"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["group"] = attr } - schemaAttrs["group2"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["group2"] = attr } - schemaAttrs["group_classification"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["group_classification"] = attr } - schemaAttrs["modification_request"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["modification_request"] = attr } - schemaAttrs["organizational_unit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["organizational_unit"] = attr } schemaAttrs["parameter1"] = rsschema.StringAttribute{ Optional: true, @@ -6971,24 +7658,36 @@ func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Att Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["service_account"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["service_account"] = attr } - schemaAttrs["system"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["system"] = attr } schemaAttrs["timestamp"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["vault_record"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["vault_record"] = attr } - schemaAttrs["webhook"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), + } + attr.Optional = true + schemaAttrs["webhook"] = attr } schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, @@ -7002,9 +7701,12 @@ func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Att } func resourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit"] = rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } return schemaAttrs } diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 89fc6ab..b058d3f 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -194,7 +194,7 @@ func fillDataStructFromTFObjectDSAuthAccountStatus(data *authAccountStatusDataDS func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataDS, obj types.Object) { data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) @@ -375,8 +375,8 @@ func fillDataStructFromTFObjectDSClientClientApplicationPrimer(data *clientClien func fillDataStructFromTFObjectDSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) @@ -486,10 +486,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -846,33 +846,33 @@ func fillDataStructFromTFObjectDSGroupGroupSegmentedLinkableWrapper(data *groupG } func fillDataStructFromTFObjectDSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataDS, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) - data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) - data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) - data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ListValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ListValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) - data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) - data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) - data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ListValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ListValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ListValue) data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) - data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ListValue) data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) - data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) - data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) - data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ListValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ListValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ListValue) data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) - data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) - data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) - data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ListValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ListValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ListValue) data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ListValue) } func fillDataStructFromTFObjectDSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataDS, obj types.Object) { @@ -1416,8 +1416,8 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystemTypes(data *provisioni func fillDataStructFromTFObjectDSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) } func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataDS, obj types.Object) { @@ -1456,7 +1456,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequenceLinkableWrap func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedAD(data *provisioningProvisionedADDataDS, obj types.Object) { @@ -1538,14 +1538,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1588,7 +1588,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog_additional func fillDataStructFromTFObjectDSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataDS, obj types.Object) { data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ListValue) data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) @@ -1715,42 +1715,42 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) } @@ -1905,7 +1905,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *servic func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } @@ -2048,7 +2048,7 @@ func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultV data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) } diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index fbdb3a5..73d650a 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -191,7 +191,7 @@ func fillDataStructFromTFObjectRSAuthAccountStatus(data *authAccountStatusDataRS func fillDataStructFromTFObjectRSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataRS, obj types.Object) { data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) @@ -344,8 +344,8 @@ func fillDataStructFromTFObjectRSClientClientApplicationPrimer(data *clientClien func fillDataStructFromTFObjectRSClientClientApplication_additionalObjects(data *clientClientApplication_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) - data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) @@ -451,10 +451,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -794,33 +794,33 @@ func fillDataStructFromTFObjectRSGroupGroupSegmentedLinkableWrapper(data *groupG } func fillDataStructFromTFObjectRSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataRS, obj types.Object) { - data.Accounts = obj.Attributes()["accounts"].(basetypes.ObjectValue) - data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ObjectValue) - data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ObjectValue) - data.Admins = obj.Attributes()["admins"].(basetypes.ObjectValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ListValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ListValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) - data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ObjectValue) - data.Clients = obj.Attributes()["clients"].(basetypes.ObjectValue) - data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ListValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ListValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ListValue) data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) - data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ListValue) data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) - data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ObjectValue) - data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ObjectValue) - data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ListValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ListValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ListValue) data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) - data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ObjectValue) - data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ObjectValue) - data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ListValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ListValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ListValue) data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ListValue) } func fillDataStructFromTFObjectRSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataRS, obj types.Object) { @@ -1214,7 +1214,7 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWra func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ObjectValue) + data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ListValue) } func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { @@ -1287,8 +1287,8 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystemTypes(data *provisioni func fillDataStructFromTFObjectRSProvisioningGroupOnSystem_additionalObjects(data *provisioningGroupOnSystem_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ObjectValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) } func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataRS, obj types.Object) { @@ -1326,7 +1326,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequenceLinkableWrap func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Systems = obj.Attributes()["systems"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningProvisionedADDataRS, obj types.Object) { @@ -1400,14 +1400,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1449,7 +1449,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog_additional func fillDataStructFromTFObjectRSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataRS, obj types.Object) { data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ListValue) data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) @@ -1575,42 +1575,42 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) } @@ -1767,7 +1767,7 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccountStatus(data *servic func fillDataStructFromTFObjectRSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } @@ -1910,7 +1910,7 @@ func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultV data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) } diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 01e335e..cc195d9 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -640,7 +640,7 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) tkh.SetGroups(val) } @@ -1366,12 +1366,12 @@ func tfObjectToTKHDSClientClientApplication_additionalObjects(ctx context.Contex tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groupclients"])) diags.Append(d...) tkh.SetGroupclients(val) } { - val, d := tfObjectToTKHDSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) tkh.SetGroups(val) } @@ -1792,35 +1792,35 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3194,22 +3194,22 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo var tkh keyhubmodel.GroupGroup_additionalObjectsable tkh = keyhubmodel.NewGroupGroup_additionalObjects() { - val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["accounts"])) diags.Append(d...) tkh.SetAccounts(val) } { - val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_clients"])) diags.Append(d...) tkh.SetAdministeredClients(val) } { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_systems"])) diags.Append(d...) tkh.SetAdministeredSystems(val) } { - val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["admins"])) diags.Append(d...) tkh.SetAdmins(val) } @@ -3224,17 +3224,17 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetAuthorizedGroups(val) } { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["client_permissions"])) diags.Append(d...) tkh.SetClientPermissions(val) } { - val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["clients"])) diags.Append(d...) tkh.SetClients(val) } { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["content_administered_systems"])) diags.Append(d...) tkh.SetContentAdministeredSystems(val) } @@ -3249,7 +3249,7 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetGroupinfo(val) } { - val, d := tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["helpdesk"])) diags.Append(d...) tkh.SetHelpdesk(val) } @@ -3269,17 +3269,17 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetMydelegatedaccount(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["nested_groups"])) diags.Append(d...) tkh.SetNestedGroups(val) } { - val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_clients"])) diags.Append(d...) tkh.SetOwnedClients(val) } { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_directories"])) diags.Append(d...) tkh.SetOwnedDirectories(val) } @@ -3289,17 +3289,17 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetOwnedGroupsOnSystem(val) } { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_organizational_units"])) diags.Append(d...) tkh.SetOwnedOrganizationalUnits(val) } { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_systems"])) diags.Append(d...) tkh.SetOwnedSystems(val) } { - val, d := tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAuditLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["recent_audits"])) diags.Append(d...) tkh.SetRecentAudits(val) } @@ -3309,12 +3309,12 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetRequeststatus(val) } { - val, d := tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) diags.Append(d...) tkh.SetServiceAccounts(val) } { - val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) tkh.SetSystems(val) } @@ -3324,7 +3324,7 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetVault(val) } { - val, d := tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["webhooks"])) diags.Append(d...) tkh.SetWebhooks(val) } @@ -5491,12 +5491,12 @@ func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["provgroups"])) diags.Append(d...) tkh.SetProvgroups(val) } { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) diags.Append(d...) tkh.SetServiceAccounts(val) } @@ -5652,7 +5652,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx co tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) tkh.SetSystems(val) } @@ -5938,14 +5938,6 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5954,11 +5946,11 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_a_d"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5978,19 +5970,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6002,6 +5994,14 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -6195,7 +6195,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context. tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["issued_permissions"])) diags.Append(d...) tkh.SetIssuedPermissions(val) } @@ -6645,11 +6645,11 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6661,51 +6661,51 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6717,203 +6717,203 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6925,11 +6925,11 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -7549,7 +7549,7 @@ func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.C tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) tkh.SetGroups(val) } @@ -8097,7 +8097,7 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu tkh.SetShareSummary(val) } { - val, d := tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["shares"])) diags.Append(d...) tkh.SetShares(val) } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index fadf22b..ff32bc8 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -640,7 +640,7 @@ func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse b tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) tkh.SetGroups(val) if val != nil { @@ -1285,7 +1285,7 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex } tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["groupclients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groupclients"])) diags.Append(d...) tkh.SetGroupclients(val) if val != nil { @@ -1293,7 +1293,7 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex } } { - val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) tkh.SetGroups(val) } @@ -1717,35 +1717,35 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -3085,7 +3085,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo var tkh keyhubmodel.GroupGroup_additionalObjectsable tkh = keyhubmodel.NewGroupGroup_additionalObjects() { - val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["accounts"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["accounts"])) diags.Append(d...) tkh.SetAccounts(val) if val != nil { @@ -3093,7 +3093,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["administered_clients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_clients"])) diags.Append(d...) tkh.SetAdministeredClients(val) if val != nil { @@ -3101,12 +3101,12 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["administered_systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_systems"])) diags.Append(d...) tkh.SetAdministeredSystems(val) } { - val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, objAttrs["admins"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["admins"])) diags.Append(d...) tkh.SetAdmins(val) if val != nil { @@ -3127,7 +3127,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["client_permissions"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["client_permissions"])) diags.Append(d...) tkh.SetClientPermissions(val) if val != nil { @@ -3135,7 +3135,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, objAttrs["clients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["clients"])) diags.Append(d...) tkh.SetClients(val) if val != nil { @@ -3143,7 +3143,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["content_administered_systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["content_administered_systems"])) diags.Append(d...) tkh.SetContentAdministeredSystems(val) } @@ -3158,7 +3158,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetGroupinfo(val) } { - val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, objAttrs["helpdesk"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["helpdesk"])) diags.Append(d...) tkh.SetHelpdesk(val) if val != nil { @@ -3181,7 +3181,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetMydelegatedaccount(val) } { - val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, objAttrs["nested_groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["nested_groups"])) diags.Append(d...) tkh.SetNestedGroups(val) if val != nil { @@ -3189,7 +3189,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, objAttrs["owned_clients"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_clients"])) diags.Append(d...) tkh.SetOwnedClients(val) if val != nil { @@ -3197,7 +3197,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, objAttrs["owned_directories"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_directories"])) diags.Append(d...) tkh.SetOwnedDirectories(val) if val != nil { @@ -3213,17 +3213,17 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo } } { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, objAttrs["owned_organizational_units"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_organizational_units"])) diags.Append(d...) tkh.SetOwnedOrganizationalUnits(val) } { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, objAttrs["owned_systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_systems"])) diags.Append(d...) tkh.SetOwnedSystems(val) } { - val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, objAttrs["recent_audits"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["recent_audits"])) diags.Append(d...) tkh.SetRecentAudits(val) if val != nil { @@ -3236,12 +3236,12 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetRequeststatus(val) } { - val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) diags.Append(d...) tkh.SetServiceAccounts(val) } { - val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) tkh.SetSystems(val) if val != nil { @@ -3254,7 +3254,7 @@ func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bo tkh.SetVault(val) } { - val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, objAttrs["webhooks"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["webhooks"])) diags.Append(d...) tkh.SetWebhooks(val) } @@ -4939,7 +4939,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, objAttrs["create_as_parent_of"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["create_as_parent_of"])) diags.Append(d...) tkh.SetCreateAsParentOf(val) if val != nil { @@ -5222,7 +5222,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, objAttrs["provgroups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["provgroups"])) diags.Append(d...) tkh.SetProvgroups(val) if val != nil { @@ -5230,7 +5230,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Cont } } { - val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, objAttrs["service_accounts"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) diags.Append(d...) tkh.SetServiceAccounts(val) if val != nil { @@ -5389,7 +5389,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx co tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, objAttrs["systems"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) tkh.SetSystems(val) if val != nil { @@ -5656,14 +5656,6 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } if !objAttrs["abstract_provisioned_ldap"].IsNull() { val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) @@ -5672,11 +5664,11 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_a_d"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5696,19 +5688,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5720,6 +5712,14 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } if recurse { { val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) @@ -5913,7 +5913,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context. tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, objAttrs["issued_permissions"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["issued_permissions"])) diags.Append(d...) tkh.SetIssuedPermissions(val) if val != nil { @@ -6366,11 +6366,11 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_application_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6382,51 +6382,51 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6438,203 +6438,203 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6646,11 +6646,11 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -7279,7 +7279,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.C tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, objAttrs["groups"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) tkh.SetGroups(val) if val != nil { @@ -7832,7 +7832,7 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu tkh.SetShareSummary(val) } { - val, d := tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, objAttrs["shares"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["shares"])) diags.Append(d...) tkh.SetShares(val) if val != nil { diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 9af726c..cbe0fa8 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -714,7 +714,7 @@ func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel. { val, d := tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groups"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { val, d := tkhToTFObjectDSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) @@ -1519,12 +1519,12 @@ func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh { val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) diags.Append(d...) - obj["groupclients"] = val + obj["groupclients"] = getItemsAttr(val, attrs["groupclients"]) } { val, d := tkhToTFObjectDSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groups"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) @@ -2018,16 +2018,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) - val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["l_d_a_p_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -2036,10 +2030,16 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["o_id_c_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["l_d_a_p_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3671,22 +3671,22 @@ func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) diags.Append(d...) - obj["accounts"] = val + obj["accounts"] = getItemsAttr(val, attrs["accounts"]) } { val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) - obj["administered_clients"] = val + obj["administered_clients"] = getItemsAttr(val, attrs["administered_clients"]) } { val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) - obj["administered_systems"] = val + obj["administered_systems"] = getItemsAttr(val, attrs["administered_systems"]) } { val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) diags.Append(d...) - obj["admins"] = val + obj["admins"] = getItemsAttr(val, attrs["admins"]) } { val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) @@ -3701,17 +3701,17 @@ func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) diags.Append(d...) - obj["client_permissions"] = val + obj["client_permissions"] = getItemsAttr(val, attrs["client_permissions"]) } { val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) diags.Append(d...) - obj["clients"] = val + obj["clients"] = getItemsAttr(val, attrs["clients"]) } { val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) diags.Append(d...) - obj["content_administered_systems"] = val + obj["content_administered_systems"] = getItemsAttr(val, attrs["content_administered_systems"]) } { val, d := tkhToTFObjectDSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) @@ -3726,7 +3726,7 @@ func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) diags.Append(d...) - obj["helpdesk"] = val + obj["helpdesk"] = getItemsAttr(val, attrs["helpdesk"]) } { val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) @@ -3746,17 +3746,17 @@ func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) diags.Append(d...) - obj["nested_groups"] = val + obj["nested_groups"] = getItemsAttr(val, attrs["nested_groups"]) } { val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) diags.Append(d...) - obj["owned_clients"] = val + obj["owned_clients"] = getItemsAttr(val, attrs["owned_clients"]) } { val, d := tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) diags.Append(d...) - obj["owned_directories"] = val + obj["owned_directories"] = getItemsAttr(val, attrs["owned_directories"]) } { val, d := tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) @@ -3766,28 +3766,28 @@ func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) diags.Append(d...) - obj["owned_organizational_units"] = val + obj["owned_organizational_units"] = getItemsAttr(val, attrs["owned_organizational_units"]) } { val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) diags.Append(d...) - obj["owned_systems"] = val + obj["owned_systems"] = getItemsAttr(val, attrs["owned_systems"]) } { val, d := tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) diags.Append(d...) - obj["recent_audits"] = val + obj["recent_audits"] = getItemsAttr(val, attrs["recent_audits"]) } obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) { val, d := tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) - obj["service_accounts"] = val + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) } { val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) - obj["systems"] = val + obj["systems"] = getItemsAttr(val, attrs["systems"]) } { val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) @@ -3797,7 +3797,7 @@ func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) diags.Append(d...) - obj["webhooks"] = val + obj["webhooks"] = getItemsAttr(val, attrs["webhooks"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -6315,12 +6315,12 @@ func tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(recurse bool, tk { val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) diags.Append(d...) - obj["provgroups"] = val + obj["provgroups"] = getItemsAttr(val, attrs["provgroups"]) } { val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) - obj["service_accounts"] = val + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -6521,7 +6521,7 @@ func tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(recurs { val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) - obj["systems"] = val + obj["systems"] = getItemsAttr(val, attrs["systems"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -6877,12 +6877,6 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator"] = val } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6890,10 +6884,10 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) - val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_a_d"] = val + obj["provisioned_ldap"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) @@ -6908,16 +6902,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_azure_sync_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_a_d"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) @@ -6925,6 +6919,12 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_ldap_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -7167,7 +7167,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool { val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - obj["issued_permissions"] = val + obj["issued_permissions"] = getItemsAttr(val, attrs["issued_permissions"]) } obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { @@ -7809,10 +7809,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["abstract_application_modification_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) @@ -7820,36 +7820,12 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["abstract_provisioned_system_modification_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) - diags.Append(d...) - obj["create_service_account_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) - diags.Append(d...) - obj["review_audit_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) - diags.Append(d...) - obj["setup_nested_group_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) obj["remove_provisioned_system_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_application_modification_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) @@ -7857,40 +7833,46 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["remove_organizational_unit_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + diags.Append(d...) + obj["create_group_on_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) @@ -7899,40 +7881,40 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["join_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) @@ -7940,6 +7922,12 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["transfer_group_on_system_ownership_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + diags.Append(d...) + obj["remove_group_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) @@ -7947,70 +7935,82 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["transfer_service_account_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + diags.Append(d...) + obj["grant_service_account_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) @@ -8019,10 +8019,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["extend_access_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) @@ -8847,7 +8847,7 @@ func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, { val, d := tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groups"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) @@ -9549,7 +9549,7 @@ func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm { val, d := tkhToTFObjectDSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) diags.Append(d...) - obj["shares"] = val + obj["shares"] = getItemsAttr(val, attrs["shares"]) } { val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 031339e..900a096 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -703,7 +703,7 @@ func tkhToTFObjectRSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel. { val, d := tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groups"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { val, d := tkhToTFObjectRSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) @@ -1435,12 +1435,12 @@ func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh { val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) diags.Append(d...) - obj["groupclients"] = val + obj["groupclients"] = getItemsAttr(val, attrs["groupclients"]) } { val, d := tkhToTFObjectRSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groups"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) @@ -1894,16 +1894,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) - val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["l_d_a_p_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1912,10 +1906,16 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["o_id_c_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["l_d_a_p_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -3424,22 +3424,22 @@ func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) diags.Append(d...) - obj["accounts"] = val + obj["accounts"] = getItemsAttr(val, attrs["accounts"]) } { val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) - obj["administered_clients"] = val + obj["administered_clients"] = getItemsAttr(val, attrs["administered_clients"]) } { val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) - obj["administered_systems"] = val + obj["administered_systems"] = getItemsAttr(val, attrs["administered_systems"]) } { val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) diags.Append(d...) - obj["admins"] = val + obj["admins"] = getItemsAttr(val, attrs["admins"]) } { val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) @@ -3454,17 +3454,17 @@ func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) diags.Append(d...) - obj["client_permissions"] = val + obj["client_permissions"] = getItemsAttr(val, attrs["client_permissions"]) } { val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) diags.Append(d...) - obj["clients"] = val + obj["clients"] = getItemsAttr(val, attrs["clients"]) } { val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) diags.Append(d...) - obj["content_administered_systems"] = val + obj["content_administered_systems"] = getItemsAttr(val, attrs["content_administered_systems"]) } { val, d := tkhToTFObjectRSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) @@ -3479,7 +3479,7 @@ func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) diags.Append(d...) - obj["helpdesk"] = val + obj["helpdesk"] = getItemsAttr(val, attrs["helpdesk"]) } { val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) @@ -3499,17 +3499,17 @@ func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) diags.Append(d...) - obj["nested_groups"] = val + obj["nested_groups"] = getItemsAttr(val, attrs["nested_groups"]) } { val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) diags.Append(d...) - obj["owned_clients"] = val + obj["owned_clients"] = getItemsAttr(val, attrs["owned_clients"]) } { val, d := tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) diags.Append(d...) - obj["owned_directories"] = val + obj["owned_directories"] = getItemsAttr(val, attrs["owned_directories"]) } { val, d := tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) @@ -3519,28 +3519,28 @@ func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) diags.Append(d...) - obj["owned_organizational_units"] = val + obj["owned_organizational_units"] = getItemsAttr(val, attrs["owned_organizational_units"]) } { val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) diags.Append(d...) - obj["owned_systems"] = val + obj["owned_systems"] = getItemsAttr(val, attrs["owned_systems"]) } { val, d := tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) diags.Append(d...) - obj["recent_audits"] = val + obj["recent_audits"] = getItemsAttr(val, attrs["recent_audits"]) } obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) { val, d := tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) - obj["service_accounts"] = val + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) } { val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) - obj["systems"] = val + obj["systems"] = getItemsAttr(val, attrs["systems"]) } { val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) @@ -3550,7 +3550,7 @@ func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.G { val, d := tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) diags.Append(d...) - obj["webhooks"] = val + obj["webhooks"] = getItemsAttr(val, attrs["webhooks"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -5434,7 +5434,7 @@ func tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(recurse boo { val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) diags.Append(d...) - obj["create_as_parent_of"] = val + obj["create_as_parent_of"] = getItemsAttr(val, attrs["create_as_parent_of"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -5750,12 +5750,12 @@ func tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(recurse bool, tk { val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) diags.Append(d...) - obj["provgroups"] = val + obj["provgroups"] = getItemsAttr(val, attrs["provgroups"]) } { val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) - obj["service_accounts"] = val + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -5955,7 +5955,7 @@ func tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(recurs { val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) diags.Append(d...) - obj["systems"] = val + obj["systems"] = getItemsAttr(val, attrs["systems"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -6257,12 +6257,6 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) @@ -6270,10 +6264,10 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) - val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_a_d"] = val + obj["provisioned_ldap"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) @@ -6288,16 +6282,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_azure_sync_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_a_d"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) @@ -6305,6 +6299,12 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_ldap_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6540,7 +6540,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool { val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - obj["issued_permissions"] = val + obj["issued_permissions"] = getItemsAttr(val, attrs["issued_permissions"]) } obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { @@ -7149,10 +7149,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["abstract_application_modification_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) @@ -7160,36 +7160,12 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["abstract_provisioned_system_modification_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) - diags.Append(d...) - obj["create_service_account_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) - diags.Append(d...) - obj["review_audit_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) - diags.Append(d...) - obj["setup_nested_group_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) obj["remove_provisioned_system_request"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_application_modification_request"] = val - } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) @@ -7197,40 +7173,46 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["verify_internal_account_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["grant_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["join_group_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["remove_organizational_unit_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + diags.Append(d...) + obj["create_group_on_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) @@ -7239,40 +7221,40 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) + val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["join_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) @@ -7280,6 +7262,12 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["transfer_group_on_system_ownership_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + diags.Append(d...) + obj["remove_group_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) @@ -7287,70 +7275,82 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["update_group_membership_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["create_service_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["transfer_service_account_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + diags.Append(d...) + obj["password_reset_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + diags.Append(d...) + obj["grant_service_account_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) @@ -7359,10 +7359,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["extend_access_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) @@ -8155,7 +8155,7 @@ func tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(recurse bool, { val, d := tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["groups"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) @@ -8839,7 +8839,7 @@ func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm { val, d := tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse, tkh.GetShares()) diags.Append(d...) - obj["shares"] = val + obj["shares"] = getItemsAttr(val, attrs["shares"]) } { val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse, tkh.GetTile()) From 96303feaa0c80cba8fae4bb9428f4c7cbeadf14b Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Wed, 18 Oct 2023 11:19:56 +0200 Subject: [PATCH 21/34] Flatten additional_objects --- docs/data-sources/account.md | 248 +- docs/data-sources/certificate.md | 14 +- docs/data-sources/client.md | 307 +- docs/data-sources/directory.md | 82 +- docs/data-sources/group.md | 3178 ++++++++--------- docs/data-sources/groupclassification.md | 20 +- docs/data-sources/organizationalunit.md | 14 +- docs/data-sources/serviceaccount.md | 54 +- docs/data-sources/system.md | 298 +- docs/data-sources/vaultrecord.md | 136 +- docs/data-sources/webhook.md | 14 +- docs/resources/client_vaultrecord.md | 107 +- docs/resources/clientapplication.md | 225 +- docs/resources/group.md | 934 +++-- docs/resources/group_vaultrecord.md | 107 +- docs/resources/grouponsystem.md | 55 +- docs/resources/serviceaccount.md | 41 +- .../provider-install-verification/main.tf | 16 +- go.mod | 2 +- internal/provider/full-data-struct-ds.go | 593 +-- internal/provider/full-data-struct-rs.go | 515 +-- internal/provider/full-helpers.go | 16 +- internal/provider/full-object-attrs-ds.go | 269 +- internal/provider/full-object-attrs-rs.go | 261 +- internal/provider/full-schema-ds.go | 557 +-- internal/provider/full-schema-rs.go | 541 +-- .../provider/full-tf-to-data-struct-ds.go | 269 +- .../provider/full-tf-to-data-struct-rs.go | 261 +- internal/provider/full-tf-to-tkh-ds.go | 352 +- internal/provider/full-tf-to-tkh-rs.go | 348 +- internal/provider/full-tkh-to-tf-ds.go | 350 +- internal/provider/full-tkh-to-tf-rs.go | 346 +- internal/provider/provider.go | 19 + .../provider/resource-client_vaultrecord.go | 6 +- .../provider/resource-clientapplication.go | 4 +- internal/provider/resource-group.go | 4 +- .../provider/resource-group_vaultrecord.go | 6 +- internal/provider/resource-grouponsystem.go | 4 +- internal/provider/resource-serviceaccount.go | 6 +- 39 files changed, 5253 insertions(+), 5326 deletions(-) diff --git a/docs/data-sources/account.md b/docs/data-sources/account.md index dbcbe45..b534285 100644 --- a/docs/data-sources/account.md +++ b/docs/data-sources/account.md @@ -27,7 +27,8 @@ description: |- - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--account_permissions)) - `active` (Boolean) -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `active_login` (Boolean) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `can_request_groups` (Boolean) - `directory` (Attributes) (see [below for nested schema](#nestedatt--directory)) - `directory_name` (String) @@ -36,6 +37,7 @@ description: |- - `directory_type` (String) - `display_name` (String) - `email` (String) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `id_in_directory` (String) - `key_hub_password_change_required` (Boolean) - `last_active` (String) @@ -43,13 +45,17 @@ description: |- - `license_role` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `locale` (String) +- `pending_recovery_requests` (Attributes) (see [below for nested schema](#nestedatt--pending_recovery_requests)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `reregistration_required` (Boolean) +- `settings` (Attributes) (see [below for nested schema](#nestedatt--settings)) +- `stored_attributes` (Attributes) (see [below for nested schema](#nestedatt--stored_attributes)) - `token_password_enabled` (Boolean) - `two_factor_status` (String) - `username` (String) - `valid_in_directory` (Boolean) - `validity` (String) +- `vault` (Attributes) (see [below for nested schema](#nestedatt--vault)) ### Nested Schema for `account_permissions` @@ -62,21 +68,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `active_login` (Boolean) -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) -- `pending_recovery_requests` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--pending_recovery_requests)) -- `settings` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--settings)) -- `stored_attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--stored_attributes)) -- `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -86,8 +79,44 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.groups` + +### Nested Schema for `directory` + +Read-Only: + +- `account_validity_supported` (Boolean) +- `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--directory--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--directory--permissions)) +- `type` (String) +- `uuid` (String) + + +### Nested Schema for `directory.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `directory.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `groups` Optional: @@ -97,18 +126,18 @@ Read-Only: - `admin` (Boolean) - `end_date` (String) -- `folder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--folder)) +- `folder` (Attributes) (see [below for nested schema](#nestedatt--groups--folder)) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `uuid` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.groups.folder` + +### Nested Schema for `groups.folder` Optional: @@ -116,12 +145,12 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--folder--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--folder--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--folder--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--folder--permissions)) - -### Nested Schema for `additional_objects.groups.folder.permissions` + +### Nested Schema for `groups.folder.links` Read-Only: @@ -131,8 +160,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.folder.permissions` + +### Nested Schema for `groups.folder.permissions` Read-Only: @@ -143,8 +172,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.links` + +### Nested Schema for `groups.links` Read-Only: @@ -154,8 +183,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.permissions` + +### Nested Schema for `groups.permissions` Read-Only: @@ -166,8 +195,19 @@ Read-Only: - -### Nested Schema for `additional_objects.pending_recovery_requests` + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `pending_recovery_requests` Read-Only: @@ -175,12 +215,23 @@ Read-Only: - `pending_password_recovery_request` (Boolean) - -### Nested Schema for `additional_objects.settings` + +### Nested Schema for `permissions` Read-Only: -- `default_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--settings--default_organizational_unit)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `settings` + +Read-Only: + +- `default_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--settings--default_organizational_unit)) - `directory_name` (String) - `directory_type` (String) - `in_groups` (Boolean) @@ -193,18 +244,18 @@ Read-Only: - `use_token_password` (Boolean) - `vault_status` (String) - -### Nested Schema for `additional_objects.settings.default_organizational_unit` + +### Nested Schema for `settings.default_organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--settings--default_organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--settings--default_organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--settings--default_organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--settings--default_organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.settings.default_organizational_unit.uuid` + +### Nested Schema for `settings.default_organizational_unit.links` Read-Only: @@ -214,8 +265,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.settings.default_organizational_unit.uuid` + +### Nested Schema for `settings.default_organizational_unit.permissions` Read-Only: @@ -227,15 +278,15 @@ Read-Only: - -### Nested Schema for `additional_objects.stored_attributes` + +### Nested Schema for `stored_attributes` Read-Only: -- `attributes` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--stored_attributes--attributes)) +- `attributes` (Attributes List) (see [below for nested schema](#nestedatt--stored_attributes--attributes)) - -### Nested Schema for `additional_objects.stored_attributes.attributes` + +### Nested Schema for `stored_attributes.attributes` Read-Only: @@ -244,19 +295,19 @@ Read-Only: - -### Nested Schema for `additional_objects.vault` + +### Nested Schema for `vault` Read-Only: - `access_available` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) -- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--vault--records)) - -### Nested Schema for `additional_objects.vault.links` + +### Nested Schema for `vault.links` Read-Only: @@ -266,8 +317,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.permissions` + +### Nested Schema for `vault.permissions` Read-Only: @@ -277,8 +328,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.records` + +### Nested Schema for `vault.records` Optional: @@ -290,9 +341,9 @@ Read-Only: - `derived` (Boolean) - `end_date` (String) - `filename` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--permissions)) - `share_end_time` (String) - `types` (List of String) - `url` (String) @@ -300,46 +351,8 @@ Read-Only: - `uuid` (String) - `warning_period` (String) - -### Nested Schema for `additional_objects.vault.records.warning_period` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.vault.records.warning_period` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - - - -### Nested Schema for `directory` - -Read-Only: - -- `account_validity_supported` (Boolean) -- `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--directory--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--directory--permissions)) -- `type` (String) -- `uuid` (String) - - -### Nested Schema for `directory.links` + +### Nested Schema for `vault.records.links` Read-Only: @@ -349,31 +362,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `directory.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` + +### Nested Schema for `vault.records.permissions` Read-Only: diff --git a/docs/data-sources/certificate.md b/docs/data-sources/certificate.md index 9a935b1..cb7334c 100644 --- a/docs/data-sources/certificate.md +++ b/docs/data-sources/certificate.md @@ -25,8 +25,8 @@ description: |- ### Read-Only -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `alias` (String) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `certificate_data` (List of String) - `expiration` (String) - `fingerprint_sha1` (String) @@ -38,15 +38,8 @@ description: |- - `subject_dn` (String) - `type` (String) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -56,7 +49,6 @@ Read-Only: - `last_modified_by` (String) - ### Nested Schema for `links` diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index a9e522f..e84bace 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -25,8 +25,10 @@ description: |- ### Read-Only -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `client_id` (String) +- `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--groupclients)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `last_modified_at` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) @@ -36,24 +38,15 @@ description: |- - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--saml2_client)) - `scopes` (List of String) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `sso_application` (Boolean) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `type` (String) - - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) -- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - `vault_record_count` (Number) - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -63,8 +56,8 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.groupclients` + +### Nested Schema for `groupclients` Optional: @@ -73,29 +66,29 @@ Optional: Read-Only: - `activation_required` (Boolean) -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--client)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--links)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--permissions)) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupclients--technical_administrator)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--groupclients--client)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--groupclients--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--links)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--groupclients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--permissions)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--groupclients--technical_administrator)) - -### Nested Schema for `additional_objects.groupclients.client` + +### Nested Schema for `groupclients.client` Read-Only: - `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--client--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--client--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--client--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.client.uuid` + +### Nested Schema for `groupclients.client.links` Read-Only: @@ -105,8 +98,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.client.uuid` + +### Nested Schema for `groupclients.client.permissions` Read-Only: @@ -117,19 +110,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groupclients.group` + +### Nested Schema for `groupclients.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.group.uuid` + +### Nested Schema for `groupclients.group.links` Read-Only: @@ -139,8 +132,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.group.uuid` + +### Nested Schema for `groupclients.group.permissions` Read-Only: @@ -151,8 +144,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groupclients.links` + +### Nested Schema for `groupclients.links` Read-Only: @@ -162,19 +155,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.owner` + +### Nested Schema for `groupclients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.owner.uuid` + +### Nested Schema for `groupclients.owner.links` Read-Only: @@ -184,8 +177,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.owner.uuid` + +### Nested Schema for `groupclients.owner.permissions` Read-Only: @@ -196,8 +189,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groupclients.permissions` + +### Nested Schema for `groupclients.permissions` Read-Only: @@ -207,19 +200,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.technical_administrator` + +### Nested Schema for `groupclients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groupclients.technical_administrator.uuid` + +### Nested Schema for `groupclients.technical_administrator.links` Read-Only: @@ -229,8 +222,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.technical_administrator.uuid` + +### Nested Schema for `groupclients.technical_administrator.permissions` Read-Only: @@ -242,8 +235,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups` + +### Nested Schema for `groups` Optional: @@ -253,23 +246,23 @@ Read-Only: - `admin` (Boolean) - `application_administration` (Boolean) -- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config)) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--groups--audit_config)) - `audit_requested` (Boolean) - `auditor` (Boolean) -- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_auditing)) -- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_delegation)) -- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_membership)) -- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_provisioning)) +- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--groups--authorizing_group_auditing)) +- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--groups--authorizing_group_delegation)) +- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--groups--authorizing_group_membership)) +- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--groups--authorizing_group_provisioning)) - `authorizing_group_types` (List of String) -- `classification` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--classification)) +- `classification` (Attributes) (see [below for nested schema](#nestedatt--groups--classification)) - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `name` (String) -- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--nested_under)) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) +- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--groups--nested_under)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--groups--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -278,17 +271,17 @@ Read-Only: - `vault_recovery` (String) - `vault_requires_activation` (Boolean) - -### Nested Schema for `additional_objects.groups.audit_config` + +### Nested Schema for `groups.audit_config` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--links)) - `months` (List of String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--permissions)) - -### Nested Schema for `additional_objects.groups.audit_config.permissions` + +### Nested Schema for `groups.audit_config.links` Read-Only: @@ -298,8 +291,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.audit_config.permissions` + +### Nested Schema for `groups.audit_config.permissions` Read-Only: @@ -310,19 +303,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.authorizing_group_auditing` + +### Nested Schema for `groups.authorizing_group_auditing` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_auditing--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_auditing--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_auditing--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_auditing--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_auditing.uuid` + +### Nested Schema for `groups.authorizing_group_auditing.links` Read-Only: @@ -332,8 +325,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_auditing.uuid` + +### Nested Schema for `groups.authorizing_group_auditing.permissions` Read-Only: @@ -344,19 +337,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.authorizing_group_delegation` + +### Nested Schema for `groups.authorizing_group_delegation` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_delegation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_delegation--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_delegation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_delegation--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_delegation.uuid` + +### Nested Schema for `groups.authorizing_group_delegation.links` Read-Only: @@ -366,8 +359,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_delegation.uuid` + +### Nested Schema for `groups.authorizing_group_delegation.permissions` Read-Only: @@ -378,19 +371,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.authorizing_group_membership` + +### Nested Schema for `groups.authorizing_group_membership` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_membership--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_membership--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_membership--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_membership--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_membership.uuid` + +### Nested Schema for `groups.authorizing_group_membership.links` Read-Only: @@ -400,8 +393,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_membership.uuid` + +### Nested Schema for `groups.authorizing_group_membership.permissions` Read-Only: @@ -412,19 +405,19 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.authorizing_group_provisioning` + +### Nested Schema for `groups.authorizing_group_provisioning` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--authorizing_group_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--authorizing_group_provisioning--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_provisioning.uuid` + +### Nested Schema for `groups.authorizing_group_provisioning.links` Read-Only: @@ -434,8 +427,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.authorizing_group_provisioning.uuid` + +### Nested Schema for `groups.authorizing_group_provisioning.permissions` Read-Only: @@ -446,18 +439,18 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.classification` + +### Nested Schema for `groups.classification` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--classification--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--classification--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--classification--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--classification--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.classification.uuid` + +### Nested Schema for `groups.classification.links` Read-Only: @@ -467,8 +460,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.classification.uuid` + +### Nested Schema for `groups.classification.permissions` Read-Only: @@ -479,8 +472,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.links` + +### Nested Schema for `groups.links` Read-Only: @@ -490,19 +483,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.nested_under` + +### Nested Schema for `groups.nested_under` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--nested_under--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--nested_under--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--nested_under--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--nested_under--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.nested_under.uuid` + +### Nested Schema for `groups.nested_under.links` Read-Only: @@ -512,8 +505,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.nested_under.uuid` + +### Nested Schema for `groups.nested_under.permissions` Read-Only: @@ -524,18 +517,18 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.organizational_unit` + +### Nested Schema for `groups.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.organizational_unit.uuid` + +### Nested Schema for `groups.organizational_unit.links` Read-Only: @@ -545,8 +538,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.organizational_unit.uuid` + +### Nested Schema for `groups.organizational_unit.permissions` Read-Only: @@ -557,8 +550,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groups.permissions` + +### Nested Schema for `groups.permissions` Read-Only: @@ -569,25 +562,6 @@ Read-Only: - -### Nested Schema for `additional_objects.secret` - -Read-Only: - -- `generated_secret` (String) -- `old_secret` (String) -- `regenerate` (Boolean) - - - -### Nested Schema for `additional_objects.tile` - -Read-Only: - -- `uri` (String) - - - ### Nested Schema for `ldap_client` @@ -815,6 +789,16 @@ Read-Only: + +### Nested Schema for `secret` + +Read-Only: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + ### Nested Schema for `technical_administrator` @@ -846,3 +830,12 @@ Read-Only: - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) + + + + +### Nested Schema for `tile` + +Read-Only: + +- `uri` (String) diff --git a/docs/data-sources/directory.md b/docs/data-sources/directory.md index c744f0a..f2953e3 100644 --- a/docs/data-sources/directory.md +++ b/docs/data-sources/directory.md @@ -27,7 +27,7 @@ description: |- - `account_validity_supported` (Boolean) - `active` (Boolean) -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--base_organizational_unit)) - `default_directory` (Boolean) - `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--helpdesk_group)) @@ -35,25 +35,18 @@ description: |- - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--l_d_a_p_directory)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--maintenance_directory)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) - `name` (String) - `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--o_id_c_directory)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `restrict2fa` (Boolean) - `rotating_password` (String) +- `status` (Attributes) (see [below for nested schema](#nestedatt--status)) - `type` (String) - `username_customizable` (Boolean) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) -- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--status)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -63,39 +56,6 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.markers` - -Read-Only: - -- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) - - -### Nested Schema for `additional_objects.markers.markers` - -Read-Only: - -- `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) -- `type` (String) - - -### Nested Schema for `additional_objects.markers.markers.type` - - - - - -### Nested Schema for `additional_objects.status` - -Read-Only: - -- `accounts` (Number) -- `reason` (String) -- `status` (String) - - - ### Nested Schema for `base_organizational_unit` @@ -361,6 +321,28 @@ Read-Only: ### Nested Schema for `maintenance_directory` + +### Nested Schema for `markers` + +Read-Only: + +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--markers--markers)) + + +### Nested Schema for `markers.markers` + +Read-Only: + +- `level` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) +- `type` (String) + + +### Nested Schema for `markers.markers.parameters` + + + + ### Nested Schema for `o_id_c_directory` @@ -388,3 +370,13 @@ Read-Only: - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) + + + +### Nested Schema for `status` + +Read-Only: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 9939caf..69ff6ae 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -25,68 +25,61 @@ description: |- ### Read-Only -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--accounts)) - `admin` (Boolean) +- `administered_clients` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients)) +- `administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems)) +- `admins` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--admins)) - `application_administration` (Boolean) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `audit_config` (Attributes) (see [below for nested schema](#nestedatt--audit_config)) - `audit_requested` (Boolean) - `auditor` (Boolean) +- `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups)) - `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_auditing)) - `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_delegation)) - `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_membership)) - `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--authorizing_group_provisioning)) - `authorizing_group_types` (List of String) - `classification` (Attributes) (see [below for nested schema](#nestedatt--classification)) +- `client_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions)) +- `clients` (Attributes List) (see [below for nested schema](#nestedatt--clients)) +- `content_administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems)) - `description` (String) - `extended_access` (String) +- `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--groupauditinginfo)) +- `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--groupinfo)) +- `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk)) - `hide_audit_trail` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) +- `myaccount` (Attributes) (see [below for nested schema](#nestedatt--myaccount)) +- `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--mydelegatedaccount)) - `name` (String) +- `nested_groups` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups)) - `nested_under` (Attributes) (see [below for nested schema](#nestedatt--nested_under)) - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--organizational_unit)) +- `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients)) +- `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories)) +- `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system)) +- `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units)) +- `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `private_group` (Boolean) +- `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits)) - `record_trail` (Boolean) +- `requeststatus` (String) - `rotating_password_required` (Boolean) +- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) - `single_managed` (Boolean) +- `systems` (Attributes List) (see [below for nested schema](#nestedatt--systems)) +- `vault` (Attributes) (see [below for nested schema](#nestedatt--vault)) - `vault_recovery` (String) - `vault_requires_activation` (Boolean) +- `webhooks` (Attributes List) (see [below for nested schema](#nestedatt--webhooks)) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts)) -- `administered_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) -- `administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) -- `admins` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups)) -- `client_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) -- `clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients)) -- `content_administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) -- `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupauditinginfo)) -- `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupinfo)) -- `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) -- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) -- `myaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount)) -- `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount)) -- `nested_groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups)) -- `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) -- `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) -- `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system)) -- `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) -- `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) -- `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) -- `requeststatus` (String) -- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) -- `systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems)) -- `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) -- `webhooks` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) - - -### Nested Schema for `additional_objects.accounts` + +### Nested Schema for `accounts` Optional: @@ -94,15 +87,15 @@ Optional: Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--accounts--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--accounts--directory)) - `disconnected_nested` (Boolean) - `display_name` (String) - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--accounts--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `two_factor_status` (String) @@ -111,21 +104,21 @@ Read-Only: - `validity` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.accounts.directory` + +### Nested Schema for `accounts.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--accounts--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--accounts--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.accounts.directory.uuid` + +### Nested Schema for `accounts.directory.links` Read-Only: @@ -135,8 +128,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.accounts.directory.uuid` + +### Nested Schema for `accounts.directory.permissions` Read-Only: @@ -147,8 +140,8 @@ Read-Only: - -### Nested Schema for `additional_objects.accounts.links` + +### Nested Schema for `accounts.links` Read-Only: @@ -158,8 +151,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.accounts.permissions` + +### Nested Schema for `accounts.permissions` Read-Only: @@ -170,8 +163,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients` + +### Nested Schema for `administered_clients` Optional: @@ -181,32 +174,32 @@ Read-Only: - `client_id` (String) - `last_modified_at` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--links)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--links)) - `name` (String) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--permissions)) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client)) - `scopes` (List of String) - `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--technical_administrator)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.ldap_client` + +### Nested Schema for `administered_clients.ldap_client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--ldap_client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--ldap_client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning` + +### Nested Schema for `administered_clients.ldap_client.client_certificate` Read-Only: @@ -216,14 +209,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--ldap_client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--ldap_client--client_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.links` + +### Nested Schema for `administered_clients.ldap_client.client_certificate.uuid` Read-Only: @@ -233,8 +226,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.permissions` + +### Nested Schema for `administered_clients.ldap_client.client_certificate.uuid` Read-Only: @@ -245,20 +238,20 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning` + +### Nested Schema for `administered_clients.ldap_client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--ldap_client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client--used_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--ldap_client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.links` + +### Nested Schema for `administered_clients.ldap_client.shared_secret.uuid` Read-Only: @@ -268,8 +261,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.ldap_client.used_for_provisioning.permissions` + +### Nested Schema for `administered_clients.ldap_client.shared_secret.uuid` Read-Only: @@ -281,8 +274,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.links` + +### Nested Schema for `administered_clients.links` Read-Only: @@ -292,13 +285,13 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client` + +### Nested Schema for `administered_clients.o_auth2_client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -306,12 +299,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials` + +### Nested Schema for `administered_clients.o_auth2_client.account_permissions` Read-Only: @@ -321,24 +314,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials` + +### Nested Schema for `administered_clients.o_auth2_client.attributes` - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials` + +### Nested Schema for `administered_clients.o_auth2_client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--use_client_credentials--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--use_client_credentials--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials.links` + +### Nested Schema for `administered_clients.o_auth2_client.shared_secret.uuid` Read-Only: @@ -348,8 +341,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.use_client_credentials.permissions` + +### Nested Schema for `administered_clients.o_auth2_client.shared_secret.uuid` Read-Only: @@ -361,19 +354,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.owner` + +### Nested Schema for `administered_clients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.owner.uuid` + +### Nested Schema for `administered_clients.owner.links` Read-Only: @@ -383,8 +376,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.owner.uuid` + +### Nested Schema for `administered_clients.owner.permissions` Read-Only: @@ -395,8 +388,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_clients.permissions` + +### Nested Schema for `administered_clients.permissions` Read-Only: @@ -406,34 +399,34 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.saml2_client` + +### Nested Schema for `administered_clients.saml2_client` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `additional_objects.administered_clients.saml2_client.subject_format` + +### Nested Schema for `administered_clients.saml2_client.attributes` - -### Nested Schema for `additional_objects.administered_clients.technical_administrator` + +### Nested Schema for `administered_clients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.technical_administrator.uuid` + +### Nested Schema for `administered_clients.technical_administrator.links` Read-Only: @@ -443,8 +436,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.technical_administrator.uuid` + +### Nested Schema for `administered_clients.technical_administrator.permissions` Read-Only: @@ -456,8 +449,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems` + +### Nested Schema for `administered_systems` Optional: @@ -465,44 +458,44 @@ Optional: Read-Only: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--content_administrator)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--content_administrator)) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--permissions)) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--technical_administrator)) - `type` (String) - `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--attributes)) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--client_certificate)) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--failover_trusted_certificate)) - `group_dn` (String) - `host` (String) - `object_classes` (String) @@ -510,15 +503,15 @@ Read-Only: - `service_account_dn` (String) - `ssh_public_key_supported` (Boolean) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.attributes` - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.client_certificate` Read-Only: @@ -528,14 +521,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--client_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.client_certificate.uuid` Read-Only: @@ -545,8 +538,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.client_certificate.uuid` Read-Only: @@ -557,8 +550,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.failover_trusted_certificate` Read-Only: @@ -568,14 +561,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--failover_trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.failover_trusted_certificate.uuid` Read-Only: @@ -585,8 +578,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.failover_trusted_certificate.uuid` Read-Only: @@ -597,8 +590,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.trusted_certificate` Read-Only: @@ -608,14 +601,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.trusted_certificate.uuid` Read-Only: @@ -625,8 +618,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.trusted_certificate.uuid` Read-Only: @@ -638,19 +631,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.content_administrator` + +### Nested Schema for `administered_systems.content_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--content_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--content_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--content_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--content_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.content_administrator.uuid` + +### Nested Schema for `administered_systems.content_administrator.links` Read-Only: @@ -660,8 +653,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.content_administrator.uuid` + +### Nested Schema for `administered_systems.content_administrator.permissions` Read-Only: @@ -672,8 +665,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.links` + +### Nested Schema for `administered_systems.links` Read-Only: @@ -683,18 +676,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.organizational_unit` + +### Nested Schema for `administered_systems.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.organizational_unit.uuid` + +### Nested Schema for `administered_systems.organizational_unit.links` Read-Only: @@ -704,8 +697,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.organizational_unit.uuid` + +### Nested Schema for `administered_systems.organizational_unit.permissions` Read-Only: @@ -716,19 +709,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.owner` + +### Nested Schema for `administered_systems.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.owner.uuid` + +### Nested Schema for `administered_systems.owner.links` Read-Only: @@ -738,8 +731,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.owner.uuid` + +### Nested Schema for `administered_systems.owner.permissions` Read-Only: @@ -750,8 +743,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.permissions` + +### Nested Schema for `administered_systems.permissions` Read-Only: @@ -761,37 +754,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_a_d` + +### Nested Schema for `administered_systems.provisioned_a_d` Read-Only: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory` + +### Nested Schema for `administered_systems.provisioned_azure_oidc_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory.tenant` + +### Nested Schema for `administered_systems.provisioned_azure_oidc_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory--tenant--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory--tenant--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory.tenant.links` + +### Nested Schema for `administered_systems.provisioned_azure_oidc_directory.directory.uuid` Read-Only: @@ -801,8 +794,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory.tenant.permissions` + +### Nested Schema for `administered_systems.provisioned_azure_oidc_directory.directory.uuid` Read-Only: @@ -814,31 +807,31 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory` + +### Nested Schema for `administered_systems.provisioned_azure_sync_ldap_directory` Read-Only: - `client_id` (String) - `client_secret` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory.tenant` + +### Nested Schema for `administered_systems.provisioned_azure_sync_ldap_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory--tenant--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory--tenant--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory.tenant.links` + +### Nested Schema for `administered_systems.provisioned_azure_sync_ldap_directory.directory.uuid` Read-Only: @@ -848,8 +841,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory.tenant.permissions` + +### Nested Schema for `administered_systems.provisioned_azure_sync_ldap_directory.directory.uuid` Read-Only: @@ -861,8 +854,8 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_tenant` + +### Nested Schema for `administered_systems.provisioned_azure_tenant` Read-Only: @@ -872,26 +865,26 @@ Read-Only: - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap` + +### Nested Schema for `administered_systems.provisioned_internal_ldap` Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.client_certificate` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client.used_for_provisioning` Read-Only: @@ -901,14 +894,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client--used_for_provisioning--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client.used_for_provisioning.links` Read-Only: @@ -918,8 +911,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client.used_for_provisioning.permissions` Read-Only: @@ -930,20 +923,20 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.shared_secret` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client.used_for_provisioning` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client--used_for_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client--used_for_provisioning--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client.used_for_provisioning.links` Read-Only: @@ -953,8 +946,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client.used_for_provisioning.permissions` Read-Only: @@ -967,17 +960,17 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap` + +### Nested Schema for `administered_systems.provisioned_ldap` Read-Only: - `gid` (Number) - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering)) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.numbering` + +### Nested Schema for `administered_systems.provisioned_ldap.numbering` Optional: @@ -986,13 +979,13 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--links)) - `name` (String) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.numbering.links` + +### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -1002,8 +995,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.numbering.permissions` + +### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -1015,29 +1008,29 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory` + +### Nested Schema for `administered_systems.provisioned_ldap_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap_directory--directory)) - `group_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory.group_dn` + +### Nested Schema for `administered_systems.provisioned_ldap_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory--group_dn--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory--group_dn--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory.group_dn.links` + +### Nested Schema for `administered_systems.provisioned_ldap_directory.directory.uuid` Read-Only: @@ -1047,8 +1040,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory.group_dn.permissions` + +### Nested Schema for `administered_systems.provisioned_ldap_directory.directory.uuid` Read-Only: @@ -1060,19 +1053,19 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.technical_administrator` + +### Nested Schema for `administered_systems.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.technical_administrator.uuid` + +### Nested Schema for `administered_systems.technical_administrator.links` Read-Only: @@ -1082,8 +1075,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.technical_administrator.uuid` + +### Nested Schema for `administered_systems.technical_administrator.permissions` Read-Only: @@ -1095,8 +1088,8 @@ Read-Only: - -### Nested Schema for `additional_objects.admins` + +### Nested Schema for `admins` Optional: @@ -1104,15 +1097,15 @@ Optional: Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--admins--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--admins--directory)) - `disconnected_nested` (Boolean) - `display_name` (String) - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--admins--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--admins--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `two_factor_status` (String) @@ -1121,21 +1114,21 @@ Read-Only: - `validity` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.admins.directory` + +### Nested Schema for `admins.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--admins--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--admins--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--admins--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.admins.directory.uuid` + +### Nested Schema for `admins.directory.links` Read-Only: @@ -1145,8 +1138,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.admins.directory.uuid` + +### Nested Schema for `admins.directory.permissions` Read-Only: @@ -1157,8 +1150,8 @@ Read-Only: - -### Nested Schema for `additional_objects.admins.links` + +### Nested Schema for `admins.links` Read-Only: @@ -1168,8 +1161,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.admins.permissions` + +### Nested Schema for `admins.permissions` Read-Only: @@ -1180,8 +1173,8 @@ Read-Only: - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -1191,16 +1184,48 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.authorized_groups` + +### Nested Schema for `audit_config` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) +- `months` (List of String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) + + +### Nested Schema for `audit_config.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `audit_config.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorized_groups` Read-Only: - `group_count` (Number) -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items)) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items)) - -### Nested Schema for `additional_objects.authorized_groups.items` + +### Nested Schema for `authorized_groups.items` Optional: @@ -1210,23 +1235,23 @@ Read-Only: - `admin` (Boolean) - `application_administration` (Boolean) -- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--audit_config)) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config)) - `audit_requested` (Boolean) - `auditor` (Boolean) -- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_auditing)) -- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_delegation)) -- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_membership)) -- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--authorizing_group_provisioning)) +- `authorizing_group_auditing` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_auditing)) +- `authorizing_group_delegation` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_delegation)) +- `authorizing_group_membership` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_membership)) +- `authorizing_group_provisioning` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_provisioning)) - `authorizing_group_types` (List of String) -- `classification` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--classification)) +- `classification` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--classification)) - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--links)) - `name` (String) -- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--nested_under)) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) +- `nested_under` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--nested_under)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -1235,17 +1260,51 @@ Read-Only: - `vault_recovery` (String) - `vault_requires_activation` (Boolean) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorized_groups.items.audit_config` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--links)) - `months` (List of String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--permissions)) + + +### Nested Schema for `authorized_groups.items.audit_config.permissions` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorized_groups.items.audit_config.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorized_groups.items.authorizing_group_auditing` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_auditing--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_auditing--permissions)) +- `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorized_groups.items.authorizing_group_auditing.uuid` Read-Only: @@ -1255,8 +1314,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorized_groups.items.authorizing_group_auditing.uuid` Read-Only: @@ -1267,19 +1326,19 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorized_groups.items.authorizing_group_delegation` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_delegation--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_delegation--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorized_groups.items.authorizing_group_delegation.uuid` Read-Only: @@ -1289,8 +1348,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorized_groups.items.authorizing_group_delegation.uuid` Read-Only: @@ -1301,19 +1360,19 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorized_groups.items.authorizing_group_membership` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_membership--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_membership--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorized_groups.items.authorizing_group_membership.uuid` Read-Only: @@ -1323,8 +1382,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorized_groups.items.authorizing_group_membership.uuid` Read-Only: @@ -1335,19 +1394,52 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorized_groups.items.authorizing_group_provisioning` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--authorizing_group_provisioning--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorized_groups.items.authorizing_group_provisioning.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorized_groups.items.authorizing_group_provisioning.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorized_groups.items.classification` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--classification--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--classification--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorized_groups.items.classification.uuid` Read-Only: @@ -1357,8 +1449,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorized_groups.items.classification.uuid` Read-Only: @@ -1369,19 +1461,30 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorized_groups.items.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorized_groups.items.nested_under` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--nested_under--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--nested_under--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorized_groups.items.nested_under.uuid` Read-Only: @@ -1391,8 +1494,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorized_groups.items.nested_under.uuid` Read-Only: @@ -1403,18 +1506,18 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorized_groups.items.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorized_groups.items.organizational_unit.uuid` Read-Only: @@ -1424,8 +1527,20 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorized_groups.items.organizational_unit.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorized_groups.items.permissions` Read-Only: @@ -1436,8 +1551,20 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + + +### Nested Schema for `authorizing_group_auditing` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_auditing--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_auditing--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorizing_group_auditing.links` Read-Only: @@ -1447,19 +1574,31 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorizing_group_auditing.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `authorizing_group_delegation` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_delegation--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_delegation--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorizing_group_delegation.links` Read-Only: @@ -1469,8 +1608,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorizing_group_delegation.permissions` Read-Only: @@ -1481,18 +1620,19 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorizing_group_membership` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--links)) +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_membership--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--vault_requires_activation--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_membership--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.links` + +### Nested Schema for `authorizing_group_membership.links` Read-Only: @@ -1502,8 +1642,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation.permissions` + +### Nested Schema for `authorizing_group_membership.permissions` Read-Only: @@ -1514,8 +1654,30 @@ Read-Only: - -### Nested Schema for `additional_objects.authorized_groups.items.vault_requires_activation` + +### Nested Schema for `authorizing_group_provisioning` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_provisioning--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_provisioning--permissions)) +- `uuid` (String) + + +### Nested Schema for `authorizing_group_provisioning.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `authorizing_group_provisioning.permissions` Read-Only: @@ -1526,9 +1688,41 @@ Read-Only: + +### Nested Schema for `classification` + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--classification--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--classification--permissions)) +- `uuid` (String) + + +### Nested Schema for `classification.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `classification.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + - -### Nested Schema for `additional_objects.client_permissions` + +### Nested Schema for `client_permissions` Optional: @@ -1536,20 +1730,20 @@ Optional: Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client)) -- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_group)) -- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--permissions)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client)) +- `for_group` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--for_group)) +- `for_system` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--for_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--permissions)) - `value` (String) - -### Nested Schema for `additional_objects.client_permissions.client` + +### Nested Schema for `client_permissions.client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -1557,12 +1751,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials` + +### Nested Schema for `client_permissions.client.account_permissions` Read-Only: @@ -1572,24 +1766,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials` + +### Nested Schema for `client_permissions.client.attributes` - -### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials` + +### Nested Schema for `client_permissions.client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--use_client_credentials--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--use_client_credentials--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials.links` + +### Nested Schema for `client_permissions.client.shared_secret.uuid` Read-Only: @@ -1599,8 +1793,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.client.use_client_credentials.permissions` + +### Nested Schema for `client_permissions.client.shared_secret.uuid` Read-Only: @@ -1612,19 +1806,19 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.for_group` + +### Nested Schema for `client_permissions.for_group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--for_group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--for_group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.for_group.uuid` + +### Nested Schema for `client_permissions.for_group.links` Read-Only: @@ -1634,8 +1828,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.for_group.uuid` + +### Nested Schema for `client_permissions.for_group.permissions` Read-Only: @@ -1646,21 +1840,21 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.for_system` + +### Nested Schema for `client_permissions.for_system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--for_system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--for_system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--for_system--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.for_system.uuid` + +### Nested Schema for `client_permissions.for_system.links` Read-Only: @@ -1670,18 +1864,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.for_system.uuid` + +### Nested Schema for `client_permissions.for_system.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--for_system--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--for_system--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--for_system--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.for_system.uuid.links` + +### Nested Schema for `client_permissions.for_system.organizational_unit.uuid` Read-Only: @@ -1691,8 +1885,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.for_system.uuid.permissions` + +### Nested Schema for `client_permissions.for_system.organizational_unit.uuid` Read-Only: @@ -1703,8 +1897,8 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.for_system.uuid` + +### Nested Schema for `client_permissions.for_system.permissions` Read-Only: @@ -1715,8 +1909,8 @@ Read-Only: - -### Nested Schema for `additional_objects.client_permissions.links` + +### Nested Schema for `client_permissions.links` Read-Only: @@ -1726,8 +1920,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.permissions` + +### Nested Schema for `client_permissions.permissions` Read-Only: @@ -1738,8 +1932,8 @@ Read-Only: - -### Nested Schema for `additional_objects.clients` + +### Nested Schema for `clients` Optional: @@ -1748,29 +1942,29 @@ Optional: Read-Only: - `activation_required` (Boolean) -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--client)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--links)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--permissions)) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--clients--technical_administrator)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--clients--client)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--clients--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--links)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--clients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--permissions)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--clients--technical_administrator)) - -### Nested Schema for `additional_objects.clients.client` + +### Nested Schema for `clients.client` Read-Only: - `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--client--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--client--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--client--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.client.uuid` + +### Nested Schema for `clients.client.links` Read-Only: @@ -1780,8 +1974,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.client.uuid` + +### Nested Schema for `clients.client.permissions` Read-Only: @@ -1792,19 +1986,19 @@ Read-Only: - -### Nested Schema for `additional_objects.clients.group` + +### Nested Schema for `clients.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.group.uuid` + +### Nested Schema for `clients.group.links` Read-Only: @@ -1814,8 +2008,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.group.uuid` + +### Nested Schema for `clients.group.permissions` Read-Only: @@ -1826,8 +2020,8 @@ Read-Only: - -### Nested Schema for `additional_objects.clients.links` + +### Nested Schema for `clients.links` Read-Only: @@ -1837,19 +2031,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.owner` + +### Nested Schema for `clients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.owner.uuid` + +### Nested Schema for `clients.owner.links` Read-Only: @@ -1859,8 +2053,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.owner.uuid` + +### Nested Schema for `clients.owner.permissions` Read-Only: @@ -1871,8 +2065,8 @@ Read-Only: - -### Nested Schema for `additional_objects.clients.permissions` + +### Nested Schema for `clients.permissions` Read-Only: @@ -1882,19 +2076,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.technical_administrator` + +### Nested Schema for `clients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.clients.technical_administrator.uuid` + +### Nested Schema for `clients.technical_administrator.links` Read-Only: @@ -1904,8 +2098,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.technical_administrator.uuid` + +### Nested Schema for `clients.technical_administrator.permissions` Read-Only: @@ -1917,8 +2111,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems` + +### Nested Schema for `content_administered_systems` Optional: @@ -1926,44 +2120,44 @@ Optional: Read-Only: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--content_administrator)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--content_administrator)) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--permissions)) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--technical_administrator)) - `type` (String) - `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--attributes)) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--client_certificate)) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--failover_trusted_certificate)) - `group_dn` (String) - `host` (String) - `object_classes` (String) @@ -1971,15 +2165,15 @@ Read-Only: - `service_account_dn` (String) - `ssh_public_key_supported` (Boolean) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.attributes` - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.client_certificate` Read-Only: @@ -1989,14 +2183,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--client_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.client_certificate.uuid` Read-Only: @@ -2006,8 +2200,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.client_certificate.uuid` Read-Only: @@ -2018,8 +2212,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.failover_trusted_certificate` Read-Only: @@ -2029,14 +2223,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--failover_trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.failover_trusted_certificate.uuid` Read-Only: @@ -2046,8 +2240,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.failover_trusted_certificate.uuid` Read-Only: @@ -2058,8 +2252,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.trusted_certificate` Read-Only: @@ -2069,14 +2263,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.trusted_certificate.uuid` Read-Only: @@ -2086,8 +2280,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.trusted_certificate.uuid` Read-Only: @@ -2099,19 +2293,19 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.content_administrator` + +### Nested Schema for `content_administered_systems.content_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--content_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--content_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--content_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--content_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.content_administrator.uuid` + +### Nested Schema for `content_administered_systems.content_administrator.links` Read-Only: @@ -2121,8 +2315,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.content_administrator.uuid` + +### Nested Schema for `content_administered_systems.content_administrator.permissions` Read-Only: @@ -2133,8 +2327,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.links` + +### Nested Schema for `content_administered_systems.links` Read-Only: @@ -2144,18 +2338,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.organizational_unit` + +### Nested Schema for `content_administered_systems.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.organizational_unit.uuid` + +### Nested Schema for `content_administered_systems.organizational_unit.links` Read-Only: @@ -2165,8 +2359,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.organizational_unit.uuid` + +### Nested Schema for `content_administered_systems.organizational_unit.permissions` Read-Only: @@ -2177,19 +2371,19 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.owner` + +### Nested Schema for `content_administered_systems.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.owner.uuid` + +### Nested Schema for `content_administered_systems.owner.links` Read-Only: @@ -2199,8 +2393,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.owner.uuid` + +### Nested Schema for `content_administered_systems.owner.permissions` Read-Only: @@ -2211,8 +2405,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.permissions` + +### Nested Schema for `content_administered_systems.permissions` Read-Only: @@ -2222,37 +2416,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_a_d` + +### Nested Schema for `content_administered_systems.provisioned_a_d` Read-Only: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory` + +### Nested Schema for `content_administered_systems.provisioned_azure_oidc_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory.tenant` + +### Nested Schema for `content_administered_systems.provisioned_azure_oidc_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory--tenant--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory--tenant--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory.tenant.links` + +### Nested Schema for `content_administered_systems.provisioned_azure_oidc_directory.directory.uuid` Read-Only: @@ -2262,8 +2456,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory.tenant.permissions` + +### Nested Schema for `content_administered_systems.provisioned_azure_oidc_directory.directory.uuid` Read-Only: @@ -2275,31 +2469,31 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory` + +### Nested Schema for `content_administered_systems.provisioned_azure_sync_ldap_directory` Read-Only: - `client_id` (String) - `client_secret` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory.tenant` + +### Nested Schema for `content_administered_systems.provisioned_azure_sync_ldap_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory--tenant--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory--tenant--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory.tenant.links` + +### Nested Schema for `content_administered_systems.provisioned_azure_sync_ldap_directory.directory.uuid` Read-Only: @@ -2309,8 +2503,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory.tenant.permissions` + +### Nested Schema for `content_administered_systems.provisioned_azure_sync_ldap_directory.directory.uuid` Read-Only: @@ -2322,8 +2516,8 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_tenant` + +### Nested Schema for `content_administered_systems.provisioned_azure_tenant` Read-Only: @@ -2333,26 +2527,26 @@ Read-Only: - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap` Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.client_certificate` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client.used_for_provisioning` Read-Only: @@ -2362,14 +2556,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client--used_for_provisioning--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client.used_for_provisioning.links` Read-Only: @@ -2379,8 +2573,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.client_certificate.uuid` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client.used_for_provisioning.permissions` Read-Only: @@ -2391,20 +2585,20 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.shared_secret` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client.used_for_provisioning` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client--used_for_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client--used_for_provisioning--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client.used_for_provisioning.links` Read-Only: @@ -2414,8 +2608,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client.shared_secret.uuid` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client.used_for_provisioning.permissions` Read-Only: @@ -2428,17 +2622,17 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap` + +### Nested Schema for `content_administered_systems.provisioned_ldap` Read-Only: - `gid` (Number) - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering)) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.numbering` + +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering` Optional: @@ -2447,13 +2641,13 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--links)) - `name` (String) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.numbering.links` + +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -2463,8 +2657,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.numbering.permissions` + +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -2476,29 +2670,29 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory` + +### Nested Schema for `content_administered_systems.provisioned_ldap_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap_directory--directory)) - `group_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory.group_dn` + +### Nested Schema for `content_administered_systems.provisioned_ldap_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory--group_dn--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory--group_dn--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory.group_dn.links` + +### Nested Schema for `content_administered_systems.provisioned_ldap_directory.directory.uuid` Read-Only: @@ -2508,8 +2702,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory.group_dn.permissions` + +### Nested Schema for `content_administered_systems.provisioned_ldap_directory.directory.uuid` Read-Only: @@ -2521,19 +2715,19 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.technical_administrator` + +### Nested Schema for `content_administered_systems.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.technical_administrator.uuid` + +### Nested Schema for `content_administered_systems.technical_administrator.links` Read-Only: @@ -2543,8 +2737,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.technical_administrator.uuid` + +### Nested Schema for `content_administered_systems.technical_administrator.permissions` Read-Only: @@ -2556,8 +2750,8 @@ Read-Only: - -### Nested Schema for `additional_objects.groupauditinginfo` + +### Nested Schema for `groupauditinginfo` Read-Only: @@ -2571,8 +2765,8 @@ Read-Only: - `nr_vault_records_with_end_date` (Number) - -### Nested Schema for `additional_objects.groupinfo` + +### Nested Schema for `groupinfo` Read-Only: @@ -2584,22 +2778,22 @@ Read-Only: - `nr_vault_records` (Number) - -### Nested Schema for `additional_objects.helpdesk` + +### Nested Schema for `helpdesk` Read-Only: - `domain_restriction` (String) - `fully_resolved_issuer` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--permissions)) -- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--status)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--permissions)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--helpdesk--status)) - `type` (String) - `username_customizable` (Boolean) - -### Nested Schema for `additional_objects.helpdesk.links` + +### Nested Schema for `helpdesk.links` Read-Only: @@ -2609,8 +2803,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.permissions` + +### Nested Schema for `helpdesk.permissions` Read-Only: @@ -2620,8 +2814,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.status` + +### Nested Schema for `helpdesk.status` Read-Only: @@ -2631,30 +2825,41 @@ Read-Only: - -### Nested Schema for `additional_objects.markers` + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `markers` Read-Only: -- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--markers--markers)) - -### Nested Schema for `additional_objects.markers.markers` + +### Nested Schema for `markers.markers` Read-Only: - `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) - `type` (String) - -### Nested Schema for `additional_objects.markers.markers.type` + +### Nested Schema for `markers.markers.parameters` - -### Nested Schema for `additional_objects.myaccount` + +### Nested Schema for `myaccount` Optional: @@ -2662,15 +2867,15 @@ Optional: Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--myaccount--directory)) - `disconnected_nested` (Boolean) - `display_name` (String) - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--myaccount--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--myaccount--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `two_factor_status` (String) @@ -2679,21 +2884,21 @@ Read-Only: - `validity` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.myaccount.directory` + +### Nested Schema for `myaccount.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--myaccount--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--myaccount--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--myaccount--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.myaccount.directory.uuid` + +### Nested Schema for `myaccount.directory.links` Read-Only: @@ -2703,8 +2908,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.myaccount.directory.uuid` + +### Nested Schema for `myaccount.directory.permissions` Read-Only: @@ -2715,8 +2920,8 @@ Read-Only: - -### Nested Schema for `additional_objects.myaccount.links` + +### Nested Schema for `myaccount.links` Read-Only: @@ -2726,8 +2931,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.myaccount.permissions` + +### Nested Schema for `myaccount.permissions` Read-Only: @@ -2738,8 +2943,8 @@ Read-Only: - -### Nested Schema for `additional_objects.mydelegatedaccount` + +### Nested Schema for `mydelegatedaccount` Optional: @@ -2747,15 +2952,15 @@ Optional: Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--mydelegatedaccount--directory)) - `disconnected_nested` (Boolean) - `display_name` (String) - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--mydelegatedaccount--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--mydelegatedaccount--permissions)) - `provisioning_end_time` (String) - `rights` (String) - `two_factor_status` (String) @@ -2764,21 +2969,21 @@ Read-Only: - `validity` (String) - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.mydelegatedaccount.directory` + +### Nested Schema for `mydelegatedaccount.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--mydelegatedaccount--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--mydelegatedaccount--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +### Nested Schema for `mydelegatedaccount.directory.links` Read-Only: @@ -2788,8 +2993,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.mydelegatedaccount.directory.uuid` + +### Nested Schema for `mydelegatedaccount.directory.permissions` Read-Only: @@ -2800,8 +3005,8 @@ Read-Only: - -### Nested Schema for `additional_objects.mydelegatedaccount.links` + +### Nested Schema for `mydelegatedaccount.links` Read-Only: @@ -2811,8 +3016,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.mydelegatedaccount.permissions` + +### Nested Schema for `mydelegatedaccount.permissions` Read-Only: @@ -2823,19 +3028,19 @@ Read-Only: - -### Nested Schema for `additional_objects.nested_groups` + +### Nested Schema for `nested_groups` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--nested_groups--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.nested_groups.links` + +### Nested Schema for `nested_groups.links` Read-Only: @@ -2845,8 +3050,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.nested_groups.permissions` + +### Nested Schema for `nested_groups.permissions` Read-Only: @@ -2857,60 +3062,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients` - -Optional: - -- `additional` (List of String) + +### Nested Schema for `nested_under` Read-Only: -- `client_id` (String) -- `last_modified_at` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--links)) +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_under--links)) - `name` (String) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--permissions)) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client)) -- `scopes` (List of String) -- `sso_application` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--technical_administrator)) -- `type` (String) -- `uuid` (String) - - -### Nested Schema for `additional_objects.owned_clients.ldap_client` - -Read-Only: - -- `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--client_certificate)) -- `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--shared_secret)) -- `used_for_provisioning` (Boolean) - - -### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning` - -Read-Only: - -- `alias` (String) -- `certificate_data` (List of String) -- `expiration` (String) -- `fingerprint_sha1` (String) -- `fingerprint_sha256` (String) -- `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--permissions)) -- `subject_dn` (String) -- `type` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_under--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.links` + +### Nested Schema for `nested_under.links` Read-Only: @@ -2920,8 +3084,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.permissions` + +### Nested Schema for `nested_under.permissions` Read-Only: @@ -2932,20 +3096,128 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning` + +### Nested Schema for `organizational_unit` Read-Only: -- `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--permissions)) +- `uuid` (String) + + +### Nested Schema for `organizational_unit.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `organizational_unit.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `owned_clients` + +Optional: + +- `additional` (List of String) + +Read-Only: + +- `client_id` (String) +- `last_modified_at` (String) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--links)) +- `name` (String) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--permissions)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client)) +- `scopes` (List of String) +- `sso_application` (Boolean) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--technical_administrator)) +- `type` (String) +- `uuid` (String) + + +### Nested Schema for `owned_clients.ldap_client` + +Read-Only: + +- `bind_dn` (String) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--ldap_client--client_certificate)) +- `share_secret_in_vault` (Boolean) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--ldap_client--shared_secret)) +- `used_for_provisioning` (Boolean) + + +### Nested Schema for `owned_clients.ldap_client.client_certificate` + +Read-Only: + +- `alias` (String) +- `certificate_data` (List of String) +- `expiration` (String) +- `fingerprint_sha1` (String) +- `fingerprint_sha256` (String) +- `global` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--ldap_client--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--ldap_client--client_certificate--permissions)) +- `subject_dn` (String) +- `type` (String) +- `uuid` (String) + + +### Nested Schema for `owned_clients.ldap_client.client_certificate.uuid` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owned_clients.ldap_client.client_certificate.uuid` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `owned_clients.ldap_client.shared_secret` + +Read-Only: + +- `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--ldap_client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client--used_for_provisioning--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--ldap_client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.links` + +### Nested Schema for `owned_clients.ldap_client.shared_secret.uuid` Read-Only: @@ -2955,8 +3227,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.ldap_client.used_for_provisioning.permissions` + +### Nested Schema for `owned_clients.ldap_client.shared_secret.uuid` Read-Only: @@ -2968,8 +3240,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.links` + +### Nested Schema for `owned_clients.links` Read-Only: @@ -2979,13 +3251,13 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client` + +### Nested Schema for `owned_clients.o_auth2_client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -2993,12 +3265,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials` + +### Nested Schema for `owned_clients.o_auth2_client.account_permissions` Read-Only: @@ -3008,24 +3280,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials` + +### Nested Schema for `owned_clients.o_auth2_client.attributes` - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials` + +### Nested Schema for `owned_clients.o_auth2_client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--use_client_credentials--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--use_client_credentials--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials.links` + +### Nested Schema for `owned_clients.o_auth2_client.shared_secret.uuid` Read-Only: @@ -3035,8 +3307,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.use_client_credentials.permissions` + +### Nested Schema for `owned_clients.o_auth2_client.shared_secret.uuid` Read-Only: @@ -3048,19 +3320,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.owner` + +### Nested Schema for `owned_clients.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.owner.uuid` + +### Nested Schema for `owned_clients.owner.links` Read-Only: @@ -3070,8 +3342,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.owner.uuid` + +### Nested Schema for `owned_clients.owner.permissions` Read-Only: @@ -3082,8 +3354,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_clients.permissions` + +### Nested Schema for `owned_clients.permissions` Read-Only: @@ -3093,34 +3365,34 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.saml2_client` + +### Nested Schema for `owned_clients.saml2_client` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `additional_objects.owned_clients.saml2_client.subject_format` + +### Nested Schema for `owned_clients.saml2_client.attributes` - -### Nested Schema for `additional_objects.owned_clients.technical_administrator` + +### Nested Schema for `owned_clients.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.technical_administrator.uuid` + +### Nested Schema for `owned_clients.technical_administrator.links` Read-Only: @@ -3130,8 +3402,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.technical_administrator.uuid` + +### Nested Schema for `owned_clients.technical_administrator.permissions` Read-Only: @@ -3143,8 +3415,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories` + +### Nested Schema for `owned_directories` Optional: @@ -3154,34 +3426,34 @@ Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--base_organizational_unit)) +- `base_organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--base_organizational_unit)) - `default_directory` (Boolean) -- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--helpdesk_group)) -- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory)) -- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--links)) -- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--maintenance_directory)) +- `helpdesk_group` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--helpdesk_group)) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--links)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--maintenance_directory)) - `name` (String) -- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--o_id_c_directory)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--permissions)) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--o_id_c_directory)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--permissions)) - `restrict2fa` (Boolean) - `rotating_password` (String) - `type` (String) - `username_customizable` (Boolean) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.base_organizational_unit` + +### Nested Schema for `owned_directories.base_organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--base_organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--base_organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--base_organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--base_organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.base_organizational_unit.uuid` + +### Nested Schema for `owned_directories.base_organizational_unit.links` Read-Only: @@ -3191,8 +3463,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.base_organizational_unit.uuid` + +### Nested Schema for `owned_directories.base_organizational_unit.permissions` Read-Only: @@ -3203,19 +3475,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.helpdesk_group` + +### Nested Schema for `owned_directories.helpdesk_group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--helpdesk_group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--helpdesk_group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--helpdesk_group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--helpdesk_group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.helpdesk_group.uuid` + +### Nested Schema for `owned_directories.helpdesk_group.links` Read-Only: @@ -3225,8 +3497,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.helpdesk_group.uuid` + +### Nested Schema for `owned_directories.helpdesk_group.permissions` Read-Only: @@ -3237,26 +3509,26 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.internal_directory` + +### Nested Schema for `owned_directories.internal_directory` Read-Only: -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory--owner)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--internal_directory--owner)) - -### Nested Schema for `additional_objects.owned_directories.internal_directory.owner` + +### Nested Schema for `owned_directories.internal_directory.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--internal_directory--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--internal_directory--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.internal_directory.owner.links` + +### Nested Schema for `owned_directories.internal_directory.owner.uuid` Read-Only: @@ -3266,8 +3538,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.internal_directory.owner.permissions` + +### Nested Schema for `owned_directories.internal_directory.owner.uuid` Read-Only: @@ -3279,17 +3551,17 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory` + +### Nested Schema for `owned_directories.l_d_a_p_directory` Read-Only: - `attributes_to_store` (String) - `base_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--client_certificate)) - `dialect` (String) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--failover_trusted_certificate)) - `host` (String) - `password_recovery` (String) - `port` (Number) @@ -3297,10 +3569,10 @@ Read-Only: - `search_bind_password` (String) - `search_filter` (String) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--trusted_certificate)) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate` + +### Nested Schema for `owned_directories.l_d_a_p_directory.client_certificate` Read-Only: @@ -3310,14 +3582,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--client_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.links` + +### Nested Schema for `owned_directories.l_d_a_p_directory.client_certificate.uuid` Read-Only: @@ -3327,8 +3599,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.permissions` + +### Nested Schema for `owned_directories.l_d_a_p_directory.client_certificate.uuid` Read-Only: @@ -3339,8 +3611,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate` + +### Nested Schema for `owned_directories.l_d_a_p_directory.failover_trusted_certificate` Read-Only: @@ -3350,14 +3622,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--failover_trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.links` + +### Nested Schema for `owned_directories.l_d_a_p_directory.failover_trusted_certificate.uuid` Read-Only: @@ -3367,8 +3639,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.permissions` + +### Nested Schema for `owned_directories.l_d_a_p_directory.failover_trusted_certificate.uuid` Read-Only: @@ -3379,8 +3651,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate` + +### Nested Schema for `owned_directories.l_d_a_p_directory.trusted_certificate` Read-Only: @@ -3390,14 +3662,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory--trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.links` + +### Nested Schema for `owned_directories.l_d_a_p_directory.trusted_certificate.uuid` Read-Only: @@ -3407,8 +3679,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory.trusted_certificate.permissions` + +### Nested Schema for `owned_directories.l_d_a_p_directory.trusted_certificate.uuid` Read-Only: @@ -3420,8 +3692,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_directories.links` + +### Nested Schema for `owned_directories.links` Read-Only: @@ -3431,12 +3703,12 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.maintenance_directory` + +### Nested Schema for `owned_directories.maintenance_directory` - -### Nested Schema for `additional_objects.owned_directories.o_id_c_directory` + +### Nested Schema for `owned_directories.o_id_c_directory` Read-Only: @@ -3453,8 +3725,8 @@ Read-Only: - `vendor_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.permissions` + +### Nested Schema for `owned_directories.permissions` Read-Only: @@ -3465,16 +3737,16 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system` + +### Nested Schema for `owned_groups_on_system` Read-Only: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items)) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items)) - `unlinked_count` (Number) - -### Nested Schema for `additional_objects.owned_groups_on_system.items` + +### Nested Schema for `owned_groups_on_system.items` Optional: @@ -3483,16 +3755,16 @@ Optional: Read-Only: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--links)) - `name_in_system` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--permissions)) - `short_name_in_system` (String) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--system)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system)) - `type` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type` + +### Nested Schema for `owned_groups_on_system.items.links` Read-Only: @@ -3502,19 +3774,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type` + +### Nested Schema for `owned_groups_on_system.items.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.links` + +### Nested Schema for `owned_groups_on_system.items.owner.uuid` Read-Only: @@ -3524,8 +3796,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.permissions` + +### Nested Schema for `owned_groups_on_system.items.owner.uuid` Read-Only: @@ -3536,8 +3808,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type` + +### Nested Schema for `owned_groups_on_system.items.permissions` Read-Only: @@ -3547,21 +3819,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type` + +### Nested Schema for `owned_groups_on_system.items.system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.links` + +### Nested Schema for `owned_groups_on_system.items.system.uuid` Read-Only: @@ -3571,18 +3843,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit` + +### Nested Schema for `owned_groups_on_system.items.system.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--type--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit.uuid` + +### Nested Schema for `owned_groups_on_system.items.system.uuid.links` Read-Only: @@ -3592,8 +3864,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.organizational_unit.uuid` + +### Nested Schema for `owned_groups_on_system.items.system.uuid.permissions` Read-Only: @@ -3604,8 +3876,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_groups_on_system.items.type.permissions` + +### Nested Schema for `owned_groups_on_system.items.system.uuid` Read-Only: @@ -3618,8 +3890,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units` + +### Nested Schema for `owned_organizational_units` Optional: @@ -3629,15 +3901,15 @@ Read-Only: - `depth` (Number) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--links)) - `name` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--owner)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--parent)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--permissions)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owned_organizational_units--owner)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--owned_organizational_units--parent)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.links` + +### Nested Schema for `owned_organizational_units.links` Read-Only: @@ -3647,19 +3919,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.owner` + +### Nested Schema for `owned_organizational_units.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.owner.uuid` + +### Nested Schema for `owned_organizational_units.owner.links` Read-Only: @@ -3669,8 +3941,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.owner.uuid` + +### Nested Schema for `owned_organizational_units.owner.permissions` Read-Only: @@ -3681,18 +3953,18 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units.parent` + +### Nested Schema for `owned_organizational_units.parent` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--parent--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--parent--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--parent--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--parent--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.parent.uuid` + +### Nested Schema for `owned_organizational_units.parent.links` Read-Only: @@ -3702,8 +3974,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.parent.uuid` + +### Nested Schema for `owned_organizational_units.parent.permissions` Read-Only: @@ -3714,8 +3986,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_organizational_units.permissions` + +### Nested Schema for `owned_organizational_units.permissions` Read-Only: @@ -3726,8 +3998,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems` + +### Nested Schema for `owned_systems` Optional: @@ -3735,44 +4007,44 @@ Optional: Read-Only: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap)) - `account_count` (Number) - `active` (Boolean) -- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--content_administrator)) +- `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--content_administrator)) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--organizational_unit)) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--permissions)) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--organizational_unit)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--permissions)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--technical_administrator)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--technical_administrator)) - `type` (String) - `username_prefix` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap` Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--attributes)) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--client_certificate)) - `failover_host` (String) -- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--failover_trusted_certificate)) +- `failover_trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--failover_trusted_certificate)) - `group_dn` (String) - `host` (String) - `object_classes` (String) @@ -3780,15 +4052,15 @@ Read-Only: - `service_account_dn` (String) - `ssh_public_key_supported` (Boolean) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.attributes` - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.client_certificate` Read-Only: @@ -3798,14 +4070,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--client_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.client_certificate.uuid` Read-Only: @@ -3815,8 +4087,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.client_certificate.uuid` Read-Only: @@ -3827,8 +4099,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.failover_trusted_certificate` Read-Only: @@ -3838,14 +4110,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--failover_trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--failover_trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.failover_trusted_certificate.uuid` Read-Only: @@ -3855,8 +4127,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.failover_trusted_certificate.uuid` Read-Only: @@ -3867,8 +4139,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.trusted_certificate` Read-Only: @@ -3878,14 +4150,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--user_dn--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.links` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.trusted_certificate.uuid` Read-Only: @@ -3895,8 +4167,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn.permissions` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.trusted_certificate.uuid` Read-Only: @@ -3908,19 +4180,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.content_administrator` + +### Nested Schema for `owned_systems.content_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--content_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--content_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--content_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--content_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.content_administrator.uuid` + +### Nested Schema for `owned_systems.content_administrator.links` Read-Only: @@ -3930,8 +4202,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.content_administrator.uuid` + +### Nested Schema for `owned_systems.content_administrator.permissions` Read-Only: @@ -3942,8 +4214,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.links` + +### Nested Schema for `owned_systems.links` Read-Only: @@ -3953,18 +4225,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.organizational_unit` + +### Nested Schema for `owned_systems.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.organizational_unit.uuid` + +### Nested Schema for `owned_systems.organizational_unit.links` Read-Only: @@ -3974,8 +4246,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.organizational_unit.uuid` + +### Nested Schema for `owned_systems.organizational_unit.permissions` Read-Only: @@ -3986,19 +4258,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.owner` + +### Nested Schema for `owned_systems.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--owner--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--owner--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.owner.uuid` + +### Nested Schema for `owned_systems.owner.links` Read-Only: @@ -4008,8 +4280,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.owner.uuid` + +### Nested Schema for `owned_systems.owner.permissions` Read-Only: @@ -4020,8 +4292,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.permissions` + +### Nested Schema for `owned_systems.permissions` Read-Only: @@ -4031,37 +4303,37 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_a_d` + +### Nested Schema for `owned_systems.provisioned_a_d` Read-Only: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory` + +### Nested Schema for `owned_systems.provisioned_azure_oidc_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory.tenant` + +### Nested Schema for `owned_systems.provisioned_azure_oidc_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory--tenant--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory--tenant--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory.tenant.links` + +### Nested Schema for `owned_systems.provisioned_azure_oidc_directory.directory.uuid` Read-Only: @@ -4071,8 +4343,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory.tenant.permissions` + +### Nested Schema for `owned_systems.provisioned_azure_oidc_directory.directory.uuid` Read-Only: @@ -4084,31 +4356,31 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory` + +### Nested Schema for `owned_systems.provisioned_azure_sync_ldap_directory` Read-Only: - `client_id` (String) - `client_secret` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory--directory)) - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory.tenant` + +### Nested Schema for `owned_systems.provisioned_azure_sync_ldap_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory--tenant--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory--tenant--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory.tenant.links` + +### Nested Schema for `owned_systems.provisioned_azure_sync_ldap_directory.directory.uuid` Read-Only: @@ -4118,8 +4390,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory.tenant.permissions` + +### Nested Schema for `owned_systems.provisioned_azure_sync_ldap_directory.directory.uuid` Read-Only: @@ -4131,8 +4403,8 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_tenant` + +### Nested Schema for `owned_systems.provisioned_azure_tenant` Read-Only: @@ -4142,26 +4414,26 @@ Read-Only: - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap` + +### Nested Schema for `owned_systems.provisioned_internal_ldap` Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client` Read-Only: - `bind_dn` (String) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--client_certificate)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client--client_certificate)) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client--shared_secret)) - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.client_certificate` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client.used_for_provisioning` Read-Only: @@ -4171,14 +4443,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client--used_for_provisioning--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client--used_for_provisioning--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.client_certificate.uuid` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client.used_for_provisioning.links` Read-Only: @@ -4188,8 +4460,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.client_certificate.uuid` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client.used_for_provisioning.permissions` Read-Only: @@ -4200,20 +4472,20 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.shared_secret` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client.used_for_provisioning` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--shared_secret--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client--used_for_provisioning--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client--shared_secret--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client--used_for_provisioning--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.shared_secret.uuid` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client.used_for_provisioning.links` Read-Only: @@ -4223,8 +4495,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client.shared_secret.uuid` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client.used_for_provisioning.permissions` Read-Only: @@ -4237,17 +4509,17 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap` + +### Nested Schema for `owned_systems.provisioned_ldap` Read-Only: - `gid` (Number) - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering)) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.numbering` + +### Nested Schema for `owned_systems.provisioned_ldap.numbering` Optional: @@ -4256,13 +4528,13 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--links)) - `name` (String) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.numbering.links` + +### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -4272,8 +4544,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.numbering.permissions` + +### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -4285,29 +4557,29 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory` + +### Nested Schema for `owned_systems.provisioned_ldap_directory` Read-Only: -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory--directory)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap_directory--directory)) - `group_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory.group_dn` + +### Nested Schema for `owned_systems.provisioned_ldap_directory.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory--group_dn--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap_directory--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory--group_dn--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap_directory--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory.group_dn.links` + +### Nested Schema for `owned_systems.provisioned_ldap_directory.directory.uuid` Read-Only: @@ -4317,8 +4589,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory.group_dn.permissions` + +### Nested Schema for `owned_systems.provisioned_ldap_directory.directory.uuid` Read-Only: @@ -4330,19 +4602,19 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.technical_administrator` + +### Nested Schema for `owned_systems.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.technical_administrator.uuid` + +### Nested Schema for `owned_systems.technical_administrator.links` Read-Only: @@ -4352,8 +4624,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.technical_administrator.uuid` + +### Nested Schema for `owned_systems.technical_administrator.permissions` Read-Only: @@ -4365,8 +4637,19 @@ Read-Only: - -### Nested Schema for `additional_objects.recent_audits` + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `recent_audits` Optional: @@ -4374,22 +4657,22 @@ Optional: Read-Only: -- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts)) - `comment` (String) - `created_at` (String) - `created_by` (String) - `group_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--links)) - `name_on_audit` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `status` (String) - `submitted_at` (String) - `submitted_by` (String) - -### Nested Schema for `additional_objects.recent_audits.accounts` + +### Nested Schema for `recent_audits.accounts` Read-Only: @@ -4402,14 +4685,14 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--permissions)) - `rights` (String) - `username` (String) - -### Nested Schema for `additional_objects.recent_audits.accounts.username` + +### Nested Schema for `recent_audits.accounts.links` Read-Only: @@ -4419,8 +4702,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.accounts.username` + +### Nested Schema for `recent_audits.accounts.permissions` Read-Only: @@ -4431,8 +4714,8 @@ Read-Only: - -### Nested Schema for `additional_objects.recent_audits.links` + +### Nested Schema for `recent_audits.links` Read-Only: @@ -4442,8 +4725,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.permissions` + +### Nested Schema for `recent_audits.permissions` Read-Only: @@ -4454,8 +4737,8 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts` + +### Nested Schema for `service_accounts` Optional: @@ -4465,18 +4748,18 @@ Read-Only: - `active` (Boolean) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) - `name` (String) -- `password` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--password)) +- `password` (Attributes) (see [below for nested schema](#nestedatt--service_accounts--password)) - `password_rotation` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--permissions)) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system)) -- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--technical_administrator)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--service_accounts--system)) +- `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--service_accounts--technical_administrator)) - `username` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.links` + +### Nested Schema for `service_accounts.links` Read-Only: @@ -4486,20 +4769,20 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.password` + +### Nested Schema for `service_accounts.password` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--password--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--password--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--password--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--password--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.password.uuid` + +### Nested Schema for `service_accounts.password.links` Read-Only: @@ -4509,8 +4792,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.password.uuid` + +### Nested Schema for `service_accounts.password.permissions` Read-Only: @@ -4521,8 +4804,8 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts.permissions` + +### Nested Schema for `service_accounts.permissions` Read-Only: @@ -4532,21 +4815,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.system` + +### Nested Schema for `service_accounts.system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--service_accounts--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--system--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.system.uuid` + +### Nested Schema for `service_accounts.system.links` Read-Only: @@ -4556,18 +4839,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.system.uuid` + +### Nested Schema for `service_accounts.system.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--system--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--system--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--system--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.system.uuid.links` + +### Nested Schema for `service_accounts.system.organizational_unit.uuid` Read-Only: @@ -4577,8 +4860,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.system.uuid.permissions` + +### Nested Schema for `service_accounts.system.organizational_unit.uuid` Read-Only: @@ -4589,8 +4872,8 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts.system.uuid` + +### Nested Schema for `service_accounts.system.permissions` Read-Only: @@ -4601,19 +4884,19 @@ Read-Only: - -### Nested Schema for `additional_objects.service_accounts.technical_administrator` + +### Nested Schema for `service_accounts.technical_administrator` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--technical_administrator--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--technical_administrator--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--technical_administrator--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--technical_administrator--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.technical_administrator.uuid` + +### Nested Schema for `service_accounts.technical_administrator.links` Read-Only: @@ -4623,8 +4906,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.technical_administrator.uuid` + +### Nested Schema for `service_accounts.technical_administrator.permissions` Read-Only: @@ -4636,8 +4919,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems` + +### Nested Schema for `systems` Optional: @@ -4646,24 +4929,24 @@ Optional: Read-Only: - `activation_required` (Boolean) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group)) -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--permissions)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--systems--group)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) - -### Nested Schema for `additional_objects.systems.group` + +### Nested Schema for `systems.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.group.uuid` + +### Nested Schema for `systems.group.links` Read-Only: @@ -4673,8 +4956,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group.uuid` + +### Nested Schema for `systems.group.permissions` Read-Only: @@ -4685,8 +4968,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.group_on_system` + +### Nested Schema for `systems.group_on_system` Optional: @@ -4695,16 +4978,16 @@ Optional: Read-Only: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--links)) - `name_in_system` (String) -- `owner` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--owner)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--permissions)) +- `owner` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system--owner)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--permissions)) - `short_name_in_system` (String) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--system)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system--system)) - `type` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type` + +### Nested Schema for `systems.group_on_system.links` Read-Only: @@ -4714,19 +4997,19 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type` + +### Nested Schema for `systems.group_on_system.owner` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--owner--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--owner--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type.links` + +### Nested Schema for `systems.group_on_system.owner.uuid` Read-Only: @@ -4736,8 +5019,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type.permissions` + +### Nested Schema for `systems.group_on_system.owner.uuid` Read-Only: @@ -4748,8 +5031,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.group_on_system.type` + +### Nested Schema for `systems.group_on_system.permissions` Read-Only: @@ -4759,21 +5042,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type` + +### Nested Schema for `systems.group_on_system.system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type.links` + +### Nested Schema for `systems.group_on_system.system.uuid` Read-Only: @@ -4783,18 +5066,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type.organizational_unit` + +### Nested Schema for `systems.group_on_system.system.uuid` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--organizational_unit--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--uuid--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--type--organizational_unit--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--uuid--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type.organizational_unit.uuid` + +### Nested Schema for `systems.group_on_system.system.uuid.links` Read-Only: @@ -4804,8 +5087,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.type.organizational_unit.uuid` + +### Nested Schema for `systems.group_on_system.system.uuid.permissions` Read-Only: @@ -4816,8 +5099,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.group_on_system.type.permissions` + +### Nested Schema for `systems.group_on_system.system.uuid` Read-Only: @@ -4829,8 +5112,8 @@ Read-Only: - -### Nested Schema for `additional_objects.systems.links` + +### Nested Schema for `systems.links` Read-Only: @@ -4840,8 +5123,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.permissions` + +### Nested Schema for `systems.permissions` Read-Only: @@ -4852,19 +5135,19 @@ Read-Only: - -### Nested Schema for `additional_objects.vault` + +### Nested Schema for `vault` Read-Only: - `access_available` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) -- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--vault--records)) - -### Nested Schema for `additional_objects.vault.links` + +### Nested Schema for `vault.links` Read-Only: @@ -4874,8 +5157,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.permissions` + +### Nested Schema for `vault.permissions` Read-Only: @@ -4885,8 +5168,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.records` + +### Nested Schema for `vault.records` Optional: @@ -4898,9 +5181,9 @@ Read-Only: - `derived` (Boolean) - `end_date` (String) - `filename` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--permissions)) - `share_end_time` (String) - `types` (List of String) - `url` (String) @@ -4908,8 +5191,8 @@ Read-Only: - `uuid` (String) - `warning_period` (String) - -### Nested Schema for `additional_objects.vault.records.warning_period` + +### Nested Schema for `vault.records.links` Read-Only: @@ -4919,8 +5202,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.records.warning_period` + +### Nested Schema for `vault.records.permissions` Read-Only: @@ -4932,8 +5215,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks` + +### Nested Schema for `webhooks` Optional: @@ -4941,45 +5224,45 @@ Optional: Read-Only: -- `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--account)) +- `account` (Attributes) (see [below for nested schema](#nestedatt--webhooks--account)) - `active` (Boolean) - `all_types` (Boolean) - `authentication_scheme` (String) - `basic_auth_password` (String) - `basic_auth_username` (String) - `bearer_token` (String) -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client)) -- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client_certificate)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--webhooks--client)) +- `client_certificate` (Attributes) (see [below for nested schema](#nestedatt--webhooks--client_certificate)) - `custom_header_name` (String) - `custom_header_value` (String) -- `directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--directory)) -- `group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--group)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--links)) +- `directory` (Attributes) (see [below for nested schema](#nestedatt--webhooks--directory)) +- `group` (Attributes) (see [below for nested schema](#nestedatt--webhooks--group)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--permissions)) -- `system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--permissions)) +- `system` (Attributes) (see [below for nested schema](#nestedatt--webhooks--system)) - `tls` (String) -- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--trusted_certificate)) +- `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--webhooks--trusted_certificate)) - `types` (List of String) - `url` (String) - `uuid` (String) - `verbose_payloads` (Boolean) - -### Nested Schema for `additional_objects.webhooks.account` + +### Nested Schema for `webhooks.account` Read-Only: - `display_name` (String) - `last_active` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--account--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--account--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--account--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--account--permissions)) - `username` (String) - `uuid` (String) - `validity` (String) - -### Nested Schema for `additional_objects.webhooks.account.validity` + +### Nested Schema for `webhooks.account.links` Read-Only: @@ -4989,8 +5272,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.account.validity` + +### Nested Schema for `webhooks.account.permissions` Read-Only: @@ -5001,22 +5284,22 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.client` + +### Nested Schema for `webhooks.client` Read-Only: - `client_id` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--client--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--client--permissions)) - `scopes` (List of String) - `sso_application` (Boolean) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.client.uuid` + +### Nested Schema for `webhooks.client.links` Read-Only: @@ -5026,8 +5309,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.client.uuid` + +### Nested Schema for `webhooks.client.permissions` Read-Only: @@ -5038,8 +5321,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.client_certificate` + +### Nested Schema for `webhooks.client_certificate` Read-Only: @@ -5049,14 +5332,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--client_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--client_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--client_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.client_certificate.uuid` + +### Nested Schema for `webhooks.client_certificate.links` Read-Only: @@ -5066,8 +5349,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.client_certificate.uuid` + +### Nested Schema for `webhooks.client_certificate.permissions` Read-Only: @@ -5078,21 +5361,21 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.directory` + +### Nested Schema for `webhooks.directory` Read-Only: - `account_validity_supported` (Boolean) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--directory--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--directory--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--directory--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--directory--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.directory.uuid` + +### Nested Schema for `webhooks.directory.links` Read-Only: @@ -5102,8 +5385,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.directory.uuid` + +### Nested Schema for `webhooks.directory.permissions` Read-Only: @@ -5114,19 +5397,19 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.group` + +### Nested Schema for `webhooks.group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.group.uuid` + +### Nested Schema for `webhooks.group.links` Read-Only: @@ -5136,8 +5419,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.group.uuid` + +### Nested Schema for `webhooks.group.permissions` Read-Only: @@ -5148,8 +5431,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.links` + +### Nested Schema for `webhooks.links` Read-Only: @@ -5159,8 +5442,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.permissions` + +### Nested Schema for `webhooks.permissions` Read-Only: @@ -5170,21 +5453,21 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.system` + +### Nested Schema for `webhooks.system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--webhooks--system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--system--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.system.uuid` + +### Nested Schema for `webhooks.system.links` Read-Only: @@ -5194,18 +5477,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.system.uuid` + +### Nested Schema for `webhooks.system.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--system--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--system--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--system--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.system.uuid.links` + +### Nested Schema for `webhooks.system.organizational_unit.uuid` Read-Only: @@ -5215,8 +5498,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.system.uuid.permissions` + +### Nested Schema for `webhooks.system.organizational_unit.uuid` Read-Only: @@ -5227,8 +5510,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.system.uuid` + +### Nested Schema for `webhooks.system.permissions` Read-Only: @@ -5239,8 +5522,8 @@ Read-Only: - -### Nested Schema for `additional_objects.webhooks.trusted_certificate` + +### Nested Schema for `webhooks.trusted_certificate` Read-Only: @@ -5250,184 +5533,14 @@ Read-Only: - `fingerprint_sha1` (String) - `fingerprint_sha256` (String) - `global` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--trusted_certificate--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--trusted_certificate--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--trusted_certificate--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--trusted_certificate--permissions)) - `subject_dn` (String) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.trusted_certificate.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `additional_objects.webhooks.trusted_certificate.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - - - -### Nested Schema for `audit_config` - -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) -- `months` (List of String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) - - -### Nested Schema for `audit_config.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `audit_config.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `authorizing_group_auditing` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_auditing--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_auditing--permissions)) -- `uuid` (String) - - -### Nested Schema for `authorizing_group_auditing.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `authorizing_group_auditing.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `authorizing_group_delegation` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_delegation--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_delegation--permissions)) -- `uuid` (String) - - -### Nested Schema for `authorizing_group_delegation.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `authorizing_group_delegation.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `authorizing_group_membership` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_membership--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_membership--permissions)) -- `uuid` (String) - - -### Nested Schema for `authorizing_group_membership.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `authorizing_group_membership.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `authorizing_group_provisioning` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_provisioning--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorizing_group_provisioning--permissions)) -- `uuid` (String) - - -### Nested Schema for `authorizing_group_provisioning.links` + +### Nested Schema for `webhooks.trusted_certificate.links` Read-Only: @@ -5437,131 +5550,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `authorizing_group_provisioning.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `classification` - -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--classification--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--classification--permissions)) -- `uuid` (String) - - -### Nested Schema for `classification.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `classification.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `nested_under` - -Read-Only: - -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_under--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_under--permissions)) -- `uuid` (String) - - -### Nested Schema for `nested_under.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `nested_under.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `organizational_unit` - -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--organizational_unit--permissions)) -- `uuid` (String) - - -### Nested Schema for `organizational_unit.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `organizational_unit.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `permissions` + +### Nested Schema for `webhooks.trusted_certificate.permissions` Read-Only: diff --git a/docs/data-sources/groupclassification.md b/docs/data-sources/groupclassification.md index 1680f7a..716b026 100644 --- a/docs/data-sources/groupclassification.md +++ b/docs/data-sources/groupclassification.md @@ -25,13 +25,14 @@ description: |- ### Read-Only -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `authorizing_group_auditing_required` (Boolean) - `authorizing_group_delegation_required` (Boolean) - `authorizing_group_membership_required` (Boolean) - `authorizing_group_provisioning_required` (Boolean) - `default_classification` (Boolean) - `description` (String) +- `info` (Attributes) (see [below for nested schema](#nestedatt--info)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `maximum_audit_interval` (Number) - `minimum_nr_managers` (Number) @@ -42,16 +43,8 @@ description: |- - `rotating_password_required` (Boolean) - `vault_requires_activation` (Boolean) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `info` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--info)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -61,15 +54,14 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.info` + +### Nested Schema for `info` Read-Only: - `nr_groups` (Number) - ### Nested Schema for `links` diff --git a/docs/data-sources/organizationalunit.md b/docs/data-sources/organizationalunit.md index 93c1835..5709d14 100644 --- a/docs/data-sources/organizationalunit.md +++ b/docs/data-sources/organizationalunit.md @@ -25,7 +25,7 @@ description: |- ### Read-Only -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `depth` (Number) - `description` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) @@ -34,15 +34,8 @@ description: |- - `parent` (Attributes) (see [below for nested schema](#nestedatt--parent)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -52,7 +45,6 @@ Read-Only: - `last_modified_by` (String) - ### Nested Schema for `links` diff --git a/docs/data-sources/serviceaccount.md b/docs/data-sources/serviceaccount.md index 911294b..f0031a6 100644 --- a/docs/data-sources/serviceaccount.md +++ b/docs/data-sources/serviceaccount.md @@ -26,28 +26,21 @@ description: |- ### Read-Only - `active` (Boolean) -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `description` (String) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `name` (String) - `password` (Attributes) (see [below for nested schema](#nestedatt--password)) - `password_rotation` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `system` (Attributes) (see [below for nested schema](#nestedatt--system)) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) - `username` (String) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -57,8 +50,8 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.groups` + +### Nested Schema for `groups` Optional: @@ -67,14 +60,14 @@ Optional: Read-Only: - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `name_in_system` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `short_name_in_system` (String) - `type` (String) - -### Nested Schema for `additional_objects.groups.links` + +### Nested Schema for `groups.links` Read-Only: @@ -84,8 +77,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.permissions` + +### Nested Schema for `groups.permissions` Read-Only: @@ -96,17 +89,6 @@ Read-Only: - -### Nested Schema for `additional_objects.secret` - -Read-Only: - -- `generated_secret` (String) -- `old_secret` (String) -- `regenerate` (Boolean) - - - ### Nested Schema for `links` @@ -164,6 +146,16 @@ Read-Only: - `type_escaped` (String) + +### Nested Schema for `secret` + +Read-Only: + +- `generated_secret` (String) +- `old_secret` (String) +- `regenerate` (Boolean) + + ### Nested Schema for `system` diff --git a/docs/data-sources/system.md b/docs/data-sources/system.md index 6fac57b..753d055 100644 --- a/docs/data-sources/system.md +++ b/docs/data-sources/system.md @@ -26,12 +26,17 @@ description: |- ### Read-Only - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap)) +- `account` (Attributes) (see [below for nested schema](#nestedatt--account)) - `account_count` (Number) - `active` (Boolean) -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `content_administrator` (Attributes) (see [below for nested schema](#nestedatt--content_administrator)) - `external_uuid` (String) +- `issued_permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `login_name` (String) +- `management_permissions` (Attributes) (see [below for nested schema](#nestedatt--management_permissions)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) - `name` (String) - `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--organizational_unit)) - `owner` (Attributes) (see [below for nested schema](#nestedatt--owner)) @@ -47,6 +52,8 @@ description: |- - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) +- `statistics` (Attributes) (see [below for nested schema](#nestedatt--statistics)) +- `supported_group_types` (Attributes) (see [below for nested schema](#nestedatt--supported_group_types)) - `technical_administrator` (Attributes) (see [below for nested schema](#nestedatt--technical_administrator)) - `type` (String) - `username_prefix` (String) @@ -198,22 +205,8 @@ Read-Only: - -### Nested Schema for `additional_objects` - -Read-Only: - -- `account` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--account)) -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `issued_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions)) -- `login_name` (String) -- `management_permissions` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--management_permissions)) -- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) -- `statistics` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--statistics)) -- `supported_group_types` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--supported_group_types)) - - -### Nested Schema for `additional_objects.account` + +### Nested Schema for `account` Optional: @@ -223,15 +216,15 @@ Read-Only: - `display_name` (String) - `last_active` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--account--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--account--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--account--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--account--permissions)) - `uid` (Number) - `username` (String) - `uuid` (String) - `validity` (String) - -### Nested Schema for `additional_objects.account.links` + +### Nested Schema for `account.links` Read-Only: @@ -241,8 +234,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.account.permissions` + +### Nested Schema for `account.permissions` Read-Only: @@ -253,8 +246,8 @@ Read-Only: - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -264,8 +257,42 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.issued_permissions` + +### Nested Schema for `content_administrator` + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administrator--links)) +- `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administrator--permissions)) +- `uuid` (String) + + +### Nested Schema for `content_administrator.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `content_administrator.permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `issued_permissions` Optional: @@ -273,20 +300,20 @@ Optional: Read-Only: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client)) -- `for_group` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_group)) -- `for_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--permissions)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--client)) +- `for_group` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--for_group)) +- `for_system` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--for_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--permissions)) - `value` (String) - -### Nested Schema for `additional_objects.issued_permissions.client` + +### Nested Schema for `issued_permissions.client` Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--attributes)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--client--account_permissions)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -294,12 +321,12 @@ Read-Only: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--shared_secret)) +- `shared_secret` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--client--shared_secret)) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) - -### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials` + +### Nested Schema for `issued_permissions.client.account_permissions` Read-Only: @@ -309,24 +336,24 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials` + +### Nested Schema for `issued_permissions.client.attributes` - -### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials` + +### Nested Schema for `issued_permissions.client.shared_secret` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--use_client_credentials--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--client--shared_secret--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--client--use_client_credentials--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--client--shared_secret--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials.links` + +### Nested Schema for `issued_permissions.client.shared_secret.uuid` Read-Only: @@ -336,8 +363,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.client.use_client_credentials.permissions` + +### Nested Schema for `issued_permissions.client.shared_secret.uuid` Read-Only: @@ -349,19 +376,19 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.for_group` + +### Nested Schema for `issued_permissions.for_group` Read-Only: - `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_group--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--for_group--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_group--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--for_group--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.for_group.uuid` + +### Nested Schema for `issued_permissions.for_group.links` Read-Only: @@ -371,8 +398,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.for_group.uuid` + +### Nested Schema for `issued_permissions.for_group.permissions` Read-Only: @@ -383,21 +410,21 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.for_system` + +### Nested Schema for `issued_permissions.for_system` Read-Only: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--for_system--links)) - `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--permissions)) +- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--for_system--organizational_unit)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--for_system--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.for_system.uuid` + +### Nested Schema for `issued_permissions.for_system.links` Read-Only: @@ -407,18 +434,18 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.for_system.uuid` + +### Nested Schema for `issued_permissions.for_system.organizational_unit` Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--uuid--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--for_system--organizational_unit--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--issued_permissions--for_system--uuid--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--for_system--organizational_unit--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.issued_permissions.for_system.uuid.links` + +### Nested Schema for `issued_permissions.for_system.organizational_unit.uuid` Read-Only: @@ -428,8 +455,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.for_system.uuid.permissions` + +### Nested Schema for `issued_permissions.for_system.organizational_unit.uuid` Read-Only: @@ -440,8 +467,8 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.for_system.uuid` + +### Nested Schema for `issued_permissions.for_system.permissions` Read-Only: @@ -452,8 +479,8 @@ Read-Only: - -### Nested Schema for `additional_objects.issued_permissions.links` + +### Nested Schema for `issued_permissions.links` Read-Only: @@ -463,8 +490,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.issued_permissions.permissions` + +### Nested Schema for `issued_permissions.permissions` Read-Only: @@ -475,101 +502,47 @@ Read-Only: - -### Nested Schema for `additional_objects.management_permissions` - -Read-Only: - -- `create_new_groups_allowed` (Boolean) -- `create_service_accounts_allowed` (Boolean) -- `reuse_existing_groups_allowed` (Boolean) - - - -### Nested Schema for `additional_objects.markers` - -Read-Only: - -- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) - - -### Nested Schema for `additional_objects.markers.markers` - -Read-Only: - -- `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) -- `type` (String) - - -### Nested Schema for `additional_objects.markers.markers.type` - - - - - -### Nested Schema for `additional_objects.statistics` + +### Nested Schema for `links` Read-Only: -- `number_of_failed_calls` (Number) -- `number_of_not_permitted_calls` (Number) -- `number_of_successful_calls` (Number) -- `state` (String) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) - -### Nested Schema for `additional_objects.supported_group_types` + +### Nested Schema for `management_permissions` Read-Only: -- `types` (List of String) - +- `create_new_groups_allowed` (Boolean) +- `create_service_accounts_allowed` (Boolean) +- `reuse_existing_groups_allowed` (Boolean) - -### Nested Schema for `content_administrator` + +### Nested Schema for `markers` Read-Only: -- `admin` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administrator--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administrator--permissions)) -- `uuid` (String) +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--markers--markers)) - -### Nested Schema for `content_administrator.links` + +### Nested Schema for `markers.markers` Read-Only: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `content_administrator.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - +- `level` (String) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) +- `type` (String) - -### Nested Schema for `links` + +### Nested Schema for `markers.markers.parameters` -Read-Only: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) @@ -952,6 +925,25 @@ Read-Only: + +### Nested Schema for `statistics` + +Read-Only: + +- `number_of_failed_calls` (Number) +- `number_of_not_permitted_calls` (Number) +- `number_of_successful_calls` (Number) +- `state` (String) + + + +### Nested Schema for `supported_group_types` + +Read-Only: + +- `types` (List of String) + + ### Nested Schema for `technical_administrator` diff --git a/docs/data-sources/vaultrecord.md b/docs/data-sources/vaultrecord.md index 39a242c..efe729e 100644 --- a/docs/data-sources/vaultrecord.md +++ b/docs/data-sources/vaultrecord.md @@ -25,36 +25,29 @@ description: |- ### Read-Only -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `color` (String) - `derived` (Boolean) - `end_date` (String) - `filename` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `name` (String) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--parent)) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `share_end_time` (String) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) +- `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `types` (List of String) - `url` (String) - `username` (String) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - `warning_period` (String) - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--parent)) -- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) -- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) -- `shares` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) -- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -64,20 +57,31 @@ Read-Only: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.parent` + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `parent` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--parent--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--parent--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--parent--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--parent--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.parent.links` + +### Nested Schema for `parent.links` Read-Only: @@ -87,8 +91,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.parent.permissions` + +### Nested Schema for `parent.permissions` Read-Only: @@ -99,8 +103,8 @@ Read-Only: - -### Nested Schema for `additional_objects.password_metadata` + +### Nested Schema for `password_metadata` Read-Only: @@ -115,8 +119,19 @@ Read-Only: - `upper_count` (Number) - -### Nested Schema for `additional_objects.secret` + +### Nested Schema for `permissions` + +Read-Only: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `secret` Read-Only: @@ -126,16 +141,16 @@ Read-Only: - `totp` (String) - -### Nested Schema for `additional_objects.share_summary` + +### Nested Schema for `share_summary` Read-Only: -- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) +- `children` (Attributes List) (see [below for nested schema](#nestedatt--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--share_summary--parent)) - -### Nested Schema for `additional_objects.share_summary.children` + +### Nested Schema for `share_summary.children` Read-Only: @@ -143,8 +158,8 @@ Read-Only: - `type` (String) - -### Nested Schema for `additional_objects.share_summary.parent` + +### Nested Schema for `share_summary.parent` Read-Only: @@ -153,20 +168,20 @@ Read-Only: - -### Nested Schema for `additional_objects.shares` + +### Nested Schema for `shares` Read-Only: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--shares--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) - `share_end_time` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.shares.links` + +### Nested Schema for `shares.links` Read-Only: @@ -176,8 +191,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.shares.permissions` + +### Nested Schema for `shares.permissions` Read-Only: @@ -188,32 +203,9 @@ Read-Only: - -### Nested Schema for `additional_objects.tile` - - - -### Nested Schema for `additional_objects.vaultholder` - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` + +### Nested Schema for `tile` -Read-Only: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) + +### Nested Schema for `vaultholder` diff --git a/docs/data-sources/webhook.md b/docs/data-sources/webhook.md index 1e602bb..9eace9d 100644 --- a/docs/data-sources/webhook.md +++ b/docs/data-sources/webhook.md @@ -27,8 +27,8 @@ description: |- - `account` (Attributes) (see [below for nested schema](#nestedatt--account)) - `active` (Boolean) -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `all_types` (Boolean) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `authentication_scheme` (String) - `basic_auth_password` (String) - `basic_auth_username` (String) @@ -85,15 +85,8 @@ Read-Only: - -### Nested Schema for `additional_objects` - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Read-Only: @@ -103,7 +96,6 @@ Read-Only: - `last_modified_by` (String) - ### Nested Schema for `client` diff --git a/docs/resources/client_vaultrecord.md b/docs/resources/client_vaultrecord.md index 6569cfa..380e605 100644 --- a/docs/resources/client_vaultrecord.md +++ b/docs/resources/client_vaultrecord.md @@ -22,43 +22,33 @@ description: |- ### Optional -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `color` (String) +- `delete_tile` (Boolean) - `end_date` (String) - `filename` (String) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `url` (String) - `username` (String) - `warning_period` (String) ### Read-Only +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `derived` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `parent_uuid` (String) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `share_end_time` (String) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) +- `shares` (List of String) - `types` (List of String) - `uuid` (String) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - -### Nested Schema for `additional_objects` - -Optional: - -- `delete_tile` (Boolean) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `parent_uuid` (String) -- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) -- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) -- `shares` (List of String) -- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) - - -### Nested Schema for `additional_objects.secret` + +### Nested Schema for `secret` Optional: @@ -69,12 +59,12 @@ Optional: - `write_totp` (Boolean) - -### Nested Schema for `additional_objects.tile` + +### Nested Schema for `tile` - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Optional: @@ -84,8 +74,19 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.password_metadata` + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `password_metadata` Optional: @@ -100,25 +101,27 @@ Optional: - `upper_count` (Number) - -### Nested Schema for `additional_objects.share_summary` + +### Nested Schema for `permissions` Optional: -- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + - -### Nested Schema for `additional_objects.share_summary.children` + +### Nested Schema for `share_summary` Optional: -- `name` (String) -- `type` (String) - +- `children` (Attributes List) (see [below for nested schema](#nestedatt--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--share_summary--parent)) - -### Nested Schema for `additional_objects.share_summary.parent` + +### Nested Schema for `share_summary.children` Optional: @@ -126,29 +129,15 @@ Optional: - `type` (String) + +### Nested Schema for `share_summary.parent` - -### Nested Schema for `additional_objects.vaultholder` - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) +Optional: +- `name` (String) +- `type` (String) - -### Nested Schema for `permissions` -Optional: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) + +### Nested Schema for `vaultholder` diff --git a/docs/resources/clientapplication.md b/docs/resources/clientapplication.md index 9712b76..af3e8e0 100644 --- a/docs/resources/clientapplication.md +++ b/docs/resources/clientapplication.md @@ -21,42 +21,32 @@ description: |- ### Optional -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `client_id` (String) +- `delete_tile` (Boolean) +- `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--groupclients)) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client)) - `owner_uuid` (String) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--saml2_client)) - `scopes` (List of String) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `technical_administrator_uuid` (String) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) ### Read-Only +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `last_modified_at` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `sso_application` (Boolean) - `type` (String) - `uuid` (String) - - -### Nested Schema for `additional_objects` - -Optional: - -- `delete_tile` (Boolean) -- `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients)) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) - `vault_record_count` (Number) - -### Nested Schema for `additional_objects.groupclients` + +### Nested Schema for `groupclients` Optional: @@ -66,13 +56,13 @@ Read-Only: - `client_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--links)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groupclients--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--permissions)) - `technical_administrator_uuid` (String) - -### Nested Schema for `additional_objects.groupclients.links` + +### Nested Schema for `groupclients.links` Read-Only: @@ -82,8 +72,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groupclients.permissions` + +### Nested Schema for `groupclients.permissions` Optional: @@ -94,8 +84,78 @@ Optional: - -### Nested Schema for `additional_objects.secret` + +### Nested Schema for `ldap_client` + +Optional: + +- `client_certificate_uuid` (String) +- `share_secret_in_vault` (Boolean) + +Read-Only: + +- `bind_dn` (String) +- `shared_secret_uuid` (String) +- `used_for_provisioning` (Boolean) + + + +### Nested Schema for `o_auth2_client` + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--attributes)) +- `callback_uri` (String) +- `confidential` (Boolean) +- `debug_mode` (Boolean) +- `id_token_claims` (String) +- `initiate_login_uri` (String) +- `resource_uris` (String) +- `share_secret_in_vault` (Boolean) +- `show_landing_page` (Boolean) +- `use_client_credentials` (Boolean) + +Read-Only: + +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) +- `shared_secret_uuid` (String) + + +### Nested Schema for `o_auth2_client.attributes` + + + +### Nested Schema for `o_auth2_client.account_permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `saml2_client` + +Required: + +- `subject_format` (String) + +Optional: + +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--saml2_client--attributes)) +- `metadata` (String) +- `metadata_url` (String) + + +### Nested Schema for `saml2_client.attributes` + + + + +### Nested Schema for `secret` Optional: @@ -104,16 +164,16 @@ Optional: - `regenerate` (Boolean) - -### Nested Schema for `additional_objects.tile` + +### Nested Schema for `tile` Optional: - `uri` (String) - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Optional: @@ -123,8 +183,8 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.groups` + +### Nested Schema for `groups` Required: @@ -133,7 +193,7 @@ Required: Optional: - `application_administration` (Boolean) -- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config)) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--groups--audit_config)) - `authorizing_group_auditing_uuid` (String) - `authorizing_group_delegation_uuid` (String) - `authorizing_group_membership_uuid` (String) @@ -157,12 +217,12 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.groups.audit_config` + +### Nested Schema for `groups.audit_config` Optional: @@ -170,11 +230,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--audit_config--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--permissions)) - -### Nested Schema for `additional_objects.groups.audit_config.permissions` + +### Nested Schema for `groups.audit_config.links` Read-Only: @@ -184,8 +244,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.audit_config.permissions` + +### Nested Schema for `groups.audit_config.permissions` Optional: @@ -196,8 +256,8 @@ Optional: - -### Nested Schema for `additional_objects.groups.links` + +### Nested Schema for `groups.links` Read-Only: @@ -207,8 +267,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.permissions` + +### Nested Schema for `groups.permissions` Optional: @@ -219,77 +279,6 @@ Optional: - - -### Nested Schema for `ldap_client` - -Optional: - -- `client_certificate_uuid` (String) -- `share_secret_in_vault` (Boolean) - -Read-Only: - -- `bind_dn` (String) -- `shared_secret_uuid` (String) -- `used_for_provisioning` (Boolean) - - - -### Nested Schema for `o_auth2_client` - -Optional: - -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--attributes)) -- `callback_uri` (String) -- `confidential` (Boolean) -- `debug_mode` (Boolean) -- `id_token_claims` (String) -- `initiate_login_uri` (String) -- `resource_uris` (String) -- `share_secret_in_vault` (Boolean) -- `show_landing_page` (Boolean) -- `use_client_credentials` (Boolean) - -Read-Only: - -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) -- `shared_secret_uuid` (String) - - -### Nested Schema for `o_auth2_client.attributes` - - - -### Nested Schema for `o_auth2_client.account_permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `saml2_client` - -Required: - -- `subject_format` (String) - -Optional: - -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--saml2_client--attributes)) -- `metadata` (String) -- `metadata_url` (String) - - -### Nested Schema for `saml2_client.attributes` - - - ### Nested Schema for `links` diff --git a/docs/resources/group.md b/docs/resources/group.md index fd24c2c..b49b382 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -21,7 +21,8 @@ description: |- ### Optional -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--accounts)) +- `admins` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--admins)) - `application_administration` (Boolean) - `audit_config` (Attributes) (see [below for nested schema](#nestedatt--audit_config)) - `authorizing_group_auditing_uuid` (String) @@ -29,6 +30,7 @@ description: |- - `authorizing_group_membership_uuid` (String) - `authorizing_group_provisioning_uuid` (String) - `classification_uuid` (String) +- `client_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions)) - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) @@ -44,51 +46,39 @@ description: |- ### Read-Only - `admin` (Boolean) +- `administered_clients` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients)) +- `administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems)) +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `audit_requested` (Boolean) - `auditor` (Boolean) +- `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups)) - `authorizing_group_types` (List of String) +- `clients` (Attributes List) (see [below for nested schema](#nestedatt--clients)) +- `content_administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems)) +- `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--groupauditinginfo)) +- `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--groupinfo)) +- `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) -- `uuid` (String) - - -### Nested Schema for `additional_objects` - -Optional: - -- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--accounts)) -- `admins` (Attributes List, Deprecated) (see [below for nested schema](#nestedatt--additional_objects--admins)) -- `client_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions)) - -Read-Only: - -- `administered_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients)) -- `administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems)) -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `authorized_groups` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups)) -- `clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients)) -- `content_administered_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems)) -- `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupauditinginfo)) -- `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--groupinfo)) -- `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk)) -- `markers` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers)) -- `myaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--myaccount)) -- `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--mydelegatedaccount)) +- `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) +- `myaccount` (Attributes) (see [below for nested schema](#nestedatt--myaccount)) +- `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--mydelegatedaccount)) - `nested_groups` (List of String) -- `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients)) -- `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories)) -- `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system)) -- `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units)) -- `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems)) -- `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits)) +- `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients)) +- `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories)) +- `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system)) +- `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units)) +- `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits)) - `requeststatus` (String) -- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts)) -- `systems` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems)) -- `vault` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vault)) -- `webhooks` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks)) +- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) +- `systems` (Attributes List) (see [below for nested schema](#nestedatt--systems)) +- `uuid` (String) +- `vault` (Attributes) (see [below for nested schema](#nestedatt--vault)) +- `webhooks` (Attributes List) (see [below for nested schema](#nestedatt--webhooks)) - -### Nested Schema for `additional_objects.accounts` + +### Nested Schema for `accounts` Required: @@ -110,8 +100,8 @@ Read-Only: - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.admins` + +### Nested Schema for `admins` Required: @@ -133,8 +123,43 @@ Read-Only: - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.client_permissions` + +### Nested Schema for `audit_config` + +Optional: + +- `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) + + +### Nested Schema for `audit_config.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `audit_config.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `client_permissions` Required: @@ -142,21 +167,21 @@ Required: Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client)) - `for_group_uuid` (String) - `for_system_uuid` (String) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--permissions)) - -### Nested Schema for `additional_objects.client_permissions.client` + +### Nested Schema for `client_permissions.client` Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -169,15 +194,15 @@ Optional: Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--client_permissions--client--account_permissions)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `additional_objects.client_permissions.client.shared_secret_uuid` + +### Nested Schema for `client_permissions.client.attributes` - -### Nested Schema for `additional_objects.client_permissions.client.shared_secret_uuid` + +### Nested Schema for `client_permissions.client.account_permissions` Optional: @@ -188,8 +213,8 @@ Optional: - -### Nested Schema for `additional_objects.client_permissions.links` + +### Nested Schema for `client_permissions.links` Read-Only: @@ -199,8 +224,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.client_permissions.permissions` + +### Nested Schema for `client_permissions.permissions` Optional: @@ -211,8 +236,8 @@ Optional: - -### Nested Schema for `additional_objects.administered_clients` + +### Nested Schema for `administered_clients` Required: @@ -221,24 +246,24 @@ Required: Optional: - `client_id` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--ldap_client)) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--ldap_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client)) - `owner_uuid` (String) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) Read-Only: - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--permissions)) - `sso_application` (Boolean) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.ldap_client` + +### Nested Schema for `administered_clients.ldap_client` Optional: @@ -252,12 +277,12 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client` + +### Nested Schema for `administered_clients.o_auth2_client` Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -270,15 +295,15 @@ Optional: Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--o_auth2_client--account_permissions)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.shared_secret_uuid` + +### Nested Schema for `administered_clients.o_auth2_client.attributes` - -### Nested Schema for `additional_objects.administered_clients.o_auth2_client.shared_secret_uuid` + +### Nested Schema for `administered_clients.o_auth2_client.account_permissions` Optional: @@ -289,8 +314,8 @@ Optional: - -### Nested Schema for `additional_objects.administered_clients.saml2_client` + +### Nested Schema for `administered_clients.saml2_client` Required: @@ -298,17 +323,17 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_clients--saml2_client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `additional_objects.administered_clients.saml2_client.metadata_url` + +### Nested Schema for `administered_clients.saml2_client.attributes` - -### Nested Schema for `additional_objects.administered_clients.links` + +### Nested Schema for `administered_clients.links` Read-Only: @@ -318,8 +343,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_clients.permissions` + +### Nested Schema for `administered_clients.permissions` Optional: @@ -330,8 +355,8 @@ Optional: - -### Nested Schema for `additional_objects.administered_systems` + +### Nested Schema for `administered_systems` Required: @@ -342,16 +367,16 @@ Required: Optional: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) - `organizational_unit_uuid` (String) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap_directory)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -362,13 +387,13 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap` Required: @@ -378,7 +403,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--attributes)) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -392,21 +417,21 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `administered_systems.abstract_provisioned_ldap.attributes` - -### Nested Schema for `additional_objects.administered_systems.provisioned_a_d` + +### Nested Schema for `administered_systems.provisioned_a_d` Required: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_oidc_directory` + +### Nested Schema for `administered_systems.provisioned_azure_oidc_directory` Required: @@ -414,8 +439,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_sync_ldap_directory` + +### Nested Schema for `administered_systems.provisioned_azure_sync_ldap_directory` Required: @@ -425,8 +450,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_azure_tenant` + +### Nested Schema for `administered_systems.provisioned_azure_tenant` Required: @@ -439,15 +464,15 @@ Optional: - `idp_domain` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap` + +### Nested Schema for `administered_systems.provisioned_internal_ldap` Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_internal_ldap--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.administered_systems.provisioned_internal_ldap.client` + +### Nested Schema for `administered_systems.provisioned_internal_ldap.client` Optional: @@ -462,20 +487,20 @@ Read-Only: - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap` + +### Nested Schema for `administered_systems.provisioned_ldap` Required: - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering)) Optional: - `gid` (Number) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.gid` + +### Nested Schema for `administered_systems.provisioned_ldap.numbering` Required: @@ -488,11 +513,11 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--gid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--administered_systems--provisioned_ldap--gid--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.gid.links` + +### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -502,8 +527,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap.gid.permissions` + +### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` Optional: @@ -515,8 +540,8 @@ Optional: - -### Nested Schema for `additional_objects.administered_systems.provisioned_ldap_directory` + +### Nested Schema for `administered_systems.provisioned_ldap_directory` Required: @@ -524,8 +549,8 @@ Required: - `group_dn` (String) - -### Nested Schema for `additional_objects.administered_systems.links` + +### Nested Schema for `administered_systems.links` Read-Only: @@ -535,8 +560,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.administered_systems.permissions` + +### Nested Schema for `administered_systems.permissions` Optional: @@ -547,8 +572,8 @@ Optional: - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Optional: @@ -558,16 +583,16 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.authorized_groups` + +### Nested Schema for `authorized_groups` Optional: - `group_count` (Number) -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items)) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items)) - -### Nested Schema for `additional_objects.authorized_groups.items` + +### Nested Schema for `authorized_groups.items` Required: @@ -576,7 +601,7 @@ Required: Optional: - `application_administration` (Boolean) -- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--audit_config)) +- `audit_config` (Attributes) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config)) - `authorizing_group_auditing_uuid` (String) - `authorizing_group_delegation_uuid` (String) - `authorizing_group_membership_uuid` (String) @@ -600,12 +625,12 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.uuid` + +### Nested Schema for `authorized_groups.items.audit_config` Optional: @@ -613,11 +638,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--authorized_groups--items--uuid--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--permissions)) - -### Nested Schema for `additional_objects.authorized_groups.items.uuid.links` + +### Nested Schema for `authorized_groups.items.audit_config.permissions` Read-Only: @@ -627,8 +652,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.uuid.permissions` + +### Nested Schema for `authorized_groups.items.audit_config.permissions` Optional: @@ -639,8 +664,8 @@ Optional: - -### Nested Schema for `additional_objects.authorized_groups.items.uuid` + +### Nested Schema for `authorized_groups.items.links` Read-Only: @@ -650,8 +675,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.authorized_groups.items.uuid` + +### Nested Schema for `authorized_groups.items.permissions` Optional: @@ -663,8 +688,8 @@ Optional: - -### Nested Schema for `additional_objects.clients` + +### Nested Schema for `clients` Optional: @@ -674,13 +699,13 @@ Read-Only: - `client_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--links)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--clients--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--permissions)) - `technical_administrator_uuid` (String) - -### Nested Schema for `additional_objects.clients.links` + +### Nested Schema for `clients.links` Read-Only: @@ -690,8 +715,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.clients.permissions` + +### Nested Schema for `clients.permissions` Optional: @@ -702,8 +727,8 @@ Optional: - -### Nested Schema for `additional_objects.content_administered_systems` + +### Nested Schema for `content_administered_systems` Required: @@ -714,16 +739,16 @@ Required: Optional: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) - `organizational_unit_uuid` (String) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap_directory)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -734,13 +759,13 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap` Required: @@ -750,7 +775,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--attributes)) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -764,21 +789,21 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.attributes` - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_a_d` + +### Nested Schema for `content_administered_systems.provisioned_a_d` Required: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_oidc_directory` + +### Nested Schema for `content_administered_systems.provisioned_azure_oidc_directory` Required: @@ -786,8 +811,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_sync_ldap_directory` + +### Nested Schema for `content_administered_systems.provisioned_azure_sync_ldap_directory` Required: @@ -797,8 +822,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_azure_tenant` + +### Nested Schema for `content_administered_systems.provisioned_azure_tenant` Required: @@ -811,15 +836,15 @@ Optional: - `idp_domain` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap` Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_internal_ldap--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_internal_ldap.client` + +### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client` Optional: @@ -834,20 +859,20 @@ Read-Only: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap` + +### Nested Schema for `content_administered_systems.provisioned_ldap` Required: - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering)) Optional: - `gid` (Number) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.gid` + +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering` Required: @@ -860,11 +885,11 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--gid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--content_administered_systems--provisioned_ldap--gid--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.gid.links` + +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -874,8 +899,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap.gid.permissions` + +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` Optional: @@ -887,8 +912,8 @@ Optional: - -### Nested Schema for `additional_objects.content_administered_systems.provisioned_ldap_directory` + +### Nested Schema for `content_administered_systems.provisioned_ldap_directory` Required: @@ -896,8 +921,8 @@ Required: - `group_dn` (String) - -### Nested Schema for `additional_objects.content_administered_systems.links` + +### Nested Schema for `content_administered_systems.links` Read-Only: @@ -907,8 +932,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.content_administered_systems.permissions` + +### Nested Schema for `content_administered_systems.permissions` Optional: @@ -919,8 +944,8 @@ Optional: - -### Nested Schema for `additional_objects.groupauditinginfo` + +### Nested Schema for `groupauditinginfo` Optional: @@ -934,8 +959,8 @@ Optional: - `nr_vault_records_with_end_date` (Number) - -### Nested Schema for `additional_objects.groupinfo` + +### Nested Schema for `groupinfo` Optional: @@ -947,25 +972,25 @@ Optional: - `nr_vault_records` (Number) - -### Nested Schema for `additional_objects.helpdesk` + +### Nested Schema for `helpdesk` Optional: - `domain_restriction` (String) - `fully_resolved_issuer` (String) - `name` (String) -- `status` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--status)) +- `status` (Attributes) (see [below for nested schema](#nestedatt--helpdesk--status)) - `type` (String) - `username_customizable` (Boolean) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--helpdesk--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--permissions)) - -### Nested Schema for `additional_objects.helpdesk.status` + +### Nested Schema for `helpdesk.status` Optional: @@ -974,8 +999,8 @@ Optional: - `status` (String) - -### Nested Schema for `additional_objects.helpdesk.links` + +### Nested Schema for `helpdesk.links` Read-Only: @@ -985,8 +1010,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.helpdesk.permissions` + +### Nested Schema for `helpdesk.permissions` Optional: @@ -997,30 +1022,41 @@ Optional: - -### Nested Schema for `additional_objects.markers` + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `markers` Optional: -- `markers` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--markers--markers)) +- `markers` (Attributes List) (see [below for nested schema](#nestedatt--markers--markers)) - -### Nested Schema for `additional_objects.markers.markers` + +### Nested Schema for `markers.markers` Optional: - `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--markers--markers--parameters)) +- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) - `type` (String) - -### Nested Schema for `additional_objects.markers.markers.type` + +### Nested Schema for `markers.markers.parameters` - -### Nested Schema for `additional_objects.myaccount` + +### Nested Schema for `myaccount` Required: @@ -1042,8 +1078,8 @@ Read-Only: - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.mydelegatedaccount` + +### Nested Schema for `mydelegatedaccount` Required: @@ -1065,8 +1101,8 @@ Read-Only: - `visible_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_clients` + +### Nested Schema for `owned_clients` Required: @@ -1075,24 +1111,24 @@ Required: Optional: - `client_id` (String) -- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--ldap_client)) -- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client)) +- `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--ldap_client)) +- `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client)) - `owner_uuid` (String) -- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client)) +- `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) Read-Only: - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--permissions)) - `sso_application` (Boolean) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.ldap_client` + +### Nested Schema for `owned_clients.ldap_client` Optional: @@ -1106,12 +1142,12 @@ Read-Only: - `used_for_provisioning` (Boolean) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client` + +### Nested Schema for `owned_clients.o_auth2_client` Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--attributes)) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -1124,15 +1160,15 @@ Optional: Read-Only: -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--o_auth2_client--account_permissions)) +- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.shared_secret_uuid` + +### Nested Schema for `owned_clients.o_auth2_client.attributes` - -### Nested Schema for `additional_objects.owned_clients.o_auth2_client.shared_secret_uuid` + +### Nested Schema for `owned_clients.o_auth2_client.account_permissions` Optional: @@ -1143,8 +1179,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_clients.saml2_client` + +### Nested Schema for `owned_clients.saml2_client` Required: @@ -1152,17 +1188,17 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_clients--saml2_client--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client--attributes)) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `additional_objects.owned_clients.saml2_client.metadata_url` + +### Nested Schema for `owned_clients.saml2_client.attributes` - -### Nested Schema for `additional_objects.owned_clients.links` + +### Nested Schema for `owned_clients.links` Read-Only: @@ -1172,8 +1208,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_clients.permissions` + +### Nested Schema for `owned_clients.permissions` Optional: @@ -1184,8 +1220,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_directories` + +### Nested Schema for `owned_directories` Required: @@ -1198,31 +1234,31 @@ Optional: - `active` (Boolean) - `default_directory` (Boolean) - `helpdesk_group_uuid` (String) -- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--internal_directory)) -- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--l_d_a_p_directory)) -- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--maintenance_directory)) -- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--o_id_c_directory)) +- `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--internal_directory)) +- `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory)) +- `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--maintenance_directory)) +- `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--o_id_c_directory)) - `restrict2fa` (Boolean) - `username_customizable` (Boolean) Read-Only: - `account_validity_supported` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_directories--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.internal_directory` + +### Nested Schema for `owned_directories.internal_directory` Required: - `owner_uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.l_d_a_p_directory` + +### Nested Schema for `owned_directories.l_d_a_p_directory` Required: @@ -1245,12 +1281,12 @@ Optional: - `trusted_certificate_uuid` (String) - -### Nested Schema for `additional_objects.owned_directories.maintenance_directory` + +### Nested Schema for `owned_directories.maintenance_directory` - -### Nested Schema for `additional_objects.owned_directories.o_id_c_directory` + +### Nested Schema for `owned_directories.o_id_c_directory` Required: @@ -1273,8 +1309,8 @@ Read-Only: - `fully_resolved_issuer` (String) - -### Nested Schema for `additional_objects.owned_directories.links` + +### Nested Schema for `owned_directories.links` Read-Only: @@ -1284,8 +1320,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_directories.permissions` + +### Nested Schema for `owned_directories.permissions` Optional: @@ -1296,16 +1332,16 @@ Optional: - -### Nested Schema for `additional_objects.owned_groups_on_system` + +### Nested Schema for `owned_groups_on_system` Optional: -- `items` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items)) +- `items` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items)) - `unlinked_count` (Number) - -### Nested Schema for `additional_objects.owned_groups_on_system.items` + +### Nested Schema for `owned_groups_on_system.items` Required: @@ -1321,11 +1357,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_groups_on_system--items--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--permissions)) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` + +### Nested Schema for `owned_groups_on_system.items.links` Read-Only: @@ -1335,8 +1371,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_groups_on_system.items.permissions` + +### Nested Schema for `owned_groups_on_system.items.permissions` Optional: @@ -1348,8 +1384,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_organizational_units` + +### Nested Schema for `owned_organizational_units` Required: @@ -1363,13 +1399,13 @@ Optional: Read-Only: - `depth` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--links)) - `parent_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_organizational_units--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.links` + +### Nested Schema for `owned_organizational_units.links` Read-Only: @@ -1379,8 +1415,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_organizational_units.permissions` + +### Nested Schema for `owned_organizational_units.permissions` Optional: @@ -1391,8 +1427,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_systems` + +### Nested Schema for `owned_systems` Required: @@ -1403,16 +1439,16 @@ Required: Optional: -- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap)) +- `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap)) - `active` (Boolean) - `organizational_unit_uuid` (String) -- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_a_d)) -- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_oidc_directory)) -- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_sync_ldap_directory)) -- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_azure_tenant)) -- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap)) -- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap)) -- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap_directory)) +- `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_a_d)) +- `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory)) +- `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory)) +- `provisioned_azure_tenant` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_tenant)) +- `provisioned_internal_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap)) +- `provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap)) +- `provisioned_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap_directory)) - `self_service_existing_groups` (Boolean) - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) @@ -1423,13 +1459,13 @@ Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--permissions)) - `type` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap` Required: @@ -1439,7 +1475,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--attributes)) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -1453,21 +1489,21 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.abstract_provisioned_ldap.user_dn` + +### Nested Schema for `owned_systems.abstract_provisioned_ldap.attributes` - -### Nested Schema for `additional_objects.owned_systems.provisioned_a_d` + +### Nested Schema for `owned_systems.provisioned_a_d` Required: - `sam_account_name_scheme` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_oidc_directory` + +### Nested Schema for `owned_systems.provisioned_azure_oidc_directory` Required: @@ -1475,8 +1511,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_sync_ldap_directory` + +### Nested Schema for `owned_systems.provisioned_azure_sync_ldap_directory` Required: @@ -1486,8 +1522,8 @@ Required: - `tenant` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_azure_tenant` + +### Nested Schema for `owned_systems.provisioned_azure_tenant` Required: @@ -1500,15 +1536,15 @@ Optional: - `idp_domain` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap` + +### Nested Schema for `owned_systems.provisioned_internal_ldap` Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_internal_ldap--client)) +- `client` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client)) - -### Nested Schema for `additional_objects.owned_systems.provisioned_internal_ldap.client` + +### Nested Schema for `owned_systems.provisioned_internal_ldap.client` Optional: @@ -1523,20 +1559,20 @@ Read-Only: - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap` + +### Nested Schema for `owned_systems.provisioned_ldap` Required: - `hashing_scheme` (String) -- `numbering` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--numbering)) +- `numbering` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering)) Optional: - `gid` (Number) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.gid` + +### Nested Schema for `owned_systems.provisioned_ldap.numbering` Required: @@ -1549,11 +1585,11 @@ Optional: Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--gid--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--owned_systems--provisioned_ldap--gid--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--permissions)) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.gid.links` + +### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` Read-Only: @@ -1563,8 +1599,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap.gid.permissions` + +### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` Optional: @@ -1576,8 +1612,8 @@ Optional: - -### Nested Schema for `additional_objects.owned_systems.provisioned_ldap_directory` + +### Nested Schema for `owned_systems.provisioned_ldap_directory` Required: @@ -1585,8 +1621,8 @@ Required: - `group_dn` (String) - -### Nested Schema for `additional_objects.owned_systems.links` + +### Nested Schema for `owned_systems.links` Read-Only: @@ -1596,8 +1632,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.owned_systems.permissions` + +### Nested Schema for `owned_systems.permissions` Optional: @@ -1608,8 +1644,19 @@ Optional: - -### Nested Schema for `additional_objects.recent_audits` + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + +### Nested Schema for `recent_audits` Required: @@ -1617,7 +1664,7 @@ Required: Optional: -- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts)) +- `accounts` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts)) - `comment` (String) Read-Only: @@ -1625,16 +1672,16 @@ Read-Only: - `created_at` (String) - `created_by` (String) - `group_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--links)) - `name_on_audit` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `submitted_at` (String) - `submitted_by` (String) - -### Nested Schema for `additional_objects.recent_audits.accounts` + +### Nested Schema for `recent_audits.accounts` Optional: @@ -1650,14 +1697,14 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--recent_audits--accounts--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--permissions)) - `rights` (String) - `username` (String) - -### Nested Schema for `additional_objects.recent_audits.accounts.username` + +### Nested Schema for `recent_audits.accounts.links` Read-Only: @@ -1667,8 +1714,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.accounts.username` + +### Nested Schema for `recent_audits.accounts.permissions` Optional: @@ -1679,8 +1726,8 @@ Optional: - -### Nested Schema for `additional_objects.recent_audits.links` + +### Nested Schema for `recent_audits.links` Read-Only: @@ -1690,8 +1737,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.recent_audits.permissions` + +### Nested Schema for `recent_audits.permissions` Optional: @@ -1702,8 +1749,8 @@ Optional: - -### Nested Schema for `additional_objects.service_accounts` + +### Nested Schema for `service_accounts` Required: @@ -1719,14 +1766,14 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--links)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) - `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--service_accounts--permissions)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `username` (String) - `uuid` (String) - -### Nested Schema for `additional_objects.service_accounts.links` + +### Nested Schema for `service_accounts.links` Read-Only: @@ -1736,8 +1783,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.service_accounts.permissions` + +### Nested Schema for `service_accounts.permissions` Optional: @@ -1748,8 +1795,8 @@ Optional: - -### Nested Schema for `additional_objects.systems` + +### Nested Schema for `systems` Optional: @@ -1757,13 +1804,13 @@ Optional: Read-Only: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system)) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) - -### Nested Schema for `additional_objects.systems.group_on_system` + +### Nested Schema for `systems.group_on_system` Required: @@ -1779,11 +1826,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--systems--group_on_system--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--permissions)) - -### Nested Schema for `additional_objects.systems.group_on_system.permissions` + +### Nested Schema for `systems.group_on_system.links` Read-Only: @@ -1793,8 +1840,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.group_on_system.permissions` + +### Nested Schema for `systems.group_on_system.permissions` Optional: @@ -1805,8 +1852,8 @@ Optional: - -### Nested Schema for `additional_objects.systems.links` + +### Nested Schema for `systems.links` Read-Only: @@ -1816,8 +1863,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.systems.permissions` + +### Nested Schema for `systems.permissions` Optional: @@ -1828,22 +1875,22 @@ Optional: - -### Nested Schema for `additional_objects.vault` + +### Nested Schema for `vault` Optional: - `access_available` (Boolean) - `name` (String) -- `records` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records)) +- `records` (Attributes List) (see [below for nested schema](#nestedatt--vault--records)) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) - -### Nested Schema for `additional_objects.vault.records` + +### Nested Schema for `vault.records` Required: @@ -1861,14 +1908,14 @@ Optional: Read-Only: - `derived` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--vault--records--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--permissions)) - `share_end_time` (String) - `types` (List of String) - `uuid` (String) - -### Nested Schema for `additional_objects.vault.records.uuid` + +### Nested Schema for `vault.records.links` Read-Only: @@ -1878,8 +1925,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.records.uuid` + +### Nested Schema for `vault.records.permissions` Optional: @@ -1890,8 +1937,8 @@ Optional: - -### Nested Schema for `additional_objects.vault.links` + +### Nested Schema for `vault.links` Read-Only: @@ -1901,8 +1948,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.vault.permissions` + +### Nested Schema for `vault.permissions` Optional: @@ -1913,8 +1960,8 @@ Optional: - -### Nested Schema for `additional_objects.webhooks` + +### Nested Schema for `webhooks` Required: @@ -1944,12 +1991,12 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--webhooks--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--permissions)) - `uuid` (String) - -### Nested Schema for `additional_objects.webhooks.links` + +### Nested Schema for `webhooks.links` Read-Only: @@ -1959,67 +2006,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.webhooks.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - - -### Nested Schema for `audit_config` - -Optional: - -- `months` (List of String) - -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) - - -### Nested Schema for `audit_config.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `audit_config.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` + +### Nested Schema for `webhooks.permissions` Optional: diff --git a/docs/resources/group_vaultrecord.md b/docs/resources/group_vaultrecord.md index 1b64a34..4594d20 100644 --- a/docs/resources/group_vaultrecord.md +++ b/docs/resources/group_vaultrecord.md @@ -22,43 +22,33 @@ description: |- ### Optional -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `color` (String) +- `delete_tile` (Boolean) - `end_date` (String) - `filename` (String) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `url` (String) - `username` (String) - `warning_period` (String) ### Read-Only +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `derived` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `parent_uuid` (String) +- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `share_end_time` (String) +- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) +- `shares` (List of String) - `types` (List of String) - `uuid` (String) +- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - -### Nested Schema for `additional_objects` - -Optional: - -- `delete_tile` (Boolean) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--tile)) - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `parent_uuid` (String) -- `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--password_metadata)) -- `share_summary` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary)) -- `shares` (List of String) -- `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--vaultholder)) - - -### Nested Schema for `additional_objects.secret` + +### Nested Schema for `secret` Optional: @@ -69,12 +59,12 @@ Optional: - `write_totp` (Boolean) - -### Nested Schema for `additional_objects.tile` + +### Nested Schema for `tile` - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Optional: @@ -84,8 +74,19 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.password_metadata` + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `password_metadata` Optional: @@ -100,25 +101,27 @@ Optional: - `upper_count` (Number) - -### Nested Schema for `additional_objects.share_summary` + +### Nested Schema for `permissions` Optional: -- `children` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--share_summary--children)) -- `parent` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--share_summary--parent)) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + - -### Nested Schema for `additional_objects.share_summary.children` + +### Nested Schema for `share_summary` Optional: -- `name` (String) -- `type` (String) - +- `children` (Attributes List) (see [below for nested schema](#nestedatt--share_summary--children)) +- `parent` (Attributes) (see [below for nested schema](#nestedatt--share_summary--parent)) - -### Nested Schema for `additional_objects.share_summary.parent` + +### Nested Schema for `share_summary.children` Optional: @@ -126,29 +129,15 @@ Optional: - `type` (String) + +### Nested Schema for `share_summary.parent` - -### Nested Schema for `additional_objects.vaultholder` - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) +Optional: +- `name` (String) +- `type` (String) - -### Nested Schema for `permissions` -Optional: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) + +### Nested Schema for `vaultholder` diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 11d0ba9..312e588 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -24,30 +24,20 @@ description: |- ### Optional -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `display_name` (String) +- `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--provgroups)) +- `service_accounts` (List of String) - `short_name_in_system` (String) - `system_uuid` (String) ### Read-Only +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - -### Nested Schema for `additional_objects` - -Optional: - -- `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups)) -- `service_accounts` (List of String) - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) - - -### Nested Schema for `additional_objects.provgroups` + +### Nested Schema for `provgroups` Optional: @@ -55,13 +45,13 @@ Optional: Read-Only: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--provgroups--group_on_system)) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--provgroups--group_on_system)) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--permissions)) - -### Nested Schema for `additional_objects.provgroups.group_on_system` + +### Nested Schema for `provgroups.group_on_system` Required: @@ -77,11 +67,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--group_on_system--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--provgroups--group_on_system--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--permissions)) - -### Nested Schema for `additional_objects.provgroups.group_on_system.permissions` + +### Nested Schema for `provgroups.group_on_system.links` Read-Only: @@ -91,8 +81,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.provgroups.group_on_system.permissions` + +### Nested Schema for `provgroups.group_on_system.permissions` Optional: @@ -103,8 +93,8 @@ Optional: - -### Nested Schema for `additional_objects.provgroups.links` + +### Nested Schema for `provgroups.links` Read-Only: @@ -114,8 +104,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.provgroups.permissions` + +### Nested Schema for `provgroups.permissions` Optional: @@ -126,8 +116,8 @@ Optional: - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Optional: @@ -137,7 +127,6 @@ Optional: - `last_modified_by` (String) - ### Nested Schema for `links` diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index fbe3884..8ed0907 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -24,32 +24,22 @@ description: |- ### Optional - `active` (Boolean) -- `additional_objects` (Attributes) (see [below for nested schema](#nestedatt--additional_objects)) - `description` (String) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `technical_administrator_uuid` (String) ### Read-Only +- `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) +- `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `password_uuid` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `username` (String) - `uuid` (String) - -### Nested Schema for `additional_objects` - -Optional: - -- `secret` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--secret)) - -Read-Only: - -- `audit` (Attributes) (see [below for nested schema](#nestedatt--additional_objects--audit)) -- `groups` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups)) - - -### Nested Schema for `additional_objects.secret` + +### Nested Schema for `secret` Optional: @@ -58,8 +48,8 @@ Optional: - `regenerate` (Boolean) - -### Nested Schema for `additional_objects.audit` + +### Nested Schema for `audit` Optional: @@ -69,8 +59,8 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `additional_objects.groups` + +### Nested Schema for `groups` Required: @@ -84,11 +74,11 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--additional_objects--groups--permissions)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - -### Nested Schema for `additional_objects.groups.links` + +### Nested Schema for `groups.links` Read-Only: @@ -98,8 +88,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `additional_objects.groups.permissions` + +### Nested Schema for `groups.permissions` Optional: @@ -110,7 +100,6 @@ Optional: - ### Nested Schema for `links` diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 5518ff7..591a914 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -54,17 +54,15 @@ provider "keyhubpreview" { resource "keyhubpreview_group" "terra" { name = "Terraform" - additional_objects = { - accounts = [{ - uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" - rights = "MANAGER" - }] - } + accounts = [{ + uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" + rights = "MANAGER" + }] } -resource "keyhubpreview_grouponsystem" "terragos" { - -} +#resource "keyhubpreview_grouponsystem" "terragos" { +# +#} #output "resource_group" { # value = resource.keyhubpreview_group.terra diff --git a/go.mod b/go.mod index e50e707..fa209ff 100644 --- a/go.mod +++ b/go.mod @@ -12,6 +12,7 @@ require ( github.com/hashicorp/terraform-plugin-testing v1.5.1 github.com/microsoft/kiota-abstractions-go v1.3.0 github.com/topicuskeyhub/sdk-go v0.28.1 + golang.org/x/exp v0.0.0-20231006140011-7918f672742d ) require ( @@ -76,7 +77,6 @@ require ( go.opentelemetry.io/otel/metric v1.19.0 // indirect go.opentelemetry.io/otel/trace v1.19.0 // indirect golang.org/x/crypto v0.14.0 // indirect - golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect golang.org/x/mod v0.13.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.13.0 // indirect diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 45d2eef..b96825b 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -82,22 +82,29 @@ var accountVaultVaultRecordAttrTypesDS = objectAttrsTypeDSAccountVaultVaultRecor var accountVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSAccountVaultVaultRecord(true) type accountVaultVaultRecordDataDS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Parent types.Object `tfsdk:"parent" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) @@ -107,7 +114,7 @@ type auditAuditRecordDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` AuditAuditRecordType types.String `tfsdk:"type"` DateTime types.String `tfsdk:"date_time"` OnAccount types.String `tfsdk:"on_account"` @@ -157,7 +164,13 @@ type authAccountDataDS struct { Additional types.List `tfsdk:"additional"` AccountPermissions types.List `tfsdk:"account_permissions"` Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` + Settings types.Object `tfsdk:"settings" tkhao:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` CanRequestGroups types.Bool `tfsdk:"can_request_groups"` Directory types.Object `tfsdk:"directory"` DirectoryName types.String `tfsdk:"directory_name"` @@ -304,7 +317,13 @@ type authInternalAccountDataDS struct { Additional types.List `tfsdk:"additional"` AccountPermissions types.List `tfsdk:"account_permissions"` Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` + Settings types.Object `tfsdk:"settings" tkhao:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` CanRequestGroups types.Bool `tfsdk:"can_request_groups"` Directory types.Object `tfsdk:"directory"` DirectoryName types.String `tfsdk:"directory_name"` @@ -392,7 +411,7 @@ type certificateCertificateDataDS struct { SubjectDN types.String `tfsdk:"subject_dn"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` KeyData types.List `tfsdk:"key_data"` } @@ -439,7 +458,14 @@ type clientApplicationVaultVaultRecordDataDS struct { ShareEndTime types.String `tfsdk:"share_end_time"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Parent types.Object `tfsdk:"parent" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` Derived types.Bool `tfsdk:"derived"` EndDate types.String `tfsdk:"end_date"` Filename types.String `tfsdk:"filename"` @@ -462,13 +488,18 @@ type clientClientApplicationDataDS struct { SsoApplication types.Bool `tfsdk:"sso_application"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groupclients types.List `tfsdk:"groupclients" tkhao:"groupclients"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + VaultRecordCount types.Int64 `tfsdk:"vault_record_count" tkhao:"vaultRecordCount"` LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` OAuth2Client types.Object `tfsdk:"o_auth2_client"` - Saml2Client types.Object `tfsdk:"saml2_client"` LDAPClient types.Object `tfsdk:"ldap_client"` + Saml2Client types.Object `tfsdk:"saml2_client"` } var clientClientApplicationLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false) @@ -537,13 +568,13 @@ var clientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSClientOAuth2Clien var clientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermission(true) type clientOAuth2ClientPermissionDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroup types.Object `tfsdk:"for_group"` - ForSystem types.Object `tfsdk:"for_system"` - Value types.String `tfsdk:"value"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` } var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(false) @@ -557,14 +588,14 @@ var clientOAuth2ClientPermissionWithClientAttrTypesDS = objectAttrsTypeDSClientO var clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(true) type clientOAuth2ClientPermissionWithClientDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroup types.Object `tfsdk:"for_group"` - ForSystem types.Object `tfsdk:"for_system"` - Value types.String `tfsdk:"value"` - Client types.Object `tfsdk:"client"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + ForGroup types.Object `tfsdk:"for_group"` + ForSystem types.Object `tfsdk:"for_system"` + Value types.String `tfsdk:"value"` + Client types.Object `tfsdk:"client"` } var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) @@ -615,7 +646,14 @@ type deletedVaultHolderVaultVaultRecordDataDS struct { ShareEndTime types.String `tfsdk:"share_end_time"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Parent types.Object `tfsdk:"parent" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` Derived types.Bool `tfsdk:"derived"` EndDate types.String `tfsdk:"end_date"` Filename types.String `tfsdk:"filename"` @@ -637,16 +675,18 @@ type directoryAccountDirectoryDataDS struct { Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Markers types.Object `tfsdk:"markers" tkhao:"markers"` + Status types.Object `tfsdk:"status" tkhao:"status"` BaseOrganizationalUnit types.Object `tfsdk:"base_organizational_unit"` DefaultDirectory types.Bool `tfsdk:"default_directory"` HelpdeskGroup types.Object `tfsdk:"helpdesk_group"` Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` } @@ -769,7 +809,8 @@ type groupAccountGroupDataDS struct { Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` EndDate types.String `tfsdk:"end_date"` Folder types.Object `tfsdk:"folder"` LastUsed types.String `tfsdk:"last_used"` @@ -811,7 +852,33 @@ type groupGroupDataDS struct { Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Accounts types.List `tfsdk:"accounts" tkhao:"accounts"` + AdministeredClients types.List `tfsdk:"administered_clients" tkhao:"administeredClients"` + AdministeredSystems types.List `tfsdk:"administered_systems" tkhao:"administeredSystems"` + Admins types.List `tfsdk:"admins" tkhao:"admins"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + AuthorizedGroups types.Object `tfsdk:"authorized_groups" tkhao:"authorizedGroups"` + ClientPermissions types.List `tfsdk:"client_permissions" tkhao:"clientPermissions"` + Clients types.List `tfsdk:"clients" tkhao:"clients"` + ContentAdministeredSystems types.List `tfsdk:"content_administered_systems" tkhao:"contentAdministeredSystems"` + Groupauditinginfo types.Object `tfsdk:"groupauditinginfo" tkhao:"groupauditinginfo"` + Groupinfo types.Object `tfsdk:"groupinfo" tkhao:"groupinfo"` + Helpdesk types.List `tfsdk:"helpdesk" tkhao:"helpdesk"` + Markers types.Object `tfsdk:"markers" tkhao:"markers"` + Myaccount types.Object `tfsdk:"myaccount" tkhao:"myaccount"` + Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount" tkhao:"mydelegatedaccount"` + NestedGroups types.List `tfsdk:"nested_groups" tkhao:"nestedGroups"` + OwnedClients types.List `tfsdk:"owned_clients" tkhao:"ownedClients"` + OwnedDirectories types.List `tfsdk:"owned_directories" tkhao:"ownedDirectories"` + OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system" tkhao:"ownedGroupsOnSystem"` + OwnedOrganizationalUnits types.List `tfsdk:"owned_organizational_units" tkhao:"ownedOrganizationalUnits"` + OwnedSystems types.List `tfsdk:"owned_systems" tkhao:"ownedSystems"` + RecentAudits types.List `tfsdk:"recent_audits" tkhao:"recentAudits"` + Requeststatus types.String `tfsdk:"requeststatus" tkhao:"requeststatus"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` + Systems types.List `tfsdk:"systems" tkhao:"systems"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` + Webhooks types.List `tfsdk:"webhooks" tkhao:"webhooks"` ApplicationAdministration types.Bool `tfsdk:"application_administration"` AuditConfig types.Object `tfsdk:"audit_config"` AuditRequested types.Bool `tfsdk:"audit_requested"` @@ -847,7 +914,7 @@ type groupGroupAccountDataDS struct { UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` Directory types.Object `tfsdk:"directory"` DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` EndDate types.String `tfsdk:"end_date"` @@ -899,21 +966,21 @@ var groupGroupAuditAttrTypesDS = objectAttrsTypeDSGroupGroupAudit(false) var groupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit(true) type groupGroupAuditDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Accounts types.List `tfsdk:"accounts"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Accounts types.List `tfsdk:"accounts"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` } var groupGroupAuditAccountAttrTypesDS = objectAttrsTypeDSGroupGroupAuditAccount(false) @@ -982,7 +1049,8 @@ type groupGroupClassificationDataDS struct { Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Info types.Object `tfsdk:"info" tkhao:"info"` AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` @@ -1044,7 +1112,7 @@ type groupGroupClientDataDS struct { Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` Client types.Object `tfsdk:"client"` Group types.Object `tfsdk:"group"` Owner types.Object `tfsdk:"owner"` @@ -1069,11 +1137,11 @@ var groupGroupFolderAttrTypesDS = objectAttrsTypeDSGroupGroupFolder(false) var groupGroupFolderAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder(true) type groupGroupFolderDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Name types.String `tfsdk:"name"` } var groupGroupFolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(false) @@ -1189,7 +1257,7 @@ type groupProvisioningGroupDataDS struct { Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` Group types.Object `tfsdk:"group"` GroupOnSystem types.Object `tfsdk:"group_on_system"` } @@ -1212,22 +1280,29 @@ var groupVaultVaultRecordAttrTypesDS = objectAttrsTypeDSGroupVaultVaultRecord(fa var groupVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSGroupVaultVaultRecord(true) type groupVaultVaultRecordDataDS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Parent types.Object `tfsdk:"parent" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) @@ -1258,7 +1333,7 @@ type launchpadLaunchpadTileDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` Application types.Object `tfsdk:"application"` Group types.Object `tfsdk:"group"` IDenticonCode types.Int64 `tfsdk:"identicon_code"` @@ -1372,7 +1447,13 @@ type nestedAuthInternalAccountDataDS struct { Additional types.List `tfsdk:"additional"` AccountPermissions types.List `tfsdk:"account_permissions"` Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` + Settings types.Object `tfsdk:"settings" tkhao:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` CanRequestGroups types.Bool `tfsdk:"can_request_groups"` Directory types.Object `tfsdk:"directory"` DirectoryName types.String `tfsdk:"directory_name"` @@ -1406,7 +1487,7 @@ type nestedClientOAuth2ClientPermissionDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` ForGroup types.Object `tfsdk:"for_group"` ForSystem types.Object `tfsdk:"for_system"` Value types.String `tfsdk:"value"` @@ -1423,7 +1504,8 @@ type nestedGroupAccountGroupDataDS struct { Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` EndDate types.String `tfsdk:"end_date"` Folder types.Object `tfsdk:"folder"` LastUsed types.String `tfsdk:"last_used"` @@ -1445,7 +1527,7 @@ type nestedGroupGroupAccountDataDS struct { UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` Directory types.Object `tfsdk:"directory"` DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` EndDate types.String `tfsdk:"end_date"` @@ -1461,35 +1543,35 @@ var nestedGroupGroupAuditAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAudit(fa var nestedGroupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAudit(true) type nestedGroupGroupAuditDataDS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Accounts types.List `tfsdk:"accounts"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Accounts types.List `tfsdk:"accounts"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` } var nestedOrganizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(false) var nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(true) type nestedOrganizationAccountOrganizationalUnitDataDS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var nestedOrganizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(false) @@ -1505,7 +1587,7 @@ type nestedOrganizationOrganizationalUnitAccountDataDS struct { UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` Directory types.Object `tfsdk:"directory"` } @@ -1521,7 +1603,9 @@ type nestedProvisioningGroupOnSystemDataDS struct { ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` Owner types.Object `tfsdk:"owner"` System types.Object `tfsdk:"system"` } @@ -1539,7 +1623,7 @@ type nestedProvisioningProvisionedAccountDataDS struct { UUID types.String `tfsdk:"uuid"` Validity types.String `tfsdk:"validity"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` UID types.Int64 `tfsdk:"uid"` } @@ -1551,7 +1635,7 @@ type nestedProvisioningProvisionedSystemSyncLogDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` CreatedAt types.String `tfsdk:"created_at"` Errors types.Int64 `tfsdk:"errors"` Log types.String `tfsdk:"log"` @@ -1570,25 +1654,25 @@ type nestedServiceaccountServiceAccountGroupDataDS struct { ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var nestedWebhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSNestedWebhookWebhookDelivery(false) var nestedWebhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSNestedWebhookWebhookDelivery(true) type nestedWebhookWebhookDeliveryDataDS struct { - WebhookUUID types.String `tfsdk:"webhook_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` + WebhookUUID types.String `tfsdk:"webhook_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` } var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) @@ -1704,12 +1788,12 @@ var organizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganiza var organizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(true) type organizationAccountOrganizationalUnitDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(false) @@ -1730,32 +1814,32 @@ var organizationOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationOrg var organizationOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit(true) type organizationOrganizationalUnitDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Depth types.Int64 `tfsdk:"depth"` - Description types.String `tfsdk:"description"` - Owner types.Object `tfsdk:"owner"` - Parent types.Object `tfsdk:"parent"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Depth types.Int64 `tfsdk:"depth"` + Description types.String `tfsdk:"description"` + Owner types.Object `tfsdk:"owner"` + Parent types.Object `tfsdk:"parent"` } var organizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(false) var organizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(true) type organizationOrganizationalUnitAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Directory types.Object `tfsdk:"directory"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Directory types.Object `tfsdk:"directory"` } var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(false) @@ -1868,7 +1952,9 @@ type provisioningGroupOnSystemDataDS struct { ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` Owner types.Object `tfsdk:"owner"` System types.Object `tfsdk:"system"` } @@ -1941,13 +2027,14 @@ var provisioningProvisionNumberSequenceAttrTypesDS = objectAttrsTypeDSProvisioni var provisioningProvisionNumberSequenceAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence(true) type provisioningProvisionNumberSequenceDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` - NextUID types.Int64 `tfsdk:"next_uid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + AccountCount types.Int64 `tfsdk:"account_count"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Systems types.List `tfsdk:"systems" tkhao:"systems"` + Name types.String `tfsdk:"name"` + NextUID types.Int64 `tfsdk:"next_uid"` } var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(false) @@ -1976,16 +2063,16 @@ var provisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSProvisioningPro var provisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount(true) type provisioningProvisionedAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - UID types.Int64 `tfsdk:"uid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + LastActive types.String `tfsdk:"last_active"` + Username types.String `tfsdk:"username"` + UUID types.String `tfsdk:"uuid"` + Validity types.String `tfsdk:"validity"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + UID types.Int64 `tfsdk:"uid"` } var provisioningProvisionedAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(false) @@ -2067,7 +2154,14 @@ type provisioningProvisionedSystemDataDS struct { UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Account types.Object `tfsdk:"account" tkhao:"account"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + IssuedPermissions types.List `tfsdk:"issued_permissions" tkhao:"issuedPermissions"` + LoginName types.String `tfsdk:"login_name" tkhao:"loginName"` + ManagementPermissions types.Object `tfsdk:"management_permissions" tkhao:"managementPermissions"` + Markers types.Object `tfsdk:"markers" tkhao:"markers"` + Statistics types.Object `tfsdk:"statistics" tkhao:"statistics"` + SupportedGroupTypes types.Object `tfsdk:"supported_group_types" tkhao:"supportedGroupTypes"` ContentAdministrator types.Object `tfsdk:"content_administrator"` ExternalUUID types.String `tfsdk:"external_uuid"` Owner types.Object `tfsdk:"owner"` @@ -2077,14 +2171,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2118,14 +2212,14 @@ var provisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSProvision var provisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(true) type provisioningProvisionedSystemSyncLogDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` } var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) @@ -2346,7 +2440,8 @@ type requestModificationRequestDataDS struct { Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + ResetStatus types.Object `tfsdk:"reset_status" tkhao:"resetStatus"` Comment types.String `tfsdk:"comment"` Feedback types.String `tfsdk:"feedback"` Group types.Object `tfsdk:"group"` @@ -2354,41 +2449,41 @@ type requestModificationRequestDataDS struct { RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` JoinGroupRequest types.Object `tfsdk:"join_group_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` } @@ -2562,7 +2657,9 @@ type serviceaccountServiceAccountDataDS struct { Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` Description types.String `tfsdk:"description"` Password types.Object `tfsdk:"password"` PasswordRotation types.String `tfsdk:"password_rotation"` @@ -2580,7 +2677,7 @@ type serviceaccountServiceAccountGroupDataDS struct { ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(false) @@ -2683,7 +2780,8 @@ type vaultDeletedVaultHolderDataDS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` Name types.String `tfsdk:"name"` RecordCount types.Int64 `tfsdk:"record_count"` VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` @@ -2767,21 +2865,28 @@ var vaultVaultRecordAttrTypesDS = objectAttrsTypeDSVaultVaultRecord(false) var vaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecord(true) type vaultVaultRecordDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Parent types.Object `tfsdk:"parent" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } var vaultVaultRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(false) @@ -2882,7 +2987,7 @@ type webhookWebhookDataDS struct { Additional types.List `tfsdk:"additional"` Account types.Object `tfsdk:"account"` Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` AllTypes types.Bool `tfsdk:"all_types"` AuthenticationScheme types.String `tfsdk:"authentication_scheme"` BasicAuthPassword types.String `tfsdk:"basic_auth_password"` @@ -2908,17 +3013,17 @@ var webhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery( var webhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery(true) type webhookWebhookDeliveryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Additional types.List `tfsdk:"additional"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` } var webhookWebhookDeliveryLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index adb764a..8e68368 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -82,21 +82,29 @@ var accountVaultVaultRecordAttrTypesRS = objectAttrsTypeRSAccountVaultVaultRecor var accountVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSAccountVaultVaultRecord(true) type accountVaultVaultRecordDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` + AccountUUID types.String `tfsdk:"account_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` + ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) @@ -105,7 +113,7 @@ var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) type auditAuditRecordDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` AuditAuditRecordType types.String `tfsdk:"type"` DateTime types.String `tfsdk:"date_time"` OnAccount types.String `tfsdk:"on_account"` @@ -154,7 +162,13 @@ type authAccountDataRS struct { Validity types.String `tfsdk:"validity"` AccountPermissions types.List `tfsdk:"account_permissions"` Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` + Settings types.Object `tfsdk:"settings" tkhao:"settings"` + StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` CanRequestGroups types.Bool `tfsdk:"can_request_groups"` DirectoryUUID types.String `tfsdk:"directory_uuid"` DirectoryName types.String `tfsdk:"directory_name"` @@ -362,7 +376,7 @@ type certificateCertificateDataRS struct { Global types.Bool `tfsdk:"global"` SubjectDN types.String `tfsdk:"subject_dn"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` KeyData types.List `tfsdk:"key_data"` } @@ -408,7 +422,15 @@ type clientApplicationVaultVaultRecordDataRS struct { Name types.String `tfsdk:"name"` ShareEndTime types.String `tfsdk:"share_end_time"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` + ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` Derived types.Bool `tfsdk:"derived"` EndDate types.String `tfsdk:"end_date"` Filename types.String `tfsdk:"filename"` @@ -430,13 +452,19 @@ type clientClientApplicationDataRS struct { Scopes types.List `tfsdk:"scopes"` SsoApplication types.Bool `tfsdk:"sso_application"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` + Groupclients types.List `tfsdk:"groupclients" tkhao:"groupclients"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + VaultRecordCount types.Int64 `tfsdk:"vault_record_count" tkhao:"vaultRecordCount"` LastModifiedAt types.String `tfsdk:"last_modified_at"` OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` OAuth2Client types.Object `tfsdk:"o_auth2_client"` - Saml2Client types.Object `tfsdk:"saml2_client"` LDAPClient types.Object `tfsdk:"ldap_client"` + Saml2Client types.Object `tfsdk:"saml2_client"` } var clientClientApplicationLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false) @@ -506,12 +534,12 @@ var clientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSClientOAuth2Clien var clientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermission(true) type clientOAuth2ClientPermissionDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroupUUID types.String `tfsdk:"for_group_uuid"` - ForSystemUUID types.String `tfsdk:"for_system_uuid"` - Value types.String `tfsdk:"value"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` } var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(false) @@ -525,13 +553,13 @@ var clientOAuth2ClientPermissionWithClientAttrTypesRS = objectAttrsTypeRSClientO var clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(true) type clientOAuth2ClientPermissionWithClientDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - ForGroupUUID types.String `tfsdk:"for_group_uuid"` - ForSystemUUID types.String `tfsdk:"for_system_uuid"` - Value types.String `tfsdk:"value"` - Client types.Object `tfsdk:"client"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + ForGroupUUID types.String `tfsdk:"for_group_uuid"` + ForSystemUUID types.String `tfsdk:"for_system_uuid"` + Value types.String `tfsdk:"value"` + Client types.Object `tfsdk:"client"` } var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) @@ -581,7 +609,15 @@ type deletedVaultHolderVaultVaultRecordDataRS struct { Name types.String `tfsdk:"name"` ShareEndTime types.String `tfsdk:"share_end_time"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` + ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` Derived types.Bool `tfsdk:"derived"` EndDate types.String `tfsdk:"end_date"` Filename types.String `tfsdk:"filename"` @@ -602,16 +638,18 @@ type directoryAccountDirectoryDataRS struct { DirectoryAccountDirectoryPrimerType types.String `tfsdk:"type"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Markers types.Object `tfsdk:"markers" tkhao:"markers"` + Status types.Object `tfsdk:"status" tkhao:"status"` BaseOrganizationalUnitUUID types.String `tfsdk:"base_organizational_unit_uuid"` DefaultDirectory types.Bool `tfsdk:"default_directory"` HelpdeskGroupUUID types.String `tfsdk:"helpdesk_group_uuid"` Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` } @@ -729,7 +767,8 @@ var groupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup(tru type groupAccountGroupDataRS struct { UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` EndDate types.String `tfsdk:"end_date"` Folder types.Object `tfsdk:"folder"` LastUsed types.String `tfsdk:"last_used"` @@ -770,7 +809,33 @@ type groupGroupDataRS struct { Admin types.Bool `tfsdk:"admin"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Accounts types.List `tfsdk:"accounts" tkhao:"accounts"` + AdministeredClients types.List `tfsdk:"administered_clients" tkhao:"administeredClients"` + AdministeredSystems types.List `tfsdk:"administered_systems" tkhao:"administeredSystems"` + Admins types.List `tfsdk:"admins" tkhao:"admins"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + AuthorizedGroups types.Object `tfsdk:"authorized_groups" tkhao:"authorizedGroups"` + ClientPermissions types.List `tfsdk:"client_permissions" tkhao:"clientPermissions"` + Clients types.List `tfsdk:"clients" tkhao:"clients"` + ContentAdministeredSystems types.List `tfsdk:"content_administered_systems" tkhao:"contentAdministeredSystems"` + Groupauditinginfo types.Object `tfsdk:"groupauditinginfo" tkhao:"groupauditinginfo"` + Groupinfo types.Object `tfsdk:"groupinfo" tkhao:"groupinfo"` + Helpdesk types.List `tfsdk:"helpdesk" tkhao:"helpdesk"` + Markers types.Object `tfsdk:"markers" tkhao:"markers"` + Myaccount types.Object `tfsdk:"myaccount" tkhao:"myaccount"` + Mydelegatedaccount types.Object `tfsdk:"mydelegatedaccount" tkhao:"mydelegatedaccount"` + NestedGroups types.List `tfsdk:"nested_groups" tkhao:"nestedGroups"` + OwnedClients types.List `tfsdk:"owned_clients" tkhao:"ownedClients"` + OwnedDirectories types.List `tfsdk:"owned_directories" tkhao:"ownedDirectories"` + OwnedGroupsOnSystem types.Object `tfsdk:"owned_groups_on_system" tkhao:"ownedGroupsOnSystem"` + OwnedOrganizationalUnits types.List `tfsdk:"owned_organizational_units" tkhao:"ownedOrganizationalUnits"` + OwnedSystems types.List `tfsdk:"owned_systems" tkhao:"ownedSystems"` + RecentAudits types.List `tfsdk:"recent_audits" tkhao:"recentAudits"` + Requeststatus types.String `tfsdk:"requeststatus" tkhao:"requeststatus"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` + Systems types.List `tfsdk:"systems" tkhao:"systems"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` + Webhooks types.List `tfsdk:"webhooks" tkhao:"webhooks"` ApplicationAdministration types.Bool `tfsdk:"application_administration"` AuditConfig types.Object `tfsdk:"audit_config"` AuditRequested types.Bool `tfsdk:"audit_requested"` @@ -799,7 +864,7 @@ var groupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount(tru type groupGroupAccountDataRS struct { UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` DirectoryUUID types.String `tfsdk:"directory_uuid"` DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` EndDate types.String `tfsdk:"end_date"` @@ -851,20 +916,20 @@ var groupGroupAuditAttrTypesRS = objectAttrsTypeRSGroupGroupAudit(false) var groupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit(true) type groupGroupAuditDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Accounts types.List `tfsdk:"accounts"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` } var groupGroupAuditAccountAttrTypesRS = objectAttrsTypeRSGroupGroupAuditAccount(false) @@ -932,7 +997,8 @@ type groupGroupClassificationDataRS struct { Permissions types.List `tfsdk:"permissions"` Name types.String `tfsdk:"name"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Info types.Object `tfsdk:"info" tkhao:"info"` AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` @@ -993,7 +1059,7 @@ type groupGroupClientDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` ClientUUID types.String `tfsdk:"client_uuid"` GroupUUID types.String `tfsdk:"group_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` @@ -1018,10 +1084,10 @@ var groupGroupFolderAttrTypesRS = objectAttrsTypeRSGroupGroupFolder(false) var groupGroupFolderAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder(true) type groupGroupFolderDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Name types.String `tfsdk:"name"` } var groupGroupFolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(false) @@ -1136,7 +1202,7 @@ type groupProvisioningGroupDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` ActivationRequired types.Bool `tfsdk:"activation_required"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` GroupUUID types.String `tfsdk:"group_uuid"` GroupOnSystem types.Object `tfsdk:"group_on_system"` } @@ -1159,21 +1225,29 @@ var groupVaultVaultRecordAttrTypesRS = objectAttrsTypeRSGroupVaultVaultRecord(fa var groupVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSGroupVaultVaultRecord(true) type groupVaultVaultRecordDataRS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` + ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) @@ -1203,7 +1277,7 @@ var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchp type launchpadLaunchpadTileDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` ApplicationUUID types.String `tfsdk:"application_uuid"` GroupUUID types.String `tfsdk:"group_uuid"` IDenticonCode types.Int64 `tfsdk:"identicon_code"` @@ -1324,7 +1398,7 @@ type nestedClientOAuth2ClientPermissionDataRS struct { ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` ForGroupUUID types.String `tfsdk:"for_group_uuid"` ForSystemUUID types.String `tfsdk:"for_system_uuid"` Value types.String `tfsdk:"value"` @@ -1336,7 +1410,8 @@ var nestedGroupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupAcco type nestedGroupAccountGroupDataRS struct { AccountUUID types.String `tfsdk:"account_uuid"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` EndDate types.String `tfsdk:"end_date"` Folder types.Object `tfsdk:"folder"` LastUsed types.String `tfsdk:"last_used"` @@ -1351,7 +1426,7 @@ var nestedGroupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGrou type nestedGroupGroupAccountDataRS struct { GroupUUID types.String `tfsdk:"group_uuid"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` DirectoryUUID types.String `tfsdk:"directory_uuid"` DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` EndDate types.String `tfsdk:"end_date"` @@ -1367,30 +1442,30 @@ var nestedGroupGroupAuditAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAudit(fa var nestedGroupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAudit(true) type nestedGroupGroupAuditDataRS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Accounts types.List `tfsdk:"accounts"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` + GroupUUID types.String `tfsdk:"group_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Accounts types.List `tfsdk:"accounts"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Comment types.String `tfsdk:"comment"` + CreatedAt types.String `tfsdk:"created_at"` + CreatedBy types.String `tfsdk:"created_by"` + GroupName types.String `tfsdk:"group_name"` + NameOnAudit types.String `tfsdk:"name_on_audit"` + ReviewedAt types.String `tfsdk:"reviewed_at"` + ReviewedBy types.String `tfsdk:"reviewed_by"` + Status types.String `tfsdk:"status"` + SubmittedAt types.String `tfsdk:"submitted_at"` + SubmittedBy types.String `tfsdk:"submitted_by"` } var nestedOrganizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(false) var nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(true) type nestedOrganizationAccountOrganizationalUnitDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + AccountUUID types.String `tfsdk:"account_uuid"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var nestedOrganizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(false) @@ -1399,7 +1474,7 @@ var nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsT type nestedOrganizationOrganizationalUnitAccountDataRS struct { OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` DirectoryUUID types.String `tfsdk:"directory_uuid"` } @@ -1414,7 +1489,9 @@ type nestedProvisioningGroupOnSystemDataRS struct { NameInSystem types.String `tfsdk:"name_in_system"` ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` OwnerUUID types.String `tfsdk:"owner_uuid"` SystemUUID types.String `tfsdk:"system_uuid"` } @@ -1425,7 +1502,7 @@ var nestedProvisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSNe type nestedProvisioningProvisionedAccountDataRS struct { ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` UID types.Int64 `tfsdk:"uid"` } @@ -1436,7 +1513,7 @@ type nestedProvisioningProvisionedSystemSyncLogDataRS struct { ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` CreatedAt types.String `tfsdk:"created_at"` Errors types.Int64 `tfsdk:"errors"` Log types.String `tfsdk:"log"` @@ -1454,24 +1531,24 @@ type nestedServiceaccountServiceAccountGroupDataRS struct { NameInSystem types.String `tfsdk:"name_in_system"` ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var nestedWebhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSNestedWebhookWebhookDelivery(false) var nestedWebhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSNestedWebhookWebhookDelivery(true) type nestedWebhookWebhookDeliveryDataRS struct { - WebhookUUID types.String `tfsdk:"webhook_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` + WebhookUUID types.String `tfsdk:"webhook_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` } var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) @@ -1587,8 +1664,8 @@ var organizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganiza var organizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(true) type organizationAccountOrganizationalUnitDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(false) @@ -1609,24 +1686,25 @@ var organizationOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationOrg var organizationOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit(true) type organizationOrganizationalUnitDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Depth types.Int64 `tfsdk:"depth"` - Description types.String `tfsdk:"description"` - OwnerUUID types.String `tfsdk:"owner_uuid"` - ParentUUID types.String `tfsdk:"parent_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Name types.String `tfsdk:"name"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + CreateAsParentOf types.List `tfsdk:"create_as_parent_of" tkhao:"createAsParentOf"` + Depth types.Int64 `tfsdk:"depth"` + Description types.String `tfsdk:"description"` + OwnerUUID types.String `tfsdk:"owner_uuid"` + ParentUUID types.String `tfsdk:"parent_uuid"` } var organizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(false) var organizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(true) type organizationOrganizationalUnitAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DirectoryUUID types.String `tfsdk:"directory_uuid"` } var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(false) @@ -1739,7 +1817,9 @@ type provisioningGroupOnSystemDataRS struct { NameInSystem types.String `tfsdk:"name_in_system"` ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` OwnerUUID types.String `tfsdk:"owner_uuid"` SystemUUID types.String `tfsdk:"system_uuid"` } @@ -1812,12 +1892,13 @@ var provisioningProvisionNumberSequenceAttrTypesRS = objectAttrsTypeRSProvisioni var provisioningProvisionNumberSequenceAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence(true) type provisioningProvisionNumberSequenceDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Name types.String `tfsdk:"name"` - NextUID types.Int64 `tfsdk:"next_uid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + AccountCount types.Int64 `tfsdk:"account_count"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Systems types.List `tfsdk:"systems" tkhao:"systems"` + Name types.String `tfsdk:"name"` + NextUID types.Int64 `tfsdk:"next_uid"` } var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(false) @@ -1846,9 +1927,9 @@ var provisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSProvisioningPro var provisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount(true) type provisioningProvisionedAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - UID types.Int64 `tfsdk:"uid"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + UID types.Int64 `tfsdk:"uid"` } var provisioningProvisionedAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(false) @@ -1929,7 +2010,14 @@ type provisioningProvisionedSystemDataRS struct { ProvisioningProvisionedSystemPrimerType types.String `tfsdk:"type"` UUID types.String `tfsdk:"uuid"` AccountCount types.Int64 `tfsdk:"account_count"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Account types.Object `tfsdk:"account" tkhao:"account"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + IssuedPermissions types.List `tfsdk:"issued_permissions" tkhao:"issuedPermissions"` + LoginName types.String `tfsdk:"login_name" tkhao:"loginName"` + ManagementPermissions types.Object `tfsdk:"management_permissions" tkhao:"managementPermissions"` + Markers types.Object `tfsdk:"markers" tkhao:"markers"` + Statistics types.Object `tfsdk:"statistics" tkhao:"statistics"` + SupportedGroupTypes types.Object `tfsdk:"supported_group_types" tkhao:"supportedGroupTypes"` ContentAdministratorUUID types.String `tfsdk:"content_administrator_uuid"` ExternalUUID types.String `tfsdk:"external_uuid"` OwnerUUID types.String `tfsdk:"owner_uuid"` @@ -1939,14 +2027,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -1980,13 +2068,13 @@ var provisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSProvision var provisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(true) type provisioningProvisionedSystemSyncLogDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + CreatedAt types.String `tfsdk:"created_at"` + Errors types.Int64 `tfsdk:"errors"` + Log types.String `tfsdk:"log"` + Modifications types.Int64 `tfsdk:"modifications"` } var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) @@ -2206,7 +2294,9 @@ type requestModificationRequestDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + AcceptParams types.Object `tfsdk:"accept_params" tkhao:"acceptParams"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + ResetStatus types.Object `tfsdk:"reset_status" tkhao:"resetStatus"` Comment types.String `tfsdk:"comment"` Feedback types.String `tfsdk:"feedback"` GroupUUID types.String `tfsdk:"group_uuid"` @@ -2214,41 +2304,41 @@ type requestModificationRequestDataRS struct { RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` + TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` + PasswordResetRequest types.Object `tfsdk:"password_reset_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` JoinGroupRequest types.Object `tfsdk:"join_group_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + Disable2FARequest types.Object `tfsdk:"disable2fa_request"` TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` } @@ -2425,7 +2515,9 @@ type serviceaccountServiceAccountDataRS struct { SystemUUID types.String `tfsdk:"system_uuid"` Username types.String `tfsdk:"username"` UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Groups types.List `tfsdk:"groups" tkhao:"groups"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` Description types.String `tfsdk:"description"` PasswordUUID types.String `tfsdk:"password_uuid"` PasswordRotation types.String `tfsdk:"password_rotation"` @@ -2442,7 +2534,7 @@ type serviceaccountServiceAccountGroupDataRS struct { NameInSystem types.String `tfsdk:"name_in_system"` ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` } var serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(false) @@ -2544,7 +2636,8 @@ var vaultDeletedVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVau type vaultDeletedVaultHolderDataRS struct { Links types.List `tfsdk:"links"` Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Vault types.Object `tfsdk:"vault" tkhao:"vault"` Name types.String `tfsdk:"name"` RecordCount types.Int64 `tfsdk:"record_count"` VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` @@ -2628,20 +2721,28 @@ var vaultVaultRecordAttrTypesRS = objectAttrsTypeRSVaultVaultRecord(false) var vaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecord(true) type vaultVaultRecordDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Color types.String `tfsdk:"color"` + Name types.String `tfsdk:"name"` + ShareEndTime types.String `tfsdk:"share_end_time"` + UUID types.String `tfsdk:"uuid"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` + ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` + PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` + Secret types.Object `tfsdk:"secret" tkhao:"secret"` + ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` + Shares types.List `tfsdk:"shares" tkhao:"shares"` + Tile types.Object `tfsdk:"tile" tkhao:"tile"` + Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` + Derived types.Bool `tfsdk:"derived"` + EndDate types.String `tfsdk:"end_date"` + Filename types.String `tfsdk:"filename"` + Types types.List `tfsdk:"types"` + URL types.String `tfsdk:"url"` + Username types.String `tfsdk:"username"` + WarningPeriod types.String `tfsdk:"warning_period"` } var vaultVaultRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(false) @@ -2743,7 +2844,7 @@ type webhookWebhookDataRS struct { Permissions types.List `tfsdk:"permissions"` AccountUUID types.String `tfsdk:"account_uuid"` Active types.Bool `tfsdk:"active"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` AllTypes types.Bool `tfsdk:"all_types"` AuthenticationScheme types.String `tfsdk:"authentication_scheme"` BasicAuthPassword types.String `tfsdk:"basic_auth_password"` @@ -2769,16 +2870,16 @@ var webhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery( var webhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery(true) type webhookWebhookDeliveryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AdditionalObjects types.Object `tfsdk:"additional_objects"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Payload types.Object `tfsdk:"payload"` + ReponseHeaders types.String `tfsdk:"reponse_headers"` + RequestHeaders types.String `tfsdk:"request_headers"` + Response types.String `tfsdk:"response"` + Status types.Int64 `tfsdk:"status"` + Time types.Int64 `tfsdk:"time"` + TriggerTime types.String `tfsdk:"trigger_time"` } var webhookWebhookDeliveryLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index ebce815..e4e4731 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -6,6 +6,7 @@ package provider import ( "context" "fmt" + "reflect" "strings" "time" @@ -424,11 +425,18 @@ func setAttributeValue(ctx context.Context, tf basetypes.ObjectValue, key string return types.ObjectValueMust(tf.AttributeTypes(ctx), obj) } -func collectAdditional(additionalObjects basetypes.ObjectValue) []string { +func collectAdditional(data any) []string { + reflectValue := reflect.ValueOf(data) + reflectType := reflectValue.Type() ret := make([]string, 0) - for name, attr := range additionalObjects.Attributes() { - if !attr.IsNull() && !attr.IsUnknown() { - ret = append(ret, name) + for i := 0; i < reflectType.NumField(); i++ { + field := reflectType.Field(i) + tkhoa := field.Tag.Get("tkhao") + if tkhoa != "" { + attr := reflectValue.Field(i).Interface().(attr.Value) + if !attr.IsNull() && !attr.IsUnknown() { + ret = append(ret, tkhoa) + } } } return ret diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index ec3df21..c2c58c6 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -74,7 +74,14 @@ func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { func objectAttrsTypeDSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} } objectAttrs["account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -97,7 +104,7 @@ func objectAttrsTypeDSAccountVaultVaultRecord(recurse bool) map[string]attr.Type func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -139,7 +146,13 @@ func objectAttrsTypeDSAuditAuditRecord_additionalObjects(recurse bool) map[strin func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["groups"] = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false)["items"] + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(false)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(false)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -275,7 +288,13 @@ func objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse bool) map[str func objectAttrsTypeDSAuthInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["groups"] = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false)["items"] + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(false)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(false)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -356,7 +375,7 @@ func objectAttrsTypeDSAuthStoredAccountAttributes(recurse bool) map[string]attr. func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -405,7 +424,14 @@ func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map func objectAttrsTypeDSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} } objectAttrs["client_application_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -428,7 +454,12 @@ func objectAttrsTypeDSClientApplicationVaultVaultRecord(recurse bool) map[string func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplication_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["groupclients"] = objectAttrsTypeDSGroupGroupClientLinkableWrapper(false)["items"] + objectAttrs["groups"] = objectAttrsTypeDSGroupGroupLinkableWrapper(false)["items"] + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(false)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_count"] = types.Int64Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -443,8 +474,8 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} - objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client(false)} objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} + objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client(false)} return objectAttrs } @@ -508,7 +539,7 @@ func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { func objectAttrsTypeDSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -528,7 +559,7 @@ func objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) func objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -574,7 +605,14 @@ func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr func objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} } objectAttrs["deleted_vault_holder_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -597,7 +635,9 @@ func objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(recurse bool) map[strin func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(false)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryStatusReport(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -613,9 +653,9 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} return objectAttrs } @@ -722,7 +762,8 @@ func objectAttrsTypeDSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type func objectAttrsTypeDSGroupAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -762,7 +803,33 @@ func objectAttrsTypeDSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr func objectAttrsTypeDSGroupGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup_additionalObjects(false)} + objectAttrs["accounts"] = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(false)["items"] + objectAttrs["administered_clients"] = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false)["items"] + objectAttrs["administered_systems"] = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false)["items"] + objectAttrs["admins"] = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(false)["items"] + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAuthorizedGroupsWrapper(false)} + objectAttrs["client_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] + objectAttrs["clients"] = objectAttrsTypeDSGroupGroupClientLinkableWrapper(false)["items"] + objectAttrs["content_administered_systems"] = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false)["items"] + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditingInfo(false)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupInfo(false)} + objectAttrs["helpdesk"] = objectAttrsTypeDSDirectoryAccountDirectorySummaryLinkableWrapper(false)["items"] + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(false)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(false)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount(false)} + objectAttrs["nested_groups"] = objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(false)["items"] + objectAttrs["owned_clients"] = objectAttrsTypeDSClientClientApplicationLinkableWrapper(false)["items"] + objectAttrs["owned_directories"] = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false)["items"] + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(false)} + objectAttrs["owned_organizational_units"] = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(false)["items"] + objectAttrs["owned_systems"] = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false)["items"] + objectAttrs["recent_audits"] = objectAttrsTypeDSGroupGroupAuditLinkableWrapper(false)["items"] + objectAttrs["requeststatus"] = types.StringType + objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountLinkableWrapper(false)["items"] + objectAttrs["systems"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} + objectAttrs["webhooks"] = objectAttrsTypeDSWebhookWebhookLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -797,7 +864,7 @@ func objectAttrsTypeDSGroupGroup(recurse bool) map[string]attr.Type { func objectAttrsTypeDSGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -853,7 +920,7 @@ func objectAttrsTypeDSGroupGroupAdminMail(recurse bool) map[string]attr.Type { func objectAttrsTypeDSGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -927,7 +994,8 @@ func objectAttrsTypeDSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type func objectAttrsTypeDSGroupGroupClassification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -986,7 +1054,7 @@ func objectAttrsTypeDSGroupGroupClassification_additionalObjects(recurse bool) m func objectAttrsTypeDSGroupGroupClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClient_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1014,7 +1082,7 @@ func objectAttrsTypeDSGroupGroupClient_additionalObjects(recurse bool) map[strin func objectAttrsTypeDSGroupGroupFolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1122,7 +1190,7 @@ func objectAttrsTypeDSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { func objectAttrsTypeDSGroupProvisioningGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1148,7 +1216,14 @@ func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map func objectAttrsTypeDSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} } objectAttrs["group_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1190,7 +1265,7 @@ func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string] func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1287,7 +1362,13 @@ func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { func objectAttrsTypeDSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount_additionalObjects(false)} + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["groups"] = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false)["items"] + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(false)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(false)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } objectAttrs["account_directory_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1329,7 +1410,7 @@ func objectAttrsTypeDSNestedAuthInternalAccount(recurse bool) map[string]attr.Ty func objectAttrsTypeDSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["client_application_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1344,7 +1425,8 @@ func objectAttrsTypeDSNestedClientOAuth2ClientPermission(recurse bool) map[strin func objectAttrsTypeDSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } objectAttrs["account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1365,7 +1447,7 @@ func objectAttrsTypeDSNestedGroupAccountGroup(recurse bool) map[string]attr.Type func objectAttrsTypeDSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["group_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1391,7 +1473,7 @@ func objectAttrsTypeDSNestedGroupGroupAccount(recurse bool) map[string]attr.Type func objectAttrsTypeDSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAudit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["group_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1414,7 +1496,7 @@ func objectAttrsTypeDSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { func objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1428,7 +1510,7 @@ func objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(recurse bool) func objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1446,7 +1528,9 @@ func objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(recurse bool) func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] } objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1464,7 +1548,7 @@ func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]a func objectAttrsTypeDSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1482,7 +1566,7 @@ func objectAttrsTypeDSNestedProvisioningProvisionedAccount(recurse bool) map[str func objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1498,7 +1582,7 @@ func objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(recurse bool) m func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["service_account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1514,7 +1598,7 @@ func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[ func objectAttrsTypeDSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["webhook_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1628,7 +1712,7 @@ func objectAttrsTypeDSNotificationVaultRecordExpiredNotification(recurse bool) m func objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1653,7 +1737,7 @@ func objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(re func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1670,7 +1754,7 @@ func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]at func objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1775,7 +1859,9 @@ func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[str func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1849,7 +1935,8 @@ func objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[s func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["systems"] = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1882,7 +1969,7 @@ func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Ty func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1957,7 +2044,14 @@ func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[str func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["issued_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(false)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(false)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -1977,14 +2071,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} return objectAttrs } @@ -2015,7 +2109,7 @@ func objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2212,7 +2306,8 @@ func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2225,41 +2320,41 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} return objectAttrs } @@ -2403,7 +2498,9 @@ func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[stri func objectAttrsTypeDSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["groups"] = objectAttrsTypeDSServiceaccountServiceAccountGroupLinkableWrapper(false)["items"] + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGeneratedSecret(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2423,7 +2520,7 @@ func objectAttrsTypeDSServiceaccountServiceAccount(recurse bool) map[string]attr func objectAttrsTypeDSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2519,7 +2616,8 @@ func objectAttrsTypeDSSimpleVersionInfo(recurse bool) map[string]attr.Type { func objectAttrsTypeDSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2599,7 +2697,14 @@ func objectAttrsTypeDSVaultVaultHolder(recurse bool) map[string]attr.Type { func objectAttrsTypeDSVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2700,7 +2805,7 @@ func objectAttrsTypeDSVaultVaultUnlockResponse(recurse bool) map[string]attr.Typ func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} @@ -2732,7 +2837,7 @@ func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { func objectAttrsTypeDSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 4e1cc49..d3bb929 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -74,7 +74,15 @@ func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { func objectAttrsTypeRSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} } objectAttrs["account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -96,7 +104,7 @@ func objectAttrsTypeRSAccountVaultVaultRecord(recurse bool) map[string]attr.Type func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -137,7 +145,13 @@ func objectAttrsTypeRSAuditAuditRecord_additionalObjects(recurse bool) map[strin func objectAttrsTypeRSAuthAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount_additionalObjects(false)} + objectAttrs["active_login"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["groups"] = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(false)["items"] + objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(false)} + objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(false)} + objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -325,7 +339,7 @@ func objectAttrsTypeRSAuthStoredAccountAttributes(recurse bool) map[string]attr. func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -373,7 +387,15 @@ func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map func objectAttrsTypeRSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} } objectAttrs["client_application_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -395,7 +417,13 @@ func objectAttrsTypeRSClientApplicationVaultVaultRecord(recurse bool) map[string func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientClientApplication_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["groupclients"] = objectAttrsTypeRSGroupGroupClientLinkableWrapper(false)["items"] + objectAttrs["groups"] = objectAttrsTypeRSGroupGroupLinkableWrapper(false)["items"] + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(false)} + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} + objectAttrs["vault_record_count"] = types.Int64Type } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -409,8 +437,8 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} - objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client(false)} objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} + objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client(false)} return objectAttrs } @@ -475,7 +503,7 @@ func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { func objectAttrsTypeRSClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -494,7 +522,7 @@ func objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) func objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -539,7 +567,15 @@ func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr func objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} } objectAttrs["deleted_vault_holder_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -561,7 +597,9 @@ func objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(recurse bool) map[strin func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectory_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(false)} + objectAttrs["status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryAccountDirectoryStatusReport(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -576,9 +614,9 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} return objectAttrs } @@ -685,7 +723,8 @@ func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type func objectAttrsTypeRSGroupAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} } objectAttrs["uuid"] = types.StringType objectAttrs["end_date"] = types.StringType @@ -720,7 +759,33 @@ func objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr func objectAttrsTypeRSGroupGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup_additionalObjects(false)} + objectAttrs["accounts"] = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(false)["items"] + objectAttrs["administered_clients"] = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false)["items"] + objectAttrs["administered_systems"] = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false)["items"] + objectAttrs["admins"] = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(false)["items"] + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["authorized_groups"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAuthorizedGroupsWrapper(false)} + objectAttrs["client_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] + objectAttrs["clients"] = objectAttrsTypeRSGroupGroupClientLinkableWrapper(false)["items"] + objectAttrs["content_administered_systems"] = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false)["items"] + objectAttrs["groupauditinginfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditingInfo(false)} + objectAttrs["groupinfo"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupInfo(false)} + objectAttrs["helpdesk"] = objectAttrsTypeRSDirectoryAccountDirectorySummaryLinkableWrapper(false)["items"] + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(false)} + objectAttrs["myaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(false)} + objectAttrs["mydelegatedaccount"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount(false)} + objectAttrs["nested_groups"] = objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(false)["items"] + objectAttrs["owned_clients"] = objectAttrsTypeRSClientClientApplicationLinkableWrapper(false)["items"] + objectAttrs["owned_directories"] = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false)["items"] + objectAttrs["owned_groups_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(false)} + objectAttrs["owned_organizational_units"] = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(false)["items"] + objectAttrs["owned_systems"] = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false)["items"] + objectAttrs["recent_audits"] = objectAttrsTypeRSGroupGroupAuditLinkableWrapper(false)["items"] + objectAttrs["requeststatus"] = types.StringType + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountLinkableWrapper(false)["items"] + objectAttrs["systems"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} + objectAttrs["webhooks"] = objectAttrsTypeRSWebhookWebhookLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -754,7 +819,7 @@ func objectAttrsTypeRSGroupGroup(recurse bool) map[string]attr.Type { func objectAttrsTypeRSGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["uuid"] = types.StringType objectAttrs["directory_uuid"] = types.StringType @@ -803,7 +868,7 @@ func objectAttrsTypeRSGroupGroupAdminMail(recurse bool) map[string]attr.Type { func objectAttrsTypeRSGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -876,7 +941,8 @@ func objectAttrsTypeRSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type func objectAttrsTypeRSGroupGroupClassification(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassificationInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -934,7 +1000,7 @@ func objectAttrsTypeRSGroupGroupClassification_additionalObjects(recurse bool) m func objectAttrsTypeRSGroupGroupClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClient_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -961,7 +1027,7 @@ func objectAttrsTypeRSGroupGroupClient_additionalObjects(recurse bool) map[strin func objectAttrsTypeRSGroupGroupFolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1068,7 +1134,7 @@ func objectAttrsTypeRSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { func objectAttrsTypeRSGroupProvisioningGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1093,7 +1159,15 @@ func objectAttrsTypeRSGroupProvisioningGroup_additionalObjects(recurse bool) map func objectAttrsTypeRSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} } objectAttrs["group_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1134,7 +1208,7 @@ func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string] func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1244,7 +1318,7 @@ func objectAttrsTypeRSNestedAuthInternalAccount(recurse bool) map[string]attr.Ty func objectAttrsTypeRSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["client_application_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1258,7 +1332,8 @@ func objectAttrsTypeRSNestedClientOAuth2ClientPermission(recurse bool) map[strin func objectAttrsTypeRSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} } objectAttrs["account_uuid"] = types.StringType objectAttrs["uuid"] = types.StringType @@ -1274,7 +1349,7 @@ func objectAttrsTypeRSNestedGroupAccountGroup(recurse bool) map[string]attr.Type func objectAttrsTypeRSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["group_uuid"] = types.StringType objectAttrs["uuid"] = types.StringType @@ -1293,7 +1368,7 @@ func objectAttrsTypeRSNestedGroupGroupAccount(recurse bool) map[string]attr.Type func objectAttrsTypeRSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAudit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["group_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1315,7 +1390,7 @@ func objectAttrsTypeRSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { func objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["account_uuid"] = types.StringType objectAttrs["uuid"] = types.StringType @@ -1325,7 +1400,7 @@ func objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(recurse bool) func objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["organizational_unit_uuid"] = types.StringType objectAttrs["uuid"] = types.StringType @@ -1336,7 +1411,9 @@ func objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(recurse bool) func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] } objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1353,7 +1430,7 @@ func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]a func objectAttrsTypeRSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["uuid"] = types.StringType @@ -1364,7 +1441,7 @@ func objectAttrsTypeRSNestedProvisioningProvisionedAccount(recurse bool) map[str func objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1379,7 +1456,7 @@ func objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(recurse bool) m func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["service_account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1394,7 +1471,7 @@ func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[ func objectAttrsTypeRSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["webhook_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -1507,7 +1584,7 @@ func objectAttrsTypeRSNotificationVaultRecordExpiredNotification(recurse bool) m func objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["uuid"] = types.StringType return objectAttrs @@ -1528,7 +1605,8 @@ func objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(re func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["create_as_parent_of"] = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1544,7 +1622,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]at func objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["uuid"] = types.StringType objectAttrs["directory_uuid"] = types.StringType @@ -1643,7 +1721,9 @@ func objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse bool) map[str func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1716,7 +1796,8 @@ func objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[s func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["systems"] = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(false)["items"] } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1748,7 +1829,7 @@ func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Ty func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["uuid"] = types.StringType objectAttrs["uid"] = types.Int64Type @@ -1816,7 +1897,14 @@ func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[str func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false)} + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["issued_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(false)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(false)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -1835,14 +1923,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} return objectAttrs } @@ -1873,7 +1961,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2069,7 +2157,9 @@ func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest_additionalObjects(false)} + objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptModificationRequestParameters(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequestStatus(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2081,41 +2171,41 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} + objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} + objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} return objectAttrs } @@ -2263,7 +2353,9 @@ func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[stri func objectAttrsTypeRSServiceaccountServiceAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["groups"] = objectAttrsTypeRSServiceaccountServiceAccountGroupLinkableWrapper(false)["items"] + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGeneratedSecret(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2282,7 +2374,7 @@ func objectAttrsTypeRSServiceaccountServiceAccount(recurse bool) map[string]attr func objectAttrsTypeRSServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountGroup_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2377,7 +2469,8 @@ func objectAttrsTypeRSSimpleVersionInfo(recurse bool) map[string]attr.Type { func objectAttrsTypeRSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2456,7 +2549,15 @@ func objectAttrsTypeRSVaultVaultHolder(recurse bool) map[string]attr.Type { func objectAttrsTypeRSVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["delete_tile"] = types.BoolType + objectAttrs["parent_uuid"] = types.StringType + objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} + objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} + objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} + objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] + objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} + objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2558,7 +2659,7 @@ func objectAttrsTypeRSVaultVaultUnlockResponse(recurse bool) map[string]attr.Typ func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} @@ -2589,7 +2690,7 @@ func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { func objectAttrsTypeRSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["additional_objects"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 03eb5e6..fa44f4e 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -4,6 +4,7 @@ package provider import ( + "golang.org/x/exp/maps" "regexp" "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" @@ -129,13 +130,7 @@ func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribu func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -208,13 +203,7 @@ func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dssch func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -320,13 +309,7 @@ func dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[s func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuthAccount_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -654,13 +637,7 @@ func dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuthAccount_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -852,13 +829,7 @@ func dataSourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]d func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsCertificateCertificate_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -991,13 +962,7 @@ func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -1070,13 +1035,7 @@ func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[st func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplication_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsClientClientApplication_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -1148,17 +1107,17 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client(false), + Attributes: dataSourceSchemaAttrsClientLdapClient(false), } attr.Computed = true - schemaAttrs["saml2_client"] = attr + schemaAttrs["ldap_client"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Attributes: dataSourceSchemaAttrsClientSaml2Client(false), } attr.Computed = true - schemaAttrs["ldap_client"] = attr + schemaAttrs["saml2_client"] = attr } return schemaAttrs } @@ -1330,13 +1289,7 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -1391,13 +1344,7 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bo func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -1498,13 +1445,7 @@ func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string] func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["deleted_vault_holder_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -1577,13 +1518,7 @@ func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[s func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -1653,10 +1588,10 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), } attr.Computed = true - schemaAttrs["maintenance_directory"] = attr + schemaAttrs["internal_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -1667,10 +1602,10 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryMaintenanceDirectory(false), } attr.Computed = true - schemaAttrs["internal_directory"] = attr + schemaAttrs["maintenance_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -1925,13 +1860,7 @@ func dataSourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]dssche func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2035,13 +1964,7 @@ func dataSourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string] func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroup_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2178,13 +2101,7 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2308,13 +2225,7 @@ func dataSourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]dsschema. func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2499,13 +2410,7 @@ func dataSourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]dssche func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2652,13 +2557,7 @@ func dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse boo func dataSourceSchemaAttrsGroupGroupClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupClient_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -2738,13 +2637,7 @@ func dataSourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[s func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3067,13 +2960,7 @@ func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschem func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3139,13 +3026,7 @@ func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3271,13 +3152,7 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[str func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3505,13 +3380,7 @@ func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attr func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuthAccount_additionalObjects(false)) } schemaAttrs["account_directory_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3644,13 +3513,7 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3702,13 +3565,7 @@ func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[s func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3778,13 +3635,7 @@ func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dssch func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3866,13 +3717,7 @@ func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dssch func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) } schemaAttrs["group_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3943,13 +3788,7 @@ func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschem func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) } schemaAttrs["account_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -3994,13 +3833,7 @@ func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bo func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) } schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -4058,13 +3891,7 @@ func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bo func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) } schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -4125,13 +3952,7 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) } schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -4185,13 +4006,7 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) } schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -4238,13 +4053,7 @@ func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse boo func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false)) } schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -4291,13 +4100,7 @@ func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) } schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ Required: recurse, @@ -4547,13 +4350,7 @@ func dataSourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse boo func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -4612,13 +4409,7 @@ func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObject func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -4676,13 +4467,7 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[strin func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -4926,13 +4711,7 @@ func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -5117,13 +4896,7 @@ func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) m func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -5193,13 +4966,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dss func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -5359,13 +5126,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -5455,17 +5216,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), } attr.Computed = true - schemaAttrs["abstract_provisioned_ldap"] = attr + schemaAttrs["provisioned_ldap_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), } attr.Computed = true - schemaAttrs["provisioned_ldap"] = attr + schemaAttrs["provisioned_internal_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -5476,17 +5237,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), } attr.Computed = true - schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr + schemaAttrs["provisioned_azure_oidc_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), } attr.Computed = true - schemaAttrs["provisioned_azure_oidc_directory"] = attr + schemaAttrs["abstract_provisioned_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -5497,17 +5258,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), } attr.Computed = true - schemaAttrs["provisioned_ldap_directory"] = attr + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), } attr.Computed = true - schemaAttrs["provisioned_internal_ldap"] = attr + schemaAttrs["provisioned_ldap"] = attr } return schemaAttrs } @@ -5573,13 +5334,7 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(rec func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -5933,13 +5688,7 @@ func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dssch func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -6000,80 +5749,80 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), } attr.Computed = true - schemaAttrs["abstract_provisioned_system_modification_request"] = attr + schemaAttrs["transfer_application_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), } attr.Computed = true - schemaAttrs["remove_provisioned_system_request"] = attr + schemaAttrs["extend_access_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), } attr.Computed = true - schemaAttrs["grant_application_request"] = attr + schemaAttrs["grant_service_account_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), } attr.Computed = true - schemaAttrs["review_audit_request"] = attr + schemaAttrs["grant_group_on_system_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), } attr.Computed = true - schemaAttrs["revoke_admin_request"] = attr + schemaAttrs["abstract_provisioned_system_modification_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), } attr.Computed = true - schemaAttrs["grant_access_request"] = attr + schemaAttrs["enable_technical_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), } attr.Computed = true - schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr + schemaAttrs["grant_application_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), } attr.Computed = true - schemaAttrs["abstract_organizational_unit_modification_request"] = attr + schemaAttrs["password_reset_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), } attr.Computed = true - schemaAttrs["remove_organizational_unit_request"] = attr + schemaAttrs["grant_group_on_system_request_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), } attr.Computed = true - schemaAttrs["create_group_on_system_request"] = attr + schemaAttrs["transfer_service_account_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), } attr.Computed = true - schemaAttrs["transfer_application_administration_request"] = attr + schemaAttrs["remove_provisioned_system_request"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -6084,108 +5833,108 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), } attr.Computed = true - schemaAttrs["add_group_admin_request"] = attr + schemaAttrs["transfer_group_on_system_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), } attr.Computed = true - schemaAttrs["transfer_organizational_unit_ownership_request"] = attr + schemaAttrs["abstract_organizational_unit_modification_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), } attr.Computed = true - schemaAttrs["join_vault_request"] = attr + schemaAttrs["transfer_organizational_unit_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), } attr.Computed = true - schemaAttrs["verify_internal_account_request"] = attr + schemaAttrs["grant_access_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), } attr.Computed = true - schemaAttrs["join_group_request"] = attr + schemaAttrs["verify_internal_account_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), } attr.Computed = true - schemaAttrs["transfer_group_on_system_ownership_request"] = attr + schemaAttrs["transfer_auditor_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), } attr.Computed = true - schemaAttrs["remove_group_request"] = attr + schemaAttrs["create_group_on_system_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), } attr.Computed = true - schemaAttrs["setup_authorizing_group_request"] = attr + schemaAttrs["join_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), } attr.Computed = true - schemaAttrs["setup_nested_group_request"] = attr + schemaAttrs["join_vault_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), } attr.Computed = true - schemaAttrs["grant_group_on_system_request_request"] = attr + schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), } attr.Computed = true - schemaAttrs["disable2fa_request"] = attr + schemaAttrs["setup_nested_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), } attr.Computed = true - schemaAttrs["grant_group_on_system_request"] = attr + schemaAttrs["revoke_admin_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), } attr.Computed = true - schemaAttrs["enable_technical_administration_request"] = attr + schemaAttrs["remove_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), } attr.Computed = true - schemaAttrs["create_group_request"] = attr + schemaAttrs["transfer_provisioned_system_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), } attr.Computed = true - schemaAttrs["transfer_auditor_group_request"] = attr + schemaAttrs["create_service_account_request"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -6196,52 +5945,52 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), } attr.Computed = true - schemaAttrs["transfer_application_ownership_request"] = attr + schemaAttrs["create_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), } attr.Computed = true - schemaAttrs["create_service_account_request"] = attr + schemaAttrs["disable2fa_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), } attr.Computed = true - schemaAttrs["transfer_service_account_administration_request"] = attr + schemaAttrs["transfer_application_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), } attr.Computed = true - schemaAttrs["password_reset_request"] = attr + schemaAttrs["add_group_admin_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), } attr.Computed = true - schemaAttrs["grant_service_account_group_request"] = attr + schemaAttrs["review_audit_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), } attr.Computed = true - schemaAttrs["transfer_provisioned_system_ownership_request"] = attr + schemaAttrs["setup_authorizing_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), } attr.Computed = true - schemaAttrs["extend_access_request"] = attr + schemaAttrs["remove_organizational_unit_request"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -6457,13 +6206,7 @@ func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -6534,13 +6277,7 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] func dataSourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -6737,13 +6474,7 @@ func dataSourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]dsschema.At func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -6926,13 +6657,7 @@ func dataSourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]dsschema.Att func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -7182,13 +6907,7 @@ func dataSourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]dssc func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsWebhookWebhook_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -7312,13 +7031,7 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - } - attr.Computed = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index deea286..a4c42b7 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -4,6 +4,7 @@ package provider import ( + "golang.org/x/exp/maps" "regexp" "github.com/hashicorp/terraform-plugin-framework-validators/int64validator" @@ -149,13 +150,7 @@ func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, @@ -240,13 +235,7 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditAuditRecord_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsAuditAuditRecord_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -364,13 +353,7 @@ func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[str func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsAuthAccount_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -863,13 +846,7 @@ func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rss func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsCertificateCertificate_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsCertificateCertificate_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1003,13 +980,7 @@ func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) m func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, @@ -1094,13 +1065,7 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientClientApplication_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsClientClientApplication_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1168,17 +1133,17 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client(false), + Attributes: resourceSchemaAttrsClientLdapClient(false), } attr.Optional = true - schemaAttrs["saml2_client"] = attr + schemaAttrs["ldap_client"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), + Attributes: resourceSchemaAttrsClientSaml2Client(false), } attr.Optional = true - schemaAttrs["ldap_client"] = attr + schemaAttrs["saml2_client"] = attr } return schemaAttrs } @@ -1366,13 +1331,7 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1423,13 +1382,7 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1534,13 +1487,7 @@ func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rs func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ Required: true, @@ -1625,13 +1572,7 @@ func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[str func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1707,10 +1648,10 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), } attr.Optional = true - schemaAttrs["maintenance_directory"] = attr + schemaAttrs["internal_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -1721,10 +1662,10 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), } attr.Optional = true - schemaAttrs["internal_directory"] = attr + schemaAttrs["maintenance_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -2061,13 +2002,7 @@ func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, @@ -2150,13 +2085,7 @@ func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rs func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroup_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2311,13 +2240,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, @@ -2413,13 +2336,7 @@ func resourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]rsschema.At func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2631,13 +2548,7 @@ func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassification_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupClassification_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2812,13 +2723,7 @@ func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClient_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupClient_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2879,13 +2784,7 @@ func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[str func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupFolder_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3234,13 +3133,7 @@ func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema. func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3299,13 +3192,7 @@ func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) m func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, @@ -3446,13 +3333,7 @@ func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[strin func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -3766,13 +3647,7 @@ func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rssch func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, @@ -3819,13 +3694,7 @@ func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[str func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAccountGroup_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, @@ -3871,13 +3740,7 @@ func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschem func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, @@ -3928,13 +3791,7 @@ func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschem func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAudit_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4002,13 +3859,7 @@ func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema. func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4027,13 +3878,7 @@ func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4058,13 +3903,7 @@ func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4123,13 +3962,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4152,13 +3985,7 @@ func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[s func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) } schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4201,13 +4028,7 @@ func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false)) } schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4254,13 +4075,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) } schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4527,13 +4342,7 @@ func resourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, @@ -4567,13 +4376,7 @@ func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects( func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -4619,13 +4422,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, @@ -4893,13 +4690,7 @@ func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[s func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -5104,13 +4895,7 @@ func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -5186,13 +4971,7 @@ func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rssch func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) } schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, @@ -5338,13 +5117,7 @@ func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[s func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -5437,17 +5210,17 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), } attr.Optional = true - schemaAttrs["abstract_provisioned_ldap"] = attr + schemaAttrs["provisioned_ldap_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), } attr.Optional = true - schemaAttrs["provisioned_ldap"] = attr + schemaAttrs["provisioned_internal_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -5458,17 +5231,17 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), } attr.Optional = true - schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr + schemaAttrs["provisioned_azure_oidc_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), } attr.Optional = true - schemaAttrs["provisioned_azure_oidc_directory"] = attr + schemaAttrs["abstract_provisioned_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -5479,17 +5252,17 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), } attr.Optional = true - schemaAttrs["provisioned_ldap_directory"] = attr + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), } attr.Optional = true - schemaAttrs["provisioned_internal_ldap"] = attr + schemaAttrs["provisioned_ldap"] = attr } return schemaAttrs } @@ -5562,13 +5335,7 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recur func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -5947,13 +5714,7 @@ func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschem func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsRequestModificationRequest_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -6018,80 +5779,80 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), } attr.Optional = true - schemaAttrs["abstract_provisioned_system_modification_request"] = attr + schemaAttrs["transfer_application_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), } attr.Optional = true - schemaAttrs["remove_provisioned_system_request"] = attr + schemaAttrs["extend_access_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), } attr.Optional = true - schemaAttrs["grant_application_request"] = attr + schemaAttrs["grant_service_account_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), } attr.Optional = true - schemaAttrs["review_audit_request"] = attr + schemaAttrs["grant_group_on_system_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), } attr.Optional = true - schemaAttrs["revoke_admin_request"] = attr + schemaAttrs["abstract_provisioned_system_modification_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), } attr.Optional = true - schemaAttrs["grant_access_request"] = attr + schemaAttrs["enable_technical_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), } attr.Optional = true - schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr + schemaAttrs["grant_application_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), } attr.Optional = true - schemaAttrs["abstract_organizational_unit_modification_request"] = attr + schemaAttrs["password_reset_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), } attr.Optional = true - schemaAttrs["remove_organizational_unit_request"] = attr + schemaAttrs["grant_group_on_system_request_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), } attr.Optional = true - schemaAttrs["create_group_on_system_request"] = attr + schemaAttrs["transfer_service_account_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), } attr.Optional = true - schemaAttrs["transfer_application_administration_request"] = attr + schemaAttrs["remove_provisioned_system_request"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -6102,108 +5863,108 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), } attr.Optional = true - schemaAttrs["add_group_admin_request"] = attr + schemaAttrs["transfer_group_on_system_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), } attr.Optional = true - schemaAttrs["transfer_organizational_unit_ownership_request"] = attr + schemaAttrs["abstract_organizational_unit_modification_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), } attr.Optional = true - schemaAttrs["join_vault_request"] = attr + schemaAttrs["transfer_organizational_unit_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), } attr.Optional = true - schemaAttrs["verify_internal_account_request"] = attr + schemaAttrs["grant_access_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), } attr.Optional = true - schemaAttrs["join_group_request"] = attr + schemaAttrs["verify_internal_account_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), } attr.Optional = true - schemaAttrs["transfer_group_on_system_ownership_request"] = attr + schemaAttrs["transfer_auditor_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), } attr.Optional = true - schemaAttrs["remove_group_request"] = attr + schemaAttrs["create_group_on_system_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), } attr.Optional = true - schemaAttrs["setup_authorizing_group_request"] = attr + schemaAttrs["join_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), } attr.Optional = true - schemaAttrs["setup_nested_group_request"] = attr + schemaAttrs["join_vault_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), } attr.Optional = true - schemaAttrs["grant_group_on_system_request_request"] = attr + schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), } attr.Optional = true - schemaAttrs["disable2fa_request"] = attr + schemaAttrs["setup_nested_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), } attr.Optional = true - schemaAttrs["grant_group_on_system_request"] = attr + schemaAttrs["revoke_admin_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), } attr.Optional = true - schemaAttrs["enable_technical_administration_request"] = attr + schemaAttrs["remove_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), } attr.Optional = true - schemaAttrs["create_group_request"] = attr + schemaAttrs["transfer_provisioned_system_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), } attr.Optional = true - schemaAttrs["transfer_auditor_group_request"] = attr + schemaAttrs["create_service_account_request"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -6214,52 +5975,52 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), } attr.Optional = true - schemaAttrs["transfer_application_ownership_request"] = attr + schemaAttrs["create_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), } attr.Optional = true - schemaAttrs["create_service_account_request"] = attr + schemaAttrs["disable2fa_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), } attr.Optional = true - schemaAttrs["transfer_service_account_administration_request"] = attr + schemaAttrs["transfer_application_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), } attr.Optional = true - schemaAttrs["password_reset_request"] = attr + schemaAttrs["add_group_admin_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), } attr.Optional = true - schemaAttrs["grant_service_account_group_request"] = attr + schemaAttrs["review_audit_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), } attr.Optional = true - schemaAttrs["transfer_provisioned_system_ownership_request"] = attr + schemaAttrs["setup_authorizing_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), } attr.Optional = true - schemaAttrs["extend_access_request"] = attr + schemaAttrs["remove_organizational_unit_request"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -6525,13 +6286,7 @@ func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[st func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -6597,13 +6352,7 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -6808,13 +6557,7 @@ func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attr func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -7016,13 +6759,7 @@ func resourceSchemaAttrsVaultVaultHolder(recurse bool) map[string]rsschema.Attri func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -7306,13 +7043,7 @@ func resourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]rssche func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhook_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsWebhookWebhook_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -7467,13 +7198,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false), - } - attr.Optional = true - schemaAttrs["additional_objects"] = attr - } + maps.Copy(schemaAttrs, resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index b058d3f..8ec3e00 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -64,7 +64,14 @@ func fillDataStructFromTFObjectDSAccountVaultVaultRecord(data *accountVaultVault data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -78,7 +85,7 @@ func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) @@ -119,7 +126,13 @@ func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types. data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) @@ -227,7 +240,13 @@ func fillDataStructFromTFObjectDSAuthInternalAccount(data *authInternalAccountDa data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) @@ -294,7 +313,7 @@ func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertifi data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) } @@ -329,7 +348,14 @@ func fillDataStructFromTFObjectDSClientApplicationVaultVaultRecord(data *clientA data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -349,13 +375,18 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) - data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataDS, obj types.Object) { @@ -409,7 +440,7 @@ func fillDataStructFromTFObjectDSClientOAuth2ClientPermission(data *clientOAuth2 data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) @@ -423,7 +454,7 @@ func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClient(data *cl data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) @@ -460,7 +491,14 @@ func fillDataStructFromTFObjectDSDeletedVaultHolderVaultVaultRecord(data *delete data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -479,16 +517,18 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) data.BaseOrganizationalUnit = obj.Attributes()["base_organizational_unit"].(basetypes.ObjectValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) data.HelpdeskGroup = obj.Attributes()["helpdesk_group"].(basetypes.ObjectValue) data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) } @@ -578,7 +618,8 @@ func fillDataStructFromTFObjectDSGroupAccountGroup(data *groupAccountGroupDataDS data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) @@ -608,7 +649,33 @@ func fillDataStructFromTFObjectDSGroupGroup(data *groupGroupDataDS, obj types.Ob data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ListValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ListValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ListValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ListValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ListValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ListValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ListValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ListValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ListValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ListValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ListValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ListValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ListValue) data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) @@ -641,7 +708,7 @@ func fillDataStructFromTFObjectDSGroupGroupAccount(data *groupGroupAccountDataDS data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) @@ -679,7 +746,7 @@ func fillDataStructFromTFObjectDSGroupGroupAudit(data *groupGroupAuditDataDS, ob data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) @@ -740,7 +807,8 @@ func fillDataStructFromTFObjectDSGroupGroupClassification(data *groupGroupClassi data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) @@ -784,7 +852,7 @@ func fillDataStructFromTFObjectDSGroupGroupClient(data *groupGroupClientDataDS, data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -803,7 +871,7 @@ func fillDataStructFromTFObjectDSGroupGroupFolder(data *groupGroupFolderDataDS, data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) } @@ -890,7 +958,7 @@ func fillDataStructFromTFObjectDSGroupProvisioningGroup(data *groupProvisioningG data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } @@ -912,7 +980,14 @@ func fillDataStructFromTFObjectDSGroupVaultVaultRecord(data *groupVaultVaultReco data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -941,7 +1016,7 @@ func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpad data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) @@ -1022,7 +1097,13 @@ func fillDataStructFromTFObjectDSNestedAuthInternalAccount(data *nestedAuthInter data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) @@ -1053,7 +1134,7 @@ func fillDataStructFromTFObjectDSNestedClientOAuth2ClientPermission(data *nested data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) @@ -1067,7 +1148,8 @@ func fillDataStructFromTFObjectDSNestedGroupAccountGroup(data *nestedGroupAccoun data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) @@ -1086,7 +1168,7 @@ func fillDataStructFromTFObjectDSNestedGroupGroupAccount(data *nestedGroupGroupA data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) @@ -1104,7 +1186,7 @@ func fillDataStructFromTFObjectDSNestedGroupGroupAudit(data *nestedGroupGroupAud data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) @@ -1124,7 +1206,7 @@ func fillDataStructFromTFObjectDSNestedOrganizationAccountOrganizationalUnit(dat data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataDS, obj types.Object) { @@ -1137,7 +1219,7 @@ func fillDataStructFromTFObjectDSNestedOrganizationOrganizationalUnitAccount(dat data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) } @@ -1150,7 +1232,9 @@ func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedPro data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } @@ -1165,7 +1249,7 @@ func fillDataStructFromTFObjectDSNestedProvisioningProvisionedAccount(data *nest data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } @@ -1174,7 +1258,7 @@ func fillDataStructFromTFObjectDSNestedProvisioningProvisionedSystemSyncLog(data data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) data.Log = obj.Attributes()["log"].(basetypes.StringValue) @@ -1190,7 +1274,7 @@ func fillDataStructFromTFObjectDSNestedServiceaccountServiceAccountGroup(data *n data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataDS, obj types.Object) { @@ -1198,7 +1282,7 @@ func fillDataStructFromTFObjectDSNestedWebhookWebhookDelivery(data *nestedWebhoo data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) @@ -1281,7 +1365,7 @@ func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit(data *org data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { @@ -1298,7 +1382,7 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizati data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) data.Description = obj.Attributes()["description"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -1314,7 +1398,7 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount(data *org data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) } @@ -1392,7 +1476,9 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGro data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } @@ -1445,7 +1531,8 @@ func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.NextUID = obj.Attributes()["next_uid"].(basetypes.Int64Value) } @@ -1472,7 +1559,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioni data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } @@ -1528,7 +1615,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ListValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) data.ContentAdministrator = obj.Attributes()["content_administrator"].(basetypes.ObjectValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) @@ -1538,14 +1632,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1570,7 +1664,7 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog(data *prov data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) data.Log = obj.Attributes()["log"].(basetypes.StringValue) @@ -1708,7 +1802,8 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) @@ -1716,41 +1811,41 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) } @@ -1855,7 +1950,9 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccount(data *serviceaccou data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Description = obj.Attributes()["description"].(basetypes.StringValue) data.Password = obj.Attributes()["password"].(basetypes.ObjectValue) data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) @@ -1870,7 +1967,7 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroup(data *service data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataDS, obj types.Object) { @@ -1934,7 +2031,8 @@ func fillDataStructFromTFObjectDSVaultDeletedVaultHolder(data *vaultDeletedVault data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) @@ -1998,7 +2096,14 @@ func fillDataStructFromTFObjectDSVaultVaultRecord(data *vaultVaultRecordDataDS, data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -2073,7 +2178,7 @@ func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) @@ -2099,7 +2204,7 @@ func fillDataStructFromTFObjectDSWebhookWebhookDelivery(data *webhookWebhookDeli data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 73d650a..9ed7de3 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -63,7 +63,15 @@ func fillDataStructFromTFObjectRSAccountVaultVaultRecord(data *accountVaultVault data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -76,7 +84,7 @@ func fillDataStructFromTFObjectRSAccountVaultVaultRecord(data *accountVaultVault func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) @@ -116,7 +124,13 @@ func fillDataStructFromTFObjectRSAuthAccount(data *authAccountDataRS, obj types. data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) + data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) + data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) @@ -264,7 +278,7 @@ func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertifi data.Global = obj.Attributes()["global"].(basetypes.BoolValue) data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) } @@ -298,7 +312,15 @@ func fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(data *clientA data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -317,13 +339,19 @@ func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientAppli data.Scopes = obj.Attributes()["scopes"].(basetypes.ListValue) data.SsoApplication = obj.Attributes()["sso_application"].(basetypes.BoolValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.Groupclients = obj.Attributes()["groupclients"].(basetypes.ListValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.VaultRecordCount = obj.Attributes()["vault_record_count"].(basetypes.Int64Value) data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) - data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSClientClientApplicationLinkableWrapper(data *clientClientApplicationLinkableWrapperDataRS, obj types.Object) { @@ -377,7 +405,7 @@ func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientData func fillDataStructFromTFObjectRSClientOAuth2ClientPermission(data *clientOAuth2ClientPermissionDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) @@ -390,7 +418,7 @@ func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(dat func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) @@ -426,7 +454,15 @@ func fillDataStructFromTFObjectRSDeletedVaultHolderVaultVaultRecord(data *delete data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -444,16 +480,18 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.DirectoryAccountDirectoryPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Status = obj.Attributes()["status"].(basetypes.ObjectValue) data.BaseOrganizationalUnitUUID = obj.Attributes()["base_organizational_unit_uuid"].(basetypes.StringValue) data.DefaultDirectory = obj.Attributes()["default_directory"].(basetypes.BoolValue) data.HelpdeskGroupUUID = obj.Attributes()["helpdesk_group_uuid"].(basetypes.StringValue) data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) } @@ -538,7 +576,8 @@ func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirec func fillDataStructFromTFObjectRSGroupAccountGroup(data *groupAccountGroupDataRS, obj types.Object) { data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) @@ -567,7 +606,33 @@ func fillDataStructFromTFObjectRSGroupGroup(data *groupGroupDataRS, obj types.Ob data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) + data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ListValue) + data.AdministeredSystems = obj.Attributes()["administered_systems"].(basetypes.ListValue) + data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.AuthorizedGroups = obj.Attributes()["authorized_groups"].(basetypes.ObjectValue) + data.ClientPermissions = obj.Attributes()["client_permissions"].(basetypes.ListValue) + data.Clients = obj.Attributes()["clients"].(basetypes.ListValue) + data.ContentAdministeredSystems = obj.Attributes()["content_administered_systems"].(basetypes.ListValue) + data.Groupauditinginfo = obj.Attributes()["groupauditinginfo"].(basetypes.ObjectValue) + data.Groupinfo = obj.Attributes()["groupinfo"].(basetypes.ObjectValue) + data.Helpdesk = obj.Attributes()["helpdesk"].(basetypes.ListValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Myaccount = obj.Attributes()["myaccount"].(basetypes.ObjectValue) + data.Mydelegatedaccount = obj.Attributes()["mydelegatedaccount"].(basetypes.ObjectValue) + data.NestedGroups = obj.Attributes()["nested_groups"].(basetypes.ListValue) + data.OwnedClients = obj.Attributes()["owned_clients"].(basetypes.ListValue) + data.OwnedDirectories = obj.Attributes()["owned_directories"].(basetypes.ListValue) + data.OwnedGroupsOnSystem = obj.Attributes()["owned_groups_on_system"].(basetypes.ObjectValue) + data.OwnedOrganizationalUnits = obj.Attributes()["owned_organizational_units"].(basetypes.ListValue) + data.OwnedSystems = obj.Attributes()["owned_systems"].(basetypes.ListValue) + data.RecentAudits = obj.Attributes()["recent_audits"].(basetypes.ListValue) + data.Requeststatus = obj.Attributes()["requeststatus"].(basetypes.StringValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) + data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ListValue) data.ApplicationAdministration = obj.Attributes()["application_administration"].(basetypes.BoolValue) data.AuditConfig = obj.Attributes()["audit_config"].(basetypes.ObjectValue) data.AuditRequested = obj.Attributes()["audit_requested"].(basetypes.BoolValue) @@ -593,7 +658,7 @@ func fillDataStructFromTFObjectRSGroupGroup(data *groupGroupDataRS, obj types.Ob func fillDataStructFromTFObjectRSGroupGroupAccount(data *groupGroupAccountDataRS, obj types.Object) { data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) @@ -630,7 +695,7 @@ func fillDataStructFromTFObjectRSGroupGroupAudit(data *groupGroupAuditDataRS, ob data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) @@ -690,7 +755,8 @@ func fillDataStructFromTFObjectRSGroupGroupClassification(data *groupGroupClassi data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) @@ -733,7 +799,7 @@ func fillDataStructFromTFObjectRSGroupGroupClient(data *groupGroupClientDataRS, data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -751,7 +817,7 @@ func fillDataStructFromTFObjectRSGroupGroupClient_additionalObjects(data *groupG func fillDataStructFromTFObjectRSGroupGroupFolder(data *groupGroupFolderDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) } @@ -837,7 +903,7 @@ func fillDataStructFromTFObjectRSGroupProvisioningGroup(data *groupProvisioningG data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) } @@ -858,7 +924,15 @@ func fillDataStructFromTFObjectRSGroupVaultVaultRecord(data *groupVaultVaultReco data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -886,7 +960,7 @@ func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTiles(data *launchpa func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) @@ -971,7 +1045,7 @@ func fillDataStructFromTFObjectRSNestedClientOAuth2ClientPermission(data *nested data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) @@ -980,7 +1054,8 @@ func fillDataStructFromTFObjectRSNestedClientOAuth2ClientPermission(data *nested func fillDataStructFromTFObjectRSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataRS, obj types.Object) { data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) @@ -992,7 +1067,7 @@ func fillDataStructFromTFObjectRSNestedGroupAccountGroup(data *nestedGroupAccoun func fillDataStructFromTFObjectRSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataRS, obj types.Object) { data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) @@ -1009,7 +1084,7 @@ func fillDataStructFromTFObjectRSNestedGroupGroupAudit(data *nestedGroupGroupAud data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) @@ -1025,13 +1100,13 @@ func fillDataStructFromTFObjectRSNestedGroupGroupAudit(data *nestedGroupGroupAud func fillDataStructFromTFObjectRSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataRS, obj types.Object) { data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataRS, obj types.Object) { data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) } @@ -1043,7 +1118,9 @@ func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedPro data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } @@ -1051,7 +1128,7 @@ func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedPro func fillDataStructFromTFObjectRSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataRS, obj types.Object) { data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } @@ -1059,7 +1136,7 @@ func fillDataStructFromTFObjectRSNestedProvisioningProvisionedSystemSyncLog(data data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) data.Log = obj.Attributes()["log"].(basetypes.StringValue) @@ -1074,14 +1151,14 @@ func fillDataStructFromTFObjectRSNestedServiceaccountServiceAccountGroup(data *n data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataRS, obj types.Object) { data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) @@ -1160,7 +1237,7 @@ func fillDataStructFromTFObjectRSNotificationVaultRecordExpiredNotification(data func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataRS, obj types.Object) { data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { @@ -1176,7 +1253,8 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizati data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.CreateAsParentOf = obj.Attributes()["create_as_parent_of"].(basetypes.ListValue) data.Depth = obj.Attributes()["depth"].(basetypes.Int64Value) data.Description = obj.Attributes()["description"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -1185,7 +1263,7 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizati func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataRS, obj types.Object) { data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) } @@ -1263,7 +1341,9 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGro data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) + data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } @@ -1315,7 +1395,8 @@ func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence(data *provi data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.NextUID = obj.Attributes()["next_uid"].(basetypes.Int64Value) } @@ -1335,7 +1416,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAD(data *provisioningPro func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioningProvisionedAccountDataRS, obj types.Object) { data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } @@ -1390,7 +1471,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ProvisioningProvisionedSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.AccountCount = obj.Attributes()["account_count"].(basetypes.Int64Value) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.IssuedPermissions = obj.Attributes()["issued_permissions"].(basetypes.ListValue) + data.LoginName = obj.Attributes()["login_name"].(basetypes.StringValue) + data.ManagementPermissions = obj.Attributes()["management_permissions"].(basetypes.ObjectValue) + data.Markers = obj.Attributes()["markers"].(basetypes.ObjectValue) + data.Statistics = obj.Attributes()["statistics"].(basetypes.ObjectValue) + data.SupportedGroupTypes = obj.Attributes()["supported_group_types"].(basetypes.ObjectValue) data.ContentAdministratorUUID = obj.Attributes()["content_administrator_uuid"].(basetypes.StringValue) data.ExternalUUID = obj.Attributes()["external_uuid"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) @@ -1400,14 +1488,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1431,7 +1519,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrap func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) data.Log = obj.Attributes()["log"].(basetypes.StringValue) @@ -1568,7 +1656,9 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) @@ -1576,41 +1666,41 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) + data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) + data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) } @@ -1718,7 +1808,9 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccount(data *serviceaccou data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) data.Username = obj.Attributes()["username"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) data.Description = obj.Attributes()["description"].(basetypes.StringValue) data.PasswordUUID = obj.Attributes()["password_uuid"].(basetypes.StringValue) data.PasswordRotation = obj.Attributes()["password_rotation"].(basetypes.StringValue) @@ -1732,7 +1824,7 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroup(data *service data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(data *serviceaccountServiceAccountGroupLinkableWrapperDataRS, obj types.Object) { @@ -1795,7 +1887,8 @@ func fillDataStructFromTFObjectRSSimpleVersionInfo(data *simpleVersionInfoDataRS func fillDataStructFromTFObjectRSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) @@ -1858,7 +1951,15 @@ func fillDataStructFromTFObjectRSVaultVaultRecord(data *vaultVaultRecordDataRS, data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) + data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) + data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) + data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) + data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) + data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) + data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) + data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) + data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) @@ -1934,7 +2035,7 @@ func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.AllTypes = obj.Attributes()["all_types"].(basetypes.BoolValue) data.AuthenticationScheme = obj.Attributes()["authentication_scheme"].(basetypes.StringValue) data.BasicAuthPassword = obj.Attributes()["basic_auth_password"].(basetypes.StringValue) @@ -1959,7 +2060,7 @@ func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj func fillDataStructFromTFObjectRSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AdditionalObjects = obj.Attributes()["additional_objects"].(basetypes.ObjectValue) + data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index cc195d9..dceed9e 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -228,7 +228,7 @@ func tfObjectToTKHDSAccountVaultVaultRecord(ctx context.Context, recurse bool, o } if recurse { { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -295,7 +295,7 @@ func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal t } if recurse { { - val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -436,7 +436,7 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -837,7 +837,7 @@ func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVa tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1021,7 +1021,7 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1184,7 +1184,7 @@ func tfObjectToTKHDSClientApplicationVaultVaultRecord(ctx context.Context, recur } if recurse { { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1259,25 +1259,25 @@ func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, o val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHDSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } if recurse { { - val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientClientApplication_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1497,7 +1497,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo } if recurse { { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1575,7 +1575,7 @@ func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, } if recurse { { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1727,7 +1727,7 @@ func tfObjectToTKHDSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recu } if recurse { { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1792,11 +1792,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1808,11 +1808,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1826,7 +1826,7 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, } if recurse { { - val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectory_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2165,7 +2165,7 @@ func tfObjectToTKHDSGroupAccountGroup(ctx context.Context, recurse bool, objVal tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2341,7 +2341,7 @@ func tfObjectToTKHDSGroupGroup(ctx context.Context, recurse bool, objVal types.O tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2425,7 +2425,7 @@ func tfObjectToTKHDSGroupGroupAccount(ctx context.Context, recurse bool, objVal tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2573,7 +2573,7 @@ func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2793,7 +2793,7 @@ func tfObjectToTKHDSGroupGroupClassification(ctx context.Context, recurse bool, tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2950,7 +2950,7 @@ func tfObjectToTKHDSGroupGroupClient(ctx context.Context, recurse bool, objVal t } if recurse { { - val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupClient_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3023,7 +3023,7 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3396,7 +3396,7 @@ func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3505,7 +3505,7 @@ func tfObjectToTKHDSGroupVaultVaultRecord(ctx context.Context, recurse bool, obj } if recurse { { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3664,7 +3664,7 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4007,7 +4007,7 @@ func tfObjectToTKHDSNestedAuthInternalAccount(ctx context.Context, recurse bool, tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4060,7 +4060,7 @@ func tfObjectToTKHDSNestedClientOAuth2ClientPermission(ctx context.Context, recu } if recurse { { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4125,7 +4125,7 @@ func tfObjectToTKHDSNestedGroupAccountGroup(ctx context.Context, recurse bool, o tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4209,7 +4209,7 @@ func tfObjectToTKHDSNestedGroupGroupAccount(ctx context.Context, recurse bool, o tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4280,7 +4280,7 @@ func tfObjectToTKHDSNestedGroupGroupAudit(ctx context.Context, recurse bool, obj tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4318,7 +4318,7 @@ func tfObjectToTKHDSNestedOrganizationAccountOrganizationalUnit(ctx context.Cont tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4372,7 +4372,7 @@ func tfObjectToTKHDSNestedOrganizationOrganizationalUnitAccount(ctx context.Cont } if recurse { { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4428,7 +4428,7 @@ func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse } if recurse { { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4478,7 +4478,7 @@ func tfObjectToTKHDSNestedProvisioningProvisionedAccount(ctx context.Context, re tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4522,7 +4522,7 @@ func tfObjectToTKHDSNestedProvisioningProvisionedSystemSyncLog(ctx context.Conte tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4568,7 +4568,7 @@ func tfObjectToTKHDSNestedServiceaccountServiceAccountGroup(ctx context.Context, tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4619,7 +4619,7 @@ func tfObjectToTKHDSNestedWebhookWebhookDelivery(ctx context.Context, recurse bo } if recurse { { - val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4947,7 +4947,7 @@ func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, r tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5033,7 +5033,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse } if recurse { { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5087,7 +5087,7 @@ func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, r } if recurse { { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5388,7 +5388,7 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, } if recurse { { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5610,7 +5610,7 @@ func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, rec tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5719,7 +5719,7 @@ func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5938,19 +5938,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5962,19 +5962,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5986,25 +5986,25 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -6132,7 +6132,7 @@ func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, re tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -6653,91 +6653,91 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6749,11 +6749,19 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6765,11 +6773,11 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6781,91 +6789,83 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6877,59 +6877,59 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6943,7 +6943,7 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool } if recurse { { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7355,7 +7355,7 @@ func tfObjectToTKHDSServiceaccountServiceAccount(ctx context.Context, recurse bo } if recurse { { - val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7401,7 +7401,7 @@ func tfObjectToTKHDSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7669,7 +7669,7 @@ func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o } if recurse { { - val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7917,7 +7917,7 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t } if recurse { { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -8255,7 +8255,7 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -8306,7 +8306,7 @@ func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index ff32bc8..39330df 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -228,7 +228,7 @@ func tfObjectToTKHRSAccountVaultVaultRecord(ctx context.Context, recurse bool, o } if recurse { { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -295,7 +295,7 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t } if recurse { { - val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -436,7 +436,7 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -939,7 +939,7 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1102,7 +1102,7 @@ func tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx context.Context, recur } if recurse { { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1177,25 +1177,25 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } if recurse { { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1422,7 +1422,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo } if recurse { { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1500,7 +1500,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, } if recurse { { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1652,7 +1652,7 @@ func tfObjectToTKHRSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recu } if recurse { { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1717,11 +1717,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1733,11 +1733,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1751,7 +1751,7 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, } if recurse { { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2078,7 +2078,7 @@ func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2254,7 +2254,7 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2316,7 +2316,7 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2464,7 +2464,7 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2684,7 +2684,7 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2841,7 +2841,7 @@ func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal t } if recurse { { - val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2914,7 +2914,7 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3326,7 +3326,7 @@ func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3435,7 +3435,7 @@ func tfObjectToTKHRSGroupVaultVaultRecord(ctx context.Context, recurse bool, obj } if recurse { { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3594,7 +3594,7 @@ func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3905,7 +3905,7 @@ func tfObjectToTKHRSNestedClientOAuth2ClientPermission(ctx context.Context, recu } if recurse { { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3958,7 +3958,7 @@ func tfObjectToTKHRSNestedGroupAccountGroup(ctx context.Context, recurse bool, o tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4020,7 +4020,7 @@ func tfObjectToTKHRSNestedGroupGroupAccount(ctx context.Context, recurse bool, o tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4091,7 +4091,7 @@ func tfObjectToTKHRSNestedGroupGroupAudit(ctx context.Context, recurse bool, obj tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4118,7 +4118,7 @@ func tfObjectToTKHRSNestedOrganizationAccountOrganizationalUnit(ctx context.Cont } if recurse { { - val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4150,7 +4150,7 @@ func tfObjectToTKHRSNestedOrganizationOrganizationalUnitAccount(ctx context.Cont } if recurse { { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4206,7 +4206,7 @@ func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse } if recurse { { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4234,7 +4234,7 @@ func tfObjectToTKHRSNestedProvisioningProvisionedAccount(ctx context.Context, re tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4278,7 +4278,7 @@ func tfObjectToTKHRSNestedProvisioningProvisionedSystemSyncLog(ctx context.Conte tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4324,7 +4324,7 @@ func tfObjectToTKHRSNestedServiceaccountServiceAccountGroup(ctx context.Context, tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4375,7 +4375,7 @@ func tfObjectToTKHRSNestedWebhookWebhookDelivery(ctx context.Context, recurse bo } if recurse { { - val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4692,7 +4692,7 @@ func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, r } if recurse { { - val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4778,7 +4778,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse } if recurse { { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4810,7 +4810,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, r } if recurse { { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5119,7 +5119,7 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, } if recurse { { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5347,7 +5347,7 @@ func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, rec tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5437,7 +5437,7 @@ func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5656,19 +5656,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5680,19 +5680,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5704,25 +5704,25 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -5850,7 +5850,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, re tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) if recurse { { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -6374,91 +6374,91 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6470,11 +6470,19 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6486,11 +6494,11 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6502,91 +6510,83 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6598,59 +6598,59 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6664,7 +6664,7 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool } if recurse { { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7085,7 +7085,7 @@ func tfObjectToTKHRSServiceaccountServiceAccount(ctx context.Context, recurse bo } if recurse { { - val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7131,7 +7131,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountGroup(ctx context.Context, recur tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7402,7 +7402,7 @@ func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, o } if recurse { { - val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7650,7 +7650,7 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t } if recurse { { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -7996,7 +7996,7 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ tkh.SetVerbosePayloads(objAttrs["verbose_payloads"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -8047,7 +8047,7 @@ func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, ob } if recurse { { - val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objAttrs["additional_objects"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index cbe0fa8..9b26bf1 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -4,6 +4,8 @@ package provider import ( + "golang.org/x/exp/maps" + "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" @@ -238,7 +240,7 @@ func tkhToTFObjectDSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultV { val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_uuid"] = types.StringNull() @@ -304,7 +306,7 @@ func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec { val, d := tkhToTFObjectDSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -423,7 +425,7 @@ func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) ( { val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -850,7 +852,7 @@ func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthIntern { val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1100,7 +1102,7 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi { val, d := tkhToTFObjectDSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1279,7 +1281,7 @@ func tkhToTFObjectDSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmo { val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["client_application_uuid"] = types.StringNull() @@ -1345,7 +1347,7 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client { val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1399,18 +1401,18 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["o_auth2_client"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) - val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) - diags.Append(d...) - obj["saml2_client"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) diags.Append(d...) obj["ldap_client"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) + val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) + diags.Append(d...) + obj["saml2_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1640,7 +1642,7 @@ func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.C { val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1727,7 +1729,7 @@ func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key { val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1908,7 +1910,7 @@ func tkhToTFObjectDSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubm { val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["deleted_vault_holder_uuid"] = types.StringNull() @@ -1974,7 +1976,7 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire { val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -2018,10 +2020,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -2030,10 +2032,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["o_id_c_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) @@ -2389,7 +2391,7 @@ func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccount { val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -2537,7 +2539,7 @@ func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (ty { val, d := tkhToTFObjectDSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -2647,7 +2649,7 @@ func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAc { val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -2830,7 +2832,7 @@ func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudi { val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3075,7 +3077,7 @@ func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.Group { val, d := tkhToTFObjectDSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3286,7 +3288,7 @@ func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupCli { val, d := tkhToTFObjectDSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3407,7 +3409,7 @@ func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFol { val, d := tkhToTFObjectDSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3857,7 +3859,7 @@ func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupPr { val, d := tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3968,7 +3970,7 @@ func tkhToTFObjectDSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVau { val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["group_uuid"] = types.StringNull() @@ -4123,7 +4125,7 @@ func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp { val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -4495,7 +4497,7 @@ func tkhToTFObjectDSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.Auth { val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_directory_uuid"] = types.StringNull() @@ -4586,7 +4588,7 @@ func tkhToTFObjectDSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubm { val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["client_application_uuid"] = types.StringNull() @@ -4645,7 +4647,7 @@ func tkhToTFObjectDSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupA { val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_uuid"] = types.StringNull() @@ -4706,7 +4708,7 @@ func tkhToTFObjectDSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupG { val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["group_uuid"] = types.StringNull() @@ -4772,7 +4774,7 @@ func tkhToTFObjectDSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGro { val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["group_uuid"] = types.StringNull() @@ -4840,7 +4842,7 @@ func tkhToTFObjectDSNestedOrganizationAccountOrganizationalUnit(recurse bool, tk { val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_uuid"] = types.StringNull() @@ -4890,7 +4892,7 @@ func tkhToTFObjectDSNestedOrganizationOrganizationalUnitAccount(recurse bool, tk { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["organizational_unit_uuid"] = types.StringNull() @@ -4948,7 +4950,7 @@ func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode { val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["provisioned_system_uuid"] = types.StringNull() @@ -5010,7 +5012,7 @@ func tkhToTFObjectDSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhu { val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["provisioned_system_uuid"] = types.StringNull() @@ -5064,7 +5066,7 @@ func tkhToTFObjectDSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh { val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["provisioned_system_uuid"] = types.StringNull() @@ -5116,7 +5118,7 @@ func tkhToTFObjectDSNestedServiceaccountServiceAccountGroup(recurse bool, tkh ke { val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["service_account_uuid"] = types.StringNull() @@ -5168,7 +5170,7 @@ func tkhToTFObjectDSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.W { val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["webhook_uuid"] = types.StringNull() @@ -5607,7 +5609,7 @@ func tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyh { val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -5709,7 +5711,7 @@ func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel { val, d := tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -5770,7 +5772,7 @@ func tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyh { val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6151,7 +6153,7 @@ func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov { val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6438,7 +6440,7 @@ func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhub { val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6566,7 +6568,7 @@ func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel { val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6822,7 +6824,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. { val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6878,16 +6880,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_internal_ldap"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) @@ -6895,18 +6897,18 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_azure_tenant"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) obj["provisioned_azure_oidc_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) @@ -6914,16 +6916,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_ldap"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7054,7 +7056,7 @@ func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhu { val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -7769,7 +7771,7 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req { val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -7815,70 +7817,70 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["password_reset_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["remove_provisioned_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) @@ -7887,10 +7889,16 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["transfer_group_on_system_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + diags.Append(d...) + obj["abstract_organizational_unit_modification_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) @@ -7899,10 +7907,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["grant_access_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) @@ -7911,70 +7919,64 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["create_service_account_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) @@ -7983,46 +7985,46 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["remove_organizational_unit_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) @@ -8545,7 +8547,7 @@ func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S { val, d := tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -8613,7 +8615,7 @@ func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo { val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -8993,7 +8995,7 @@ func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD { val, d := tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -9281,7 +9283,7 @@ func tkhToTFObjectDSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRec { val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -9650,7 +9652,7 @@ func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhooka { val, d := tkhToTFObjectDSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -9753,7 +9755,7 @@ func tkhToTFObjectDSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.Webhook { val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 900a096..441de39 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -4,6 +4,8 @@ package provider import ( + "golang.org/x/exp/maps" + "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/diag" "github.com/hashicorp/terraform-plugin-framework/types" @@ -238,7 +240,7 @@ func tkhToTFObjectRSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultV { val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_uuid"] = types.StringNull() @@ -303,7 +305,7 @@ func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec { val, d := tkhToTFObjectRSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -421,7 +423,7 @@ func tkhToTFObjectRSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) ( { val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1026,7 +1028,7 @@ func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi { val, d := tkhToTFObjectRSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1204,7 +1206,7 @@ func tkhToTFObjectRSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmo { val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["client_application_uuid"] = types.StringNull() @@ -1269,7 +1271,7 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client { val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1314,18 +1316,18 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["o_auth2_client"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) - val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) - diags.Append(d...) - obj["saml2_client"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) diags.Append(d...) obj["ldap_client"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) + val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) + diags.Append(d...) + obj["saml2_client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1544,7 +1546,7 @@ func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.C { val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1622,7 +1624,7 @@ func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key { val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1794,7 +1796,7 @@ func tkhToTFObjectRSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubm { val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["deleted_vault_holder_uuid"] = types.StringNull() @@ -1859,7 +1861,7 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire { val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -1894,10 +1896,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["maintenance_directory"] = val + obj["internal_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) @@ -1906,10 +1908,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["o_id_c_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) diags.Append(d...) - obj["internal_directory"] = val + obj["maintenance_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) @@ -2249,7 +2251,7 @@ func tkhToTFObjectRSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccount { val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["uuid"] = withUuidToTF(tkh) @@ -2374,7 +2376,7 @@ func tkhToTFObjectRSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (ty { val, d := tkhToTFObjectRSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -2455,7 +2457,7 @@ func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAc { val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["uuid"] = withUuidToTF(tkh) @@ -2609,7 +2611,7 @@ func tkhToTFObjectRSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAudi { val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -2853,7 +2855,7 @@ func tkhToTFObjectRSGroupGroupClassification(recurse bool, tkh keyhubmodel.Group { val, d := tkhToTFObjectRSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3059,7 +3061,7 @@ func tkhToTFObjectRSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupCli { val, d := tkhToTFObjectRSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3163,7 +3165,7 @@ func tkhToTFObjectRSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFol { val, d := tkhToTFObjectRSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3610,7 +3612,7 @@ func tkhToTFObjectRSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupPr { val, d := tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -3716,7 +3718,7 @@ func tkhToTFObjectRSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVau { val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["group_uuid"] = types.StringNull() @@ -3866,7 +3868,7 @@ func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.Launchp { val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -4253,7 +4255,7 @@ func tkhToTFObjectRSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubm { val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["client_application_uuid"] = types.StringNull() @@ -4303,7 +4305,7 @@ func tkhToTFObjectRSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupA { val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_uuid"] = types.StringNull() @@ -4341,7 +4343,7 @@ func tkhToTFObjectRSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupG { val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["group_uuid"] = types.StringNull() @@ -4378,7 +4380,7 @@ func tkhToTFObjectRSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGro { val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["group_uuid"] = types.StringNull() @@ -4445,7 +4447,7 @@ func tkhToTFObjectRSNestedOrganizationAccountOrganizationalUnit(recurse bool, tk { val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["account_uuid"] = types.StringNull() @@ -4473,7 +4475,7 @@ func tkhToTFObjectRSNestedOrganizationOrganizationalUnitAccount(recurse bool, tk { val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["organizational_unit_uuid"] = types.StringNull() @@ -4502,7 +4504,7 @@ func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode { val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["provisioned_system_uuid"] = types.StringNull() @@ -4555,7 +4557,7 @@ func tkhToTFObjectRSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhu { val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["provisioned_system_uuid"] = types.StringNull() @@ -4584,7 +4586,7 @@ func tkhToTFObjectRSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh { val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["provisioned_system_uuid"] = types.StringNull() @@ -4635,7 +4637,7 @@ func tkhToTFObjectRSNestedServiceaccountServiceAccountGroup(recurse bool, tkh ke { val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["service_account_uuid"] = types.StringNull() @@ -4686,7 +4688,7 @@ func tkhToTFObjectRSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.W { val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["webhook_uuid"] = types.StringNull() @@ -5120,7 +5122,7 @@ func tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyh { val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["uuid"] = withUuidToTF(tkh) @@ -5200,7 +5202,7 @@ func tkhToTFObjectRSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel { val, d := tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -5252,7 +5254,7 @@ func tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyh { val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["uuid"] = withUuidToTF(tkh) @@ -5595,7 +5597,7 @@ func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov { val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -5873,7 +5875,7 @@ func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhub { val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6000,7 +6002,7 @@ func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel { val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } obj["uuid"] = withUuidToTF(tkh) @@ -6219,7 +6221,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. { val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -6258,16 +6260,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_internal_ldap"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) @@ -6275,18 +6277,18 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["provisioned_azure_tenant"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) obj["provisioned_azure_oidc_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["abstract_provisioned_ldap"] = val + } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) @@ -6294,16 +6296,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["provisioned_ldap"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -6428,7 +6430,7 @@ func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhu { val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -7118,7 +7120,7 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req { val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -7155,70 +7157,70 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_application_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val + obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["remove_provisioned_system_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["grant_service_account_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["enable_technical_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["password_reset_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["remove_organizational_unit_request"] = val + obj["grant_group_on_system_request_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) + val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_administration_request"] = val + obj["remove_provisioned_system_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) @@ -7227,10 +7229,16 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["transfer_group_on_system_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + diags.Append(d...) + obj["abstract_organizational_unit_modification_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) @@ -7239,10 +7247,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_organizational_unit_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["grant_access_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) @@ -7251,70 +7259,64 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) + val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["join_vault_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["setup_nested_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["enable_technical_administration_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_auditor_group_request"] = val + obj["create_service_account_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) @@ -7323,46 +7325,46 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["grant_client_permission_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["create_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["disable2fa_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["setup_authorizing_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) + val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) diags.Append(d...) - obj["extend_access_request"] = val + obj["remove_organizational_unit_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) @@ -7873,7 +7875,7 @@ func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S { val, d := tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -7928,7 +7930,7 @@ func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmo { val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -8301,7 +8303,7 @@ func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD { val, d := tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -8576,7 +8578,7 @@ func tkhToTFObjectRSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRec { val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -8936,7 +8938,7 @@ func tkhToTFObjectRSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhooka { val, d := tkhToTFObjectRSWebhookWebhook_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { @@ -9010,7 +9012,7 @@ func tkhToTFObjectRSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.Webhook { val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) - obj["additional_objects"] = val + maps.Copy(obj, val.Attributes()) } } { diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 383e9b0..0ba9224 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -7,7 +7,9 @@ import ( "context" "net/http" "os" + "reflect" + "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/provider" @@ -204,3 +206,20 @@ func New(version string) func() provider.Provider { } } } + +func collectAdditional2(data any) []string { + reflectValue := reflect.ValueOf(data) + reflectType := reflectValue.Type() + ret := make([]string, 0) + for i := 0; i < reflectType.NumField(); i++ { + field := reflectType.Field(i) + tkhoa := field.Tag.Get("tkhoa") + if tkhoa != "" { + attr := reflectValue.Field(i).Interface().(attr.Value) + if !attr.IsNull() && !attr.IsUnknown() { + ret = append(ret, tkhoa) + } + } + } + return ret +} diff --git a/internal/provider/resource-client_vaultrecord.go b/internal/provider/resource-client_vaultrecord.go index ef3079f..f7d5d21 100644 --- a/internal/provider/resource-client_vaultrecord.go +++ b/internal/provider/resource-client_vaultrecord.go @@ -94,7 +94,7 @@ func (r *clientVaultrecordResource) Create(ctx context.Context, req resource.Cre wrapper, err := r.client.Client().ByClientidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().Post( ctx, newWrapper, &keyhubreq.ItemVaultRecordRequestBuilderPostRequestConfiguration{ QueryParameters: &keyhubreq.ItemVaultRecordRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "client_vaultrecord", nil, err) @@ -135,7 +135,7 @@ func (r *clientVaultrecordResource) Read(ctx context.Context, req resource.ReadR tkh, err := r.client.Client().ByClientidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( ctx, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) @@ -184,7 +184,7 @@ func (r *clientVaultrecordResource) Update(ctx context.Context, req resource.Upd tkh, err := r.client.Client().ByClientidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( ctx, newTkh, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutRequestConfiguration{ QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) diff --git a/internal/provider/resource-clientapplication.go b/internal/provider/resource-clientapplication.go index 6b8e431..b259462 100644 --- a/internal/provider/resource-clientapplication.go +++ b/internal/provider/resource-clientapplication.go @@ -88,7 +88,7 @@ func (r *clientapplicationResource) Create(ctx context.Context, req resource.Cre wrapper, err := r.client.Client().Post( ctx, newWrapper, &keyhubreq.ClientRequestBuilderPostRequestConfiguration{ QueryParameters: &keyhubreq.ClientRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) tkh, diags := findFirst[keyhubmodels.ClientClientApplicationable](ctx, wrapper, "clientapplication", nil, err) @@ -122,7 +122,7 @@ func (r *clientapplicationResource) Read(ctx context.Context, req resource.ReadR tkh, err := r.client.Client().ByClientidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( ctx, &keyhubreq.WithClientItemRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubreq.WithClientItemRequestBuilderGetQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) diff --git a/internal/provider/resource-group.go b/internal/provider/resource-group.go index 2150254..bc5d1b4 100644 --- a/internal/provider/resource-group.go +++ b/internal/provider/resource-group.go @@ -88,7 +88,7 @@ func (r *groupResource) Create(ctx context.Context, req resource.CreateRequest, wrapper, err := r.client.Group().Post( ctx, newWrapper, &keyhubreq.GroupRequestBuilderPostRequestConfiguration{ QueryParameters: &keyhubreq.GroupRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) tkh, diags := findFirst[keyhubmodels.GroupGroupable](ctx, wrapper, "group", nil, err) @@ -122,7 +122,7 @@ func (r *groupResource) Read(ctx context.Context, req resource.ReadRequest, resp tkh, err := r.client.Group().ByGroupidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( ctx, &keyhubreq.WithGroupItemRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubreq.WithGroupItemRequestBuilderGetQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) diff --git a/internal/provider/resource-group_vaultrecord.go b/internal/provider/resource-group_vaultrecord.go index 72f4595..06dca83 100644 --- a/internal/provider/resource-group_vaultrecord.go +++ b/internal/provider/resource-group_vaultrecord.go @@ -94,7 +94,7 @@ func (r *groupVaultrecordResource) Create(ctx context.Context, req resource.Crea wrapper, err := r.client.Group().ByGroupidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().Post( ctx, newWrapper, &keyhubreq.ItemVaultRecordRequestBuilderPostRequestConfiguration{ QueryParameters: &keyhubreq.ItemVaultRecordRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) tkh, diags := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "group_vaultrecord", nil, err) @@ -135,7 +135,7 @@ func (r *groupVaultrecordResource) Read(ctx context.Context, req resource.ReadRe tkh, err := r.client.Group().ByGroupidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( ctx, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderGetQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) @@ -184,7 +184,7 @@ func (r *groupVaultrecordResource) Update(ctx context.Context, req resource.Upda tkh, err := r.client.Group().ByGroupidInt64(*tkhParent.GetLinks()[0].GetId()).Vault().Record().ByRecordidInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( ctx, newTkh, &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutRequestConfiguration{ QueryParameters: &keyhubreq.ItemVaultRecordWithRecordItemRequestBuilderPutQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) diff --git a/internal/provider/resource-grouponsystem.go b/internal/provider/resource-grouponsystem.go index 7ca012a..156ca3f 100644 --- a/internal/provider/resource-grouponsystem.go +++ b/internal/provider/resource-grouponsystem.go @@ -94,7 +94,7 @@ func (r *grouponsystemResource) Create(ctx context.Context, req resource.CreateR wrapper, err := r.client.System().BySystemidInt64(*tkhParent.GetLinks()[0].GetId()).Group().Post( ctx, newWrapper, &keyhubreq.ItemGroupRequestBuilderPostRequestConfiguration{ QueryParameters: &keyhubreq.ItemGroupRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) tkh, diags := findFirst[keyhubmodels.ProvisioningGroupOnSystemable](ctx, wrapper, "grouponsystem", nil, err) @@ -135,7 +135,7 @@ func (r *grouponsystemResource) Read(ctx context.Context, req resource.ReadReque tkh, err := r.client.System().BySystemidInt64(*tkhParent.GetLinks()[0].GetId()).Group().ByGroupidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( ctx, &keyhubreq.ItemGroupWithGroupItemRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubreq.ItemGroupWithGroupItemRequestBuilderGetQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) diff --git a/internal/provider/resource-serviceaccount.go b/internal/provider/resource-serviceaccount.go index 210c74b..eae7269 100644 --- a/internal/provider/resource-serviceaccount.go +++ b/internal/provider/resource-serviceaccount.go @@ -88,7 +88,7 @@ func (r *serviceaccountResource) Create(ctx context.Context, req resource.Create wrapper, err := r.client.Serviceaccount().Post( ctx, newWrapper, &keyhubreq.ServiceaccountRequestBuilderPostRequestConfiguration{ QueryParameters: &keyhubreq.ServiceaccountRequestBuilderPostQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) tkh, diags := findFirst[keyhubmodels.ServiceaccountServiceAccountable](ctx, wrapper, "serviceaccount", nil, err) @@ -122,7 +122,7 @@ func (r *serviceaccountResource) Read(ctx context.Context, req resource.ReadRequ tkh, err := r.client.Serviceaccount().ByServiceaccountidInt64(getSelfLink(data.Links).ID.ValueInt64()).Get( ctx, &keyhubreq.WithServiceaccountItemRequestBuilderGetRequestConfiguration{ QueryParameters: &keyhubreq.WithServiceaccountItemRequestBuilderGetQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) @@ -164,7 +164,7 @@ func (r *serviceaccountResource) Update(ctx context.Context, req resource.Update tkh, err := r.client.Serviceaccount().ByServiceaccountidInt64(getSelfLink(data.Links).ID.ValueInt64()).Put( ctx, newTkh, &keyhubreq.WithServiceaccountItemRequestBuilderPutRequestConfiguration{ QueryParameters: &keyhubreq.WithServiceaccountItemRequestBuilderPutQueryParameters{ - Additional: collectAdditional(data.AdditionalObjects), + Additional: collectAdditional(data), }, }) From c7f5f919ec1948f79ded490f77c044438710d004 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:01:16 +0000 Subject: [PATCH 22/34] Bump actions/checkout from 3.5.3 to 4.1.1 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 4.1.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/c85c95e3d7251135ab7dc9ce3241c5835cc595a9...b4ffde65f46336ab88eb53be808477a3936bae11) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1115591..133b10a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 with: # Allow goreleaser to access older tag information. fetch-depth: 0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8bc06fa..e099afe 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: go-version-file: 'go.mod' @@ -37,7 +37,7 @@ jobs: generate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: go-version-file: 'go.mod' @@ -65,7 +65,7 @@ jobs: - '1.3.*' - '1.4.*' steps: - - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: go-version-file: 'go.mod' From 42d2fe2320c4c39663dd6f41eb9d8c646f59b20a Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Wed, 18 Oct 2023 16:56:38 +0200 Subject: [PATCH 23/34] Fix adding group_on_system --- docs/data-sources/group.md | 140 --------- docs/resources/group.md | 11 +- docs/resources/grouponsystem.md | 11 +- docs/resources/serviceaccount.md | 2 +- .../provider-install-verification/main.tf | 13 +- internal/provider/full-data-struct-ds.go | 68 ++--- internal/provider/full-data-struct-rs.go | 68 ++--- internal/provider/full-helpers.go | 97 +++++- internal/provider/full-object-attrs-ds.go | 68 ++--- internal/provider/full-object-attrs-rs.go | 68 ++--- internal/provider/full-schema-ds.go | 200 ++++++------ internal/provider/full-schema-rs.go | 214 +++++++------ .../provider/full-tf-to-data-struct-ds.go | 68 ++--- .../provider/full-tf-to-data-struct-rs.go | 68 ++--- internal/provider/full-tf-to-tkh-ds.go | 284 +++++++++--------- internal/provider/full-tf-to-tkh-rs.go | 284 +++++++++--------- internal/provider/full-tkh-to-tf-ds.go | 274 ++++++++--------- internal/provider/full-tkh-to-tf-rs.go | 266 ++++++++-------- internal/provider/provider.go | 19 -- internal/provider/resource-grouponsystem.go | 8 +- 20 files changed, 1042 insertions(+), 1189 deletions(-) diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 69ff6ae..038b600 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -3760,7 +3760,6 @@ Read-Only: - `owner` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--permissions)) - `short_name_in_system` (String) -- `system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system)) - `type` (String) @@ -3819,75 +3818,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `owned_groups_on_system.items.system` - -Read-Only: - -- `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--links)) -- `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--permissions)) -- `type` (String) -- `uuid` (String) - - -### Nested Schema for `owned_groups_on_system.items.system.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `owned_groups_on_system.items.system.uuid` - -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--uuid--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--system--uuid--permissions)) -- `uuid` (String) - - -### Nested Schema for `owned_groups_on_system.items.system.uuid.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `owned_groups_on_system.items.system.uuid.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `owned_groups_on_system.items.system.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - @@ -4983,7 +4913,6 @@ Read-Only: - `owner` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system--owner)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--permissions)) - `short_name_in_system` (String) -- `system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system--system)) - `type` (String) @@ -5042,75 +4971,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `systems.group_on_system.system` - -Read-Only: - -- `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--links)) -- `name` (String) -- `organizational_unit` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system--system--organizational_unit)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--permissions)) -- `type` (String) -- `uuid` (String) - - -### Nested Schema for `systems.group_on_system.system.uuid` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `systems.group_on_system.system.uuid` - -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--uuid--links)) -- `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--system--uuid--permissions)) -- `uuid` (String) - - -### Nested Schema for `systems.group_on_system.system.uuid.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `systems.group_on_system.system.uuid.permissions` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `systems.group_on_system.system.uuid` - -Read-Only: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - ### Nested Schema for `systems.links` diff --git a/docs/resources/group.md b/docs/resources/group.md index b49b382..c6b3a2d 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -1352,13 +1352,12 @@ Required: Optional: - `display_name` (String) -- `short_name_in_system` (String) -- `system_uuid` (String) Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--permissions)) +- `short_name_in_system` (String) ### Nested Schema for `owned_groups_on_system.items.links` @@ -1798,6 +1797,10 @@ Optional: ### Nested Schema for `systems` +Required: + +- `group_uuid` (String) + Optional: - `activation_required` (Boolean) @@ -1805,7 +1808,6 @@ Optional: Read-Only: - `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system)) -- `group_uuid` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) @@ -1821,13 +1823,12 @@ Required: Optional: - `display_name` (String) -- `short_name_in_system` (String) -- `system_uuid` (String) Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--permissions)) +- `short_name_in_system` (String) ### Nested Schema for `systems.group_on_system.links` diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 312e588..042f33a 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -27,18 +27,21 @@ description: |- - `display_name` (String) - `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--provgroups)) - `service_accounts` (List of String) -- `short_name_in_system` (String) -- `system_uuid` (String) ### Read-Only - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `short_name_in_system` (String) ### Nested Schema for `provgroups` +Required: + +- `group_uuid` (String) + Optional: - `activation_required` (Boolean) @@ -46,7 +49,6 @@ Optional: Read-Only: - `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--provgroups--group_on_system)) -- `group_uuid` (String) - `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--permissions)) @@ -62,13 +64,12 @@ Required: Optional: - `display_name` (String) -- `short_name_in_system` (String) -- `system_uuid` (String) Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--permissions)) +- `short_name_in_system` (String) ### Nested Schema for `provgroups.group_on_system.links` diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index 8ed0907..3b7deeb 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -70,12 +70,12 @@ Required: Optional: - `display_name` (String) -- `short_name_in_system` (String) Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) +- `short_name_in_system` (String) ### Nested Schema for `groups.links` diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 591a914..f5a4796 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -60,9 +60,16 @@ resource "keyhubpreview_group" "terra" { }] } -#resource "keyhubpreview_grouponsystem" "terragos" { -# -#} +resource "keyhubpreview_grouponsystem" "terragos" { + provisioned_system_uuid = "47923975-b1af-47c8-bd7a-e52ebb4b9b84" + owner_uuid = resource.keyhubpreview_group.terra.uuid + name_in_system = "cn=terraform,ou=groups,ou=dev,dc=ad01,dc=keyhub,dc=s25,dc=topicus,dc=education" + type = "GROUP" + provgroups = [{ + activation_required = "false" + group_uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" + }] +} #output "resource_group" { # value = resource.keyhubpreview_group.terra diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index b96825b..3f69c88 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -684,10 +684,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - InternalDirectory types.Object `tfsdk:"internal_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1607,7 +1607,6 @@ type nestedProvisioningGroupOnSystemDataDS struct { Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` Owner types.Object `tfsdk:"owner"` - System types.Object `tfsdk:"system"` } var nestedProvisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedAccount(false) @@ -1956,7 +1955,6 @@ type provisioningGroupOnSystemDataDS struct { Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` Owner types.Object `tfsdk:"owner"` - System types.Object `tfsdk:"system"` } var provisioningGroupOnSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(false) @@ -2171,14 +2169,14 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2448,43 +2446,43 @@ type requestModificationRequestDataDS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` } var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 8e68368..d4d7505 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -647,10 +647,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - InternalDirectory types.Object `tfsdk:"internal_directory"` OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` - MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` + MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -1493,7 +1493,6 @@ type nestedProvisioningGroupOnSystemDataRS struct { Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` OwnerUUID types.String `tfsdk:"owner_uuid"` - SystemUUID types.String `tfsdk:"system_uuid"` } var nestedProvisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedAccount(false) @@ -1821,7 +1820,6 @@ type provisioningGroupOnSystemDataRS struct { Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` OwnerUUID types.String `tfsdk:"owner_uuid"` - SystemUUID types.String `tfsdk:"system_uuid"` } var provisioningGroupOnSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(false) @@ -2027,14 +2025,14 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` - ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } var provisioningProvisionedSystemLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(false) @@ -2303,43 +2301,43 @@ type requestModificationRequestDataRS struct { MailKey types.String `tfsdk:"mail_key"` RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` Status types.String `tfsdk:"status"` + EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` + TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` + AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` + CreateGroupRequest types.Object `tfsdk:"create_group_request"` + RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` + GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` + VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` + GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` + JoinGroupRequest types.Object `tfsdk:"join_group_request"` + TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` Disable2FARequest types.Object `tfsdk:"disable2fa_request"` + TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` + GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` + TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` + TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` + TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` + UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` + ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` + RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` + RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` + GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` + GrantAccessRequest types.Object `tfsdk:"grant_access_request"` + JoinVaultRequest types.Object `tfsdk:"join_vault_request"` + RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` + CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` + GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` } var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index e4e4731..d330fde 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -201,7 +201,12 @@ func findGroupGroupPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.GroupGroup).GroupGroupPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.GroupGroupPrimer{})); ok { + ret := primer.(keyhubmodels.GroupGroupPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type GroupGroupPrimer") + return nil, diag } func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { @@ -218,7 +223,12 @@ func findDirectoryAccountDirectoryPrimerByUUID(ctx context.Context, uuid *string if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.DirectoryAccountDirectory).DirectoryAccountDirectoryPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.DirectoryAccountDirectoryPrimer{})); ok { + ret := primer.(keyhubmodels.DirectoryAccountDirectoryPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type DirectoryAccountDirectoryPrimer") + return nil, diag } func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { @@ -235,7 +245,12 @@ func findOrganizationOrganizationalUnitPrimerByUUID(ctx context.Context, uuid *s if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.OrganizationOrganizationalUnit).OrganizationOrganizationalUnitPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.OrganizationOrganizationalUnitPrimer{})); ok { + ret := primer.(keyhubmodels.OrganizationOrganizationalUnitPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type OrganizationOrganizationalUnitPrimer") + return nil, diag } func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.CertificateCertificatePrimerable, diag.Diagnostics) { @@ -252,7 +267,12 @@ func findCertificateCertificatePrimerByUUID(ctx context.Context, uuid *string) ( if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.CertificateCertificate).CertificateCertificatePrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.CertificateCertificatePrimer{})); ok { + ret := primer.(keyhubmodels.CertificateCertificatePrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type CertificateCertificatePrimer") + return nil, diag } func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { @@ -269,7 +289,12 @@ func findProvisioningProvisionedSystemPrimerByUUID(ctx context.Context, uuid *st if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.ProvisioningProvisionedSystem).ProvisioningProvisionedSystemPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.ProvisioningProvisionedSystemPrimer{})); ok { + ret := primer.(keyhubmodels.ProvisioningProvisionedSystemPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type ProvisioningProvisionedSystemPrimer") + return nil, diag } func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.GroupGroupClassificationPrimerable, diag.Diagnostics) { @@ -286,7 +311,12 @@ func findGroupGroupClassificationPrimerByUUID(ctx context.Context, uuid *string) if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.GroupGroupClassification).GroupGroupClassificationPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.GroupGroupClassificationPrimer{})); ok { + ret := primer.(keyhubmodels.GroupGroupClassificationPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type GroupGroupClassificationPrimer") + return nil, diag } func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.ClientClientApplicationPrimerable, diag.Diagnostics) { @@ -303,15 +333,25 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.ClientClientApplication).ClientClientApplicationPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.ClientClientApplicationPrimer{})); ok { + ret := primer.(keyhubmodels.ClientClientApplicationPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type ClientClientApplicationPrimer") + return nil, diag } func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.AuthAccountPrimerable, diag.Diagnostics) { - account, diag := findAuthAccountByUUID(ctx, uuid) - if account == nil { - return account, diag + ret, diag := findAuthAccountByUUID(ctx, uuid) + if ret == nil { + return ret, diag } - return &account.(*keyhubmodels.AuthAccount).AuthAccountPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.AuthAccountPrimer{})); ok { + ret := primer.(keyhubmodels.AuthAccountPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type AuthAccountPrimer") + return nil, diag } func findAuthAccountByUUID(ctx context.Context, uuid *string) (keyhubmodels.AuthAccountable, diag.Diagnostics) { @@ -341,7 +381,12 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.ServiceaccountServiceAccount).ServiceaccountServiceAccountPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.ServiceaccountServiceAccountPrimer{})); ok { + ret := primer.(keyhubmodels.ServiceaccountServiceAccountPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type ServiceaccountServiceAccountPrimer") + return nil, diag } func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.VaultVaultRecordPrimerable, diag.Diagnostics) { @@ -358,7 +403,12 @@ func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhub if ret == nil { return ret, diag } - return &ret.(*keyhubmodels.VaultVaultRecord).VaultVaultRecordPrimer, diag + if primer, ok := findSuperStruct(ret, reflect.TypeOf(keyhubmodels.VaultVaultRecordPrimer{})); ok { + ret := primer.(keyhubmodels.VaultVaultRecordPrimer) + return &ret, diag + } + diag.AddError("Type error", "Result not of type VaultVaultRecordPrimer") + return nil, diag } func errorReportToString(ctx context.Context, err error) string { @@ -441,3 +491,24 @@ func collectAdditional(data any) []string { } return ret } + +func findSuperStruct(data any, targetType reflect.Type) (any, bool) { + reflectValue := reflect.ValueOf(data) + reflectType := reflectValue.Type() + if reflectType.Kind() == reflect.Pointer { + return findSuperStruct(reflectValue.Elem().Interface(), targetType) + } + for i := 0; i < reflectType.NumField(); i++ { + field := reflectType.Field(i) + if field.Anonymous { + fieldValue := reflectValue.Field(i).Interface() + if field.Type == targetType { + return fieldValue, true + } + if ret, ok := findSuperStruct(fieldValue, targetType); ok { + return ret, true + } + } + } + return nil, false +} diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index c2c58c6..91b0250 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -653,10 +653,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} return objectAttrs } @@ -1541,7 +1541,6 @@ func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]a objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } @@ -1871,7 +1870,6 @@ func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["short_name_in_system"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} return objectAttrs } @@ -2071,14 +2069,14 @@ func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } @@ -2319,43 +2317,43 @@ func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} return objectAttrs } diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index d3bb929..9cda1d7 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -614,10 +614,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} - objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} + objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} return objectAttrs } @@ -1423,7 +1423,6 @@ func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]a objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["owner_uuid"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } @@ -1732,7 +1731,6 @@ func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Ty objectAttrs["type"] = types.StringType objectAttrs["short_name_in_system"] = types.StringType objectAttrs["owner_uuid"] = types.StringType - objectAttrs["system_uuid"] = types.StringType return objectAttrs } @@ -1923,14 +1921,14 @@ func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]att objectAttrs["should_destroy_unknown_accounts"] = types.BoolType objectAttrs["technical_administrator_uuid"] = types.StringType objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } @@ -2170,43 +2168,43 @@ func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.T objectAttrs["mail_key"] = types.StringType objectAttrs["request_modification_request_type"] = types.StringType objectAttrs["status"] = types.StringType + objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} + objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} + objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} + objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} + objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} + objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} + objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} + objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} + objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} + objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} + objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} + objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} + objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} + objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} + objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} + objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} + objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} + objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} + objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} + objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} + objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} + objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} + objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} + objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} return objectAttrs } diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index fa44f4e..706d450 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -1588,17 +1588,17 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), } attr.Computed = true - schemaAttrs["internal_directory"] = attr + schemaAttrs["o_id_c_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), } attr.Computed = true - schemaAttrs["o_id_c_directory"] = attr + schemaAttrs["l_d_a_p_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -1609,10 +1609,10 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), } attr.Computed = true - schemaAttrs["l_d_a_p_directory"] = attr + schemaAttrs["internal_directory"] = attr } return schemaAttrs } @@ -3940,13 +3940,6 @@ func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[stri attr.Computed = true schemaAttrs["owner"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - } - attr.Computed = true - schemaAttrs["system"] = attr - } return schemaAttrs } func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { @@ -4753,13 +4746,6 @@ func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dss attr.Computed = true schemaAttrs["owner"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), - } - attr.Computed = true - schemaAttrs["system"] = attr - } return schemaAttrs } func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { @@ -5216,38 +5202,38 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), } attr.Computed = true - schemaAttrs["provisioned_ldap_directory"] = attr + schemaAttrs["provisioned_azure_oidc_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), } attr.Computed = true - schemaAttrs["provisioned_internal_ldap"] = attr + schemaAttrs["abstract_provisioned_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), } attr.Computed = true - schemaAttrs["provisioned_azure_tenant"] = attr + schemaAttrs["provisioned_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), } attr.Computed = true - schemaAttrs["provisioned_azure_oidc_directory"] = attr + schemaAttrs["provisioned_azure_tenant"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), } attr.Computed = true - schemaAttrs["abstract_provisioned_ldap"] = attr + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -5258,17 +5244,17 @@ func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), } attr.Computed = true - schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr + schemaAttrs["provisioned_internal_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), } attr.Computed = true - schemaAttrs["provisioned_ldap"] = attr + schemaAttrs["provisioned_ldap_directory"] = attr } return schemaAttrs } @@ -5740,6 +5726,13 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds schemaAttrs["status"] = dsschema.StringAttribute{ Computed: true, } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + } + attr.Computed = true + schemaAttrs["enable_technical_administration_request"] = attr + } { attr := dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), @@ -5756,94 +5749,94 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), + Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), } attr.Computed = true - schemaAttrs["extend_access_request"] = attr + schemaAttrs["password_reset_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), } attr.Computed = true - schemaAttrs["grant_service_account_group_request"] = attr + schemaAttrs["abstract_provisioned_system_modification_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), } attr.Computed = true - schemaAttrs["grant_group_on_system_request"] = attr + schemaAttrs["transfer_provisioned_system_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), } attr.Computed = true - schemaAttrs["abstract_provisioned_system_modification_request"] = attr + schemaAttrs["add_group_admin_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), } attr.Computed = true - schemaAttrs["enable_technical_administration_request"] = attr + schemaAttrs["abstract_organizational_unit_modification_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), + Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), } attr.Computed = true - schemaAttrs["grant_application_request"] = attr + schemaAttrs["create_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), + Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), } attr.Computed = true - schemaAttrs["password_reset_request"] = attr + schemaAttrs["remove_provisioned_system_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), } attr.Computed = true - schemaAttrs["grant_group_on_system_request_request"] = attr + schemaAttrs["grant_application_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), } attr.Computed = true - schemaAttrs["transfer_service_account_administration_request"] = attr + schemaAttrs["create_group_on_system_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), } attr.Computed = true - schemaAttrs["remove_provisioned_system_request"] = attr + schemaAttrs["setup_nested_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), } attr.Computed = true - schemaAttrs["update_group_membership_request"] = attr + schemaAttrs["verify_internal_account_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), } attr.Computed = true - schemaAttrs["transfer_group_on_system_ownership_request"] = attr + schemaAttrs["grant_group_on_system_request_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), } attr.Computed = true - schemaAttrs["abstract_organizational_unit_modification_request"] = attr + schemaAttrs["join_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -5854,150 +5847,143 @@ func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]ds } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), - } - attr.Computed = true - schemaAttrs["grant_access_request"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), } attr.Computed = true - schemaAttrs["verify_internal_account_request"] = attr + schemaAttrs["disable2fa_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), } attr.Computed = true - schemaAttrs["transfer_auditor_group_request"] = attr + schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), } attr.Computed = true - schemaAttrs["create_group_on_system_request"] = attr + schemaAttrs["grant_group_on_system_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), } attr.Computed = true - schemaAttrs["join_group_request"] = attr + schemaAttrs["transfer_application_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), } attr.Computed = true - schemaAttrs["join_vault_request"] = attr + schemaAttrs["transfer_group_on_system_ownership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), } attr.Computed = true - schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr + schemaAttrs["transfer_service_account_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), } attr.Computed = true - schemaAttrs["setup_nested_group_request"] = attr + schemaAttrs["transfer_auditor_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), + Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), } attr.Computed = true - schemaAttrs["revoke_admin_request"] = attr + schemaAttrs["review_audit_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), } attr.Computed = true - schemaAttrs["remove_group_request"] = attr + schemaAttrs["update_group_membership_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), } attr.Computed = true - schemaAttrs["transfer_provisioned_system_ownership_request"] = attr + schemaAttrs["extend_access_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), } attr.Computed = true - schemaAttrs["create_service_account_request"] = attr + schemaAttrs["remove_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), } attr.Computed = true - schemaAttrs["grant_client_permission_request"] = attr + schemaAttrs["revoke_admin_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), } attr.Computed = true - schemaAttrs["create_group_request"] = attr + schemaAttrs["grant_service_account_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), + Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), } attr.Computed = true - schemaAttrs["disable2fa_request"] = attr + schemaAttrs["setup_authorizing_group_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), } attr.Computed = true - schemaAttrs["transfer_application_ownership_request"] = attr + schemaAttrs["transfer_provisioned_system_administration_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), } attr.Computed = true - schemaAttrs["add_group_admin_request"] = attr + schemaAttrs["grant_access_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), + Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), } attr.Computed = true - schemaAttrs["review_audit_request"] = attr + schemaAttrs["join_vault_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), } attr.Computed = true - schemaAttrs["setup_authorizing_group_request"] = attr + schemaAttrs["remove_organizational_unit_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), } attr.Computed = true - schemaAttrs["remove_organizational_unit_request"] = attr + schemaAttrs["create_service_account_request"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), } attr.Computed = true - schemaAttrs["transfer_provisioned_system_administration_request"] = attr + schemaAttrs["grant_client_permission_request"] = attr } return schemaAttrs } diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index a4c42b7..d78166b 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -1648,17 +1648,17 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), } attr.Optional = true - schemaAttrs["internal_directory"] = attr + schemaAttrs["o_id_c_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), } attr.Optional = true - schemaAttrs["o_id_c_directory"] = attr + schemaAttrs["l_d_a_p_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -1669,10 +1669,10 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), } attr.Optional = true - schemaAttrs["l_d_a_p_directory"] = attr + schemaAttrs["internal_directory"] = attr } return schemaAttrs } @@ -3155,8 +3155,10 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Default: booldefault.StaticBool(true), } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } { attr := rsschema.SingleNestedAttribute{ @@ -3943,7 +3945,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, @@ -3951,12 +3953,6 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } return schemaAttrs } func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { @@ -4068,7 +4064,7 @@ func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) ma }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -4724,7 +4720,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, @@ -4732,12 +4728,6 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } return schemaAttrs } func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { @@ -4784,7 +4774,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -5210,38 +5200,38 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), } attr.Optional = true - schemaAttrs["provisioned_ldap_directory"] = attr + schemaAttrs["provisioned_azure_oidc_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), } attr.Optional = true - schemaAttrs["provisioned_internal_ldap"] = attr + schemaAttrs["abstract_provisioned_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), } attr.Optional = true - schemaAttrs["provisioned_azure_tenant"] = attr + schemaAttrs["provisioned_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), } attr.Optional = true - schemaAttrs["provisioned_azure_oidc_directory"] = attr + schemaAttrs["provisioned_azure_tenant"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), } attr.Optional = true - schemaAttrs["abstract_provisioned_ldap"] = attr + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -5252,17 +5242,17 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), } attr.Optional = true - schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr + schemaAttrs["provisioned_internal_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), } attr.Optional = true - schemaAttrs["provisioned_ldap"] = attr + schemaAttrs["provisioned_ldap_directory"] = attr } return schemaAttrs } @@ -5770,6 +5760,13 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc ), }, } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + } + attr.Optional = true + schemaAttrs["enable_technical_administration_request"] = attr + } { attr := rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), @@ -5786,94 +5783,94 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), + Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), } attr.Optional = true - schemaAttrs["extend_access_request"] = attr + schemaAttrs["password_reset_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), } attr.Optional = true - schemaAttrs["grant_service_account_group_request"] = attr + schemaAttrs["abstract_provisioned_system_modification_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), } attr.Optional = true - schemaAttrs["grant_group_on_system_request"] = attr + schemaAttrs["transfer_provisioned_system_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), } attr.Optional = true - schemaAttrs["abstract_provisioned_system_modification_request"] = attr + schemaAttrs["add_group_admin_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), } attr.Optional = true - schemaAttrs["enable_technical_administration_request"] = attr + schemaAttrs["abstract_organizational_unit_modification_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), + Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), } attr.Optional = true - schemaAttrs["grant_application_request"] = attr + schemaAttrs["create_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), + Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), } attr.Optional = true - schemaAttrs["password_reset_request"] = attr + schemaAttrs["remove_provisioned_system_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), + Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), } attr.Optional = true - schemaAttrs["grant_group_on_system_request_request"] = attr + schemaAttrs["grant_application_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), } attr.Optional = true - schemaAttrs["transfer_service_account_administration_request"] = attr + schemaAttrs["create_group_on_system_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), + Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), } attr.Optional = true - schemaAttrs["remove_provisioned_system_request"] = attr + schemaAttrs["setup_nested_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), + Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), } attr.Optional = true - schemaAttrs["update_group_membership_request"] = attr + schemaAttrs["verify_internal_account_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), } attr.Optional = true - schemaAttrs["transfer_group_on_system_ownership_request"] = attr + schemaAttrs["grant_group_on_system_request_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), } attr.Optional = true - schemaAttrs["abstract_organizational_unit_modification_request"] = attr + schemaAttrs["join_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ @@ -5884,150 +5881,143 @@ func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rssc } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), - } - attr.Optional = true - schemaAttrs["grant_access_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), + Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), } attr.Optional = true - schemaAttrs["verify_internal_account_request"] = attr + schemaAttrs["disable2fa_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), } attr.Optional = true - schemaAttrs["transfer_auditor_group_request"] = attr + schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), + Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), } attr.Optional = true - schemaAttrs["create_group_on_system_request"] = attr + schemaAttrs["grant_group_on_system_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), + Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), } attr.Optional = true - schemaAttrs["join_group_request"] = attr + schemaAttrs["transfer_application_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), } attr.Optional = true - schemaAttrs["join_vault_request"] = attr + schemaAttrs["transfer_group_on_system_ownership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), } attr.Optional = true - schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr + schemaAttrs["transfer_service_account_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), + Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), } attr.Optional = true - schemaAttrs["setup_nested_group_request"] = attr + schemaAttrs["transfer_auditor_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), + Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), } attr.Optional = true - schemaAttrs["revoke_admin_request"] = attr + schemaAttrs["review_audit_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), + Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), } attr.Optional = true - schemaAttrs["remove_group_request"] = attr + schemaAttrs["update_group_membership_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), } attr.Optional = true - schemaAttrs["transfer_provisioned_system_ownership_request"] = attr + schemaAttrs["extend_access_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), } attr.Optional = true - schemaAttrs["create_service_account_request"] = attr + schemaAttrs["remove_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), } attr.Optional = true - schemaAttrs["grant_client_permission_request"] = attr + schemaAttrs["revoke_admin_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), + Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), } attr.Optional = true - schemaAttrs["create_group_request"] = attr + schemaAttrs["grant_service_account_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), + Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), } attr.Optional = true - schemaAttrs["disable2fa_request"] = attr + schemaAttrs["setup_authorizing_group_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), } attr.Optional = true - schemaAttrs["transfer_application_ownership_request"] = attr + schemaAttrs["transfer_provisioned_system_administration_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), + Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), } attr.Optional = true - schemaAttrs["add_group_admin_request"] = attr + schemaAttrs["grant_access_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), + Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), } attr.Optional = true - schemaAttrs["review_audit_request"] = attr + schemaAttrs["join_vault_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), } attr.Optional = true - schemaAttrs["setup_authorizing_group_request"] = attr + schemaAttrs["remove_organizational_unit_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), } attr.Optional = true - schemaAttrs["remove_organizational_unit_request"] = attr + schemaAttrs["create_service_account_request"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), } attr.Optional = true - schemaAttrs["transfer_provisioned_system_administration_request"] = attr + schemaAttrs["grant_client_permission_request"] = attr } return schemaAttrs } @@ -6386,7 +6376,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index 8ec3e00..e6c3480 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -526,10 +526,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -1236,7 +1236,6 @@ func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedPro data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataDS, obj types.Object) { @@ -1480,7 +1479,6 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystem(data *provisioningGro data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataDS, obj types.Object) { @@ -1632,14 +1630,14 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataDS, obj types.Object) { @@ -1810,43 +1808,43 @@ func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 9ed7de3..5e39847 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -489,10 +489,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) - data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) + data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -1122,7 +1122,6 @@ func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedPro data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataRS, obj types.Object) { @@ -1345,7 +1344,6 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystem(data *provisioningGro data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningGroupOnSystemLinkableWrapper(data *provisioningGroupOnSystemLinkableWrapperDataRS, obj types.Object) { @@ -1488,14 +1486,14 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) - data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedSystemLinkableWrapper(data *provisioningProvisionedSystemLinkableWrapperDataRS, obj types.Object) { @@ -1665,43 +1663,43 @@ func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModific data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) data.Status = obj.Attributes()["status"].(basetypes.StringValue) + data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) + data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) + data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) + data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) + data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) + data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) + data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) + data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) + data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) + data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) + data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) + data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) + data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) + data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) + data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) + data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) + data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) + data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) + data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) + data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) + data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) + data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index dceed9e..c01b0de 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -1792,19 +1792,19 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1816,11 +1816,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -4421,11 +4421,6 @@ func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse diags.Append(d...) tkh.SetOwner(val) } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } if recurse { { val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) @@ -5381,11 +5376,6 @@ func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetOwner(val) } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } if recurse { { val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) @@ -5938,43 +5928,43 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5986,19 +5976,19 @@ func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6645,6 +6635,14 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } if !objAttrs["abstract_application_modification_request"].IsNull() { val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) @@ -6661,107 +6659,107 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6773,171 +6771,163 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 39330df..3fa6b02 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -1717,19 +1717,19 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1741,11 +1741,11 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -4199,11 +4199,6 @@ func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse diags.Append(d...) tkh.SetOwner(val) } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } if recurse { { val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) @@ -5112,11 +5107,6 @@ func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetOwner(val) } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } if recurse { { val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) @@ -5656,43 +5646,43 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b tkh.SetTechnicalAdministrator(val) } tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -5704,19 +5694,19 @@ func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse b val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } @@ -6366,6 +6356,14 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool diags.Append(d...) tkh.SetStatus(val) } + if !objAttrs["enable_technical_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + val.SetTypeEscaped(dtype) + tkh = val + } if !objAttrs["abstract_application_modification_request"].IsNull() { val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) @@ -6382,107 +6380,107 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + if !objAttrs["password_reset_request"].IsNull() { + val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["add_group_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { + val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_provisioned_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_application_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["create_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_nested_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + if !objAttrs["verify_internal_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) + if !objAttrs["join_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } @@ -6494,171 +6492,163 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) + if !objAttrs["disable2fa_request"].IsNull() { + val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_group_on_system_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_application_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_service_account_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_auditor_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["review_audit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + if !objAttrs["update_group_membership_request"].IsNull() { + val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["extend_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["revoke_admin_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_service_account_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) + if !objAttrs["setup_authorizing_group_request"].IsNull() { + val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) + if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { + val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_access_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + if !objAttrs["join_vault_request"].IsNull() { + val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["remove_organizational_unit_request"].IsNull() { + val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["create_service_account_request"].IsNull() { + val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["grant_client_permission_request"].IsNull() { + val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) val.SetTypeEscaped(dtype) tkh = val } diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 9b26bf1..c1c6b62 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -2019,18 +2019,18 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) obj["o_id_c_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) @@ -2038,10 +2038,10 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["maintenance_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) - val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["l_d_a_p_directory"] = val + obj["internal_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -4984,11 +4984,6 @@ func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode diags.Append(d...) obj["owner"] = val } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6186,11 +6181,6 @@ func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov diags.Append(d...) obj["owner"] = val } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6880,34 +6870,34 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. } obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_tenant"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) @@ -6916,16 +6906,16 @@ func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7810,6 +7800,12 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) + { + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + diags.Append(d...) + obj["enable_technical_administration_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) @@ -7823,22 +7819,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) - diags.Append(d...) - obj["extend_access_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) - diags.Append(d...) - obj["grant_service_account_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) @@ -7847,34 +7831,28 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["enable_technical_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["create_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) @@ -7883,34 +7861,22 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) - diags.Append(d...) - obj["update_group_membership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["setup_nested_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) @@ -7919,16 +7885,10 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["grant_group_on_system_request_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) @@ -7937,10 +7897,16 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + diags.Append(d...) + obj["disable2fa_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) @@ -7949,70 +7915,70 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["grant_service_account_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -8020,6 +7986,24 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["setup_authorizing_group_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_provisioned_system_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + diags.Append(d...) + obj["grant_access_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) + diags.Append(d...) + obj["join_vault_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) @@ -8027,10 +8011,16 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["create_service_account_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + diags.Append(d...) + obj["grant_client_permission_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 441de39..51d6012 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -1895,18 +1895,18 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val - } { tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) diags.Append(d...) obj["o_id_c_directory"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } { tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) @@ -1914,10 +1914,10 @@ func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire obj["maintenance_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) - val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) diags.Append(d...) - obj["l_d_a_p_directory"] = val + obj["internal_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -4533,7 +4533,6 @@ func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmode obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -5625,7 +5624,6 @@ func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.Prov obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -6260,34 +6258,34 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap_directory"] = val + obj["provisioned_azure_oidc_directory"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_internal_ldap"] = val + obj["abstract_provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_tenant"] = val + obj["provisioned_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val + obj["provisioned_azure_tenant"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["abstract_provisioned_ldap"] = val + obj["provisioned_azure_sync_ldap_directory"] = val } { tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) @@ -6296,16 +6294,16 @@ func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel. obj["provisioned_a_d"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val + obj["provisioned_internal_ldap"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["provisioned_ldap"] = val + obj["provisioned_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7150,6 +7148,12 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) obj["status"] = stringerToTF(tkh.GetStatus()) + { + tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) + val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) + diags.Append(d...) + obj["enable_technical_administration_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) @@ -7163,22 +7167,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_application_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) - diags.Append(d...) - obj["extend_access_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) - diags.Append(d...) - obj["grant_service_account_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) + val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request"] = val + obj["password_reset_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) @@ -7187,34 +7179,28 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["abstract_provisioned_system_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["enable_technical_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["grant_application_request"] = val + obj["transfer_provisioned_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) + val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) diags.Append(d...) - obj["password_reset_request"] = val + obj["add_group_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) + val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) diags.Append(d...) - obj["grant_group_on_system_request_request"] = val + obj["abstract_organizational_unit_modification_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_service_account_administration_request"] = val + obj["create_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) @@ -7223,34 +7209,22 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["remove_provisioned_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) - diags.Append(d...) - obj["update_group_membership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) + val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val + obj["grant_application_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val + obj["create_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) + val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) diags.Append(d...) - obj["grant_access_request"] = val + obj["setup_nested_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) @@ -7259,16 +7233,10 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["verify_internal_account_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) diags.Append(d...) - obj["create_group_on_system_request"] = val + obj["grant_group_on_system_request_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) @@ -7277,10 +7245,16 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["join_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["join_vault_request"] = val + obj["transfer_organizational_unit_ownership_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) + val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + diags.Append(d...) + obj["disable2fa_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) @@ -7289,70 +7263,70 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["transfer_provisioned_system_content_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) + val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) diags.Append(d...) - obj["setup_nested_group_request"] = val + obj["grant_group_on_system_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["transfer_application_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) + val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) diags.Append(d...) - obj["remove_group_request"] = val + obj["transfer_group_on_system_ownership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val + obj["transfer_service_account_administration_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) + val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) diags.Append(d...) - obj["create_service_account_request"] = val + obj["transfer_auditor_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) + val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["review_audit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) + val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) diags.Append(d...) - obj["create_group_request"] = val + obj["update_group_membership_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) + val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) diags.Append(d...) - obj["disable2fa_request"] = val + obj["extend_access_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) + val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) diags.Append(d...) - obj["transfer_application_ownership_request"] = val + obj["remove_group_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) + val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) diags.Append(d...) - obj["add_group_admin_request"] = val + obj["revoke_admin_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) + val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) diags.Append(d...) - obj["review_audit_request"] = val + obj["grant_service_account_group_request"] = val } { tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) @@ -7360,6 +7334,24 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["setup_authorizing_group_request"] = val } + { + tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) + val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + diags.Append(d...) + obj["transfer_provisioned_system_administration_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) + val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + diags.Append(d...) + obj["grant_access_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) + val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) + diags.Append(d...) + obj["join_vault_request"] = val + } { tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) @@ -7367,10 +7359,16 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj["remove_organizational_unit_request"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) + tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) + val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + obj["create_service_account_request"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) + val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + diags.Append(d...) + obj["grant_client_permission_request"] = val } objVal, d := types.ObjectValue(attrs, obj) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 0ba9224..383e9b0 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -7,9 +7,7 @@ import ( "context" "net/http" "os" - "reflect" - "github.com/hashicorp/terraform-plugin-framework/attr" "github.com/hashicorp/terraform-plugin-framework/datasource" "github.com/hashicorp/terraform-plugin-framework/path" "github.com/hashicorp/terraform-plugin-framework/provider" @@ -206,20 +204,3 @@ func New(version string) func() provider.Provider { } } } - -func collectAdditional2(data any) []string { - reflectValue := reflect.ValueOf(data) - reflectType := reflectValue.Type() - ret := make([]string, 0) - for i := 0; i < reflectType.NumField(); i++ { - field := reflectType.Field(i) - tkhoa := field.Tag.Get("tkhoa") - if tkhoa != "" { - attr := reflectValue.Field(i).Interface().(attr.Value) - if !attr.IsNull() && !attr.IsUnknown() { - ret = append(ret, tkhoa) - } - } - } - return ret -} diff --git a/internal/provider/resource-grouponsystem.go b/internal/provider/resource-grouponsystem.go index 156ca3f..d19db29 100644 --- a/internal/provider/resource-grouponsystem.go +++ b/internal/provider/resource-grouponsystem.go @@ -85,7 +85,7 @@ func (r *grouponsystemResource) Create(ctx context.Context, req resource.CreateR tflog.Info(ctx, "Creating Topicus KeyHub grouponsystem") newWrapper := keyhubmodels.NewProvisioningGroupOnSystemLinkableWrapper() newWrapper.SetItems([]keyhubmodels.ProvisioningGroupOnSystemable{newTkh}) - tkhParent, diags := findProvisioningProvisionedSystemPrimerByUUID(ctx, data.SystemUUID.ValueStringPointer()) + tkhParent, diags := findProvisioningProvisionedSystemPrimerByUUID(ctx, data.ProvisionedSystemUUID.ValueStringPointer()) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return @@ -108,7 +108,7 @@ func (r *grouponsystemResource) Create(ctx context.Context, req resource.CreateR if resp.Diagnostics.HasError() { return } - tf = setAttributeValue(ctx, tf, "system_uuid", types.StringValue(data.SystemUUID.ValueString())) + tf = setAttributeValue(ctx, tf, "provisioned_system_uuid", types.StringValue(data.ProvisionedSystemUUID.ValueString())) fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(&data, tf) resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) @@ -126,7 +126,7 @@ func (r *grouponsystemResource) Read(ctx context.Context, req resource.ReadReque ctx = context.WithValue(ctx, keyHubClientKey, r.client) tflog.Info(ctx, "Reading grouponsystem from Topicus KeyHub") - tkhParent, diags := findProvisioningProvisionedSystemPrimerByUUID(ctx, data.SystemUUID.ValueStringPointer()) + tkhParent, diags := findProvisioningProvisionedSystemPrimerByUUID(ctx, data.ProvisionedSystemUUID.ValueStringPointer()) resp.Diagnostics.Append(diags...) if resp.Diagnostics.HasError() { return @@ -148,7 +148,7 @@ func (r *grouponsystemResource) Read(ctx context.Context, req resource.ReadReque if resp.Diagnostics.HasError() { return } - tf = setAttributeValue(ctx, tf, "system_uuid", types.StringValue(data.SystemUUID.ValueString())) + tf = setAttributeValue(ctx, tf, "provisioned_system_uuid", types.StringValue(data.ProvisionedSystemUUID.ValueString())) fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(&data, tf) resp.Diagnostics.Append(resp.State.Set(ctx, &data)...) From 5ede970197301251775e1fbf0f9c8cb5b4bb3737 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Thu, 19 Oct 2023 18:22:37 +0200 Subject: [PATCH 24/34] Cleanup --- internal/provider/full-data-struct-ds.go | 1579 +-- internal/provider/full-data-struct-rs.go | 1617 +-- internal/provider/full-object-attrs-ds.go | 1811 +--- internal/provider/full-object-attrs-rs.go | 1781 +--- internal/provider/full-schema-ds.go | 4509 +-------- internal/provider/full-schema-rs.go | 7099 ++++---------- .../provider/full-tf-to-data-struct-ds.go | 1129 +-- .../provider/full-tf-to-data-struct-rs.go | 1099 +-- internal/provider/full-tf-to-tkh-ds.go | 5335 ++-------- internal/provider/full-tf-to-tkh-rs.go | 7416 +++----------- internal/provider/full-tkh-to-tf-ds.go | 8674 ++++------------- internal/provider/full-tkh-to-tf-rs.go | 8202 +++------------- 12 files changed, 8132 insertions(+), 42119 deletions(-) diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 3f69c88..0326762 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -17,26 +17,6 @@ type auditInfoDataDS struct { LastModifiedBy types.String `tfsdk:"last_modified_by"` } -var errorReportAttrTypesDS = objectAttrsTypeDSErrorReport(false) -var errorReportAttrTypesDSRecurse = objectAttrsTypeDSErrorReport(true) - -type errorReportDataDS struct { - ApplicationError types.String `tfsdk:"application_error"` - ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` - Code types.Int64 `tfsdk:"code"` - ErrorDetails types.List `tfsdk:"error_details"` - Exception types.String `tfsdk:"exception"` - Message types.String `tfsdk:"message"` - Reason types.String `tfsdk:"reason"` - Stacktrace types.List `tfsdk:"stacktrace"` -} - -var errorReport_applicationErrorParametersAttrTypesDS = objectAttrsTypeDSErrorReport_applicationErrorParameters(false) -var errorReport_applicationErrorParametersAttrTypesDSRecurse = objectAttrsTypeDSErrorReport_applicationErrorParameters(true) - -type errorReport_applicationErrorParametersDataDS struct { -} - var generatedSecretAttrTypesDS = objectAttrsTypeDSGeneratedSecret(false) var generatedSecretAttrTypesDSRecurse = objectAttrsTypeDSGeneratedSecret(true) @@ -70,86 +50,6 @@ type restLinkDataDS struct { TypeEscaped types.String `tfsdk:"type_escaped"` } -var segmentCountAttrTypesDS = objectAttrsTypeDSSegmentCount(false) -var segmentCountAttrTypesDSRecurse = objectAttrsTypeDSSegmentCount(true) - -type segmentCountDataDS struct { - Count types.Int64 `tfsdk:"count"` - Name types.String `tfsdk:"name"` -} - -var accountVaultVaultRecordAttrTypesDS = objectAttrsTypeDSAccountVaultVaultRecord(false) -var accountVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSAccountVaultVaultRecord(true) - -type accountVaultVaultRecordDataDS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Parent types.Object `tfsdk:"parent" tkhao:"parent"` - PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` - Secret types.Object `tfsdk:"secret" tkhao:"secret"` - ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` - Shares types.List `tfsdk:"shares" tkhao:"shares"` - Tile types.Object `tfsdk:"tile" tkhao:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - -var auditAuditRecordAttrTypesDS = objectAttrsTypeDSAuditAuditRecord(false) -var auditAuditRecordAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord(true) - -type auditAuditRecordDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - AuditAuditRecordType types.String `tfsdk:"type"` - DateTime types.String `tfsdk:"date_time"` - OnAccount types.String `tfsdk:"on_account"` - OnCertificate types.String `tfsdk:"on_certificate"` - OnClient types.String `tfsdk:"on_client"` - OnDirectory types.String `tfsdk:"on_directory"` - OnGroup types.String `tfsdk:"on_group"` - OnGroup2 types.String `tfsdk:"on_group2"` - OnGroupClassification types.String `tfsdk:"on_group_classification"` - OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` - OnServiceAccount types.String `tfsdk:"on_service_account"` - OnSystem types.String `tfsdk:"on_system"` - OnVaultRecord types.String `tfsdk:"on_vault_record"` - OnWebhook types.String `tfsdk:"on_webhook"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - PerformedBy types.String `tfsdk:"performed_by"` - SecurityLevel types.String `tfsdk:"security_level"` -} - -var auditAuditRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(false) -var auditAuditRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecordLinkableWrapper(true) - -type auditAuditRecordLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var auditAuditRecord_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuditAuditRecord_additionalObjects(false) -var auditAuditRecord_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuditAuditRecord_additionalObjects(true) - -type auditAuditRecord_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - var authAccountAttrTypesDS = objectAttrsTypeDSAuthAccount(false) var authAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount(true) @@ -189,29 +89,6 @@ type authAccountDataDS struct { ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` } -var authAccountBulkUpdateAttrTypesDS = objectAttrsTypeDSAuthAccountBulkUpdate(false) -var authAccountBulkUpdateAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountBulkUpdate(true) - -type authAccountBulkUpdateDataDS struct { - Action types.String `tfsdk:"action"` - ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` - SelectedAccounts types.List `tfsdk:"selected_accounts"` -} - -var authAccountChangeLocaleAttrTypesDS = objectAttrsTypeDSAuthAccountChangeLocale(false) -var authAccountChangeLocaleAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountChangeLocale(true) - -type authAccountChangeLocaleDataDS struct { - Locale types.String `tfsdk:"locale"` -} - -var authAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthAccountLinkableWrapper(false) -var authAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountLinkableWrapper(true) - -type authAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var authAccountPrimerAttrTypesDS = objectAttrsTypeDSAuthAccountPrimer(false) var authAccountPrimerAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountPrimer(true) @@ -251,18 +128,6 @@ type authAccountSettingsDataDS struct { VaultStatus types.String `tfsdk:"vault_status"` } -var authAccountStatusAttrTypesDS = objectAttrsTypeDSAuthAccountStatus(false) -var authAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountStatus(true) - -type authAccountStatusDataDS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` - LicenseRole types.String `tfsdk:"license_role"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` -} - var authAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSAuthAccount_additionalObjects(false) var authAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccount_additionalObjects(true) @@ -276,100 +141,6 @@ type authAccount_additionalObjectsDataDS struct { Vault types.Object `tfsdk:"vault"` } -var authAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats(false) -var authAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats(true) - -type authAccountsAuditStatsDataDS struct { - DirectoryStats types.Object `tfsdk:"directory_stats"` - TwoFAStats types.Object `tfsdk:"two_fa_stats"` - ValidityStats types.Object `tfsdk:"validity_stats"` -} - -var authAccountsAuditStats_directoryStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(false) -var authAccountsAuditStats_directoryStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(true) - -type authAccountsAuditStats_directoryStatsDataDS struct { -} - -var authAccountsAuditStats_twoFAStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(false) -var authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(true) - -type authAccountsAuditStats_twoFAStatsDataDS struct { -} - -var authAccountsAuditStats_validityStatsAttrTypesDS = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(false) -var authAccountsAuditStats_validityStatsAttrTypesDSRecurse = objectAttrsTypeDSAuthAccountsAuditStats_validityStats(true) - -type authAccountsAuditStats_validityStatsDataDS struct { -} - -var authInternalAccountAttrTypesDS = objectAttrsTypeDSAuthInternalAccount(false) -var authInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccount(true) - -type authInternalAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Groups types.List `tfsdk:"groups" tkhao:"groups"` - PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` - Settings types.Object `tfsdk:"settings" tkhao:"settings"` - StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - Directory types.Object `tfsdk:"directory"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` -} - -var authInternalAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(false) -var authInternalAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountLinkableWrapper(true) - -type authInternalAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var authInternalAccountStatusObjectAttrTypesDS = objectAttrsTypeDSAuthInternalAccountStatusObject(false) -var authInternalAccountStatusObjectAttrTypesDSRecurse = objectAttrsTypeDSAuthInternalAccountStatusObject(true) - -type authInternalAccountStatusObjectDataDS struct { - Status types.String `tfsdk:"status"` -} - -var authMoveInternalAccountAttrTypesDS = objectAttrsTypeDSAuthMoveInternalAccount(false) -var authMoveInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSAuthMoveInternalAccount(true) - -type authMoveInternalAccountDataDS struct { - InternalDirectory types.Object `tfsdk:"internal_directory"` -} - var authPermissionAttrTypesDS = objectAttrsTypeDSAuthPermission(false) var authPermissionAttrTypesDSRecurse = objectAttrsTypeDSAuthPermission(true) @@ -415,13 +186,6 @@ type certificateCertificateDataDS struct { KeyData types.List `tfsdk:"key_data"` } -var certificateCertificateLinkableWrapperAttrTypesDS = objectAttrsTypeDSCertificateCertificateLinkableWrapper(false) -var certificateCertificateLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificateLinkableWrapper(true) - -type certificateCertificateLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var certificateCertificatePrimerAttrTypesDS = objectAttrsTypeDSCertificateCertificatePrimer(false) var certificateCertificatePrimerAttrTypesDSRecurse = objectAttrsTypeDSCertificateCertificatePrimer(true) @@ -446,35 +210,6 @@ type certificateCertificate_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var clientApplicationVaultVaultRecordAttrTypesDS = objectAttrsTypeDSClientApplicationVaultVaultRecord(false) -var clientApplicationVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSClientApplicationVaultVaultRecord(true) - -type clientApplicationVaultVaultRecordDataDS struct { - ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Parent types.Object `tfsdk:"parent" tkhao:"parent"` - PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` - Secret types.Object `tfsdk:"secret" tkhao:"secret"` - ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` - Shares types.List `tfsdk:"shares" tkhao:"shares"` - Tile types.Object `tfsdk:"tile" tkhao:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - var clientClientApplicationAttrTypesDS = objectAttrsTypeDSClientClientApplication(false) var clientClientApplicationAttrTypesDSRecurse = objectAttrsTypeDSClientClientApplication(true) @@ -497,8 +232,8 @@ type clientClientApplicationDataDS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` Owner types.Object `tfsdk:"owner"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` - OAuth2Client types.Object `tfsdk:"o_auth2_client"` LDAPClient types.Object `tfsdk:"ldap_client"` + OAuth2Client types.Object `tfsdk:"o_auth2_client"` Saml2Client types.Object `tfsdk:"saml2_client"` } @@ -577,13 +312,6 @@ type clientOAuth2ClientPermissionDataDS struct { Value types.String `tfsdk:"value"` } -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(false) -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(true) - -type clientOAuth2ClientPermissionLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var clientOAuth2ClientPermissionWithClientAttrTypesDS = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(false) var clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(true) @@ -634,35 +362,6 @@ var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml type clientSaml2Client_attributesDataDS struct { } -var deletedVaultHolderVaultVaultRecordAttrTypesDS = objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(false) -var deletedVaultHolderVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(true) - -type deletedVaultHolderVaultVaultRecordDataDS struct { - DeletedVaultHolderUUID types.String `tfsdk:"deleted_vault_holder_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Parent types.Object `tfsdk:"parent" tkhao:"parent"` - PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` - Secret types.Object `tfsdk:"secret" tkhao:"secret"` - ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` - Shares types.List `tfsdk:"shares" tkhao:"shares"` - Tile types.Object `tfsdk:"tile" tkhao:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) @@ -684,10 +383,10 @@ type directoryAccountDirectoryDataDS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectoryLinkableWrapper(false) @@ -933,21 +632,6 @@ type groupGroupAccountLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupAccountNestingAttrTypesDS = objectAttrsTypeDSGroupGroupAccountNesting(false) -var groupGroupAccountNestingAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountNesting(true) - -type groupGroupAccountNestingDataDS struct { - Connected types.Bool `tfsdk:"connected"` -} - -var groupGroupAccountStatusAttrTypesDS = objectAttrsTypeDSGroupGroupAccountStatus(false) -var groupGroupAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccountStatus(true) - -type groupGroupAccountStatusDataDS struct { - Folder types.Object `tfsdk:"folder"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - var groupGroupAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupAccount_additionalObjects(false) var groupGroupAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAccount_additionalObjects(true) @@ -955,13 +639,6 @@ type groupGroupAccount_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupAdminMailAttrTypesDS = objectAttrsTypeDSGroupGroupAdminMail(false) -var groupGroupAdminMailAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAdminMail(true) - -type groupGroupAdminMailDataDS struct { - Body types.String `tfsdk:"body"` -} - var groupGroupAuditAttrTypesDS = objectAttrsTypeDSGroupGroupAudit(false) var groupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupAudit(true) @@ -1072,13 +749,6 @@ type groupGroupClassificationInfoDataDS struct { NrGroups types.Int64 `tfsdk:"nr_groups"` } -var groupGroupClassificationLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(false) -var groupGroupClassificationLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(true) - -type groupGroupClassificationLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var groupGroupClassificationPrimerAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationPrimer(false) var groupGroupClassificationPrimerAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationPrimer(true) @@ -1089,13 +759,6 @@ type groupGroupClassificationPrimerDataDS struct { UUID types.String `tfsdk:"uuid"` } -var groupGroupClassificationUpdateAttrTypesDS = objectAttrsTypeDSGroupGroupClassificationUpdate(false) -var groupGroupClassificationUpdateAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassificationUpdate(true) - -type groupGroupClassificationUpdateDataDS struct { - Classificaton types.Object `tfsdk:"classificaton"` -} - var groupGroupClassification_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupClassification_additionalObjects(false) var groupGroupClassification_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupClassification_additionalObjects(true) @@ -1144,13 +807,6 @@ type groupGroupFolderDataDS struct { Name types.String `tfsdk:"name"` } -var groupGroupFolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(false) -var groupGroupFolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolderLinkableWrapper(true) - -type groupGroupFolderLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var groupGroupFolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroupFolder_additionalObjects(false) var groupGroupFolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupFolder_additionalObjects(true) @@ -1195,14 +851,6 @@ type groupGroupPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var groupGroupSegmentedLinkableWrapperAttrTypesDS = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(false) -var groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(true) - -type groupGroupSegmentedLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` - Segments types.List `tfsdk:"segments"` -} - var groupGroup_additionalObjectsAttrTypesDS = objectAttrsTypeDSGroupGroup_additionalObjects(false) var groupGroup_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroup_additionalObjects(true) @@ -1236,19 +884,6 @@ type groupGroup_additionalObjectsDataDS struct { Webhooks types.List `tfsdk:"webhooks"` } -var groupGroupsAuditStatsAttrTypesDS = objectAttrsTypeDSGroupGroupsAuditStats(false) -var groupGroupsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSGroupGroupsAuditStats(true) - -type groupGroupsAuditStatsDataDS struct { - AuditedGroups types.Int64 `tfsdk:"audited_groups"` - Classifications types.List `tfsdk:"classifications"` - OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` - OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` - UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` - ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` - VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` -} - var groupProvisioningGroupAttrTypesDS = objectAttrsTypeDSGroupProvisioningGroup(false) var groupProvisioningGroupAttrTypesDSRecurse = objectAttrsTypeDSGroupProvisioningGroup(true) @@ -1276,105 +911,6 @@ type groupProvisioningGroup_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var groupVaultVaultRecordAttrTypesDS = objectAttrsTypeDSGroupVaultVaultRecord(false) -var groupVaultVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSGroupVaultVaultRecord(true) - -type groupVaultVaultRecordDataDS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Parent types.Object `tfsdk:"parent" tkhao:"parent"` - PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` - Secret types.Object `tfsdk:"secret" tkhao:"secret"` - ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` - Shares types.List `tfsdk:"shares" tkhao:"shares"` - Tile types.Object `tfsdk:"tile" tkhao:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - -var launchpadDisplayedLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(false) -var launchpadDisplayedLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(true) - -type launchpadDisplayedLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - Logo types.List `tfsdk:"logo"` - Tile types.Object `tfsdk:"tile"` - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` -} - -var launchpadDisplayedLaunchpadTilesAttrTypesDS = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(false) -var launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(true) - -type launchpadDisplayedLaunchpadTilesDataDS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile(false) -var launchpadLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile(true) - -type launchpadLaunchpadTileDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Application types.Object `tfsdk:"application"` - Group types.Object `tfsdk:"group"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecord types.Object `tfsdk:"vault_record"` - VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` - SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` - ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` -} - -var launchpadLaunchpadTileLinkableWrapperAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(false) -var launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(true) - -type launchpadLaunchpadTileLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTilePrimerAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(false) -var launchpadLaunchpadTilePrimerAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(true) - -type launchpadLaunchpadTilePrimerDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` -} - -var launchpadLaunchpadTile_additionalObjectsAttrTypesDS = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(false) -var launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(true) - -type launchpadLaunchpadTile_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var launchpadManualLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadManualLaunchpadTile(false) -var launchpadManualLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadManualLaunchpadTile(true) - -type launchpadManualLaunchpadTileDataDS struct { - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` -} - var launchpadSsoApplicationLaunchpadTileAttrTypesDS = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false) var launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(true) @@ -1388,28 +924,6 @@ var launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse = objectAttrsTypeDSLaunc type launchpadVaultRecordLaunchpadTileDataDS struct { } -var licenseKeyHubLicenseInfoAttrTypesDS = objectAttrsTypeDSLicenseKeyHubLicenseInfo(false) -var licenseKeyHubLicenseInfoAttrTypesDSRecurse = objectAttrsTypeDSLicenseKeyHubLicenseInfo(true) - -type licenseKeyHubLicenseInfoDataDS struct { - CurrentLicenseStatus types.String `tfsdk:"current_license_status"` - CustomerCompany types.String `tfsdk:"customer_company"` - CustomerContact types.String `tfsdk:"customer_contact"` - CustomerDomains types.List `tfsdk:"customer_domains"` - Details types.List `tfsdk:"details"` - ExpirationTime types.String `tfsdk:"expiration_time"` - Features types.List `tfsdk:"features"` - IssueTime types.String `tfsdk:"issue_time"` - KeyHubDomain types.String `tfsdk:"key_hub_domain"` - LicenseKey types.String `tfsdk:"license_key"` - NotBeforeTime types.String `tfsdk:"not_before_time"` - UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` - UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` - UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` - UUID types.String `tfsdk:"uuid"` - Version types.Int64 `tfsdk:"version"` -} - var markItemMarkerAttrTypesDS = objectAttrsTypeDSMarkItemMarker(false) var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) @@ -1432,385 +946,8 @@ type markItemMarkersDataDS struct { Markers types.List `tfsdk:"markers"` } -var nestedAuthInternalAccountAttrTypesDS = objectAttrsTypeDSNestedAuthInternalAccount(false) -var nestedAuthInternalAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedAuthInternalAccount(true) - -type nestedAuthInternalAccountDataDS struct { - AccountDirectoryUUID types.String `tfsdk:"account_directory_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Groups types.List `tfsdk:"groups" tkhao:"groups"` - PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` - Settings types.Object `tfsdk:"settings" tkhao:"settings"` - StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - Directory types.Object `tfsdk:"directory"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` -} - -var nestedClientOAuth2ClientPermissionAttrTypesDS = objectAttrsTypeDSNestedClientOAuth2ClientPermission(false) -var nestedClientOAuth2ClientPermissionAttrTypesDSRecurse = objectAttrsTypeDSNestedClientOAuth2ClientPermission(true) - -type nestedClientOAuth2ClientPermissionDataDS struct { - ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - ForGroup types.Object `tfsdk:"for_group"` - ForSystem types.Object `tfsdk:"for_system"` - Value types.String `tfsdk:"value"` -} - -var nestedGroupAccountGroupAttrTypesDS = objectAttrsTypeDSNestedGroupAccountGroup(false) -var nestedGroupAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupAccountGroup(true) - -type nestedGroupAccountGroupDataDS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Admin types.Bool `tfsdk:"admin"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - EndDate types.String `tfsdk:"end_date"` - Folder types.Object `tfsdk:"folder"` - LastUsed types.String `tfsdk:"last_used"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var nestedGroupGroupAccountAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAccount(false) -var nestedGroupGroupAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAccount(true) - -type nestedGroupGroupAccountDataDS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Directory types.Object `tfsdk:"directory"` - DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` - EndDate types.String `tfsdk:"end_date"` - LastUsed types.String `tfsdk:"last_used"` - Nested types.Bool `tfsdk:"nested"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var nestedGroupGroupAuditAttrTypesDS = objectAttrsTypeDSNestedGroupGroupAudit(false) -var nestedGroupGroupAuditAttrTypesDSRecurse = objectAttrsTypeDSNestedGroupGroupAudit(true) - -type nestedGroupGroupAuditDataDS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Accounts types.List `tfsdk:"accounts"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` -} - -var nestedOrganizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(false) -var nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(true) - -type nestedOrganizationAccountOrganizationalUnitDataDS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` -} - -var nestedOrganizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(false) -var nestedOrganizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(true) - -type nestedOrganizationOrganizationalUnitAccountDataDS struct { - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Directory types.Object `tfsdk:"directory"` -} - -var nestedProvisioningGroupOnSystemAttrTypesDS = objectAttrsTypeDSNestedProvisioningGroupOnSystem(false) -var nestedProvisioningGroupOnSystemAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningGroupOnSystem(true) - -type nestedProvisioningGroupOnSystemDataDS struct { - ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` - ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` - Owner types.Object `tfsdk:"owner"` -} - -var nestedProvisioningProvisionedAccountAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedAccount(false) -var nestedProvisioningProvisionedAccountAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningProvisionedAccount(true) - -type nestedProvisioningProvisionedAccountDataDS struct { - ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - UID types.Int64 `tfsdk:"uid"` -} - -var nestedProvisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(false) -var nestedProvisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(true) - -type nestedProvisioningProvisionedSystemSyncLogDataDS struct { - ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` -} - -var nestedServiceaccountServiceAccountGroupAttrTypesDS = objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(false) -var nestedServiceaccountServiceAccountGroupAttrTypesDSRecurse = objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(true) - -type nestedServiceaccountServiceAccountGroupDataDS struct { - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` -} - -var nestedWebhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSNestedWebhookWebhookDelivery(false) -var nestedWebhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSNestedWebhookWebhookDelivery(true) - -type nestedWebhookWebhookDeliveryDataDS struct { - WebhookUUID types.String `tfsdk:"webhook_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` -} - -var notificationCertificateExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationCertificateExpiredNotification(false) -var notificationCertificateExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationCertificateExpiredNotification(true) - -type notificationCertificateExpiredNotificationDataDS struct { - Certificate types.Object `tfsdk:"certificate"` - Directory types.Object `tfsdk:"directory"` - Expiration types.String `tfsdk:"expiration"` - LDAPClient types.Object `tfsdk:"ldap_client"` - System types.Object `tfsdk:"system"` - Usage types.String `tfsdk:"usage"` - Webhook types.Object `tfsdk:"webhook"` -} - -var notificationGroupAuditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(false) -var notificationGroupAuditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupAuditRequiredNotification(true) - -type notificationGroupAuditRequiredNotificationDataDS struct { - DueDate types.String `tfsdk:"due_date"` - Group types.Object `tfsdk:"group"` - NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` -} - -var notificationGroupEditRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification(false) -var notificationGroupEditRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification(true) - -type notificationGroupEditRequiredNotificationDataDS struct { - Group types.Object `tfsdk:"group"` - Parameters types.Object `tfsdk:"parameters"` - Reason types.String `tfsdk:"reason"` -} - -var notificationGroupEditRequiredNotification_parametersAttrTypesDS = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(false) -var notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse = objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(true) - -type notificationGroupEditRequiredNotification_parametersDataDS struct { -} - -var notificationInvalidSignaturesDetectedNotificationAttrTypesDS = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(false) -var notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(true) - -type notificationInvalidSignaturesDetectedNotificationDataDS struct { -} - -var notificationLicenseStatusNotificationAttrTypesDS = objectAttrsTypeDSNotificationLicenseStatusNotification(false) -var notificationLicenseStatusNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationLicenseStatusNotification(true) - -type notificationLicenseStatusNotificationDataDS struct { - ActiveAccounts types.Int64 `tfsdk:"active_accounts"` - LicenseInfo types.Object `tfsdk:"license_info"` -} - -var notificationModificationRequestNotificationAttrTypesDS = objectAttrsTypeDSNotificationModificationRequestNotification(false) -var notificationModificationRequestNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationModificationRequestNotification(true) - -type notificationModificationRequestNotificationDataDS struct { - Admins types.List `tfsdk:"admins"` - Groups types.List `tfsdk:"groups"` - Request types.Object `tfsdk:"request"` -} - -var notificationNotificationAttrTypesDS = objectAttrsTypeDSNotificationNotification(false) -var notificationNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotification(true) - -type notificationNotificationDataDS struct { -} - -var notificationNotificationsAttrTypesDS = objectAttrsTypeDSNotificationNotifications(false) -var notificationNotificationsAttrTypesDSRecurse = objectAttrsTypeDSNotificationNotifications(true) - -type notificationNotificationsDataDS struct { - Items types.List `tfsdk:"items"` -} - -var notificationOldApiVersionUsageNotificationAttrTypesDS = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(false) -var notificationOldApiVersionUsageNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationOldApiVersionUsageNotification(true) - -type notificationOldApiVersionUsageNotificationDataDS struct { - ApiVersion types.Int64 `tfsdk:"api_version"` - Client types.Object `tfsdk:"client"` -} - -var notificationProvisionConfigRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(false) -var notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(true) - -type notificationProvisionConfigRequiredNotificationDataDS struct { - Systems types.List `tfsdk:"systems"` -} - -var notificationRotatingPasswordRequiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(false) -var notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(true) - -type notificationRotatingPasswordRequiredNotificationDataDS struct { - Groups types.List `tfsdk:"groups"` -} - -var notificationUpdateAvailableNotificationAttrTypesDS = objectAttrsTypeDSNotificationUpdateAvailableNotification(false) -var notificationUpdateAvailableNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationUpdateAvailableNotification(true) - -type notificationUpdateAvailableNotificationDataDS struct { - ReleasedAt types.String `tfsdk:"released_at"` -} - -var notificationVaultRecordExpiredNotificationAttrTypesDS = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(false) -var notificationVaultRecordExpiredNotificationAttrTypesDSRecurse = objectAttrsTypeDSNotificationVaultRecordExpiredNotification(true) - -type notificationVaultRecordExpiredNotificationDataDS struct { - Record types.Object `tfsdk:"record"` -} - -var organizationAccountOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(false) -var organizationAccountOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit(true) - -type organizationAccountOrganizationalUnitDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` -} - -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(false) -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(true) - -type organizationAccountOrganizationalUnitLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(false) -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(true) - -type organizationAccountOrganizationalUnit_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - -var organizationOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit(false) -var organizationOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit(true) +var organizationOrganizationalUnitAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit(true) type organizationOrganizationalUnitDataDS struct { Links types.List `tfsdk:"links"` @@ -1825,36 +962,6 @@ type organizationOrganizationalUnitDataDS struct { Parent types.Object `tfsdk:"parent"` } -var organizationOrganizationalUnitAccountAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(false) -var organizationOrganizationalUnitAccountAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount(true) - -type organizationOrganizationalUnitAccountDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Directory types.Object `tfsdk:"directory"` -} - -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(false) -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(true) - -type organizationOrganizationalUnitAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(false) -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(true) - -type organizationOrganizationalUnitAccount_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - var organizationOrganizationalUnitLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(false) var organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(true) @@ -1872,13 +979,6 @@ type organizationOrganizationalUnitPrimerDataDS struct { UUID types.String `tfsdk:"uuid"` } -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(false) -var organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(true) - -type organizationOrganizationalUnitPrimerLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var organizationOrganizationalUnit_additionalObjectsAttrTypesDS = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(false) var organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(true) @@ -1914,22 +1014,6 @@ var provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse = objectAtt type provisioningAbstractProvisionedLDAP_attributesDataDS struct { } -var provisioningAccountProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatus(false) -var provisioningAccountProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatus(true) - -type provisioningAccountProvisioningStatusDataDS struct { - Description types.String `tfsdk:"description"` - Result types.String `tfsdk:"result"` - System types.Object `tfsdk:"system"` -} - -var provisioningAccountProvisioningStatusReportAttrTypesDS = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(false) -var provisioningAccountProvisioningStatusReportAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(true) - -type provisioningAccountProvisioningStatusReportDataDS struct { - Status types.List `tfsdk:"status"` -} - var provisioningCircuitBreakerStatisticsAttrTypesDS = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false) var provisioningCircuitBreakerStatisticsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(true) @@ -1992,27 +1076,6 @@ type provisioningGroupOnSystem_additionalObjectsDataDS struct { ServiceAccounts types.List `tfsdk:"service_accounts"` } -var provisioningGroupProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus(false) -var provisioningGroupProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus(true) - -type provisioningGroupProvisioningStatusDataDS struct { - Folder types.Object `tfsdk:"folder"` - Group types.Object `tfsdk:"group"` - ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` - StatusReport types.Object `tfsdk:"status_report"` - VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` -} - -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(false) -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse = objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(true) - -type provisioningGroupProvisioningStatus_provisioningDurationDataDS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - var provisioningOwnedGroupOnSystemsWrapperAttrTypesDS = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(false) var provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(true) @@ -2035,13 +1098,6 @@ type provisioningProvisionNumberSequenceDataDS struct { NextUID types.Int64 `tfsdk:"next_uid"` } -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(false) -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(true) - -type provisioningProvisionNumberSequenceLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(false) var provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(true) @@ -2073,13 +1129,6 @@ type provisioningProvisionedAccountDataDS struct { UID types.Int64 `tfsdk:"uid"` } -var provisioningProvisionedAccountLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(false) -var provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(true) - -type provisioningProvisionedAccountLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var provisioningProvisionedAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(false) var provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(true) @@ -2169,13 +1218,13 @@ type provisioningProvisionedSystemDataDS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministrator types.Object `tfsdk:"technical_administrator"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } @@ -2206,34 +1255,6 @@ type provisioningProvisionedSystemPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionedSystemSyncLogAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(false) -var provisioningProvisionedSystemSyncLogAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(true) - -type provisioningProvisionedSystemSyncLogDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` -} - -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) - -type provisioningProvisionedSystemSyncLogLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(false) -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(true) - -type provisioningProvisionedSystemSyncLog_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - var provisioningProvisionedSystem_additionalObjectsAttrTypesDS = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(false) var provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(true) @@ -2257,392 +1278,6 @@ type provisioningProvisioningManagementPermissionsDataDS struct { ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` } -var provisioningProvisioningStatusAttrTypesDS = objectAttrsTypeDSProvisioningProvisioningStatus(false) -var provisioningProvisioningStatusAttrTypesDSRecurse = objectAttrsTypeDSProvisioningProvisioningStatus(true) - -type provisioningProvisioningStatusDataDS struct { - Groups types.List `tfsdk:"groups"` - IgnoreErrors types.Bool `tfsdk:"ignore_errors"` - RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` -} - -var provisioningTokenPasswordAttrTypesDS = objectAttrsTypeDSProvisioningTokenPassword(false) -var provisioningTokenPasswordAttrTypesDSRecurse = objectAttrsTypeDSProvisioningTokenPassword(true) - -type provisioningTokenPasswordDataDS struct { - Password types.String `tfsdk:"password"` -} - -var requestAbstractApplicationModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false) -var requestAbstractApplicationModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractApplicationModificationRequest(true) - -type requestAbstractApplicationModificationRequestDataDS struct { - Application types.Object `tfsdk:"application"` -} - -var requestAbstractOrganizationalUnitModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false) -var requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(true) - -type requestAbstractOrganizationalUnitModificationRequestDataDS struct { - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` -} - -var requestAbstractProvisionedSystemModificationRequestAttrTypesDS = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false) -var requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(true) - -type requestAbstractProvisionedSystemModificationRequestDataDS struct { - System types.Object `tfsdk:"system"` -} - -var requestAcceptGrantAccessRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(false) -var requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(true) - -type requestAcceptGrantAccessRequestParametersDataDS struct { - AccessDuration types.Object `tfsdk:"access_duration"` -} - -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(false) -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(true) - -type requestAcceptGrantAccessRequestParameters_accessDurationDataDS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var requestAcceptJoinGroupRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(false) -var requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(true) - -type requestAcceptJoinGroupRequestParametersDataDS struct { - EndDate types.String `tfsdk:"end_date"` - MakeManager types.Bool `tfsdk:"make_manager"` -} - -var requestAcceptModificationRequestParametersAttrTypesDS = objectAttrsTypeDSRequestAcceptModificationRequestParameters(false) -var requestAcceptModificationRequestParametersAttrTypesDSRecurse = objectAttrsTypeDSRequestAcceptModificationRequestParameters(true) - -type requestAcceptModificationRequestParametersDataDS struct { -} - -var requestAddGroupAdminRequestAttrTypesDS = objectAttrsTypeDSRequestAddGroupAdminRequest(false) -var requestAddGroupAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestAddGroupAdminRequest(true) - -type requestAddGroupAdminRequestDataDS struct { - NewAdmin types.Object `tfsdk:"new_admin"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var requestCreateGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false) -var requestCreateGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupOnSystemRequest(true) - -type requestCreateGroupOnSystemRequestDataDS struct { - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` -} - -var requestCreateGroupRequestAttrTypesDS = objectAttrsTypeDSRequestCreateGroupRequest(false) -var requestCreateGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateGroupRequest(true) - -type requestCreateGroupRequestDataDS struct { - GroupName types.String `tfsdk:"group_name"` -} - -var requestCreateServiceAccountRequestAttrTypesDS = objectAttrsTypeDSRequestCreateServiceAccountRequest(false) -var requestCreateServiceAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestCreateServiceAccountRequest(true) - -type requestCreateServiceAccountRequestDataDS struct { - Username types.String `tfsdk:"username"` -} - -var requestDisable2FARequestAttrTypesDS = objectAttrsTypeDSRequestDisable2FARequest(false) -var requestDisable2FARequestAttrTypesDSRecurse = objectAttrsTypeDSRequestDisable2FARequest(true) - -type requestDisable2FARequestDataDS struct { - Subject types.String `tfsdk:"subject"` -} - -var requestEnableTechnicalAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false) -var requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(true) - -type requestEnableTechnicalAdministrationRequestDataDS struct { -} - -var requestExtendAccessRequestAttrTypesDS = objectAttrsTypeDSRequestExtendAccessRequest(false) -var requestExtendAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestExtendAccessRequest(true) - -type requestExtendAccessRequestDataDS struct { - ExtendUntil types.String `tfsdk:"extend_until"` -} - -var requestGrantAccessRequestAttrTypesDS = objectAttrsTypeDSRequestGrantAccessRequest(false) -var requestGrantAccessRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantAccessRequest(true) - -type requestGrantAccessRequestDataDS struct { -} - -var requestGrantApplicationRequestAttrTypesDS = objectAttrsTypeDSRequestGrantApplicationRequest(false) -var requestGrantApplicationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantApplicationRequest(true) - -type requestGrantApplicationRequestDataDS struct { -} - -var requestGrantClientPermissionRequestAttrTypesDS = objectAttrsTypeDSRequestGrantClientPermissionRequest(false) -var requestGrantClientPermissionRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantClientPermissionRequest(true) - -type requestGrantClientPermissionRequestDataDS struct { - PermissionType types.String `tfsdk:"permission_type"` - System types.Object `tfsdk:"system"` -} - -var requestGrantGroupOnSystemRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false) -var requestGrantGroupOnSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequest(true) - -type requestGrantGroupOnSystemRequestDataDS struct { - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantGroupOnSystemRequestRequestAttrTypesDS = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false) -var requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(true) - -type requestGrantGroupOnSystemRequestRequestDataDS struct { - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantServiceAccountGroupRequestAttrTypesDS = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false) -var requestGrantServiceAccountGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(true) - -type requestGrantServiceAccountGroupRequestDataDS struct { - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccount types.Object `tfsdk:"service_account"` -} - -var requestJoinGroupRequestAttrTypesDS = objectAttrsTypeDSRequestJoinGroupRequest(false) -var requestJoinGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinGroupRequest(true) - -type requestJoinGroupRequestDataDS struct { -} - -var requestJoinVaultRequestAttrTypesDS = objectAttrsTypeDSRequestJoinVaultRequest(false) -var requestJoinVaultRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestJoinVaultRequest(true) - -type requestJoinVaultRequestDataDS struct { -} - -var requestModificationRequestAttrTypesDS = objectAttrsTypeDSRequestModificationRequest(false) -var requestModificationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest(true) - -type requestModificationRequestDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Account types.Object `tfsdk:"account"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - ResetStatus types.Object `tfsdk:"reset_status" tkhao:"resetStatus"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - Group types.Object `tfsdk:"group"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` -} - -var requestModificationRequestLinkableWrapperAttrTypesDS = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(false) -var requestModificationRequestLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequestLinkableWrapper(true) - -type requestModificationRequestLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var requestModificationRequest_additionalObjectsAttrTypesDS = objectAttrsTypeDSRequestModificationRequest_additionalObjects(false) -var requestModificationRequest_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSRequestModificationRequest_additionalObjects(true) - -type requestModificationRequest_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - ResetStatus types.Object `tfsdk:"reset_status"` -} - -var requestPasswordResetRequestAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequest(false) -var requestPasswordResetRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequest(true) - -type requestPasswordResetRequestDataDS struct { -} - -var requestPasswordResetRequestStatusAttrTypesDS = objectAttrsTypeDSRequestPasswordResetRequestStatus(false) -var requestPasswordResetRequestStatusAttrTypesDSRecurse = objectAttrsTypeDSRequestPasswordResetRequestStatus(true) - -type requestPasswordResetRequestStatusDataDS struct { - CooldownEnd types.String `tfsdk:"cooldown_end"` - Managers types.List `tfsdk:"managers"` - NrAccepted types.Int64 `tfsdk:"nr_accepted"` - ResetViaMail types.String `tfsdk:"reset_via_mail"` -} - -var requestRemoveGroupRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveGroupRequest(false) -var requestRemoveGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveGroupRequest(true) - -type requestRemoveGroupRequestDataDS struct { - GroupName types.String `tfsdk:"group_name"` -} - -var requestRemoveOrganizationalUnitRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false) -var requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(true) - -type requestRemoveOrganizationalUnitRequestDataDS struct { - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` -} - -var requestRemoveProvisionedSystemRequestAttrTypesDS = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false) -var requestRemoveProvisionedSystemRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(true) - -type requestRemoveProvisionedSystemRequestDataDS struct { - SystemName types.String `tfsdk:"system_name"` -} - -var requestReviewAuditRequestAttrTypesDS = objectAttrsTypeDSRequestReviewAuditRequest(false) -var requestReviewAuditRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestReviewAuditRequest(true) - -type requestReviewAuditRequestDataDS struct { -} - -var requestRevokeAdminRequestAttrTypesDS = objectAttrsTypeDSRequestRevokeAdminRequest(false) -var requestRevokeAdminRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestRevokeAdminRequest(true) - -type requestRevokeAdminRequestDataDS struct { - Admin types.Object `tfsdk:"admin"` -} - -var requestSetupAuthorizingGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false) -var requestSetupAuthorizingGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(true) - -type requestSetupAuthorizingGroupRequestDataDS struct { - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` -} - -var requestSetupNestedGroupRequestAttrTypesDS = objectAttrsTypeDSRequestSetupNestedGroupRequest(false) -var requestSetupNestedGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestSetupNestedGroupRequest(true) - -type requestSetupNestedGroupRequestDataDS struct { - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroup types.Object `tfsdk:"requesting_group"` -} - -var requestTransferApplicationAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false) -var requestTransferApplicationAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(true) - -type requestTransferApplicationAdministrationRequestDataDS struct { -} - -var requestTransferApplicationOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false) -var requestTransferApplicationOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(true) - -type requestTransferApplicationOwnershipRequestDataDS struct { -} - -var requestTransferAuditorGroupRequestAttrTypesDS = objectAttrsTypeDSRequestTransferAuditorGroupRequest(false) -var requestTransferAuditorGroupRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferAuditorGroupRequest(true) - -type requestTransferAuditorGroupRequestDataDS struct { -} - -var requestTransferGroupOnSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false) -var requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(true) - -type requestTransferGroupOnSystemOwnershipRequestDataDS struct { - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false) -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(true) - -type requestTransferOrganizationalUnitOwnershipRequestDataDS struct { -} - -var requestTransferProvisionedSystemAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false) -var requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(true) - -type requestTransferProvisionedSystemAdministrationRequestDataDS struct { -} - -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false) -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(true) - -type requestTransferProvisionedSystemContentAdministrationRequestDataDS struct { -} - -var requestTransferProvisionedSystemOwnershipRequestAttrTypesDS = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false) -var requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(true) - -type requestTransferProvisionedSystemOwnershipRequestDataDS struct { -} - -var requestTransferServiceAccountAdministrationRequestAttrTypesDS = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false) -var requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(true) - -type requestTransferServiceAccountAdministrationRequestDataDS struct { - ServiceAccount types.Object `tfsdk:"service_account"` -} - -var requestUpdateGroupMembershipRequestAttrTypesDS = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false) -var requestUpdateGroupMembershipRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestUpdateGroupMembershipRequest(true) - -type requestUpdateGroupMembershipRequestDataDS struct { - AccountToUpdate types.Object `tfsdk:"account_to_update"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` -} - -var requestVerifyInternalAccountRequestAttrTypesDS = objectAttrsTypeDSRequestVerifyInternalAccountRequest(false) -var requestVerifyInternalAccountRequestAttrTypesDSRecurse = objectAttrsTypeDSRequestVerifyInternalAccountRequest(true) - -type requestVerifyInternalAccountRequestDataDS struct { - InternalAccountName types.String `tfsdk:"internal_account_name"` -} - var serviceaccountServiceAccountAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount(false) var serviceaccountServiceAccountAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount(true) @@ -2719,13 +1354,6 @@ type serviceaccountServiceAccountPrimerLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var serviceaccountServiceAccountStatusAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountStatus(false) -var serviceaccountServiceAccountStatusAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountStatus(true) - -type serviceaccountServiceAccountStatusDataDS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` -} - var serviceaccountServiceAccount_additionalObjectsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(false) var serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(true) @@ -2735,98 +1363,6 @@ type serviceaccountServiceAccount_additionalObjectsDataDS struct { Secret types.Object `tfsdk:"secret"` } -var serviceaccountServiceAccountsAuditStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(false) -var serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(true) - -type serviceaccountServiceAccountsAuditStatsDataDS struct { - DisabledCount types.Int64 `tfsdk:"disabled_count"` - PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` - SystemStats types.Object `tfsdk:"system_stats"` -} - -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) - -type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS struct { -} - -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(false) -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse = objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(true) - -type serviceaccountServiceAccountsAuditStats_systemStatsDataDS struct { -} - -var simpleStringValueAttrTypesDS = objectAttrsTypeDSSimpleStringValue(false) -var simpleStringValueAttrTypesDSRecurse = objectAttrsTypeDSSimpleStringValue(true) - -type simpleStringValueDataDS struct { - Value types.String `tfsdk:"value"` -} - -var simpleVersionInfoAttrTypesDS = objectAttrsTypeDSSimpleVersionInfo(false) -var simpleVersionInfoAttrTypesDSRecurse = objectAttrsTypeDSSimpleVersionInfo(true) - -type simpleVersionInfoDataDS struct { - ContractVersions types.List `tfsdk:"contract_versions"` - KeyHubVersion types.String `tfsdk:"key_hub_version"` -} - -var vaultDeletedVaultHolderAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder(false) -var vaultDeletedVaultHolderAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder(true) - -type vaultDeletedVaultHolderDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - Name types.String `tfsdk:"name"` - RecordCount types.Int64 `tfsdk:"record_count"` - VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` -} - -var vaultDeletedVaultHolderLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(false) -var vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(true) - -type vaultDeletedVaultHolderLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var vaultDeletedVaultHolder_additionalObjectsAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(false) -var vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(true) - -type vaultDeletedVaultHolder_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - -var vaultDeletedVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultDeletedVaultRecovery(false) -var vaultDeletedVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultDeletedVaultRecovery(true) - -type vaultDeletedVaultRecoveryDataDS struct { - Prefix types.String `tfsdk:"prefix"` - PrivateKey types.String `tfsdk:"private_key"` - TargetGroup types.Object `tfsdk:"target_group"` -} - -var vaultMoveVaultRecordAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord(false) -var vaultMoveVaultRecordAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord(true) - -type vaultMoveVaultRecordDataDS struct { - Account types.Object `tfsdk:"account"` - Action types.String `tfsdk:"action"` - Group types.Object `tfsdk:"group"` - ShareDuration types.Object `tfsdk:"share_duration"` -} - -var vaultMoveVaultRecord_shareDurationAttrTypesDS = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(false) -var vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse = objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(true) - -type vaultMoveVaultRecord_shareDurationDataDS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - var vaultPasswordMetadataAttrTypesDS = objectAttrsTypeDSVaultPasswordMetadata(false) var vaultPasswordMetadataAttrTypesDSRecurse = objectAttrsTypeDSVaultPasswordMetadata(true) @@ -2887,13 +1423,6 @@ type vaultVaultRecordDataDS struct { WarningPeriod types.String `tfsdk:"warning_period"` } -var vaultVaultRecordLinkableWrapperAttrTypesDS = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(false) -var vaultVaultRecordLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordLinkableWrapper(true) - -type vaultVaultRecordLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - var vaultVaultRecordPrimerAttrTypesDS = objectAttrsTypeDSVaultVaultRecordPrimer(false) var vaultVaultRecordPrimerAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecordPrimer(true) @@ -2953,29 +1482,6 @@ type vaultVaultRecord_additionalObjectsDataDS struct { Vaultholder types.Object `tfsdk:"vaultholder"` } -var vaultVaultRecoveryAttrTypesDS = objectAttrsTypeDSVaultVaultRecovery(false) -var vaultVaultRecoveryAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultRecovery(true) - -type vaultVaultRecoveryDataDS struct { - Account types.Object `tfsdk:"account"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var vaultVaultUnlockAttrTypesDS = objectAttrsTypeDSVaultVaultUnlock(false) -var vaultVaultUnlockAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlock(true) - -type vaultVaultUnlockDataDS struct { - Password types.String `tfsdk:"password"` -} - -var vaultVaultUnlockResponseAttrTypesDS = objectAttrsTypeDSVaultVaultUnlockResponse(false) -var vaultVaultUnlockResponseAttrTypesDSRecurse = objectAttrsTypeDSVaultVaultUnlockResponse(true) - -type vaultVaultUnlockResponseDataDS struct { - ExpiresAt types.String `tfsdk:"expires_at"` - SessionPassword types.String `tfsdk:"session_password"` -} - var webhookWebhookAttrTypesDS = objectAttrsTypeDSWebhookWebhook(false) var webhookWebhookAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook(true) @@ -3007,37 +1513,6 @@ type webhookWebhookDataDS struct { VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` } -var webhookWebhookDeliveryAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery(false) -var webhookWebhookDeliveryAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery(true) - -type webhookWebhookDeliveryDataDS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Additional types.List `tfsdk:"additional"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` -} - -var webhookWebhookDeliveryLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(false) -var webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(true) - -type webhookWebhookDeliveryLinkableWrapperDataDS struct { - Items types.List `tfsdk:"items"` -} - -var webhookWebhookDelivery_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(false) -var webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(true) - -type webhookWebhookDelivery_additionalObjectsDataDS struct { - Audit types.Object `tfsdk:"audit"` -} - var webhookWebhookLinkableWrapperAttrTypesDS = objectAttrsTypeDSWebhookWebhookLinkableWrapper(false) var webhookWebhookLinkableWrapperAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookLinkableWrapper(true) @@ -3045,42 +1520,6 @@ type webhookWebhookLinkableWrapperDataDS struct { Items types.List `tfsdk:"items"` } -var webhookWebhookNameUuidAttrTypesDS = objectAttrsTypeDSWebhookWebhookNameUuid(false) -var webhookWebhookNameUuidAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookNameUuid(true) - -type webhookWebhookNameUuidDataDS struct { - Name types.String `tfsdk:"name"` - Object types.Object `tfsdk:"object"` - UUID types.String `tfsdk:"uuid"` -} - -var webhookWebhookPushAttrTypesDS = objectAttrsTypeDSWebhookWebhookPush(false) -var webhookWebhookPushAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhookPush(true) - -type webhookWebhookPushDataDS struct { - Account types.Object `tfsdk:"account"` - ByParty types.Object `tfsdk:"by_party"` - Certificate types.Object `tfsdk:"certificate"` - Client types.Object `tfsdk:"client"` - Directory types.Object `tfsdk:"directory"` - Group types.Object `tfsdk:"group"` - Group2 types.Object `tfsdk:"group2"` - GroupClassification types.Object `tfsdk:"group_classification"` - ModificationRequest types.Object `tfsdk:"modification_request"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - SecurityLevel types.String `tfsdk:"security_level"` - Seq types.Int64 `tfsdk:"seq"` - ServiceAccount types.Object `tfsdk:"service_account"` - System types.Object `tfsdk:"system"` - Timestamp types.String `tfsdk:"timestamp"` - VaultRecord types.Object `tfsdk:"vault_record"` - Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"type"` -} - var webhookWebhook_additionalObjectsAttrTypesDS = objectAttrsTypeDSWebhookWebhook_additionalObjects(false) var webhookWebhook_additionalObjectsAttrTypesDSRecurse = objectAttrsTypeDSWebhookWebhook_additionalObjects(true) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index d4d7505..eb647a6 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -17,26 +17,6 @@ type auditInfoDataRS struct { LastModifiedBy types.String `tfsdk:"last_modified_by"` } -var errorReportAttrTypesRS = objectAttrsTypeRSErrorReport(false) -var errorReportAttrTypesRSRecurse = objectAttrsTypeRSErrorReport(true) - -type errorReportDataRS struct { - ApplicationError types.String `tfsdk:"application_error"` - ApplicationErrorParameters types.Object `tfsdk:"application_error_parameters"` - Code types.Int64 `tfsdk:"code"` - ErrorDetails types.List `tfsdk:"error_details"` - Exception types.String `tfsdk:"exception"` - Message types.String `tfsdk:"message"` - Reason types.String `tfsdk:"reason"` - Stacktrace types.List `tfsdk:"stacktrace"` -} - -var errorReport_applicationErrorParametersAttrTypesRS = objectAttrsTypeRSErrorReport_applicationErrorParameters(false) -var errorReport_applicationErrorParametersAttrTypesRSRecurse = objectAttrsTypeRSErrorReport_applicationErrorParameters(true) - -type errorReport_applicationErrorParametersDataRS struct { -} - var generatedSecretAttrTypesRS = objectAttrsTypeRSGeneratedSecret(false) var generatedSecretAttrTypesRSRecurse = objectAttrsTypeRSGeneratedSecret(true) @@ -70,146 +50,6 @@ type restLinkDataRS struct { TypeEscaped types.String `tfsdk:"type_escaped"` } -var segmentCountAttrTypesRS = objectAttrsTypeRSSegmentCount(false) -var segmentCountAttrTypesRSRecurse = objectAttrsTypeRSSegmentCount(true) - -type segmentCountDataRS struct { - Count types.Int64 `tfsdk:"count"` - Name types.String `tfsdk:"name"` -} - -var accountVaultVaultRecordAttrTypesRS = objectAttrsTypeRSAccountVaultVaultRecord(false) -var accountVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSAccountVaultVaultRecord(true) - -type accountVaultVaultRecordDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` - ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` - PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` - Secret types.Object `tfsdk:"secret" tkhao:"secret"` - ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` - Shares types.List `tfsdk:"shares" tkhao:"shares"` - Tile types.Object `tfsdk:"tile" tkhao:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - -var auditAuditRecordAttrTypesRS = objectAttrsTypeRSAuditAuditRecord(false) -var auditAuditRecordAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord(true) - -type auditAuditRecordDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - AuditAuditRecordType types.String `tfsdk:"type"` - DateTime types.String `tfsdk:"date_time"` - OnAccount types.String `tfsdk:"on_account"` - OnCertificate types.String `tfsdk:"on_certificate"` - OnClient types.String `tfsdk:"on_client"` - OnDirectory types.String `tfsdk:"on_directory"` - OnGroup types.String `tfsdk:"on_group"` - OnGroup2 types.String `tfsdk:"on_group2"` - OnGroupClassification types.String `tfsdk:"on_group_classification"` - OnOrganizationalUnit types.String `tfsdk:"on_organizational_unit"` - OnServiceAccount types.String `tfsdk:"on_service_account"` - OnSystem types.String `tfsdk:"on_system"` - OnVaultRecord types.String `tfsdk:"on_vault_record"` - OnWebhook types.String `tfsdk:"on_webhook"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - PerformedBy types.String `tfsdk:"performed_by"` - SecurityLevel types.String `tfsdk:"security_level"` -} - -var auditAuditRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(false) -var auditAuditRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecordLinkableWrapper(true) - -type auditAuditRecordLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var auditAuditRecord_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuditAuditRecord_additionalObjects(false) -var auditAuditRecord_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuditAuditRecord_additionalObjects(true) - -type auditAuditRecord_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var authAccountAttrTypesRS = objectAttrsTypeRSAuthAccount(false) -var authAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount(true) - -type authAccountDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - LastActive types.String `tfsdk:"last_active"` - Username types.String `tfsdk:"username"` - UUID types.String `tfsdk:"uuid"` - Validity types.String `tfsdk:"validity"` - AccountPermissions types.List `tfsdk:"account_permissions"` - Active types.Bool `tfsdk:"active"` - ActiveLogin types.Bool `tfsdk:"active_login" tkhao:"activeLogin"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Groups types.List `tfsdk:"groups" tkhao:"groups"` - PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests" tkhao:"pendingRecoveryRequests"` - Settings types.Object `tfsdk:"settings" tkhao:"settings"` - StoredAttributes types.Object `tfsdk:"stored_attributes" tkhao:"storedAttributes"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryPasswordChangeRequired types.Bool `tfsdk:"directory_password_change_required"` - DirectoryRotatingPassword types.String `tfsdk:"directory_rotating_password"` - DirectoryType types.String `tfsdk:"directory_type"` - Email types.String `tfsdk:"email"` - IDInDirectory types.String `tfsdk:"id_in_directory"` - KeyHubPasswordChangeRequired types.Bool `tfsdk:"key_hub_password_change_required"` - LastModifiedAt types.String `tfsdk:"last_modified_at"` - LicenseRole types.String `tfsdk:"license_role"` - Locale types.String `tfsdk:"locale"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TokenPasswordEnabled types.Bool `tfsdk:"token_password_enabled"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - ValidInDirectory types.Bool `tfsdk:"valid_in_directory"` -} - -var authAccountBulkUpdateAttrTypesRS = objectAttrsTypeRSAuthAccountBulkUpdate(false) -var authAccountBulkUpdateAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountBulkUpdate(true) - -type authAccountBulkUpdateDataRS struct { - Action types.String `tfsdk:"action"` - ExclusiveSelection types.Bool `tfsdk:"exclusive_selection"` - SelectedAccounts types.List `tfsdk:"selected_accounts"` -} - -var authAccountChangeLocaleAttrTypesRS = objectAttrsTypeRSAuthAccountChangeLocale(false) -var authAccountChangeLocaleAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountChangeLocale(true) - -type authAccountChangeLocaleDataRS struct { - Locale types.String `tfsdk:"locale"` -} - -var authAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthAccountLinkableWrapper(false) -var authAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountLinkableWrapper(true) - -type authAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var authAccountPrimerAttrTypesRS = objectAttrsTypeRSAuthAccountPrimer(false) var authAccountPrimerAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountPrimer(true) @@ -223,119 +63,6 @@ type authAccountPrimerDataRS struct { Validity types.String `tfsdk:"validity"` } -var authAccountRecoveryStatusAttrTypesRS = objectAttrsTypeRSAuthAccountRecoveryStatus(false) -var authAccountRecoveryStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountRecoveryStatus(true) - -type authAccountRecoveryStatusDataRS struct { - Pending2FARecoveryRequest types.Bool `tfsdk:"pending2fa_recovery_request"` - PendingPasswordRecoveryRequest types.Bool `tfsdk:"pending_password_recovery_request"` -} - -var authAccountSettingsAttrTypesRS = objectAttrsTypeRSAuthAccountSettings(false) -var authAccountSettingsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountSettings(true) - -type authAccountSettingsDataRS struct { - DefaultOrganizationalUnitUUID types.String `tfsdk:"default_organizational_unit_uuid"` - DirectoryName types.String `tfsdk:"directory_name"` - DirectoryType types.String `tfsdk:"directory_type"` - InGroups types.Bool `tfsdk:"in_groups"` - InMultipleOrganizationalUnits types.Bool `tfsdk:"in_multiple_organizational_units"` - KeyHubAdmin types.Bool `tfsdk:"key_hub_admin"` - MultipleOrganizationalUnitsExist types.Bool `tfsdk:"multiple_organizational_units_exist"` - PasswordMode types.String `tfsdk:"password_mode"` - SshPublicKey types.String `tfsdk:"ssh_public_key"` - TwoFactorAuthentication types.String `tfsdk:"two_factor_authentication"` - UseTokenPassword types.Bool `tfsdk:"use_token_password"` - VaultStatus types.String `tfsdk:"vault_status"` -} - -var authAccountStatusAttrTypesRS = objectAttrsTypeRSAuthAccountStatus(false) -var authAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountStatus(true) - -type authAccountStatusDataRS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` - CanRequestGroups types.Bool `tfsdk:"can_request_groups"` - DeclineRecoveryRequests types.Bool `tfsdk:"decline_recovery_requests"` - LicenseRole types.String `tfsdk:"license_role"` - ReregistrationRequired types.Bool `tfsdk:"reregistration_required"` - TwoFactorAuthenticationEnabled types.Bool `tfsdk:"two_factor_authentication_enabled"` -} - -var authAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSAuthAccount_additionalObjects(false) -var authAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccount_additionalObjects(true) - -type authAccount_additionalObjectsDataRS struct { - ActiveLogin types.Bool `tfsdk:"active_login"` - Audit types.Object `tfsdk:"audit"` - Groups types.List `tfsdk:"groups"` - PendingRecoveryRequests types.Object `tfsdk:"pending_recovery_requests"` - Settings types.Object `tfsdk:"settings"` - StoredAttributes types.Object `tfsdk:"stored_attributes"` - Vault types.Object `tfsdk:"vault"` -} - -var authAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats(false) -var authAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats(true) - -type authAccountsAuditStatsDataRS struct { - DirectoryStats types.Object `tfsdk:"directory_stats"` - TwoFAStats types.Object `tfsdk:"two_fa_stats"` - ValidityStats types.Object `tfsdk:"validity_stats"` -} - -var authAccountsAuditStats_directoryStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(false) -var authAccountsAuditStats_directoryStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(true) - -type authAccountsAuditStats_directoryStatsDataRS struct { -} - -var authAccountsAuditStats_twoFAStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(false) -var authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(true) - -type authAccountsAuditStats_twoFAStatsDataRS struct { -} - -var authAccountsAuditStats_validityStatsAttrTypesRS = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(false) -var authAccountsAuditStats_validityStatsAttrTypesRSRecurse = objectAttrsTypeRSAuthAccountsAuditStats_validityStats(true) - -type authAccountsAuditStats_validityStatsDataRS struct { -} - -var authInternalAccountAttrTypesRS = objectAttrsTypeRSAuthInternalAccount(false) -var authInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccount(true) - -type authInternalAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` -} - -var authInternalAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(false) -var authInternalAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountLinkableWrapper(true) - -type authInternalAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var authInternalAccountStatusObjectAttrTypesRS = objectAttrsTypeRSAuthInternalAccountStatusObject(false) -var authInternalAccountStatusObjectAttrTypesRSRecurse = objectAttrsTypeRSAuthInternalAccountStatusObject(true) - -type authInternalAccountStatusObjectDataRS struct { - Status types.String `tfsdk:"status"` -} - -var authMoveInternalAccountAttrTypesRS = objectAttrsTypeRSAuthMoveInternalAccount(false) -var authMoveInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSAuthMoveInternalAccount(true) - -type authMoveInternalAccountDataRS struct { - InternalDirectory types.Object `tfsdk:"internal_directory"` -} - var authPermissionAttrTypesRS = objectAttrsTypeRSAuthPermission(false) var authPermissionAttrTypesRSRecurse = objectAttrsTypeRSAuthPermission(true) @@ -346,47 +73,6 @@ type authPermissionDataRS struct { TypeEscaped types.String `tfsdk:"type_escaped"` } -var authStoredAccountAttributeAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttribute(false) -var authStoredAccountAttributeAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttribute(true) - -type authStoredAccountAttributeDataRS struct { - Name types.String `tfsdk:"name"` - Value types.String `tfsdk:"value"` -} - -var authStoredAccountAttributesAttrTypesRS = objectAttrsTypeRSAuthStoredAccountAttributes(false) -var authStoredAccountAttributesAttrTypesRSRecurse = objectAttrsTypeRSAuthStoredAccountAttributes(true) - -type authStoredAccountAttributesDataRS struct { - Attributes types.List `tfsdk:"attributes"` -} - -var certificateCertificateAttrTypesRS = objectAttrsTypeRSCertificateCertificate(false) -var certificateCertificateAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate(true) - -type certificateCertificateDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Alias types.String `tfsdk:"alias"` - CertificateCertificatePrimerType types.String `tfsdk:"type"` - CertificateData types.List `tfsdk:"certificate_data"` - Expiration types.String `tfsdk:"expiration"` - FingerprintSha1 types.String `tfsdk:"fingerprint_sha1"` - FingerprintSha256 types.String `tfsdk:"fingerprint_sha256"` - Global types.Bool `tfsdk:"global"` - SubjectDN types.String `tfsdk:"subject_dn"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - KeyData types.List `tfsdk:"key_data"` -} - -var certificateCertificateLinkableWrapperAttrTypesRS = objectAttrsTypeRSCertificateCertificateLinkableWrapper(false) -var certificateCertificateLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificateLinkableWrapper(true) - -type certificateCertificateLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var certificateCertificatePrimerAttrTypesRS = objectAttrsTypeRSCertificateCertificatePrimer(false) var certificateCertificatePrimerAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificatePrimer(true) @@ -404,13 +90,6 @@ type certificateCertificatePrimerDataRS struct { UUID types.String `tfsdk:"uuid"` } -var certificateCertificate_additionalObjectsAttrTypesRS = objectAttrsTypeRSCertificateCertificate_additionalObjects(false) -var certificateCertificate_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSCertificateCertificate_additionalObjects(true) - -type certificateCertificate_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - var clientApplicationVaultVaultRecordAttrTypesRS = objectAttrsTypeRSClientApplicationVaultVaultRecord(false) var clientApplicationVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSClientApplicationVaultVaultRecord(true) @@ -462,8 +141,8 @@ type clientClientApplicationDataRS struct { LastModifiedAt types.String `tfsdk:"last_modified_at"` OwnerUUID types.String `tfsdk:"owner_uuid"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` - OAuth2Client types.Object `tfsdk:"o_auth2_client"` LDAPClient types.Object `tfsdk:"ldap_client"` + OAuth2Client types.Object `tfsdk:"o_auth2_client"` Saml2Client types.Object `tfsdk:"saml2_client"` } @@ -542,13 +221,6 @@ type clientOAuth2ClientPermissionDataRS struct { Value types.String `tfsdk:"value"` } -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(false) -var clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(true) - -type clientOAuth2ClientPermissionLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var clientOAuth2ClientPermissionWithClientAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(false) var clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(true) @@ -598,35 +270,6 @@ var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml type clientSaml2Client_attributesDataRS struct { } -var deletedVaultHolderVaultVaultRecordAttrTypesRS = objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(false) -var deletedVaultHolderVaultVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(true) - -type deletedVaultHolderVaultVaultRecordDataRS struct { - DeletedVaultHolderUUID types.String `tfsdk:"deleted_vault_holder_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Color types.String `tfsdk:"color"` - Name types.String `tfsdk:"name"` - ShareEndTime types.String `tfsdk:"share_end_time"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - DeleteTile types.Bool `tfsdk:"delete_tile" tkhao:"deleteTile"` - ParentUUID types.String `tfsdk:"parent_uuid" tkhao:"parent"` - PasswordMetadata types.Object `tfsdk:"password_metadata" tkhao:"passwordMetadata"` - Secret types.Object `tfsdk:"secret" tkhao:"secret"` - ShareSummary types.Object `tfsdk:"share_summary" tkhao:"shareSummary"` - Shares types.List `tfsdk:"shares" tkhao:"shares"` - Tile types.Object `tfsdk:"tile" tkhao:"tile"` - Vaultholder types.Object `tfsdk:"vaultholder" tkhao:"vaultholder"` - Derived types.Bool `tfsdk:"derived"` - EndDate types.String `tfsdk:"end_date"` - Filename types.String `tfsdk:"filename"` - Types types.List `tfsdk:"types"` - URL types.String `tfsdk:"url"` - Username types.String `tfsdk:"username"` - WarningPeriod types.String `tfsdk:"warning_period"` -} - var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) @@ -647,10 +290,10 @@ type directoryAccountDirectoryDataRS struct { Restrict2fa types.Bool `tfsdk:"restrict2fa"` RotatingPassword types.String `tfsdk:"rotating_password"` UsernameCustomizable types.Bool `tfsdk:"username_customizable"` - OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` + InternalDirectory types.Object `tfsdk:"internal_directory"` LDAPDirectory types.Object `tfsdk:"l_d_a_p_directory"` MaintenanceDirectory types.Object `tfsdk:"maintenance_directory"` - InternalDirectory types.Object `tfsdk:"internal_directory"` + OIDCDirectory types.Object `tfsdk:"o_id_c_directory"` } var directoryAccountDirectoryLinkableWrapperAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectoryLinkableWrapper(false) @@ -762,36 +405,6 @@ type directoryOIDCDirectoryDataRS struct { VendorEscaped types.String `tfsdk:"vendor_escaped"` } -var groupAccountGroupAttrTypesRS = objectAttrsTypeRSGroupAccountGroup(false) -var groupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup(true) - -type groupAccountGroupDataRS struct { - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - EndDate types.String `tfsdk:"end_date"` - Folder types.Object `tfsdk:"folder"` - LastUsed types.String `tfsdk:"last_used"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var groupAccountGroupLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(false) -var groupAccountGroupLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(true) - -type groupAccountGroupLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupAccountGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupAccountGroup_additionalObjects(false) -var groupAccountGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupAccountGroup_additionalObjects(true) - -type groupAccountGroup_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - var groupAuthorizedGroupsWrapperAttrTypesRS = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(false) var groupAuthorizedGroupsWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupAuthorizedGroupsWrapper(true) @@ -883,21 +496,6 @@ type groupGroupAccountLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var groupGroupAccountNestingAttrTypesRS = objectAttrsTypeRSGroupGroupAccountNesting(false) -var groupGroupAccountNestingAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountNesting(true) - -type groupGroupAccountNestingDataRS struct { - Connected types.Bool `tfsdk:"connected"` -} - -var groupGroupAccountStatusAttrTypesRS = objectAttrsTypeRSGroupGroupAccountStatus(false) -var groupGroupAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccountStatus(true) - -type groupGroupAccountStatusDataRS struct { - Folder types.Object `tfsdk:"folder"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - var groupGroupAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupAccount_additionalObjects(false) var groupGroupAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAccount_additionalObjects(true) @@ -905,13 +503,6 @@ type groupGroupAccount_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupAdminMailAttrTypesRS = objectAttrsTypeRSGroupGroupAdminMail(false) -var groupGroupAdminMailAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAdminMail(true) - -type groupGroupAdminMailDataRS struct { - Body types.String `tfsdk:"body"` -} - var groupGroupAuditAttrTypesRS = objectAttrsTypeRSGroupGroupAudit(false) var groupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupAudit(true) @@ -989,44 +580,6 @@ type groupGroupAuditingInfoDataRS struct { NrVaultRecordsWithEndDate types.Int64 `tfsdk:"nr_vault_records_with_end_date"` } -var groupGroupClassificationAttrTypesRS = objectAttrsTypeRSGroupGroupClassification(false) -var groupGroupClassificationAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification(true) - -type groupGroupClassificationDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Name types.String `tfsdk:"name"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Info types.Object `tfsdk:"info" tkhao:"info"` - AuthorizingGroupAuditingRequired types.Bool `tfsdk:"authorizing_group_auditing_required"` - AuthorizingGroupDelegationRequired types.Bool `tfsdk:"authorizing_group_delegation_required"` - AuthorizingGroupMembershipRequired types.Bool `tfsdk:"authorizing_group_membership_required"` - AuthorizingGroupProvisioningRequired types.Bool `tfsdk:"authorizing_group_provisioning_required"` - DefaultClassification types.Bool `tfsdk:"default_classification"` - Description types.String `tfsdk:"description"` - MaximumAuditInterval types.Int64 `tfsdk:"maximum_audit_interval"` - MinimumNrManagers types.Int64 `tfsdk:"minimum_nr_managers"` - RecordTrailRequired types.Bool `tfsdk:"record_trail_required"` - RequiredMonths types.List `tfsdk:"required_months"` - RotatingPasswordRequired types.Bool `tfsdk:"rotating_password_required"` - VaultRequiresActivation types.Bool `tfsdk:"vault_requires_activation"` -} - -var groupGroupClassificationInfoAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationInfo(false) -var groupGroupClassificationInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationInfo(true) - -type groupGroupClassificationInfoDataRS struct { - NrGroups types.Int64 `tfsdk:"nr_groups"` -} - -var groupGroupClassificationLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(false) -var groupGroupClassificationLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(true) - -type groupGroupClassificationLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var groupGroupClassificationPrimerAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationPrimer(false) var groupGroupClassificationPrimerAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationPrimer(true) @@ -1037,21 +590,6 @@ type groupGroupClassificationPrimerDataRS struct { UUID types.String `tfsdk:"uuid"` } -var groupGroupClassificationUpdateAttrTypesRS = objectAttrsTypeRSGroupGroupClassificationUpdate(false) -var groupGroupClassificationUpdateAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassificationUpdate(true) - -type groupGroupClassificationUpdateDataRS struct { - ClassificatonUUID types.String `tfsdk:"classificaton_uuid"` -} - -var groupGroupClassification_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupClassification_additionalObjects(false) -var groupGroupClassification_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClassification_additionalObjects(true) - -type groupGroupClassification_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Info types.Object `tfsdk:"info"` -} - var groupGroupClientAttrTypesRS = objectAttrsTypeRSGroupGroupClient(false) var groupGroupClientAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupClient(true) @@ -1080,30 +618,6 @@ type groupGroupClient_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } -var groupGroupFolderAttrTypesRS = objectAttrsTypeRSGroupGroupFolder(false) -var groupGroupFolderAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder(true) - -type groupGroupFolderDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Name types.String `tfsdk:"name"` -} - -var groupGroupFolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(false) -var groupGroupFolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolderLinkableWrapper(true) - -type groupGroupFolderLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var groupGroupFolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroupFolder_additionalObjects(false) -var groupGroupFolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupFolder_additionalObjects(true) - -type groupGroupFolder_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - var groupGroupInfoAttrTypesRS = objectAttrsTypeRSGroupGroupInfo(false) var groupGroupInfoAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupInfo(true) @@ -1141,14 +655,6 @@ type groupGroupPrimerLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var groupGroupSegmentedLinkableWrapperAttrTypesRS = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(false) -var groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(true) - -type groupGroupSegmentedLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` - Segments types.List `tfsdk:"segments"` -} - var groupGroup_additionalObjectsAttrTypesRS = objectAttrsTypeRSGroupGroup_additionalObjects(false) var groupGroup_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroup_additionalObjects(true) @@ -1182,19 +688,6 @@ type groupGroup_additionalObjectsDataRS struct { Webhooks types.List `tfsdk:"webhooks"` } -var groupGroupsAuditStatsAttrTypesRS = objectAttrsTypeRSGroupGroupsAuditStats(false) -var groupGroupsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSGroupGroupsAuditStats(true) - -type groupGroupsAuditStatsDataRS struct { - AuditedGroups types.Int64 `tfsdk:"audited_groups"` - Classifications types.List `tfsdk:"classifications"` - OverdueAuditGroups types.Int64 `tfsdk:"overdue_audit_groups"` - OverdueVaultPolicies types.Int64 `tfsdk:"overdue_vault_policies"` - UnauditedGroups types.Int64 `tfsdk:"unaudited_groups"` - ValidVaultPolicies types.Int64 `tfsdk:"valid_vault_policies"` - VaultsWithoutPolicies types.Int64 `tfsdk:"vaults_without_policies"` -} - var groupProvisioningGroupAttrTypesRS = objectAttrsTypeRSGroupProvisioningGroup(false) var groupProvisioningGroupAttrTypesRSRecurse = objectAttrsTypeRSGroupProvisioningGroup(true) @@ -1250,75 +743,6 @@ type groupVaultVaultRecordDataRS struct { WarningPeriod types.String `tfsdk:"warning_period"` } -var launchpadDisplayedLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(false) -var launchpadDisplayedLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(true) - -type launchpadDisplayedLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - Logo types.List `tfsdk:"logo"` - Tile types.Object `tfsdk:"tile"` - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` -} - -var launchpadDisplayedLaunchpadTilesAttrTypesRS = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(false) -var launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(true) - -type launchpadDisplayedLaunchpadTilesDataRS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile(false) -var launchpadLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile(true) - -type launchpadLaunchpadTileDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - ApplicationUUID types.String `tfsdk:"application_uuid"` - GroupUUID types.String `tfsdk:"group_uuid"` - IDenticonCode types.Int64 `tfsdk:"identicon_code"` - LaunchpadLaunchpadTileType types.String `tfsdk:"launchpad_launchpad_tile_type"` - Logo types.List `tfsdk:"logo"` - VaultRecordUUID types.String `tfsdk:"vault_record_uuid"` - VaultRecordLaunchpadTile types.Object `tfsdk:"vault_record_launchpad_tile"` - SsoApplicationLaunchpadTile types.Object `tfsdk:"sso_application_launchpad_tile"` - ManualLaunchpadTile types.Object `tfsdk:"manual_launchpad_tile"` -} - -var launchpadLaunchpadTileLinkableWrapperAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(false) -var launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(true) - -type launchpadLaunchpadTileLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var launchpadLaunchpadTilePrimerAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(false) -var launchpadLaunchpadTilePrimerAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(true) - -type launchpadLaunchpadTilePrimerDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` -} - -var launchpadLaunchpadTile_additionalObjectsAttrTypesRS = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(false) -var launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(true) - -type launchpadLaunchpadTile_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var launchpadManualLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadManualLaunchpadTile(false) -var launchpadManualLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadManualLaunchpadTile(true) - -type launchpadManualLaunchpadTileDataRS struct { - Title types.String `tfsdk:"title"` - URI types.String `tfsdk:"uri"` -} - var launchpadSsoApplicationLaunchpadTileAttrTypesRS = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false) var launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(true) @@ -1332,28 +756,6 @@ var launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse = objectAttrsTypeRSLaunc type launchpadVaultRecordLaunchpadTileDataRS struct { } -var licenseKeyHubLicenseInfoAttrTypesRS = objectAttrsTypeRSLicenseKeyHubLicenseInfo(false) -var licenseKeyHubLicenseInfoAttrTypesRSRecurse = objectAttrsTypeRSLicenseKeyHubLicenseInfo(true) - -type licenseKeyHubLicenseInfoDataRS struct { - CurrentLicenseStatus types.String `tfsdk:"current_license_status"` - CustomerCompany types.String `tfsdk:"customer_company"` - CustomerContact types.String `tfsdk:"customer_contact"` - CustomerDomains types.List `tfsdk:"customer_domains"` - Details types.List `tfsdk:"details"` - ExpirationTime types.String `tfsdk:"expiration_time"` - Features types.List `tfsdk:"features"` - IssueTime types.String `tfsdk:"issue_time"` - KeyHubDomain types.String `tfsdk:"key_hub_domain"` - LicenseKey types.String `tfsdk:"license_key"` - NotBeforeTime types.String `tfsdk:"not_before_time"` - UsersHardLimit types.Int64 `tfsdk:"users_hard_limit"` - UsersProLimit types.Int64 `tfsdk:"users_pro_limit"` - UsersSoftLimit types.Int64 `tfsdk:"users_soft_limit"` - UUID types.String `tfsdk:"uuid"` - Version types.Int64 `tfsdk:"version"` -} - var markItemMarkerAttrTypesRS = objectAttrsTypeRSMarkItemMarker(false) var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) @@ -1376,313 +778,25 @@ type markItemMarkersDataRS struct { Markers types.List `tfsdk:"markers"` } -var nestedAuthInternalAccountAttrTypesRS = objectAttrsTypeRSNestedAuthInternalAccount(false) -var nestedAuthInternalAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedAuthInternalAccount(true) +var nestedProvisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSNestedProvisioningGroupOnSystem(false) +var nestedProvisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningGroupOnSystem(true) -type nestedAuthInternalAccountDataRS struct { - AccountDirectoryUUID types.String `tfsdk:"account_directory_uuid"` - UUID types.String `tfsdk:"uuid"` - ActivationCode types.String `tfsdk:"activation_code"` - ActivationDeadline types.String `tfsdk:"activation_deadline"` - Company types.String `tfsdk:"company"` - FirstName types.String `tfsdk:"first_name"` - LastName types.String `tfsdk:"last_name"` - Status types.String `tfsdk:"status"` - Telephone types.String `tfsdk:"telephone"` +type nestedProvisioningGroupOnSystemDataRS struct { + ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` + Links types.List `tfsdk:"links"` + Permissions types.List `tfsdk:"permissions"` + DisplayName types.String `tfsdk:"display_name"` + NameInSystem types.String `tfsdk:"name_in_system"` + ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` + ShortNameInSystem types.String `tfsdk:"short_name_in_system"` + Audit types.Object `tfsdk:"audit" tkhao:"audit"` + Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` + ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` + OwnerUUID types.String `tfsdk:"owner_uuid"` } -var nestedClientOAuth2ClientPermissionAttrTypesRS = objectAttrsTypeRSNestedClientOAuth2ClientPermission(false) -var nestedClientOAuth2ClientPermissionAttrTypesRSRecurse = objectAttrsTypeRSNestedClientOAuth2ClientPermission(true) - -type nestedClientOAuth2ClientPermissionDataRS struct { - ClientApplicationUUID types.String `tfsdk:"client_application_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - ForGroupUUID types.String `tfsdk:"for_group_uuid"` - ForSystemUUID types.String `tfsdk:"for_system_uuid"` - Value types.String `tfsdk:"value"` -} - -var nestedGroupAccountGroupAttrTypesRS = objectAttrsTypeRSNestedGroupAccountGroup(false) -var nestedGroupAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupAccountGroup(true) - -type nestedGroupAccountGroupDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - EndDate types.String `tfsdk:"end_date"` - Folder types.Object `tfsdk:"folder"` - LastUsed types.String `tfsdk:"last_used"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var nestedGroupGroupAccountAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAccount(false) -var nestedGroupGroupAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAccount(true) - -type nestedGroupGroupAccountDataRS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` - DisconnectedNested types.Bool `tfsdk:"disconnected_nested"` - EndDate types.String `tfsdk:"end_date"` - LastUsed types.String `tfsdk:"last_used"` - Nested types.Bool `tfsdk:"nested"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - Rights types.String `tfsdk:"rights"` - TwoFactorStatus types.String `tfsdk:"two_factor_status"` - VisibleForProvisioning types.Bool `tfsdk:"visible_for_provisioning"` -} - -var nestedGroupGroupAuditAttrTypesRS = objectAttrsTypeRSNestedGroupGroupAudit(false) -var nestedGroupGroupAuditAttrTypesRSRecurse = objectAttrsTypeRSNestedGroupGroupAudit(true) - -type nestedGroupGroupAuditDataRS struct { - GroupUUID types.String `tfsdk:"group_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Accounts types.List `tfsdk:"accounts"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Comment types.String `tfsdk:"comment"` - CreatedAt types.String `tfsdk:"created_at"` - CreatedBy types.String `tfsdk:"created_by"` - GroupName types.String `tfsdk:"group_name"` - NameOnAudit types.String `tfsdk:"name_on_audit"` - ReviewedAt types.String `tfsdk:"reviewed_at"` - ReviewedBy types.String `tfsdk:"reviewed_by"` - Status types.String `tfsdk:"status"` - SubmittedAt types.String `tfsdk:"submitted_at"` - SubmittedBy types.String `tfsdk:"submitted_by"` -} - -var nestedOrganizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(false) -var nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(true) - -type nestedOrganizationAccountOrganizationalUnitDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` -} - -var nestedOrganizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(false) -var nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(true) - -type nestedOrganizationOrganizationalUnitAccountDataRS struct { - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` -} - -var nestedProvisioningGroupOnSystemAttrTypesRS = objectAttrsTypeRSNestedProvisioningGroupOnSystem(false) -var nestedProvisioningGroupOnSystemAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningGroupOnSystem(true) - -type nestedProvisioningGroupOnSystemDataRS struct { - ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Provgroups types.List `tfsdk:"provgroups" tkhao:"provgroups"` - ServiceAccounts types.List `tfsdk:"service_accounts" tkhao:"serviceAccounts"` - OwnerUUID types.String `tfsdk:"owner_uuid"` -} - -var nestedProvisioningProvisionedAccountAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedAccount(false) -var nestedProvisioningProvisionedAccountAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningProvisionedAccount(true) - -type nestedProvisioningProvisionedAccountDataRS struct { - ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - UID types.Int64 `tfsdk:"uid"` -} - -var nestedProvisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(false) -var nestedProvisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(true) - -type nestedProvisioningProvisionedSystemSyncLogDataRS struct { - ProvisionedSystemUUID types.String `tfsdk:"provisioned_system_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` -} - -var nestedServiceaccountServiceAccountGroupAttrTypesRS = objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(false) -var nestedServiceaccountServiceAccountGroupAttrTypesRSRecurse = objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(true) - -type nestedServiceaccountServiceAccountGroupDataRS struct { - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - DisplayName types.String `tfsdk:"display_name"` - NameInSystem types.String `tfsdk:"name_in_system"` - ProvisioningGroupOnSystemPrimerType types.String `tfsdk:"type"` - ShortNameInSystem types.String `tfsdk:"short_name_in_system"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` -} - -var nestedWebhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSNestedWebhookWebhookDelivery(false) -var nestedWebhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSNestedWebhookWebhookDelivery(true) - -type nestedWebhookWebhookDeliveryDataRS struct { - WebhookUUID types.String `tfsdk:"webhook_uuid"` - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` -} - -var notificationCertificateExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationCertificateExpiredNotification(false) -var notificationCertificateExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationCertificateExpiredNotification(true) - -type notificationCertificateExpiredNotificationDataRS struct { - Certificate types.Object `tfsdk:"certificate"` - Directory types.Object `tfsdk:"directory"` - Expiration types.String `tfsdk:"expiration"` - LDAPClient types.Object `tfsdk:"ldap_client"` - System types.Object `tfsdk:"system"` - Usage types.String `tfsdk:"usage"` - Webhook types.Object `tfsdk:"webhook"` -} - -var notificationGroupAuditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(false) -var notificationGroupAuditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupAuditRequiredNotification(true) - -type notificationGroupAuditRequiredNotificationDataRS struct { - DueDate types.String `tfsdk:"due_date"` - Group types.Object `tfsdk:"group"` - NotificationGroupAuditRequiredNotificationType types.String `tfsdk:"notification_group_audit_required_notification_type"` -} - -var notificationGroupEditRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification(false) -var notificationGroupEditRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification(true) - -type notificationGroupEditRequiredNotificationDataRS struct { - Group types.Object `tfsdk:"group"` - Parameters types.Object `tfsdk:"parameters"` - Reason types.String `tfsdk:"reason"` -} - -var notificationGroupEditRequiredNotification_parametersAttrTypesRS = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(false) -var notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse = objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(true) - -type notificationGroupEditRequiredNotification_parametersDataRS struct { -} - -var notificationInvalidSignaturesDetectedNotificationAttrTypesRS = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(false) -var notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(true) - -type notificationInvalidSignaturesDetectedNotificationDataRS struct { -} - -var notificationLicenseStatusNotificationAttrTypesRS = objectAttrsTypeRSNotificationLicenseStatusNotification(false) -var notificationLicenseStatusNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationLicenseStatusNotification(true) - -type notificationLicenseStatusNotificationDataRS struct { - ActiveAccounts types.Int64 `tfsdk:"active_accounts"` - LicenseInfo types.Object `tfsdk:"license_info"` -} - -var notificationModificationRequestNotificationAttrTypesRS = objectAttrsTypeRSNotificationModificationRequestNotification(false) -var notificationModificationRequestNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationModificationRequestNotification(true) - -type notificationModificationRequestNotificationDataRS struct { - Admins types.List `tfsdk:"admins"` - Groups types.List `tfsdk:"groups"` - Request types.Object `tfsdk:"request"` -} - -var notificationNotificationAttrTypesRS = objectAttrsTypeRSNotificationNotification(false) -var notificationNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotification(true) - -type notificationNotificationDataRS struct { -} - -var notificationNotificationsAttrTypesRS = objectAttrsTypeRSNotificationNotifications(false) -var notificationNotificationsAttrTypesRSRecurse = objectAttrsTypeRSNotificationNotifications(true) - -type notificationNotificationsDataRS struct { - Items types.List `tfsdk:"items"` -} - -var notificationOldApiVersionUsageNotificationAttrTypesRS = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(false) -var notificationOldApiVersionUsageNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationOldApiVersionUsageNotification(true) - -type notificationOldApiVersionUsageNotificationDataRS struct { - ApiVersion types.Int64 `tfsdk:"api_version"` - Client types.Object `tfsdk:"client"` -} - -var notificationProvisionConfigRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(false) -var notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(true) - -type notificationProvisionConfigRequiredNotificationDataRS struct { - Systems types.List `tfsdk:"systems"` -} - -var notificationRotatingPasswordRequiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(false) -var notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(true) - -type notificationRotatingPasswordRequiredNotificationDataRS struct { - Groups types.List `tfsdk:"groups"` -} - -var notificationUpdateAvailableNotificationAttrTypesRS = objectAttrsTypeRSNotificationUpdateAvailableNotification(false) -var notificationUpdateAvailableNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationUpdateAvailableNotification(true) - -type notificationUpdateAvailableNotificationDataRS struct { - ReleasedAt types.String `tfsdk:"released_at"` -} - -var notificationVaultRecordExpiredNotificationAttrTypesRS = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(false) -var notificationVaultRecordExpiredNotificationAttrTypesRSRecurse = objectAttrsTypeRSNotificationVaultRecordExpiredNotification(true) - -type notificationVaultRecordExpiredNotificationDataRS struct { - Record types.Object `tfsdk:"record"` -} - -var organizationAccountOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(false) -var organizationAccountOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit(true) - -type organizationAccountOrganizationalUnitDataRS struct { - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` -} - -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(false) -var organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(true) - -type organizationAccountOrganizationalUnitLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(false) -var organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(true) - -type organizationAccountOrganizationalUnit_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - -var organizationOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit(false) -var organizationOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit(true) +var organizationOrganizationalUnitAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnit(false) +var organizationOrganizationalUnitAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnit(true) type organizationOrganizationalUnitDataRS struct { Links types.List `tfsdk:"links"` @@ -1697,29 +811,6 @@ type organizationOrganizationalUnitDataRS struct { ParentUUID types.String `tfsdk:"parent_uuid"` } -var organizationOrganizationalUnitAccountAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(false) -var organizationOrganizationalUnitAccountAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount(true) - -type organizationOrganizationalUnitAccountDataRS struct { - UUID types.String `tfsdk:"uuid"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - DirectoryUUID types.String `tfsdk:"directory_uuid"` -} - -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(false) -var organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(true) - -type organizationOrganizationalUnitAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(false) -var organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(true) - -type organizationOrganizationalUnitAccount_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - var organizationOrganizationalUnitLinkableWrapperAttrTypesRS = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(false) var organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(true) @@ -1780,22 +871,6 @@ var provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse = objectAtt type provisioningAbstractProvisionedLDAP_attributesDataRS struct { } -var provisioningAccountProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatus(false) -var provisioningAccountProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatus(true) - -type provisioningAccountProvisioningStatusDataRS struct { - Description types.String `tfsdk:"description"` - Result types.String `tfsdk:"result"` - System types.Object `tfsdk:"system"` -} - -var provisioningAccountProvisioningStatusReportAttrTypesRS = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(false) -var provisioningAccountProvisioningStatusReportAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(true) - -type provisioningAccountProvisioningStatusReportDataRS struct { - Status types.List `tfsdk:"status"` -} - var provisioningCircuitBreakerStatisticsAttrTypesRS = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false) var provisioningCircuitBreakerStatisticsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(true) @@ -1857,27 +932,6 @@ type provisioningGroupOnSystem_additionalObjectsDataRS struct { ServiceAccounts types.List `tfsdk:"service_accounts"` } -var provisioningGroupProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus(false) -var provisioningGroupProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus(true) - -type provisioningGroupProvisioningStatusDataRS struct { - Folder types.Object `tfsdk:"folder"` - Group types.Object `tfsdk:"group"` - ProvisioningDuration types.Object `tfsdk:"provisioning_duration"` - ProvisioningEndTime types.String `tfsdk:"provisioning_end_time"` - ProvisioningPermissionEndTime types.String `tfsdk:"provisioning_permission_end_time"` - StatusReport types.Object `tfsdk:"status_report"` - VisibleOnDashboard types.Bool `tfsdk:"visible_on_dashboard"` -} - -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(false) -var provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse = objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(true) - -type provisioningGroupProvisioningStatus_provisioningDurationDataRS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - var provisioningOwnedGroupOnSystemsWrapperAttrTypesRS = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(false) var provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(true) @@ -1899,13 +953,6 @@ type provisioningProvisionNumberSequenceDataRS struct { NextUID types.Int64 `tfsdk:"next_uid"` } -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(false) -var provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(true) - -type provisioningProvisionNumberSequenceLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(false) var provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(true) @@ -1930,13 +977,6 @@ type provisioningProvisionedAccountDataRS struct { UID types.Int64 `tfsdk:"uid"` } -var provisioningProvisionedAccountLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(false) -var provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(true) - -type provisioningProvisionedAccountLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var provisioningProvisionedAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(false) var provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(true) @@ -2025,13 +1065,13 @@ type provisioningProvisionedSystemDataRS struct { ShouldDestroyUnknownAccounts types.Bool `tfsdk:"should_destroy_unknown_accounts"` TechnicalAdministratorUUID types.String `tfsdk:"technical_administrator_uuid"` UsernamePrefix types.String `tfsdk:"username_prefix"` - ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` AbstractProvisionedLDAP types.Object `tfsdk:"abstract_provisioned_ldap"` - ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` - ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` - ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` ProvisionedAD types.Object `tfsdk:"provisioned_a_d"` + ProvisionedAzureOIDCDirectory types.Object `tfsdk:"provisioned_azure_oidc_directory"` + ProvisionedAzureSyncLDAPDirectory types.Object `tfsdk:"provisioned_azure_sync_ldap_directory"` + ProvisionedAzureTenant types.Object `tfsdk:"provisioned_azure_tenant"` ProvisionedInternalLDAP types.Object `tfsdk:"provisioned_internal_ldap"` + ProvisionedLDAP types.Object `tfsdk:"provisioned_ldap"` ProvisionedLDAPDirectory types.Object `tfsdk:"provisioned_ldap_directory"` } @@ -2062,33 +1102,6 @@ type provisioningProvisionedSystemPrimerLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var provisioningProvisionedSystemSyncLogAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(false) -var provisioningProvisionedSystemSyncLogAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(true) - -type provisioningProvisionedSystemSyncLogDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - CreatedAt types.String `tfsdk:"created_at"` - Errors types.Int64 `tfsdk:"errors"` - Log types.String `tfsdk:"log"` - Modifications types.Int64 `tfsdk:"modifications"` -} - -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(false) -var provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(true) - -type provisioningProvisionedSystemSyncLogLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(false) -var provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(true) - -type provisioningProvisionedSystemSyncLog_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - var provisioningProvisionedSystem_additionalObjectsAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(false) var provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(true) @@ -2112,396 +1125,6 @@ type provisioningProvisioningManagementPermissionsDataRS struct { ReuseExistingGroupsAllowed types.Bool `tfsdk:"reuse_existing_groups_allowed"` } -var provisioningProvisioningStatusAttrTypesRS = objectAttrsTypeRSProvisioningProvisioningStatus(false) -var provisioningProvisioningStatusAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisioningStatus(true) - -type provisioningProvisioningStatusDataRS struct { - Groups types.List `tfsdk:"groups"` - IgnoreErrors types.Bool `tfsdk:"ignore_errors"` - RestrictedByLicense types.Bool `tfsdk:"restricted_by_license"` -} - -var provisioningTokenPasswordAttrTypesRS = objectAttrsTypeRSProvisioningTokenPassword(false) -var provisioningTokenPasswordAttrTypesRSRecurse = objectAttrsTypeRSProvisioningTokenPassword(true) - -type provisioningTokenPasswordDataRS struct { - Password types.String `tfsdk:"password"` -} - -var requestAbstractApplicationModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false) -var requestAbstractApplicationModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractApplicationModificationRequest(true) - -type requestAbstractApplicationModificationRequestDataRS struct { - ApplicationUUID types.String `tfsdk:"application_uuid"` -} - -var requestAbstractOrganizationalUnitModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false) -var requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(true) - -type requestAbstractOrganizationalUnitModificationRequestDataRS struct { - OrganizationalUnitUUID types.String `tfsdk:"organizational_unit_uuid"` -} - -var requestAbstractProvisionedSystemModificationRequestAttrTypesRS = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false) -var requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(true) - -type requestAbstractProvisionedSystemModificationRequestDataRS struct { - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestAcceptGrantAccessRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(false) -var requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(true) - -type requestAcceptGrantAccessRequestParametersDataRS struct { - AccessDuration types.Object `tfsdk:"access_duration"` -} - -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(false) -var requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(true) - -type requestAcceptGrantAccessRequestParameters_accessDurationDataRS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - -var requestAcceptJoinGroupRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(false) -var requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(true) - -type requestAcceptJoinGroupRequestParametersDataRS struct { - EndDate types.String `tfsdk:"end_date"` - MakeManager types.Bool `tfsdk:"make_manager"` -} - -var requestAcceptModificationRequestParametersAttrTypesRS = objectAttrsTypeRSRequestAcceptModificationRequestParameters(false) -var requestAcceptModificationRequestParametersAttrTypesRSRecurse = objectAttrsTypeRSRequestAcceptModificationRequestParameters(true) - -type requestAcceptModificationRequestParametersDataRS struct { -} - -var requestAddGroupAdminRequestAttrTypesRS = objectAttrsTypeRSRequestAddGroupAdminRequest(false) -var requestAddGroupAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestAddGroupAdminRequest(true) - -type requestAddGroupAdminRequestDataRS struct { - NewAdminUUID types.String `tfsdk:"new_admin_uuid"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var requestCreateGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false) -var requestCreateGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupOnSystemRequest(true) - -type requestCreateGroupOnSystemRequestDataRS struct { - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystemType types.String `tfsdk:"group_on_system_type"` - NameInSystem types.String `tfsdk:"name_in_system"` -} - -var requestCreateGroupRequestAttrTypesRS = objectAttrsTypeRSRequestCreateGroupRequest(false) -var requestCreateGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateGroupRequest(true) - -type requestCreateGroupRequestDataRS struct { - GroupName types.String `tfsdk:"group_name"` -} - -var requestCreateServiceAccountRequestAttrTypesRS = objectAttrsTypeRSRequestCreateServiceAccountRequest(false) -var requestCreateServiceAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestCreateServiceAccountRequest(true) - -type requestCreateServiceAccountRequestDataRS struct { - Username types.String `tfsdk:"username"` -} - -var requestDisable2FARequestAttrTypesRS = objectAttrsTypeRSRequestDisable2FARequest(false) -var requestDisable2FARequestAttrTypesRSRecurse = objectAttrsTypeRSRequestDisable2FARequest(true) - -type requestDisable2FARequestDataRS struct { - Subject types.String `tfsdk:"subject"` -} - -var requestEnableTechnicalAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false) -var requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(true) - -type requestEnableTechnicalAdministrationRequestDataRS struct { -} - -var requestExtendAccessRequestAttrTypesRS = objectAttrsTypeRSRequestExtendAccessRequest(false) -var requestExtendAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestExtendAccessRequest(true) - -type requestExtendAccessRequestDataRS struct { - ExtendUntil types.String `tfsdk:"extend_until"` -} - -var requestGrantAccessRequestAttrTypesRS = objectAttrsTypeRSRequestGrantAccessRequest(false) -var requestGrantAccessRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantAccessRequest(true) - -type requestGrantAccessRequestDataRS struct { -} - -var requestGrantApplicationRequestAttrTypesRS = objectAttrsTypeRSRequestGrantApplicationRequest(false) -var requestGrantApplicationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantApplicationRequest(true) - -type requestGrantApplicationRequestDataRS struct { -} - -var requestGrantClientPermissionRequestAttrTypesRS = objectAttrsTypeRSRequestGrantClientPermissionRequest(false) -var requestGrantClientPermissionRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantClientPermissionRequest(true) - -type requestGrantClientPermissionRequestDataRS struct { - PermissionType types.String `tfsdk:"permission_type"` - SystemUUID types.String `tfsdk:"system_uuid"` -} - -var requestGrantGroupOnSystemRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false) -var requestGrantGroupOnSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequest(true) - -type requestGrantGroupOnSystemRequestDataRS struct { - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantGroupOnSystemRequestRequestAttrTypesRS = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false) -var requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(true) - -type requestGrantGroupOnSystemRequestRequestDataRS struct { - ActivationRequired types.Bool `tfsdk:"activation_required"` - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestGrantServiceAccountGroupRequestAttrTypesRS = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false) -var requestGrantServiceAccountGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(true) - -type requestGrantServiceAccountGroupRequestDataRS struct { - GroupOnSystem types.Object `tfsdk:"group_on_system"` - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` -} - -var requestJoinGroupRequestAttrTypesRS = objectAttrsTypeRSRequestJoinGroupRequest(false) -var requestJoinGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinGroupRequest(true) - -type requestJoinGroupRequestDataRS struct { -} - -var requestJoinVaultRequestAttrTypesRS = objectAttrsTypeRSRequestJoinVaultRequest(false) -var requestJoinVaultRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestJoinVaultRequest(true) - -type requestJoinVaultRequestDataRS struct { -} - -var requestModificationRequestAttrTypesRS = objectAttrsTypeRSRequestModificationRequest(false) -var requestModificationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest(true) - -type requestModificationRequestDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - AccountUUID types.String `tfsdk:"account_uuid"` - AcceptParams types.Object `tfsdk:"accept_params" tkhao:"acceptParams"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - ResetStatus types.Object `tfsdk:"reset_status" tkhao:"resetStatus"` - Comment types.String `tfsdk:"comment"` - Feedback types.String `tfsdk:"feedback"` - GroupUUID types.String `tfsdk:"group_uuid"` - MailKey types.String `tfsdk:"mail_key"` - RequestModificationRequestType types.String `tfsdk:"request_modification_request_type"` - Status types.String `tfsdk:"status"` - EnableTechnicalAdministrationRequest types.Object `tfsdk:"enable_technical_administration_request"` - AbstractApplicationModificationRequest types.Object `tfsdk:"abstract_application_modification_request"` - TransferApplicationAdministrationRequest types.Object `tfsdk:"transfer_application_administration_request"` - PasswordResetRequest types.Object `tfsdk:"password_reset_request"` - AbstractProvisionedSystemModificationRequest types.Object `tfsdk:"abstract_provisioned_system_modification_request"` - TransferProvisionedSystemOwnershipRequest types.Object `tfsdk:"transfer_provisioned_system_ownership_request"` - AddGroupAdminRequest types.Object `tfsdk:"add_group_admin_request"` - AbstractOrganizationalUnitModificationRequest types.Object `tfsdk:"abstract_organizational_unit_modification_request"` - CreateGroupRequest types.Object `tfsdk:"create_group_request"` - RemoveProvisionedSystemRequest types.Object `tfsdk:"remove_provisioned_system_request"` - GrantApplicationRequest types.Object `tfsdk:"grant_application_request"` - CreateGroupOnSystemRequest types.Object `tfsdk:"create_group_on_system_request"` - SetupNestedGroupRequest types.Object `tfsdk:"setup_nested_group_request"` - VerifyInternalAccountRequest types.Object `tfsdk:"verify_internal_account_request"` - GrantGroupOnSystemRequestRequest types.Object `tfsdk:"grant_group_on_system_request_request"` - JoinGroupRequest types.Object `tfsdk:"join_group_request"` - TransferOrganizationalUnitOwnershipRequest types.Object `tfsdk:"transfer_organizational_unit_ownership_request"` - Disable2FARequest types.Object `tfsdk:"disable2fa_request"` - TransferProvisionedSystemContentAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_content_administration_request"` - GrantGroupOnSystemRequest types.Object `tfsdk:"grant_group_on_system_request"` - TransferApplicationOwnershipRequest types.Object `tfsdk:"transfer_application_ownership_request"` - TransferGroupOnSystemOwnershipRequest types.Object `tfsdk:"transfer_group_on_system_ownership_request"` - TransferServiceAccountAdministrationRequest types.Object `tfsdk:"transfer_service_account_administration_request"` - TransferAuditorGroupRequest types.Object `tfsdk:"transfer_auditor_group_request"` - ReviewAuditRequest types.Object `tfsdk:"review_audit_request"` - UpdateGroupMembershipRequest types.Object `tfsdk:"update_group_membership_request"` - ExtendAccessRequest types.Object `tfsdk:"extend_access_request"` - RemoveGroupRequest types.Object `tfsdk:"remove_group_request"` - RevokeAdminRequest types.Object `tfsdk:"revoke_admin_request"` - GrantServiceAccountGroupRequest types.Object `tfsdk:"grant_service_account_group_request"` - SetupAuthorizingGroupRequest types.Object `tfsdk:"setup_authorizing_group_request"` - TransferProvisionedSystemAdministrationRequest types.Object `tfsdk:"transfer_provisioned_system_administration_request"` - GrantAccessRequest types.Object `tfsdk:"grant_access_request"` - JoinVaultRequest types.Object `tfsdk:"join_vault_request"` - RemoveOrganizationalUnitRequest types.Object `tfsdk:"remove_organizational_unit_request"` - CreateServiceAccountRequest types.Object `tfsdk:"create_service_account_request"` - GrantClientPermissionRequest types.Object `tfsdk:"grant_client_permission_request"` -} - -var requestModificationRequestLinkableWrapperAttrTypesRS = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(false) -var requestModificationRequestLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequestLinkableWrapper(true) - -type requestModificationRequestLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var requestModificationRequest_additionalObjectsAttrTypesRS = objectAttrsTypeRSRequestModificationRequest_additionalObjects(false) -var requestModificationRequest_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSRequestModificationRequest_additionalObjects(true) - -type requestModificationRequest_additionalObjectsDataRS struct { - AcceptParams types.Object `tfsdk:"accept_params"` - Audit types.Object `tfsdk:"audit"` - ResetStatus types.Object `tfsdk:"reset_status"` -} - -var requestPasswordResetRequestAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequest(false) -var requestPasswordResetRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequest(true) - -type requestPasswordResetRequestDataRS struct { - NewVaultAndDirectoryPassword types.String `tfsdk:"new_vault_and_directory_password"` - NewVaultPassword types.String `tfsdk:"new_vault_password"` - UnsyncedPassword types.Bool `tfsdk:"unsynced_password"` -} - -var requestPasswordResetRequestStatusAttrTypesRS = objectAttrsTypeRSRequestPasswordResetRequestStatus(false) -var requestPasswordResetRequestStatusAttrTypesRSRecurse = objectAttrsTypeRSRequestPasswordResetRequestStatus(true) - -type requestPasswordResetRequestStatusDataRS struct { - CooldownEnd types.String `tfsdk:"cooldown_end"` - Managers types.List `tfsdk:"managers"` - NrAccepted types.Int64 `tfsdk:"nr_accepted"` - ResetViaMail types.String `tfsdk:"reset_via_mail"` -} - -var requestRemoveGroupRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveGroupRequest(false) -var requestRemoveGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveGroupRequest(true) - -type requestRemoveGroupRequestDataRS struct { - GroupName types.String `tfsdk:"group_name"` -} - -var requestRemoveOrganizationalUnitRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false) -var requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(true) - -type requestRemoveOrganizationalUnitRequestDataRS struct { - OrganizationalUnitName types.String `tfsdk:"organizational_unit_name"` -} - -var requestRemoveProvisionedSystemRequestAttrTypesRS = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false) -var requestRemoveProvisionedSystemRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(true) - -type requestRemoveProvisionedSystemRequestDataRS struct { - SystemName types.String `tfsdk:"system_name"` -} - -var requestReviewAuditRequestAttrTypesRS = objectAttrsTypeRSRequestReviewAuditRequest(false) -var requestReviewAuditRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestReviewAuditRequest(true) - -type requestReviewAuditRequestDataRS struct { -} - -var requestRevokeAdminRequestAttrTypesRS = objectAttrsTypeRSRequestRevokeAdminRequest(false) -var requestRevokeAdminRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestRevokeAdminRequest(true) - -type requestRevokeAdminRequestDataRS struct { - AdminUUID types.String `tfsdk:"admin_uuid"` -} - -var requestSetupAuthorizingGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false) -var requestSetupAuthorizingGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(true) - -type requestSetupAuthorizingGroupRequestDataRS struct { - AuthorizingGroupType types.String `tfsdk:"authorizing_group_type"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` -} - -var requestSetupNestedGroupRequestAttrTypesRS = objectAttrsTypeRSRequestSetupNestedGroupRequest(false) -var requestSetupNestedGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestSetupNestedGroupRequest(true) - -type requestSetupNestedGroupRequestDataRS struct { - AccountAction types.String `tfsdk:"account_action"` - Connect types.Bool `tfsdk:"connect"` - RequestingGroupUUID types.String `tfsdk:"requesting_group_uuid"` -} - -var requestTransferApplicationAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false) -var requestTransferApplicationAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(true) - -type requestTransferApplicationAdministrationRequestDataRS struct { -} - -var requestTransferApplicationOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false) -var requestTransferApplicationOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(true) - -type requestTransferApplicationOwnershipRequestDataRS struct { -} - -var requestTransferAuditorGroupRequestAttrTypesRS = objectAttrsTypeRSRequestTransferAuditorGroupRequest(false) -var requestTransferAuditorGroupRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferAuditorGroupRequest(true) - -type requestTransferAuditorGroupRequestDataRS struct { -} - -var requestTransferGroupOnSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false) -var requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(true) - -type requestTransferGroupOnSystemOwnershipRequestDataRS struct { - GroupOnSystem types.Object `tfsdk:"group_on_system"` -} - -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false) -var requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(true) - -type requestTransferOrganizationalUnitOwnershipRequestDataRS struct { -} - -var requestTransferProvisionedSystemAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false) -var requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(true) - -type requestTransferProvisionedSystemAdministrationRequestDataRS struct { -} - -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false) -var requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(true) - -type requestTransferProvisionedSystemContentAdministrationRequestDataRS struct { -} - -var requestTransferProvisionedSystemOwnershipRequestAttrTypesRS = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false) -var requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(true) - -type requestTransferProvisionedSystemOwnershipRequestDataRS struct { -} - -var requestTransferServiceAccountAdministrationRequestAttrTypesRS = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false) -var requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(true) - -type requestTransferServiceAccountAdministrationRequestDataRS struct { - ServiceAccountUUID types.String `tfsdk:"service_account_uuid"` -} - -var requestUpdateGroupMembershipRequestAttrTypesRS = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false) -var requestUpdateGroupMembershipRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestUpdateGroupMembershipRequest(true) - -type requestUpdateGroupMembershipRequestDataRS struct { - AccountToUpdateUUID types.String `tfsdk:"account_to_update_uuid"` - CurrentEndDate types.String `tfsdk:"current_end_date"` - CurrentRights types.String `tfsdk:"current_rights"` - EndDate types.String `tfsdk:"end_date"` - Rights types.String `tfsdk:"rights"` - UpdateGroupMembershipType types.String `tfsdk:"update_group_membership_type"` -} - -var requestVerifyInternalAccountRequestAttrTypesRS = objectAttrsTypeRSRequestVerifyInternalAccountRequest(false) -var requestVerifyInternalAccountRequestAttrTypesRSRecurse = objectAttrsTypeRSRequestVerifyInternalAccountRequest(true) - -type requestVerifyInternalAccountRequestDataRS struct { - InternalAccountName types.String `tfsdk:"internal_account_name"` -} - var serviceaccountServiceAccountAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount(false) var serviceaccountServiceAccountAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount(true) @@ -2576,13 +1199,6 @@ type serviceaccountServiceAccountPrimerLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var serviceaccountServiceAccountStatusAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountStatus(false) -var serviceaccountServiceAccountStatusAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountStatus(true) - -type serviceaccountServiceAccountStatusDataRS struct { - AccountEnabled types.Bool `tfsdk:"account_enabled"` -} - var serviceaccountServiceAccount_additionalObjectsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(false) var serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(true) @@ -2592,97 +1208,6 @@ type serviceaccountServiceAccount_additionalObjectsDataRS struct { Secret types.Object `tfsdk:"secret"` } -var serviceaccountServiceAccountsAuditStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(false) -var serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(true) - -type serviceaccountServiceAccountsAuditStatsDataRS struct { - DisabledCount types.Int64 `tfsdk:"disabled_count"` - PasswordSchemeEnabledStats types.Object `tfsdk:"password_scheme_enabled_stats"` - SystemStats types.Object `tfsdk:"system_stats"` -} - -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(false) -var serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(true) - -type serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS struct { -} - -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(false) -var serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse = objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(true) - -type serviceaccountServiceAccountsAuditStats_systemStatsDataRS struct { -} - -var simpleStringValueAttrTypesRS = objectAttrsTypeRSSimpleStringValue(false) -var simpleStringValueAttrTypesRSRecurse = objectAttrsTypeRSSimpleStringValue(true) - -type simpleStringValueDataRS struct { - Value types.String `tfsdk:"value"` -} - -var simpleVersionInfoAttrTypesRS = objectAttrsTypeRSSimpleVersionInfo(false) -var simpleVersionInfoAttrTypesRSRecurse = objectAttrsTypeRSSimpleVersionInfo(true) - -type simpleVersionInfoDataRS struct { - ContractVersions types.List `tfsdk:"contract_versions"` - KeyHubVersion types.String `tfsdk:"key_hub_version"` -} - -var vaultDeletedVaultHolderAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder(false) -var vaultDeletedVaultHolderAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder(true) - -type vaultDeletedVaultHolderDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Vault types.Object `tfsdk:"vault" tkhao:"vault"` - Name types.String `tfsdk:"name"` - RecordCount types.Int64 `tfsdk:"record_count"` - VaultDeletedVaultHolderType types.String `tfsdk:"vault_deleted_vault_holder_type"` -} - -var vaultDeletedVaultHolderLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(false) -var vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(true) - -type vaultDeletedVaultHolderLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var vaultDeletedVaultHolder_additionalObjectsAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(false) -var vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(true) - -type vaultDeletedVaultHolder_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` - Vault types.Object `tfsdk:"vault"` -} - -var vaultDeletedVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultDeletedVaultRecovery(false) -var vaultDeletedVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultDeletedVaultRecovery(true) - -type vaultDeletedVaultRecoveryDataRS struct { - Prefix types.String `tfsdk:"prefix"` - PrivateKey types.String `tfsdk:"private_key"` - TargetGroupUUID types.String `tfsdk:"target_group_uuid"` -} - -var vaultMoveVaultRecordAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord(false) -var vaultMoveVaultRecordAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord(true) - -type vaultMoveVaultRecordDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - Action types.String `tfsdk:"action"` - GroupUUID types.String `tfsdk:"group_uuid"` - ShareDuration types.Object `tfsdk:"share_duration"` -} - -var vaultMoveVaultRecord_shareDurationAttrTypesRS = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(false) -var vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse = objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(true) - -type vaultMoveVaultRecord_shareDurationDataRS struct { - Nanos types.Int64 `tfsdk:"nanos"` - Seconds types.Int64 `tfsdk:"seconds"` -} - var vaultPasswordMetadataAttrTypesRS = objectAttrsTypeRSVaultPasswordMetadata(false) var vaultPasswordMetadataAttrTypesRSRecurse = objectAttrsTypeRSVaultPasswordMetadata(true) @@ -2743,13 +1268,6 @@ type vaultVaultRecordDataRS struct { WarningPeriod types.String `tfsdk:"warning_period"` } -var vaultVaultRecordLinkableWrapperAttrTypesRS = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(false) -var vaultVaultRecordLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordLinkableWrapper(true) - -type vaultVaultRecordLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - var vaultVaultRecordPrimerAttrTypesRS = objectAttrsTypeRSVaultVaultRecordPrimer(false) var vaultVaultRecordPrimerAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecordPrimer(true) @@ -2811,29 +1329,6 @@ type vaultVaultRecord_additionalObjectsDataRS struct { Vaultholder types.Object `tfsdk:"vaultholder"` } -var vaultVaultRecoveryAttrTypesRS = objectAttrsTypeRSVaultVaultRecovery(false) -var vaultVaultRecoveryAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultRecovery(true) - -type vaultVaultRecoveryDataRS struct { - AccountUUID types.String `tfsdk:"account_uuid"` - PrivateKey types.String `tfsdk:"private_key"` -} - -var vaultVaultUnlockAttrTypesRS = objectAttrsTypeRSVaultVaultUnlock(false) -var vaultVaultUnlockAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlock(true) - -type vaultVaultUnlockDataRS struct { - Password types.String `tfsdk:"password"` -} - -var vaultVaultUnlockResponseAttrTypesRS = objectAttrsTypeRSVaultVaultUnlockResponse(false) -var vaultVaultUnlockResponseAttrTypesRSRecurse = objectAttrsTypeRSVaultVaultUnlockResponse(true) - -type vaultVaultUnlockResponseDataRS struct { - ExpiresAt types.String `tfsdk:"expires_at"` - SessionPassword types.String `tfsdk:"session_password"` -} - var webhookWebhookAttrTypesRS = objectAttrsTypeRSWebhookWebhook(false) var webhookWebhookAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook(true) @@ -2864,36 +1359,6 @@ type webhookWebhookDataRS struct { VerbosePayloads types.Bool `tfsdk:"verbose_payloads"` } -var webhookWebhookDeliveryAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery(false) -var webhookWebhookDeliveryAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery(true) - -type webhookWebhookDeliveryDataRS struct { - Links types.List `tfsdk:"links"` - Permissions types.List `tfsdk:"permissions"` - Audit types.Object `tfsdk:"audit" tkhao:"audit"` - Payload types.Object `tfsdk:"payload"` - ReponseHeaders types.String `tfsdk:"reponse_headers"` - RequestHeaders types.String `tfsdk:"request_headers"` - Response types.String `tfsdk:"response"` - Status types.Int64 `tfsdk:"status"` - Time types.Int64 `tfsdk:"time"` - TriggerTime types.String `tfsdk:"trigger_time"` -} - -var webhookWebhookDeliveryLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(false) -var webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(true) - -type webhookWebhookDeliveryLinkableWrapperDataRS struct { - Items types.List `tfsdk:"items"` -} - -var webhookWebhookDelivery_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(false) -var webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(true) - -type webhookWebhookDelivery_additionalObjectsDataRS struct { - Audit types.Object `tfsdk:"audit"` -} - var webhookWebhookLinkableWrapperAttrTypesRS = objectAttrsTypeRSWebhookWebhookLinkableWrapper(false) var webhookWebhookLinkableWrapperAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookLinkableWrapper(true) @@ -2901,42 +1366,6 @@ type webhookWebhookLinkableWrapperDataRS struct { Items types.List `tfsdk:"items"` } -var webhookWebhookNameUuidAttrTypesRS = objectAttrsTypeRSWebhookWebhookNameUuid(false) -var webhookWebhookNameUuidAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookNameUuid(true) - -type webhookWebhookNameUuidDataRS struct { - Name types.String `tfsdk:"name"` - Object types.Object `tfsdk:"object"` - UUID types.String `tfsdk:"uuid"` -} - -var webhookWebhookPushAttrTypesRS = objectAttrsTypeRSWebhookWebhookPush(false) -var webhookWebhookPushAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhookPush(true) - -type webhookWebhookPushDataRS struct { - Account types.Object `tfsdk:"account"` - ByParty types.Object `tfsdk:"by_party"` - Certificate types.Object `tfsdk:"certificate"` - Client types.Object `tfsdk:"client"` - Directory types.Object `tfsdk:"directory"` - Group types.Object `tfsdk:"group"` - Group2 types.Object `tfsdk:"group2"` - GroupClassification types.Object `tfsdk:"group_classification"` - ModificationRequest types.Object `tfsdk:"modification_request"` - OrganizationalUnit types.Object `tfsdk:"organizational_unit"` - Parameter1 types.String `tfsdk:"parameter1"` - Parameter2 types.String `tfsdk:"parameter2"` - Parameter3 types.String `tfsdk:"parameter3"` - SecurityLevel types.String `tfsdk:"security_level"` - Seq types.Int64 `tfsdk:"seq"` - ServiceAccount types.Object `tfsdk:"service_account"` - System types.Object `tfsdk:"system"` - Timestamp types.String `tfsdk:"timestamp"` - VaultRecord types.Object `tfsdk:"vault_record"` - Webhook types.Object `tfsdk:"webhook"` - WebhookWebhookPushType types.String `tfsdk:"type"` -} - var webhookWebhook_additionalObjectsAttrTypesRS = objectAttrsTypeRSWebhookWebhook_additionalObjects(false) var webhookWebhook_additionalObjectsAttrTypesRSRecurse = objectAttrsTypeRSWebhookWebhook_additionalObjects(true) diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 91b0250..5a570c0 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -17,24 +17,6 @@ func objectAttrsTypeDSAuditInfo(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSErrorReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["application_error"] = types.StringType - objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse)} - objectAttrs["code"] = types.Int64Type - objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} - objectAttrs["exception"] = types.StringType - objectAttrs["message"] = types.StringType - objectAttrs["reason"] = types.StringType - objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeDSGeneratedSecret(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["generated_secret"] = types.StringType @@ -64,85 +46,6 @@ func objectAttrsTypeDSRestLink(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSSegmentCount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["count"] = types.Int64Type - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} - objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} - } - objectAttrs["account_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuditAuditRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["type"] = types.StringType - objectAttrs["date_time"] = types.StringType - objectAttrs["on_account"] = types.StringType - objectAttrs["on_certificate"] = types.StringType - objectAttrs["on_client"] = types.StringType - objectAttrs["on_directory"] = types.StringType - objectAttrs["on_group"] = types.StringType - objectAttrs["on_group2"] = types.StringType - objectAttrs["on_group_classification"] = types.StringType - objectAttrs["on_organizational_unit"] = types.StringType - objectAttrs["on_service_account"] = types.StringType - objectAttrs["on_system"] = types.StringType - objectAttrs["on_vault_record"] = types.StringType - objectAttrs["on_webhook"] = types.StringType - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["performed_by"] = types.StringType - objectAttrs["security_level"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuditAuditRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -183,26 +86,6 @@ func objectAttrsTypeDSAuthAccount(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["action"] = types.StringType - objectAttrs["exclusive_selection"] = types.BoolType - objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["locale"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccount(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSAuthAccountPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -239,17 +122,6 @@ func objectAttrsTypeDSAuthAccountSettings(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSAuthAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["decline_recovery_requests"] = types.BoolType - objectAttrs["license_role"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["two_factor_authentication_enabled"] = types.BoolType - return objectAttrs -} - func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["active_login"] = types.BoolType @@ -262,94 +134,6 @@ func objectAttrsTypeDSAuthAccount_additionalObjects(recurse bool) map[string]att return objectAttrs } -func objectAttrsTypeDSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_fa_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse)} - objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["active_login"] = types.BoolType - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["groups"] = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false)["items"] - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(false)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(false)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType - objectAttrs["activation_code"] = types.StringType - objectAttrs["activation_deadline"] = types.StringType - objectAttrs["company"] = types.StringType - objectAttrs["first_name"] = types.StringType - objectAttrs["last_name"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["telephone"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthInternalAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(recurse)} - return objectAttrs -} - func objectAttrsTypeDSAuthPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["full"] = types.StringType @@ -393,12 +177,6 @@ func objectAttrsTypeDSCertificateCertificate(recurse bool) map[string]attr.Type return objectAttrs } -func objectAttrsTypeDSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -421,36 +199,6 @@ func objectAttrsTypeDSCertificateCertificate_additionalObjects(recurse bool) map return objectAttrs } -func objectAttrsTypeDSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} - objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} - } - objectAttrs["client_application_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -473,8 +221,8 @@ func objectAttrsTypeDSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(false)} + objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(false)} objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client(false)} return objectAttrs } @@ -550,12 +298,6 @@ func objectAttrsTypeDSClientOAuth2ClientPermission(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2ClientPermission(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -602,36 +344,6 @@ func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeDSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} - objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} - } - objectAttrs["deleted_vault_holder_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -653,10 +365,10 @@ func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(false)} objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryMaintenanceDirectory(false)} - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryOIDCDirectory(false)} return objectAttrs } @@ -892,31 +604,12 @@ func objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse bool) map[string] return objectAttrs } -func objectAttrsTypeDSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["connected"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - func objectAttrsTypeDSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeDSGroupGroupAdminMail(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["body"] = types.StringType - return objectAttrs -} - func objectAttrsTypeDSGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -1023,12 +716,6 @@ func objectAttrsTypeDSGroupGroupClassificationInfo(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeDSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -1038,12 +725,6 @@ func objectAttrsTypeDSGroupGroupClassificationPrimer(recurse bool) map[string]at return objectAttrs } -func objectAttrsTypeDSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["classificaton"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassificationPrimer(recurse)} - return objectAttrs -} - func objectAttrsTypeDSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} @@ -1091,12 +772,6 @@ func objectAttrsTypeDSGroupGroupFolder(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} @@ -1136,13 +811,6 @@ func objectAttrsTypeDSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]a return objectAttrs } -func objectAttrsTypeDSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)}} - objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSSegmentCount(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["accounts"] = objectAttrsTypeDSGroupGroupAccountLinkableWrapper(recurse)["items"] @@ -1175,18 +843,6 @@ func objectAttrsTypeDSGroupGroup_additionalObjects(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeDSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audited_groups"] = types.Int64Type - objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupClassification(recurse)}} - objectAttrs["overdue_audit_groups"] = types.Int64Type - objectAttrs["overdue_vault_policies"] = types.Int64Type - objectAttrs["unaudited_groups"] = types.Int64Type - objectAttrs["valid_vault_policies"] = types.Int64Type - objectAttrs["vaults_without_policies"] = types.Int64Type - return objectAttrs -} - func objectAttrsTypeDSGroupProvisioningGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -1213,101 +869,6 @@ func objectAttrsTypeDSGroupProvisioningGroup_additionalObjects(recurse bool) map return objectAttrs } -func objectAttrsTypeDSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultPasswordMetadata(false)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordSecrets(false)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordShareSummary(false)} - objectAttrs["shares"] = objectAttrsTypeDSVaultVaultRecordPrimerLinkableWrapper(false)["items"] - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultHolder(false)} - } - objectAttrs["group_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse)} - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadDisplayedLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(false)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecordPrimer(false)} - objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(false)} - objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadManualLaunchpadTile(false)} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSLaunchpadLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - func objectAttrsTypeDSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["uri"] = types.StringType @@ -1319,27 +880,6 @@ func objectAttrsTypeDSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string return objectAttrs } -func objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["current_license_status"] = types.StringType - objectAttrs["customer_company"] = types.StringType - objectAttrs["customer_contact"] = types.StringType - objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} - objectAttrs["details"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration_time"] = types.StringType - objectAttrs["features"] = types.ListType{ElemType: types.StringType} - objectAttrs["issue_time"] = types.StringType - objectAttrs["key_hub_domain"] = types.StringType - objectAttrs["license_key"] = types.StringType - objectAttrs["not_before_time"] = types.StringType - objectAttrs["users_hard_limit"] = types.Int64Type - objectAttrs["users_pro_limit"] = types.Int64Type - objectAttrs["users_soft_limit"] = types.Int64Type - objectAttrs["uuid"] = types.StringType - objectAttrs["version"] = types.Int64Type - return objectAttrs -} - func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType @@ -1359,1137 +899,315 @@ func objectAttrsTypeDSMarkItemMarkers(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { - objectAttrs["active_login"] = types.BoolType objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["groups"] = objectAttrsTypeDSGroupAccountGroupLinkableWrapper(false)["items"] - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountRecoveryStatus(false)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountSettings(false)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthStoredAccountAttributes(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} } - objectAttrs["account_directory_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType + objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType - objectAttrs["activation_code"] = types.StringType - objectAttrs["activation_deadline"] = types.StringType - objectAttrs["company"] = types.StringType - objectAttrs["first_name"] = types.StringType - objectAttrs["last_name"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["telephone"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} return objectAttrs } -func objectAttrsTypeDSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["client_application_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["for_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["for_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(false)} - objectAttrs["value"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit(recurse)}} return objectAttrs } -func objectAttrsTypeDSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} - } - objectAttrs["account_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["admin"] = types.BoolType objectAttrs["name"] = types.StringType objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["end_date"] = types.StringType - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(false)} - objectAttrs["last_used"] = types.StringType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType return objectAttrs } -func objectAttrsTypeDSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["group_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - objectAttrs["disconnected_nested"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["last_used"] = types.StringType - objectAttrs["nested"] = types.BoolType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeDSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["group_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupAuditAccount(false)}} - objectAttrs["comment"] = types.StringType - objectAttrs["created_at"] = types.StringType - objectAttrs["created_by"] = types.StringType - objectAttrs["group_name"] = types.StringType - objectAttrs["name_on_audit"] = types.StringType - objectAttrs["reviewed_at"] = types.StringType - objectAttrs["reviewed_by"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["submitted_at"] = types.StringType - objectAttrs["submitted_by"] = types.StringType + objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse)} + objectAttrs["base_dn"] = types.StringType + objectAttrs["bind_dn"] = types.StringType + objectAttrs["bind_password"] = types.StringType + objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} + objectAttrs["failover_host"] = types.StringType + objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} + objectAttrs["group_dn"] = types.StringType + objectAttrs["host"] = types.StringType + objectAttrs["object_classes"] = types.StringType + objectAttrs["port"] = types.Int64Type + objectAttrs["service_account_dn"] = types.StringType + objectAttrs["ssh_public_key_supported"] = types.BoolType + objectAttrs["tls"] = types.StringType + objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} + objectAttrs["user_dn"] = types.StringType return objectAttrs } -func objectAttrsTypeDSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["account_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeDSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} + objectAttrs["number_of_failed_calls"] = types.Int64Type + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType return objectAttrs } -func objectAttrsTypeDSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false)["items"] objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] } - objectAttrs["provisioned_system_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeDSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["provisioned_system_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["created_at"] = types.StringType - objectAttrs["errors"] = types.Int64Type - objectAttrs["log"] = types.StringType - objectAttrs["modifications"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["service_account_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["webhook_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} - objectAttrs["reponse_headers"] = types.StringType - objectAttrs["request_headers"] = types.StringType - objectAttrs["response"] = types.StringType - objectAttrs["status"] = types.Int64Type - objectAttrs["time"] = types.Int64Type - objectAttrs["trigger_time"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificate(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryLDAPDirectory(recurse)} - objectAttrs["expiration"] = types.StringType - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)} - objectAttrs["usage"] = types.StringType - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["due_date"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} - objectAttrs["notification_group_audit_required_notification_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse)} - objectAttrs["reason"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_accounts"] = types.Int64Type - objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLicenseKeyHubLicenseInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["admins"] = types.ListType{ElemType: types.StringType} - objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSNotificationNotifications(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSNotificationNotification(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["api_version"] = types.Int64Type - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["systems"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["released_at"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationAccountOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["depth"] = types.Int64Type - objectAttrs["description"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["parent"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse)} - objectAttrs["base_dn"] = types.StringType - objectAttrs["bind_dn"] = types.StringType - objectAttrs["bind_password"] = types.StringType - objectAttrs["client_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} - objectAttrs["failover_host"] = types.StringType - objectAttrs["failover_trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} - objectAttrs["group_dn"] = types.StringType - objectAttrs["host"] = types.StringType - objectAttrs["object_classes"] = types.StringType - objectAttrs["port"] = types.Int64Type - objectAttrs["service_account_dn"] = types.StringType - objectAttrs["ssh_public_key_supported"] = types.BoolType - objectAttrs["tls"] = types.StringType - objectAttrs["trusted_certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSCertificateCertificatePrimer(recurse)} - objectAttrs["user_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["description"] = types.StringType - objectAttrs["result"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupProvisioningGroup(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatus(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["number_of_failed_calls"] = types.Int64Type - objectAttrs["number_of_not_permitted_calls"] = types.Int64Type - objectAttrs["number_of_successful_calls"] = types.Int64Type - objectAttrs["state"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(false)["items"] - objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)["items"] - objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"] - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupFolder(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroup(recurse)} - objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["provisioning_permission_end_time"] = types.StringType - objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAccountProvisioningStatusReport(recurse)} - objectAttrs["visible_on_dashboard"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} - objectAttrs["unlinked_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["systems"] = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(false)["items"] - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["name"] = types.StringType - objectAttrs["next_uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["systems"] = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"] - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["sam_account_name_scheme"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} - objectAttrs["group_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(false)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["issued_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] - objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(false)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(false)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} - objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - objectAttrs["type"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["created_at"] = types.StringType - objectAttrs["errors"] = types.Int64Type - objectAttrs["log"] = types.StringType - objectAttrs["modifications"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemSyncLog(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["issued_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] - objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["create_new_groups_allowed"] = types.BoolType - objectAttrs["create_service_accounts_allowed"] = types.BoolType - objectAttrs["reuse_existing_groups_allowed"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupProvisioningStatus(recurse)}} - objectAttrs["ignore_errors"] = types.BoolType - objectAttrs["restricted_by_license"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSProvisioningTokenPassword(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["application"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientClientApplicationPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["end_date"] = types.StringType - objectAttrs["make_manager"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeDSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["new_admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system_type"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["username"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestDisable2FARequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["subject"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["extend_until"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["permission_type"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} return objectAttrs } -func objectAttrsTypeDSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} return objectAttrs } -func objectAttrsTypeDSRequestModificationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(false)} - } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(false)} - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAddGroupAdminRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantApplicationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupNestedGroupRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestVerifyInternalAccountRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinGroupRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestDisable2FARequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferAuditorGroupRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestReviewAuditRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestExtendAccessRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveGroupRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRevokeAdminRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantAccessRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestJoinVaultRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestGrantClientPermissionRequest(false)} - return objectAttrs -} - -func objectAttrsTypeDSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRequestModificationRequest(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse)} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["types"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeDSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["cooldown_end"] = types.StringType - objectAttrs["managers"] = types.ListType{ElemType: types.StringType} - objectAttrs["nr_accepted"] = types.Int64Type - objectAttrs["reset_via_mail"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["provgroups"] = objectAttrsTypeDSGroupProvisioningGroupLinkableWrapper(recurse)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"] return objectAttrs } -func objectAttrsTypeDSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["group_name"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type return objectAttrs } -func objectAttrsTypeDSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["organizational_unit_name"] = types.StringType + if recurse { + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["systems"] = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(false)["items"] + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_uid"] = types.Int64Type return objectAttrs } -func objectAttrsTypeDSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["system_name"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["systems"] = objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"] return objectAttrs } -func objectAttrsTypeDSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["admin"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} + if recurse { + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["last_active"] = types.StringType + objectAttrs["username"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["validity"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["uid"] = types.Int64Type return objectAttrs } -func objectAttrsTypeDSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["authorizing_group_type"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeDSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account_action"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientLdapClient(recurse)} return objectAttrs } -func objectAttrsTypeDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystem(recurse)} + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionNumberSequence(recurse)} return objectAttrs } -func objectAttrsTypeDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSDirectoryAccountDirectoryPrimer(recurse)} + objectAttrs["group_dn"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} + objectAttrs["issued_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(false)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(false)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["additional"] = types.ListType{ElemType: types.StringType} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(false)} + objectAttrs["username_prefix"] = types.StringType + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } -func objectAttrsTypeDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystem(recurse)}} return objectAttrs } -func objectAttrsTypeDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSOrganizationOrganizationalUnitPrimer(recurse)} + objectAttrs["type"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeDSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountPrimer(recurse)} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedSystemPrimer(recurse)}} return objectAttrs } -func objectAttrsTypeDSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account_to_update"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} - objectAttrs["current_end_date"] = types.StringType - objectAttrs["current_rights"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["update_group_membership_type"] = types.StringType + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} + objectAttrs["issued_permissions"] = objectAttrsTypeDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningGroupOnSystemTypes(recurse)} return objectAttrs } -func objectAttrsTypeDSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeDSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_account_name"] = types.StringType + objectAttrs["create_new_groups_allowed"] = types.BoolType + objectAttrs["create_service_accounts_allowed"] = types.BoolType + objectAttrs["reuse_existing_groups_allowed"] = types.BoolType return objectAttrs } @@ -2566,12 +1284,6 @@ func objectAttrsTypeDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse return objectAttrs } -func objectAttrsTypeDSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - return objectAttrs -} - func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} @@ -2580,89 +1292,6 @@ func objectAttrsTypeDSServiceaccountServiceAccount_additionalObjects(recurse boo return objectAttrs } -func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["disabled_count"] = types.Int64Type - objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} - objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeDSSimpleStringValue(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSSimpleVersionInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} - objectAttrs["key_hub_version"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["name"] = types.StringType - objectAttrs["record_count"] = types.Int64Type - objectAttrs["vault_deleted_vault_holder_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultDeletedVaultHolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["prefix"] = types.StringType - objectAttrs["private_key"] = types.StringType - objectAttrs["target_group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} - objectAttrs["action"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSGroupGroupPrimer(recurse)} - objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - func objectAttrsTypeDSVaultPasswordMetadata(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["dictionary"] = types.BoolType @@ -2721,12 +1350,6 @@ func objectAttrsTypeDSVaultVaultRecord(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSVaultVaultRecord(recurse)}} - return objectAttrs -} - func objectAttrsTypeDSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} @@ -2780,26 +1403,6 @@ func objectAttrsTypeDSVaultVaultRecord_additionalObjects(recurse bool) map[strin return objectAttrs } -func objectAttrsTypeDSVaultVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuthAccountPrimer(recurse)} - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultUnlock(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["expires_at"] = types.StringType - objectAttrs["session_password"] = types.StringType - return objectAttrs -} - func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -2832,76 +1435,12 @@ func objectAttrsTypeDSWebhookWebhook(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeDSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["additional"] = types.ListType{ElemType: types.StringType} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookPush(false)} - objectAttrs["reponse_headers"] = types.StringType - objectAttrs["request_headers"] = types.StringType - objectAttrs["response"] = types.StringType - objectAttrs["status"] = types.Int64Type - objectAttrs["time"] = types.Int64Type - objectAttrs["trigger_time"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookDelivery(recurse)}} - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} - return objectAttrs -} - func objectAttrsTypeDSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhook(recurse)}} return objectAttrs } -func objectAttrsTypeDSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeDSLinkable(recurse)} - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeDSWebhookWebhookPush(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["security_level"] = types.StringType - objectAttrs["seq"] = types.Int64Type - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["timestamp"] = types.StringType - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeDSWebhookWebhookNameUuid(recurse)} - objectAttrs["type"] = types.StringType - return objectAttrs -} - func objectAttrsTypeDSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeDSAuditInfo(recurse)} diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 9cda1d7..58f0acd 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -17,24 +17,6 @@ func objectAttrsTypeRSAuditInfo(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSErrorReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["application_error"] = types.StringType - objectAttrs["application_error_parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse)} - objectAttrs["code"] = types.Int64Type - objectAttrs["error_details"] = types.ListType{ElemType: types.StringType} - objectAttrs["exception"] = types.StringType - objectAttrs["message"] = types.StringType - objectAttrs["reason"] = types.StringType - objectAttrs["stacktrace"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSErrorReport_applicationErrorParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeRSGeneratedSecret(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["generated_secret"] = types.StringType @@ -64,143 +46,6 @@ func objectAttrsTypeRSRestLink(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSSegmentCount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["count"] = types.Int64Type - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAccountVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["delete_tile"] = types.BoolType - objectAttrs["parent_uuid"] = types.StringType - objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} - objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} - } - objectAttrs["account_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuditAuditRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["type"] = types.StringType - objectAttrs["date_time"] = types.StringType - objectAttrs["on_account"] = types.StringType - objectAttrs["on_certificate"] = types.StringType - objectAttrs["on_client"] = types.StringType - objectAttrs["on_directory"] = types.StringType - objectAttrs["on_group"] = types.StringType - objectAttrs["on_group2"] = types.StringType - objectAttrs["on_group_classification"] = types.StringType - objectAttrs["on_organizational_unit"] = types.StringType - objectAttrs["on_service_account"] = types.StringType - objectAttrs["on_system"] = types.StringType - objectAttrs["on_vault_record"] = types.StringType - objectAttrs["on_webhook"] = types.StringType - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["performed_by"] = types.StringType - objectAttrs["security_level"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuditAuditRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuditAuditRecord(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSAuditAuditRecord_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["active_login"] = types.BoolType - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["groups"] = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(false)["items"] - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(false)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(false)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["last_active"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["validity"] = types.StringType - objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(false)}} - objectAttrs["active"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_password_change_required"] = types.BoolType - objectAttrs["directory_rotating_password"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["email"] = types.StringType - objectAttrs["id_in_directory"] = types.StringType - objectAttrs["key_hub_password_change_required"] = types.BoolType - objectAttrs["last_modified_at"] = types.StringType - objectAttrs["license_role"] = types.StringType - objectAttrs["locale"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["token_password_enabled"] = types.BoolType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["valid_in_directory"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountBulkUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["action"] = types.StringType - objectAttrs["exclusive_selection"] = types.BoolType - objectAttrs["selected_accounts"] = types.ListType{ElemType: types.Int64Type} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountChangeLocale(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["locale"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccount(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSAuthAccountPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -213,107 +58,6 @@ func objectAttrsTypeRSAuthAccountPrimer(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSAuthAccountRecoveryStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["pending2fa_recovery_request"] = types.BoolType - objectAttrs["pending_password_recovery_request"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountSettings(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["default_organizational_unit_uuid"] = types.StringType - objectAttrs["directory_name"] = types.StringType - objectAttrs["directory_type"] = types.StringType - objectAttrs["in_groups"] = types.BoolType - objectAttrs["in_multiple_organizational_units"] = types.BoolType - objectAttrs["key_hub_admin"] = types.BoolType - objectAttrs["multiple_organizational_units_exist"] = types.BoolType - objectAttrs["password_mode"] = types.StringType - objectAttrs["ssh_public_key"] = types.StringType - objectAttrs["two_factor_authentication"] = types.StringType - objectAttrs["use_token_password"] = types.BoolType - objectAttrs["vault_status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - objectAttrs["can_request_groups"] = types.BoolType - objectAttrs["decline_recovery_requests"] = types.BoolType - objectAttrs["license_role"] = types.StringType - objectAttrs["reregistration_required"] = types.BoolType - objectAttrs["two_factor_authentication_enabled"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSAuthAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_login"] = types.BoolType - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["groups"] = objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse)["items"] - objectAttrs["pending_recovery_requests"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountRecoveryStatus(recurse)} - objectAttrs["settings"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountSettings(recurse)} - objectAttrs["stored_attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttributes(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse)} - objectAttrs["two_fa_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse)} - objectAttrs["validity_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats_directoryStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSAuthAccountsAuditStats_validityStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSAuthInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["uuid"] = types.StringType - objectAttrs["activation_code"] = types.StringType - objectAttrs["activation_deadline"] = types.StringType - objectAttrs["company"] = types.StringType - objectAttrs["first_name"] = types.StringType - objectAttrs["last_name"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["telephone"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthInternalAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthInternalAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSAuthInternalAccountStatusObject(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthMoveInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(recurse)} - return objectAttrs -} - func objectAttrsTypeRSAuthPermission(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["full"] = types.StringType @@ -323,45 +67,6 @@ func objectAttrsTypeRSAuthPermission(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSAuthStoredAccountAttribute(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSAuthStoredAccountAttributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthStoredAccountAttribute(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSCertificateCertificate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["alias"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["certificate_data"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration"] = types.StringType - objectAttrs["fingerprint_sha1"] = types.StringType - objectAttrs["fingerprint_sha256"] = types.StringType - objectAttrs["global"] = types.BoolType - objectAttrs["subject_dn"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["key_data"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSCertificateCertificateLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -378,12 +83,6 @@ func objectAttrsTypeRSCertificateCertificatePrimer(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeRSCertificateCertificate_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - func objectAttrsTypeRSClientApplicationVaultVaultRecord(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -436,8 +135,8 @@ func objectAttrsTypeRSClientClientApplication(recurse bool) map[string]attr.Type objectAttrs["last_modified_at"] = types.StringType objectAttrs["owner_uuid"] = types.StringType objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(false)} + objectAttrs["o_auth2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} objectAttrs["saml2_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client(false)} return objectAttrs } @@ -513,12 +212,6 @@ func objectAttrsTypeRSClientOAuth2ClientPermission(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2ClientPermission(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -564,36 +257,6 @@ func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeRSDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["delete_tile"] = types.BoolType - objectAttrs["parent_uuid"] = types.StringType - objectAttrs["password_metadata"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultPasswordMetadata(false)} - objectAttrs["secret"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordSecrets(false)} - objectAttrs["share_summary"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordShareSummary(false)} - objectAttrs["shares"] = objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(false)["items"] - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["vaultholder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultHolder(false)} - } - objectAttrs["deleted_vault_holder_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["color"] = types.StringType - objectAttrs["name"] = types.StringType - objectAttrs["share_end_time"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["derived"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["filename"] = types.StringType - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - objectAttrs["url"] = types.StringType - objectAttrs["username"] = types.StringType - objectAttrs["warning_period"] = types.StringType - return objectAttrs -} - func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -614,10 +277,10 @@ func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Ty objectAttrs["restrict2fa"] = types.BoolType objectAttrs["rotating_password"] = types.StringType objectAttrs["username_customizable"] = types.BoolType - objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} + objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} objectAttrs["l_d_a_p_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(false)} objectAttrs["maintenance_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryMaintenanceDirectory(false)} - objectAttrs["internal_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryInternalDirectory(false)} + objectAttrs["o_id_c_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryOIDCDirectory(false)} return objectAttrs } @@ -720,35 +383,6 @@ func objectAttrsTypeRSDirectoryOIDCDirectory(recurse bool) map[string]attr.Type return objectAttrs } -func objectAttrsTypeRSGroupAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} - objectAttrs["last_used"] = types.StringType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupAccountGroupLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupAccountGroup(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupAccountGroup_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - return objectAttrs -} - func objectAttrsTypeRSGroupAuthorizedGroupsWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} @@ -840,32 +474,13 @@ func objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse bool) map[string] return objectAttrs } -func objectAttrsTypeRSGroupGroupAccountNesting(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["connected"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - func objectAttrsTypeRSGroupGroupAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeRSGroupGroupAdminMail(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["body"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupAudit(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSGroupGroupAudit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} @@ -938,43 +553,6 @@ func objectAttrsTypeRSGroupGroupAuditingInfo(recurse bool) map[string]attr.Type return objectAttrs } -func objectAttrsTypeRSGroupGroupClassification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassificationInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["authorizing_group_auditing_required"] = types.BoolType - objectAttrs["authorizing_group_delegation_required"] = types.BoolType - objectAttrs["authorizing_group_membership_required"] = types.BoolType - objectAttrs["authorizing_group_provisioning_required"] = types.BoolType - objectAttrs["default_classification"] = types.BoolType - objectAttrs["description"] = types.StringType - objectAttrs["maximum_audit_interval"] = types.Int64Type - objectAttrs["minimum_nr_managers"] = types.Int64Type - objectAttrs["record_trail_required"] = types.BoolType - objectAttrs["required_months"] = types.ListType{ElemType: types.StringType} - objectAttrs["rotating_password_required"] = types.BoolType - objectAttrs["vault_requires_activation"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassificationInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nr_groups"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassificationLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSGroupGroupClassificationPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -984,19 +562,6 @@ func objectAttrsTypeRSGroupGroupClassificationPrimer(recurse bool) map[string]at return objectAttrs } -func objectAttrsTypeRSGroupGroupClassificationUpdate(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["classificaton_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupClassification_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassificationInfo(recurse)} - return objectAttrs -} - func objectAttrsTypeRSGroupGroupClient(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -1024,29 +589,6 @@ func objectAttrsTypeRSGroupGroupClient_additionalObjects(recurse bool) map[strin return objectAttrs } -func objectAttrsTypeRSGroupGroupFolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupFolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSGroupGroupFolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - func objectAttrsTypeRSGroupGroupInfo(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["nr_accounts"] = types.Int64Type @@ -1080,13 +622,6 @@ func objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]a return objectAttrs } -func objectAttrsTypeRSGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)}} - objectAttrs["segments"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSSegmentCount(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSGroupGroup_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["accounts"] = objectAttrsTypeRSGroupGroupAccountLinkableWrapper(recurse)["items"] @@ -1119,18 +654,6 @@ func objectAttrsTypeRSGroupGroup_additionalObjects(recurse bool) map[string]attr return objectAttrs } -func objectAttrsTypeRSGroupGroupsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audited_groups"] = types.Int64Type - objectAttrs["classifications"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupClassification(recurse)}} - objectAttrs["overdue_audit_groups"] = types.Int64Type - objectAttrs["overdue_vault_policies"] = types.Int64Type - objectAttrs["unaudited_groups"] = types.Int64Type - objectAttrs["valid_vault_policies"] = types.Int64Type - objectAttrs["vaults_without_policies"] = types.Int64Type - return objectAttrs -} - func objectAttrsTypeRSGroupProvisioningGroup(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -1186,70 +709,6 @@ func objectAttrsTypeRSGroupVaultVaultRecord(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse)} - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadDisplayedLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["application_uuid"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["identicon_code"] = types.Int64Type - objectAttrs["launchpad_launchpad_tile_type"] = types.StringType - objectAttrs["logo"] = types.ListType{ElemType: types.StringType} - objectAttrs["vault_record_uuid"] = types.StringType - objectAttrs["vault_record_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(false)} - objectAttrs["sso_application_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(false)} - objectAttrs["manual_launchpad_tile"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadManualLaunchpadTile(false)} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSLaunchpadLaunchpadTile(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTilePrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSLaunchpadManualLaunchpadTile(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["title"] = types.StringType - objectAttrs["uri"] = types.StringType - return objectAttrs -} - func objectAttrsTypeRSLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["uri"] = types.StringType @@ -1261,27 +720,6 @@ func objectAttrsTypeRSLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string return objectAttrs } -func objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["current_license_status"] = types.StringType - objectAttrs["customer_company"] = types.StringType - objectAttrs["customer_contact"] = types.StringType - objectAttrs["customer_domains"] = types.ListType{ElemType: types.StringType} - objectAttrs["details"] = types.ListType{ElemType: types.StringType} - objectAttrs["expiration_time"] = types.StringType - objectAttrs["features"] = types.ListType{ElemType: types.StringType} - objectAttrs["issue_time"] = types.StringType - objectAttrs["key_hub_domain"] = types.StringType - objectAttrs["license_key"] = types.StringType - objectAttrs["not_before_time"] = types.StringType - objectAttrs["users_hard_limit"] = types.Int64Type - objectAttrs["users_pro_limit"] = types.Int64Type - objectAttrs["users_soft_limit"] = types.Int64Type - objectAttrs["uuid"] = types.StringType - objectAttrs["version"] = types.Int64Type - return objectAttrs -} - func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType @@ -1301,113 +739,6 @@ func objectAttrsTypeRSMarkItemMarkers(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSNestedAuthInternalAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_directory_uuid"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["activation_code"] = types.StringType - objectAttrs["activation_deadline"] = types.StringType - objectAttrs["company"] = types.StringType - objectAttrs["first_name"] = types.StringType - objectAttrs["last_name"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["telephone"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNestedClientOAuth2ClientPermission(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["client_application_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["for_group_uuid"] = types.StringType - objectAttrs["for_system_uuid"] = types.StringType - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNestedGroupAccountGroup(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} - } - objectAttrs["account_uuid"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(false)} - objectAttrs["last_used"] = types.StringType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSNestedGroupGroupAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["group_uuid"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["disconnected_nested"] = types.BoolType - objectAttrs["end_date"] = types.StringType - objectAttrs["last_used"] = types.StringType - objectAttrs["nested"] = types.BoolType - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["two_factor_status"] = types.StringType - objectAttrs["visible_for_provisioning"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSNestedGroupGroupAudit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["group_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["accounts"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupAuditAccount(false)}} - objectAttrs["comment"] = types.StringType - objectAttrs["created_at"] = types.StringType - objectAttrs["created_by"] = types.StringType - objectAttrs["group_name"] = types.StringType - objectAttrs["name_on_audit"] = types.StringType - objectAttrs["reviewed_at"] = types.StringType - objectAttrs["reviewed_by"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["submitted_at"] = types.StringType - objectAttrs["submitted_by"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["account_uuid"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - return objectAttrs -} - func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -1426,249 +757,52 @@ func objectAttrsTypeRSNestedProvisioningGroupOnSystem(recurse bool) map[string]a return objectAttrs } -func objectAttrsTypeRSNestedProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["provisioned_system_uuid"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["create_as_parent_of"] = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(false)["items"] } - objectAttrs["provisioned_system_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["created_at"] = types.StringType - objectAttrs["errors"] = types.Int64Type - objectAttrs["log"] = types.StringType - objectAttrs["modifications"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["depth"] = types.Int64Type + objectAttrs["description"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["parent_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRSNestedServiceaccountServiceAccountGroup(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["service_account_uuid"] = types.StringType - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit(recurse)}} return objectAttrs } -func objectAttrsTypeRSNestedWebhookWebhookDelivery(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["webhook_uuid"] = types.StringType objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} - objectAttrs["reponse_headers"] = types.StringType - objectAttrs["request_headers"] = types.StringType - objectAttrs["response"] = types.StringType - objectAttrs["status"] = types.Int64Type - objectAttrs["time"] = types.Int64Type - objectAttrs["trigger_time"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNotificationCertificateExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSCertificateCertificate(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSDirectoryLDAPDirectory(recurse)} - objectAttrs["expiration"] = types.StringType - objectAttrs["ldap_client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)} - objectAttrs["usage"] = types.StringType - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationGroupAuditRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["due_date"] = types.StringType - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} - objectAttrs["notification_group_audit_required_notification_type"] = types.StringType + objectAttrs["name"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRSNotificationGroupEditRequiredNotification(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse)} - objectAttrs["reason"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeRSNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["create_as_parent_of"] = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"] return objectAttrs } -func objectAttrsTypeRSNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSNotificationLicenseStatusNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["active_accounts"] = types.Int64Type - objectAttrs["license_info"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLicenseKeyHubLicenseInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationModificationRequestNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["admins"] = types.ListType{ElemType: types.StringType} - objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - objectAttrs["request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSNotificationNotifications(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSNotificationNotification(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSNotificationOldApiVersionUsageNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["api_version"] = types.Int64Type - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSNotificationProvisionConfigRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["systems"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSNotificationUpdateAvailableNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["released_at"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSNotificationVaultRecordExpiredNotification(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationAccountOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnit(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["create_as_parent_of"] = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(false)["items"] - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["depth"] = types.Int64Type - objectAttrs["description"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["parent_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnit(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["create_as_parent_of"] = objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"] - return objectAttrs -} - -func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse)} objectAttrs["base_dn"] = types.StringType @@ -1694,657 +828,241 @@ func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse boo return objectAttrs } -func objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["description"] = types.StringType - objectAttrs["result"] = types.StringType - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupProvisioningGroup(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["status"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatus(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["number_of_failed_calls"] = types.Int64Type - objectAttrs["number_of_not_permitted_calls"] = types.Int64Type - objectAttrs["number_of_successful_calls"] = types.Int64Type - objectAttrs["state"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false)["items"] - objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["display_name"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["short_name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["types"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)["items"] - objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"] - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["folder"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupFolder(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroup(recurse)} - objectAttrs["provisioning_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse)} - objectAttrs["provisioning_end_time"] = types.StringType - objectAttrs["provisioning_permission_end_time"] = types.StringType - objectAttrs["status_report"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAccountProvisioningStatusReport(recurse)} - objectAttrs["visible_on_dashboard"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} - objectAttrs["unlinked_count"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["systems"] = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(false)["items"] - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_count"] = types.Int64Type - objectAttrs["name"] = types.StringType - objectAttrs["next_uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["systems"] = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"] - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["sam_account_name_scheme"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["uuid"] = types.StringType - objectAttrs["uid"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["client_id"] = types.StringType - objectAttrs["client_secret"] = types.StringType - objectAttrs["idp_domain"] = types.StringType - objectAttrs["tenant"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["gid"] = types.Int64Type - objectAttrs["hashing_scheme"] = types.StringType - objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["directory_uuid"] = types.StringType - objectAttrs["group_dn"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(false)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["issued_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] - objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(false)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(false)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["uuid"] = types.StringType - objectAttrs["account_count"] = types.Int64Type - objectAttrs["content_administrator_uuid"] = types.StringType - objectAttrs["external_uuid"] = types.StringType - objectAttrs["owner_uuid"] = types.StringType - objectAttrs["self_service_existing_groups"] = types.BoolType - objectAttrs["self_service_new_groups"] = types.BoolType - objectAttrs["self_service_service_accounts"] = types.BoolType - objectAttrs["should_destroy_unknown_accounts"] = types.BoolType - objectAttrs["technical_administrator_uuid"] = types.StringType - objectAttrs["username_prefix"] = types.StringType - objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} - objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} - objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} - objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} - objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} - objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} - objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} - objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["active"] = types.BoolType - objectAttrs["name"] = types.StringType - objectAttrs["organizational_unit_uuid"] = types.StringType - objectAttrs["type"] = types.StringType - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["created_at"] = types.StringType - objectAttrs["errors"] = types.Int64Type - objectAttrs["log"] = types.StringType - objectAttrs["modifications"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemSyncLog(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["issued_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] - objectAttrs["login_name"] = types.StringType - objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse)} - objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} - objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse)} - objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["create_new_groups_allowed"] = types.BoolType - objectAttrs["create_service_accounts_allowed"] = types.BoolType - objectAttrs["reuse_existing_groups_allowed"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningProvisioningStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["groups"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupProvisioningStatus(recurse)}} - objectAttrs["ignore_errors"] = types.BoolType - objectAttrs["restricted_by_license"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSProvisioningTokenPassword(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestAbstractApplicationModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["application_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["organizational_unit_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["access_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["end_date"] = types.StringType - objectAttrs["make_manager"] = types.BoolType - return objectAttrs -} - -func objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSRequestAddGroupAdminRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["new_admin_uuid"] = types.StringType - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestCreateGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system_type"] = types.StringType - objectAttrs["name_in_system"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestCreateGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group_name"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestCreateServiceAccountRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["username"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestDisable2FARequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["subject"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSRequestExtendAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["extend_until"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantAccessRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantApplicationRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantClientPermissionRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["permission_type"] = types.StringType - objectAttrs["system_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantGroupOnSystemRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["activation_required"] = types.BoolType - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} - objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["number_of_not_permitted_calls"] = types.Int64Type + objectAttrs["number_of_successful_calls"] = types.Int64Type + objectAttrs["state"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestJoinGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningGroupOnSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(false)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(false)["items"] + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestJoinVaultRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} return objectAttrs } -func objectAttrsTypeRSRequestModificationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningGroupOnSystemPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptModificationRequestParameters(false)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequestStatus(false)} - } objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["account_uuid"] = types.StringType - objectAttrs["comment"] = types.StringType - objectAttrs["feedback"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["mail_key"] = types.StringType - objectAttrs["request_modification_request_type"] = types.StringType - objectAttrs["status"] = types.StringType - objectAttrs["enable_technical_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestEnableTechnicalAdministrationRequest(false)} - objectAttrs["abstract_application_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractApplicationModificationRequest(false)} - objectAttrs["transfer_application_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(false)} - objectAttrs["password_reset_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequest(false)} - objectAttrs["abstract_provisioned_system_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractProvisionedSystemModificationRequest(false)} - objectAttrs["transfer_provisioned_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(false)} - objectAttrs["add_group_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAddGroupAdminRequest(false)} - objectAttrs["abstract_organizational_unit_modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAbstractOrganizationalUnitModificationRequest(false)} - objectAttrs["create_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupRequest(false)} - objectAttrs["remove_provisioned_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(false)} - objectAttrs["grant_application_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantApplicationRequest(false)} - objectAttrs["create_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateGroupOnSystemRequest(false)} - objectAttrs["setup_nested_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupNestedGroupRequest(false)} - objectAttrs["verify_internal_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestVerifyInternalAccountRequest(false)} - objectAttrs["grant_group_on_system_request_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequestRequest(false)} - objectAttrs["join_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinGroupRequest(false)} - objectAttrs["transfer_organizational_unit_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(false)} - objectAttrs["disable2fa_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestDisable2FARequest(false)} - objectAttrs["transfer_provisioned_system_content_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(false)} - objectAttrs["grant_group_on_system_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantGroupOnSystemRequest(false)} - objectAttrs["transfer_application_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(false)} - objectAttrs["transfer_group_on_system_ownership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(false)} - objectAttrs["transfer_service_account_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(false)} - objectAttrs["transfer_auditor_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferAuditorGroupRequest(false)} - objectAttrs["review_audit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestReviewAuditRequest(false)} - objectAttrs["update_group_membership_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestUpdateGroupMembershipRequest(false)} - objectAttrs["extend_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestExtendAccessRequest(false)} - objectAttrs["remove_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveGroupRequest(false)} - objectAttrs["revoke_admin_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRevokeAdminRequest(false)} - objectAttrs["grant_service_account_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantServiceAccountGroupRequest(false)} - objectAttrs["setup_authorizing_group_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(false)} - objectAttrs["transfer_provisioned_system_administration_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(false)} - objectAttrs["grant_access_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantAccessRequest(false)} - objectAttrs["join_vault_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestJoinVaultRequest(false)} - objectAttrs["remove_organizational_unit_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(false)} - objectAttrs["create_service_account_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestCreateServiceAccountRequest(false)} - objectAttrs["grant_client_permission_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestGrantClientPermissionRequest(false)} - return objectAttrs -} - -func objectAttrsTypeRSRequestModificationRequestLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRequestModificationRequest(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSRequestModificationRequest_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["accept_params"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestAcceptModificationRequestParameters(recurse)} - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["reset_status"] = types.ObjectType{AttrTypes: objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse)} + objectAttrs["display_name"] = types.StringType + objectAttrs["name_in_system"] = types.StringType + objectAttrs["type"] = types.StringType + objectAttrs["short_name_in_system"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestPasswordResetRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["new_vault_and_directory_password"] = types.StringType - objectAttrs["new_vault_password"] = types.StringType - objectAttrs["unsynced_password"] = types.BoolType + objectAttrs["types"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeRSRequestPasswordResetRequestStatus(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["cooldown_end"] = types.StringType - objectAttrs["managers"] = types.ListType{ElemType: types.StringType} - objectAttrs["nr_accepted"] = types.Int64Type - objectAttrs["reset_via_mail"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["provgroups"] = objectAttrsTypeRSGroupProvisioningGroupLinkableWrapper(recurse)["items"] + objectAttrs["service_accounts"] = objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"] return objectAttrs } -func objectAttrsTypeRSRequestRemoveGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["group_name"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)}} + objectAttrs["unlinked_count"] = types.Int64Type return objectAttrs } -func objectAttrsTypeRSRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["organizational_unit_name"] = types.StringType + if recurse { + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["systems"] = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(false)["items"] + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["account_count"] = types.Int64Type + objectAttrs["name"] = types.StringType + objectAttrs["next_uid"] = types.Int64Type return objectAttrs } -func objectAttrsTypeRSRequestRemoveProvisionedSystemRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["system_name"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["systems"] = objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"] return objectAttrs } -func objectAttrsTypeRSRequestReviewAuditRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedAD(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["sam_account_name_scheme"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestRevokeAdminRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedAccount(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["admin_uuid"] = types.StringType + if recurse { + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + } + objectAttrs["uuid"] = types.StringType + objectAttrs["uid"] = types.Int64Type return objectAttrs } -func objectAttrsTypeRSRequestSetupAuthorizingGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["authorizing_group_type"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group_uuid"] = types.StringType + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} return objectAttrs } -func objectAttrsTypeRSRequestSetupNestedGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account_action"] = types.StringType - objectAttrs["connect"] = types.BoolType - objectAttrs["requesting_group_uuid"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestTransferApplicationAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestTransferApplicationOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["client_id"] = types.StringType + objectAttrs["client_secret"] = types.StringType + objectAttrs["idp_domain"] = types.StringType + objectAttrs["tenant"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestTransferAuditorGroupRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} return objectAttrs } -func objectAttrsTypeRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["group_on_system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystem(recurse)} + objectAttrs["gid"] = types.Int64Type + objectAttrs["hashing_scheme"] = types.StringType + objectAttrs["numbering"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionNumberSequence(recurse)} return objectAttrs } -func objectAttrsTypeRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["directory_uuid"] = types.StringType + objectAttrs["group_dn"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystem(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + if recurse { + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(false)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} + objectAttrs["issued_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false)["items"] + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(false)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(false)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(false)} + } + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["type"] = types.StringType + objectAttrs["uuid"] = types.StringType + objectAttrs["account_count"] = types.Int64Type + objectAttrs["content_administrator_uuid"] = types.StringType + objectAttrs["external_uuid"] = types.StringType + objectAttrs["owner_uuid"] = types.StringType + objectAttrs["self_service_existing_groups"] = types.BoolType + objectAttrs["self_service_new_groups"] = types.BoolType + objectAttrs["self_service_service_accounts"] = types.BoolType + objectAttrs["should_destroy_unknown_accounts"] = types.BoolType + objectAttrs["technical_administrator_uuid"] = types.StringType + objectAttrs["username_prefix"] = types.StringType + objectAttrs["abstract_provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(false)} + objectAttrs["provisioned_a_d"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAD(false)} + objectAttrs["provisioned_azure_oidc_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureOIDCDirectory(false)} + objectAttrs["provisioned_azure_sync_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureSyncLDAPDirectory(false)} + objectAttrs["provisioned_azure_tenant"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAzureTenant(false)} + objectAttrs["provisioned_internal_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedInternalLDAP(false)} + objectAttrs["provisioned_ldap"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAP(false)} + objectAttrs["provisioned_ldap_directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedLDAPDirectory(false)} return objectAttrs } -func objectAttrsTypeRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystem(recurse)}} return objectAttrs } -func objectAttrsTypeRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) + objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} + objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} + objectAttrs["active"] = types.BoolType + objectAttrs["name"] = types.StringType + objectAttrs["organizational_unit_uuid"] = types.StringType + objectAttrs["type"] = types.StringType + objectAttrs["uuid"] = types.StringType return objectAttrs } -func objectAttrsTypeRSRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["service_account_uuid"] = types.StringType + objectAttrs["items"] = types.ListType{ElemType: types.StringType} return objectAttrs } -func objectAttrsTypeRSRequestUpdateGroupMembershipRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["account_to_update_uuid"] = types.StringType - objectAttrs["current_end_date"] = types.StringType - objectAttrs["current_rights"] = types.StringType - objectAttrs["end_date"] = types.StringType - objectAttrs["rights"] = types.StringType - objectAttrs["update_group_membership_type"] = types.StringType + objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedAccount(recurse)} + objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} + objectAttrs["issued_permissions"] = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"] + objectAttrs["login_name"] = types.StringType + objectAttrs["management_permissions"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse)} + objectAttrs["markers"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarkers(recurse)} + objectAttrs["statistics"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse)} + objectAttrs["supported_group_types"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningGroupOnSystemTypes(recurse)} return objectAttrs } -func objectAttrsTypeRSRequestVerifyInternalAccountRequest(recurse bool) map[string]attr.Type { +func objectAttrsTypeRSProvisioningProvisioningManagementPermissions(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["internal_account_name"] = types.StringType + objectAttrs["create_new_groups_allowed"] = types.BoolType + objectAttrs["create_service_accounts_allowed"] = types.BoolType + objectAttrs["reuse_existing_groups_allowed"] = types.BoolType return objectAttrs } @@ -2419,12 +1137,6 @@ func objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse return objectAttrs } -func objectAttrsTypeRSServiceaccountServiceAccountStatus(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_enabled"] = types.BoolType - return objectAttrs -} - func objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} @@ -2433,88 +1145,6 @@ func objectAttrsTypeRSServiceaccountServiceAccount_additionalObjects(recurse boo return objectAttrs } -func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["disabled_count"] = types.Int64Type - objectAttrs["password_scheme_enabled_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse)} - objectAttrs["system_stats"] = types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - -func objectAttrsTypeRSSimpleStringValue(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["value"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSSimpleVersionInfo(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["contract_versions"] = types.ListType{ElemType: types.Int64Type} - objectAttrs["key_hub_version"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultHolder(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["name"] = types.StringType - objectAttrs["record_count"] = types.Int64Type - objectAttrs["vault_deleted_vault_holder_type"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultDeletedVaultHolder(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - objectAttrs["vault"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVault(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultDeletedVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["prefix"] = types.StringType - objectAttrs["private_key"] = types.StringType - objectAttrs["target_group_uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultMoveVaultRecord(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_uuid"] = types.StringType - objectAttrs["action"] = types.StringType - objectAttrs["group_uuid"] = types.StringType - objectAttrs["share_duration"] = types.ObjectType{AttrTypes: objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSVaultMoveVaultRecord_shareDuration(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["nanos"] = types.Int64Type - objectAttrs["seconds"] = types.Int64Type - return objectAttrs -} - func objectAttrsTypeRSVaultPasswordMetadata(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["dictionary"] = types.BoolType @@ -2573,12 +1203,6 @@ func objectAttrsTypeRSVaultVaultRecord(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSVaultVaultRecordLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} - return objectAttrs -} - func objectAttrsTypeRSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} @@ -2634,26 +1258,6 @@ func objectAttrsTypeRSVaultVaultRecord_additionalObjects(recurse bool) map[strin return objectAttrs } -func objectAttrsTypeRSVaultVaultRecovery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account_uuid"] = types.StringType - objectAttrs["private_key"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultUnlock(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["password"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSVaultVaultUnlockResponse(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["expires_at"] = types.StringType - objectAttrs["session_password"] = types.StringType - return objectAttrs -} - func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -2685,75 +1289,12 @@ func objectAttrsTypeRSWebhookWebhook(recurse bool) map[string]attr.Type { return objectAttrs } -func objectAttrsTypeRSWebhookWebhookDelivery(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - if recurse { - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(false)} - } - objectAttrs["links"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSRestLink(recurse)}} - objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["payload"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookPush(false)} - objectAttrs["reponse_headers"] = types.StringType - objectAttrs["request_headers"] = types.StringType - objectAttrs["response"] = types.StringType - objectAttrs["status"] = types.Int64Type - objectAttrs["time"] = types.Int64Type - objectAttrs["trigger_time"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookDelivery(recurse)}} - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} - return objectAttrs -} - func objectAttrsTypeRSWebhookWebhookLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhook(recurse)}} return objectAttrs } -func objectAttrsTypeRSWebhookWebhookNameUuid(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["name"] = types.StringType - objectAttrs["object"] = types.ObjectType{AttrTypes: objectAttrsTypeRSLinkable(recurse)} - objectAttrs["uuid"] = types.StringType - return objectAttrs -} - -func objectAttrsTypeRSWebhookWebhookPush(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - objectAttrs["account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["by_party"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["certificate"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["directory"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["group"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["group2"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["group_classification"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["modification_request"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["organizational_unit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["parameter1"] = types.StringType - objectAttrs["parameter2"] = types.StringType - objectAttrs["parameter3"] = types.StringType - objectAttrs["security_level"] = types.StringType - objectAttrs["seq"] = types.Int64Type - objectAttrs["service_account"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["system"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["timestamp"] = types.StringType - objectAttrs["vault_record"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["webhook"] = types.ObjectType{AttrTypes: objectAttrsTypeRSWebhookWebhookNameUuid(recurse)} - objectAttrs["type"] = types.StringType - return objectAttrs -} - func objectAttrsTypeRSWebhookWebhook_additionalObjects(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["audit"] = types.ObjectType{AttrTypes: objectAttrsTypeRSAuditInfo(recurse)} diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 706d450..7d497b5 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -30,44 +30,6 @@ func dataSourceSchemaAttrsAuditInfo(recurse bool) map[string]dsschema.Attribute } return schemaAttrs } -func dataSourceSchemaAttrsErrorReport(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["application_error"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), - } - attr.Computed = true - schemaAttrs["application_error_parameters"] = attr - } - schemaAttrs["code"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["error_details"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["exception"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["message"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reason"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["stacktrace"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} func dataSourceSchemaAttrsGeneratedSecret(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["generated_secret"] = dsschema.StringAttribute{ @@ -117,195 +79,6 @@ func dataSourceSchemaAttrsRestLink(recurse bool) map[string]dsschema.Attribute { } return schemaAttrs } -func dataSourceSchemaAttrsSegmentCount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) - } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["color"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["share_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", - )), - }, - } - schemaAttrs["derived"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["filename"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["warning_period"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["date_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_account"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_certificate"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_client"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_directory"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group2"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_group_classification"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_organizational_unit"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_service_account"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_vault_record"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["on_webhook"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter1"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter2"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter3"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["performed_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["security_level"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuditAuditRecord(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -335,6 +108,9 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, @@ -411,37 +187,6 @@ func dataSourceSchemaAttrsAuthAccount(recurse bool) map[string]dsschema.Attribut } return schemaAttrs } -func dataSourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["action"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["exclusive_selection"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["selected_accounts"] = dsschema.ListAttribute{ - ElementType: types.Int64Type, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["locale"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -468,6 +213,9 @@ func dataSourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]dsschema.At schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, @@ -528,28 +276,6 @@ func dataSourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]dsschema. } return schemaAttrs } -func dataSourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["decline_recovery_requests"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_authentication_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["active_login"] = dsschema.BoolAttribute{ @@ -597,205 +323,14 @@ func dataSourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string } return schemaAttrs } -func dataSourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsAuthPermission(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), - } - attr.Computed = true - schemaAttrs["directory_stats"] = attr + schemaAttrs["full"] = dsschema.StringAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), - } - attr.Computed = true - schemaAttrs["two_fa_stats"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), - } - attr.Computed = true - schemaAttrs["validity_stats"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuthAccount_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "activeLogin", "audit", "groups", "pendingRecoveryRequests", "settings", "storedAttributes", "vault", - )), - }, - } - schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["directory_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["email"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["locale"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["activation_code"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["company"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["first_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["telephone"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthInternalAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(recurse), - } - attr.Computed = true - schemaAttrs["internal_directory"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsAuthPermission(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["full"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["instances"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["instances"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, } schemaAttrs["operations"] = dsschema.ListAttribute{ ElementType: types.StringType, @@ -873,6 +408,7 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -890,16 +426,6 @@ func dataSourceSchemaAttrsCertificateCertificate(recurse bool) map[string]dssche } return schemaAttrs } -func dataSourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), - }, - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -944,6 +470,7 @@ func dataSourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string] Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -959,79 +486,6 @@ func dataSourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) } return schemaAttrs } -func dataSourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) - } - schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["color"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["share_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", - )), - }, - } - schemaAttrs["derived"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["filename"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["warning_period"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -1070,6 +524,7 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -1100,17 +555,17 @@ func dataSourceSchemaAttrsClientClientApplication(recurse bool) map[string]dssch } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), + Attributes: dataSourceSchemaAttrsClientLdapClient(false), } attr.Computed = true - schemaAttrs["o_auth2_client"] = attr + schemaAttrs["ldap_client"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(false), + Attributes: dataSourceSchemaAttrsClientOAuth2Client(false), } attr.Computed = true - schemaAttrs["ldap_client"] = attr + schemaAttrs["o_auth2_client"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -1166,6 +621,7 @@ func dataSourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -1331,17 +787,7 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string] } return schemaAttrs } -func dataSourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsClientOAuth2ClientPermission(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { maps.Copy(schemaAttrs, dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) @@ -1442,79 +888,6 @@ func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string] schemaAttrs := make(map[string]dsschema.Attribute) return schemaAttrs } -func dataSourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) - } - schemaAttrs["deleted_vault_holder_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["color"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["share_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", - )), - }, - } - schemaAttrs["derived"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["filename"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["warning_period"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -1549,6 +922,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -1588,10 +962,10 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), } attr.Computed = true - schemaAttrs["o_id_c_directory"] = attr + schemaAttrs["internal_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ @@ -1609,10 +983,10 @@ func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dss } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryInternalDirectory(false), + Attributes: dataSourceSchemaAttrsDirectoryOIDCDirectory(false), } attr.Computed = true - schemaAttrs["internal_directory"] = attr + schemaAttrs["o_id_c_directory"] = attr } return schemaAttrs } @@ -1657,6 +1031,7 @@ func dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[stri Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -1885,6 +1260,7 @@ func dataSourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]dsschema.At Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -1989,6 +1365,7 @@ func dataSourceSchemaAttrsGroupGroup(recurse bool) map[string]dsschema.Attribute Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -2127,6 +1504,9 @@ func dataSourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]dsschema.At schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, @@ -2183,27 +1563,6 @@ func dataSourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[str } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["connected"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - } - attr.Computed = true - schemaAttrs["folder"] = attr - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { @@ -2215,13 +1574,6 @@ func dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[ } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["body"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -2432,6 +1784,7 @@ func dataSourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]dssc Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -2489,16 +1842,6 @@ func dataSourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string] } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), - }, - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -2521,21 +1864,11 @@ func dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[strin Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupClassificationPrimer(recurse), - } - attr.Computed = true - schemaAttrs["classificaton"] = attr - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { @@ -2665,16 +1998,6 @@ func dataSourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]dsschema.Att } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - }, - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { @@ -2743,6 +2066,7 @@ func dataSourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]dsschema.Att Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -2757,22 +2081,6 @@ func dataSourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[stri } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - }, - Computed: true, - } - schemaAttrs["segments"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsSegmentCount(recurse), - }, - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { @@ -2929,34 +2237,6 @@ func dataSourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string] } return schemaAttrs } -func dataSourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["audited_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["classifications"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupClassification(recurse), - }, - Computed: true, - } - schemaAttrs["overdue_audit_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["overdue_vault_policies"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["unaudited_groups"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["valid_vault_policies"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["vaults_without_policies"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -3023,17 +2303,52 @@ func dataSourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) } return schemaAttrs } -func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) + schemaAttrs["uri"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + return schemaAttrs +} +func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["level"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["type"] = dsschema.StringAttribute{ + Computed: true, + } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), + } + attr.Computed = true + schemaAttrs["parameters"] = attr + } + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + return schemaAttrs +} +func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["markers"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3047,20 +2362,15 @@ func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschem }, Computed: true, } - schemaAttrs["color"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["share_end_time"] = dsschema.StringAttribute{ - Computed: true, - } schemaAttrs["uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -3068,35 +2378,43 @@ func dataSourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]dsschem Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "parent", "passwordMetadata", "secret", "shareSummary", "shares", "tile", "vaultholder", + "audit", )), }, } - schemaAttrs["derived"] = dsschema.BoolAttribute{ + schemaAttrs["depth"] = dsschema.Int64Attribute{ Computed: true, } - schemaAttrs["end_date"] = dsschema.StringAttribute{ + schemaAttrs["description"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["filename"] = dsschema.StringAttribute{ - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + } + attr.Computed = true + schemaAttrs["owner"] = attr } - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), + } + attr.Computed = true + schemaAttrs["parent"] = attr } - schemaAttrs["url"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["warning_period"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse), + }, Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3110,49 +2428,122 @@ func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[stri }, Computed: true, } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + return schemaAttrs +} +func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), } attr.Computed = true - schemaAttrs["group"] = attr + schemaAttrs["audit"] = attr + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), + } + attr.Computed = true + schemaAttrs["attributes"] = attr } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["logo"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["bind_dn"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["bind_password"] = dsschema.StringAttribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), } attr.Computed = true - schemaAttrs["tile"] = attr + schemaAttrs["client_certificate"] = attr } - schemaAttrs["title"] = dsschema.StringAttribute{ + schemaAttrs["failover_host"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["uri"] = dsschema.StringAttribute{ + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["failover_trusted_certificate"] = attr + } + schemaAttrs["group_dn"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["host"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["object_classes"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["port"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["tls"] = dsschema.StringAttribute{ + Computed: true, + } + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), + } + attr.Computed = true + schemaAttrs["trusted_certificate"] = attr + } + schemaAttrs["user_dn"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), - }, + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["number_of_failed_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_of_not_permitted_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["number_of_successful_calls"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["state"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false)) + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ @@ -3166,81 +2557,121 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]dssche }, Computed: true, } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["type"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ + Computed: true, + } schemaAttrs["additional"] = dsschema.ListAttribute{ ElementType: types.StringType, Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", + "audit", "provgroups", "serviceAccounts", )), }, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(false), - } - attr.Computed = true - schemaAttrs["application"] = attr - } { attr := dsschema.SingleNestedAttribute{ Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), } attr.Computed = true - schemaAttrs["group"] = attr + schemaAttrs["owner"] = attr + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + } + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + } + schemaAttrs["display_name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["name_in_system"] = dsschema.StringAttribute{ + Computed: true, } - schemaAttrs["identicon_code"] = dsschema.Int64Attribute{ + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["launchpad_launchpad_tile_type"] = dsschema.StringAttribute{ + schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["logo"] = dsschema.ListAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["types"] = dsschema.ListAttribute{ ElementType: types.StringType, Computed: true, } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecordPrimer(false), - } - attr.Computed = true - schemaAttrs["vault_record"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), } attr.Computed = true - schemaAttrs["vault_record_launchpad_tile"] = attr + schemaAttrs["audit"] = attr } { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - } + attr := dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) attr.Computed = true - schemaAttrs["sso_application_launchpad_tile"] = attr + schemaAttrs["provgroups"] = attr } { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(false), - } + attr := dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) attr.Computed = true - schemaAttrs["manual_launchpad_tile"] = attr + schemaAttrs["service_accounts"] = attr } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["items"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsLaunchpadLaunchpadTile(recurse), + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), }, Computed: true, } + schemaAttrs["unlinked_count"] = dsschema.Int64Attribute{ + Computed: true, + } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false)) + } schemaAttrs["links"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ Attributes: dataSourceSchemaAttrsRestLink(recurse), @@ -3253,9 +2684,27 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string] }, Computed: true, } + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "audit", "systems", + )), + }, + } + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, + } + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["next_uid"] = dsschema.Int64Attribute{ + Computed: true, + } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ @@ -3264,156 +2713,53 @@ func dataSourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) attr.Computed = true schemaAttrs["audit"] = attr } + { + attr := dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["systems"] = attr + } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["title"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uri"] = dsschema.StringAttribute{ + schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["uri"] = dsschema.StringAttribute{ + if recurse { + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) + } + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["current_license_status"] = dsschema.StringAttribute{ + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, Computed: true, } - schemaAttrs["customer_company"] = dsschema.StringAttribute{ + schemaAttrs["display_name"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["customer_contact"] = dsschema.StringAttribute{ + schemaAttrs["last_active"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["customer_domains"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["details"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["expiration_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["features"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["issue_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_domain"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_key"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["not_before_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["users_hard_limit"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["users_pro_limit"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["users_soft_limit"] = dsschema.Int64Attribute{ + schemaAttrs["username"] = dsschema.StringAttribute{ Computed: true, } schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["version"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["level"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), - } - attr.Computed = true - schemaAttrs["parameters"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["markers"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsMarkItemMarker(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsAuthAccount_additionalObjects(false)) - } - schemaAttrs["account_directory_uuid"] = dsschema.StringAttribute{ Required: recurse, Computed: !recurse, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } schemaAttrs["validity"] = dsschema.StringAttribute{ Computed: true, } @@ -3422,2769 +2768,391 @@ func dataSourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]dss Optional: true, Validators: []validator.List{ listvalidator.ValueStringsAre(stringvalidator.OneOf( - "activeLogin", "audit", "groups", "pendingRecoveryRequests", "settings", "storedAttributes", "vault", + "audit", )), }, } - schemaAttrs["account_permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(false), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["directory_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["email"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["id_in_directory"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["key_hub_password_change_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["last_modified_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["license_role"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["locale"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reregistration_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["token_password_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["valid_in_directory"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["activation_code"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_deadline"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["company"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["first_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["telephone"] = dsschema.StringAttribute{ + schemaAttrs["uid"] = dsschema.Int64Attribute{ Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) - } - schemaAttrs["client_application_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["for_group"] = attr - } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(false), + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), } attr.Computed = true - schemaAttrs["for_system"] = attr - } - schemaAttrs["value"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) - } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["admin"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "vault", - )), - }, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(false), - } - attr.Computed = true - schemaAttrs["folder"] = attr - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) - } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["disconnected_nested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_used"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["two_factor_status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) - } - schemaAttrs["group_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["accounts"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupAuditAccount(false), - }, - Computed: true, - } - schemaAttrs["comment"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_on_audit"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_by"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["submitted_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["submitted_by"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) - } - schemaAttrs["account_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) - } - schemaAttrs["organizational_unit_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) - } - schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "provgroups", "serviceAccounts", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["owner"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) - } - schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["uid"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) - } - schemaAttrs["provisioned_system_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false)) - } - schemaAttrs["service_account_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) - } - schemaAttrs["webhook_uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), - } - attr.Computed = true - schemaAttrs["payload"] = attr - } - schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_headers"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["response"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["time"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["trigger_time"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificate(recurse), - } - attr.Computed = true - schemaAttrs["certificate"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryLDAPDirectory(recurse), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["expiration"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), - } - attr.Computed = true - schemaAttrs["ldap_client"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - } - attr.Computed = true - schemaAttrs["system"] = attr - } - schemaAttrs["usage"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhook(recurse), - } - attr.Computed = true - schemaAttrs["webhook"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["due_date"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - } - attr.Computed = true - schemaAttrs["group"] = attr - } - schemaAttrs["notification_group_audit_required_notification_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - } - attr.Computed = true - schemaAttrs["group"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), - } - attr.Computed = true - schemaAttrs["parameters"] = attr - } - schemaAttrs["reason"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["active_accounts"] = dsschema.Int64Attribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), - } - attr.Computed = true - schemaAttrs["license_info"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["admins"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["groups"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), - } - attr.Computed = true - schemaAttrs["request"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationNotifications(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsNotificationNotification(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["api_version"] = dsschema.Int64Attribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client(recurse), - } - attr.Computed = true - schemaAttrs["client"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["systems"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["released_at"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), - } - attr.Computed = true - schemaAttrs["record"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["depth"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["owner"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(false), - } - attr.Computed = true - schemaAttrs["parent"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(false), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnit(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), - } - attr.Computed = true - schemaAttrs["attributes"] = attr - } - schemaAttrs["base_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["bind_password"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - } - attr.Computed = true - schemaAttrs["client_certificate"] = attr - } - schemaAttrs["failover_host"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - } - attr.Computed = true - schemaAttrs["failover_trusted_certificate"] = attr - } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["host"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["object_classes"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["port"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["service_account_dn"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["ssh_public_key_supported"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["tls"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsCertificateCertificatePrimer(recurse), - } - attr.Computed = true - schemaAttrs["trusted_certificate"] = attr - } - schemaAttrs["user_dn"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["description"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["result"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupProvisioningGroup(recurse), - } - attr.Computed = true - schemaAttrs["system"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["status"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["number_of_failed_calls"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["number_of_not_permitted_calls"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["number_of_successful_calls"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["state"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "provgroups", "serviceAccounts", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["owner"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["short_name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["types"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := dataSourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) - attr.Computed = true - schemaAttrs["provgroups"] = attr - } - { - attr := dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) - attr.Computed = true - schemaAttrs["service_accounts"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupFolder(recurse), - } - attr.Computed = true - schemaAttrs["folder"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroup(recurse), - } - attr.Computed = true - schemaAttrs["group"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), - } - attr.Computed = true - schemaAttrs["provisioning_duration"] = attr - } - schemaAttrs["provisioning_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_permission_end_time"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), - } - attr.Computed = true - schemaAttrs["status_report"] = attr - } - schemaAttrs["visible_on_dashboard"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Computed: true, - } - schemaAttrs["unlinked_count"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "systems", - )), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["next_uid"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) - attr.Computed = true - schemaAttrs["systems"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["sam_account_name_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["display_name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - schemaAttrs["validity"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["uid"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["client_id"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["client_secret"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["idp_domain"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["tenant"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), - } - attr.Computed = true - schemaAttrs["client"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["gid"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - } - attr.Computed = true - schemaAttrs["numbering"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - schemaAttrs["group_dn"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - } - attr.Computed = true - schemaAttrs["organizational_unit"] = attr - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "account", "audit", "issuedPermissions", "loginName", "managementPermissions", "markers", "statistics", "supportedGroupTypes", - )), - }, - } - schemaAttrs["account_count"] = dsschema.Int64Attribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["content_administrator"] = attr - } - schemaAttrs["external_uuid"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["owner"] = attr - } - schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), - } - attr.Computed = true - schemaAttrs["technical_administrator"] = attr - } - schemaAttrs["username_prefix"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - } - attr.Computed = true - schemaAttrs["provisioned_azure_oidc_directory"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), - } - attr.Computed = true - schemaAttrs["abstract_provisioned_ldap"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), - } - attr.Computed = true - schemaAttrs["provisioned_ldap"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - } - attr.Computed = true - schemaAttrs["provisioned_azure_tenant"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), - } - attr.Computed = true - schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), - } - attr.Computed = true - schemaAttrs["provisioned_a_d"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), - } - attr.Computed = true - schemaAttrs["provisioned_internal_ldap"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), - } - attr.Computed = true - schemaAttrs["provisioned_ldap_directory"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["active"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - } - attr.Computed = true - schemaAttrs["organizational_unit"] = attr - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - schemaAttrs["created_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["errors"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["log"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["modifications"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), - } - attr.Computed = true - schemaAttrs["account"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) - attr.Computed = true - schemaAttrs["issued_permissions"] = attr - } - schemaAttrs["login_name"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - } - attr.Computed = true - schemaAttrs["management_permissions"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), - } - attr.Computed = true - schemaAttrs["markers"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - } - attr.Computed = true - schemaAttrs["statistics"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - } - attr.Computed = true - schemaAttrs["supported_group_types"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["groups"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Computed: true, - } - schemaAttrs["ignore_errors"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["restricted_by_license"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientClientApplicationPrimer(recurse), - } - attr.Computed = true - schemaAttrs["application"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), - } - attr.Computed = true - schemaAttrs["organizational_unit"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - } - attr.Computed = true - schemaAttrs["system"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - } - attr.Computed = true - schemaAttrs["access_duration"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["make_manager"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - } - attr.Computed = true - schemaAttrs["new_admin"] = attr - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["group_on_system_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_in_system"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["group_name"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["subject"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["extend_until"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["permission_type"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - } - attr.Computed = true - schemaAttrs["system"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - } - attr.Computed = true - schemaAttrs["group_on_system"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["activation_required"] = dsschema.BoolAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - } - attr.Computed = true - schemaAttrs["group_on_system"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), - } - attr.Computed = true - schemaAttrs["group_on_system"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), - } - attr.Computed = true - schemaAttrs["service_account"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "resetStatus", - )), - }, + schemaAttrs["audit"] = attr } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(false), + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), } attr.Computed = true - schemaAttrs["account"] = attr + schemaAttrs["directory"] = attr } - schemaAttrs["comment"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, + } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["feedback"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), } attr.Computed = true - schemaAttrs["group"] = attr + schemaAttrs["directory"] = attr } - schemaAttrs["mail_key"] = dsschema.StringAttribute{ + schemaAttrs["tenant"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["request_modification_request_type"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["client_id"] = dsschema.StringAttribute{ Computed: true, } - schemaAttrs["status"] = dsschema.StringAttribute{ + schemaAttrs["client_secret"] = dsschema.StringAttribute{ Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), - } - attr.Computed = true - schemaAttrs["enable_technical_administration_request"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), - } - attr.Computed = true - schemaAttrs["abstract_application_modification_request"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), - } - attr.Computed = true - schemaAttrs["transfer_application_administration_request"] = attr + schemaAttrs["idp_domain"] = dsschema.StringAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequest(false), - } - attr.Computed = true - schemaAttrs["password_reset_request"] = attr + schemaAttrs["tenant"] = dsschema.StringAttribute{ + Computed: true, } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), + Attributes: dataSourceSchemaAttrsClientLdapClient(recurse), } attr.Computed = true - schemaAttrs["abstract_provisioned_system_modification_request"] = attr + schemaAttrs["client"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - } - attr.Computed = true - schemaAttrs["transfer_provisioned_system_ownership_request"] = attr + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["gid"] = dsschema.Int64Attribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAddGroupAdminRequest(false), - } - attr.Computed = true - schemaAttrs["add_group_admin_request"] = attr + schemaAttrs["hashing_scheme"] = dsschema.StringAttribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), } attr.Computed = true - schemaAttrs["abstract_organizational_unit_modification_request"] = attr + schemaAttrs["numbering"] = attr } + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupRequest(false), + Attributes: dataSourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse), } attr.Computed = true - schemaAttrs["create_group_request"] = attr + schemaAttrs["directory"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), - } - attr.Computed = true - schemaAttrs["remove_provisioned_system_request"] = attr + schemaAttrs["group_dn"] = dsschema.StringAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantApplicationRequest(false), - } - attr.Computed = true - schemaAttrs["grant_application_request"] = attr + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false)) } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), - } - attr.Computed = true - schemaAttrs["create_group_on_system_request"] = attr + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupNestedGroupRequest(false), - } - attr.Computed = true - schemaAttrs["setup_nested_group_request"] = attr + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(false), - } - attr.Computed = true - schemaAttrs["verify_internal_account_request"] = attr + schemaAttrs["active"] = dsschema.BoolAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), - } - attr.Computed = true - schemaAttrs["grant_group_on_system_request_request"] = attr + schemaAttrs["name"] = dsschema.StringAttribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinGroupRequest(false), + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), } attr.Computed = true - schemaAttrs["join_group_request"] = attr + schemaAttrs["organizational_unit"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - } - attr.Computed = true - schemaAttrs["transfer_organizational_unit_ownership_request"] = attr + schemaAttrs["type"] = dsschema.StringAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestDisable2FARequest(false), - } - attr.Computed = true - schemaAttrs["disable2fa_request"] = attr + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - } - attr.Computed = true - schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr + schemaAttrs["additional"] = dsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre(stringvalidator.OneOf( + "account", "audit", "issuedPermissions", "loginName", "managementPermissions", "markers", "statistics", "supportedGroupTypes", + )), + }, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), - } - attr.Computed = true - schemaAttrs["grant_group_on_system_request"] = attr + schemaAttrs["account_count"] = dsschema.Int64Attribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), } attr.Computed = true - schemaAttrs["transfer_application_ownership_request"] = attr + schemaAttrs["content_administrator"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), - } - attr.Computed = true - schemaAttrs["transfer_group_on_system_ownership_request"] = attr + schemaAttrs["external_uuid"] = dsschema.StringAttribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), } attr.Computed = true - schemaAttrs["transfer_service_account_administration_request"] = attr + schemaAttrs["owner"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - } - attr.Computed = true - schemaAttrs["transfer_auditor_group_request"] = attr + schemaAttrs["self_service_existing_groups"] = dsschema.BoolAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestReviewAuditRequest(false), - } - attr.Computed = true - schemaAttrs["review_audit_request"] = attr + schemaAttrs["self_service_new_groups"] = dsschema.BoolAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), - } - attr.Computed = true - schemaAttrs["update_group_membership_request"] = attr + schemaAttrs["self_service_service_accounts"] = dsschema.BoolAttribute{ + Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestExtendAccessRequest(false), - } - attr.Computed = true - schemaAttrs["extend_access_request"] = attr + schemaAttrs["should_destroy_unknown_accounts"] = dsschema.BoolAttribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveGroupRequest(false), + Attributes: dataSourceSchemaAttrsGroupGroupPrimer(false), } attr.Computed = true - schemaAttrs["remove_group_request"] = attr + schemaAttrs["technical_administrator"] = attr } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRevokeAdminRequest(false), - } - attr.Computed = true - schemaAttrs["revoke_admin_request"] = attr + schemaAttrs["username_prefix"] = dsschema.StringAttribute{ + Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), } attr.Computed = true - schemaAttrs["grant_service_account_group_request"] = attr + schemaAttrs["abstract_provisioned_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAD(false), } attr.Computed = true - schemaAttrs["setup_authorizing_group_request"] = attr + schemaAttrs["provisioned_a_d"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), } attr.Computed = true - schemaAttrs["transfer_provisioned_system_administration_request"] = attr + schemaAttrs["provisioned_azure_oidc_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantAccessRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), } attr.Computed = true - schemaAttrs["grant_access_request"] = attr + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestJoinVaultRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAzureTenant(false), } attr.Computed = true - schemaAttrs["join_vault_request"] = attr + schemaAttrs["provisioned_azure_tenant"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), } attr.Computed = true - schemaAttrs["remove_organizational_unit_request"] = attr + schemaAttrs["provisioned_internal_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAP(false), } attr.Computed = true - schemaAttrs["create_service_account_request"] = attr + schemaAttrs["provisioned_ldap"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), } attr.Computed = true - schemaAttrs["grant_client_permission_request"] = attr + schemaAttrs["provisioned_ldap_directory"] = attr } return schemaAttrs } -func dataSourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["items"] = dsschema.ListNestedAttribute{ NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRequestModificationRequest(recurse), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystem(recurse), }, Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - } - attr.Computed = true - schemaAttrs["reset_status"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["cooldown_end"] = dsschema.StringAttribute{ + schemaAttrs["links"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsRestLink(recurse), + }, Computed: true, } - schemaAttrs["managers"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["nr_accepted"] = dsschema.Int64Attribute{ + schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsAuthPermission(recurse), + }, Computed: true, } - schemaAttrs["reset_via_mail"] = dsschema.StringAttribute{ + schemaAttrs["active"] = dsschema.BoolAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["group_name"] = dsschema.StringAttribute{ + schemaAttrs["name"] = dsschema.StringAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["organizational_unit_name"] = dsschema.StringAttribute{ + { + attr := dsschema.SingleNestedAttribute{ + Attributes: dataSourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), + } + attr.Computed = true + schemaAttrs["organizational_unit"] = attr + } + schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } return schemaAttrs } -func dataSourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["system_name"] = dsschema.StringAttribute{ + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), + }, Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedAccount(recurse), } attr.Computed = true - schemaAttrs["admin"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["authorizing_group_type"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["connect"] = dsschema.BoolAttribute{ - Computed: true, + schemaAttrs["account"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), } attr.Computed = true - schemaAttrs["requesting_group"] = attr + schemaAttrs["audit"] = attr } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_action"] = dsschema.StringAttribute{ - Computed: true, + { + attr := dataSourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) + attr.Computed = true + schemaAttrs["issued_permissions"] = attr } - schemaAttrs["connect"] = dsschema.BoolAttribute{ + schemaAttrs["login_name"] = dsschema.StringAttribute{ Computed: true, } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), + Attributes: dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), } attr.Computed = true - schemaAttrs["requesting_group"] = attr + schemaAttrs["management_permissions"] = attr } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Attributes: dataSourceSchemaAttrsMarkItemMarkers(recurse), } attr.Computed = true - schemaAttrs["group_on_system"] = attr + schemaAttrs["markers"] = attr } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + Attributes: dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), } attr.Computed = true - schemaAttrs["service_account"] = attr + schemaAttrs["statistics"] = attr } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Attributes: dataSourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), } attr.Computed = true - schemaAttrs["account_to_update"] = attr - } - schemaAttrs["current_end_date"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["current_rights"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["supported_group_types"] = attr } - schemaAttrs["rights"] = dsschema.StringAttribute{ + return schemaAttrs +} +func dataSourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]dsschema.Attribute { + schemaAttrs := make(map[string]dsschema.Attribute) + schemaAttrs["create_new_groups_allowed"] = dsschema.BoolAttribute{ Computed: true, } - schemaAttrs["update_group_membership_type"] = dsschema.StringAttribute{ + schemaAttrs["create_service_accounts_allowed"] = dsschema.BoolAttribute{ Computed: true, } - return schemaAttrs -} -func dataSourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["internal_account_name"] = dsschema.StringAttribute{ + schemaAttrs["reuse_existing_groups_allowed"] = dsschema.BoolAttribute{ Computed: true, } return schemaAttrs @@ -6227,6 +3195,7 @@ func dataSourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string] Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -6353,227 +3322,54 @@ func dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[s } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), - } - attr.Computed = true - schemaAttrs["system"] = attr - } - schemaAttrs["username"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["account_enabled"] = dsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) - attr.Computed = true - schemaAttrs["groups"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), - } - attr.Computed = true - schemaAttrs["secret"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["disabled_count"] = dsschema.Int64Attribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), - } - attr.Computed = true - schemaAttrs["password_scheme_enabled_stats"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), - } - attr.Computed = true - schemaAttrs["system_stats"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} -func dataSourceSchemaAttrsSimpleStringValue(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["value"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["contract_versions"] = dsschema.ListAttribute{ - ElementType: types.Int64Type, - Computed: true, - } - schemaAttrs["key_hub_version"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", "vault", - )), - }, - } - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["record_count"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["vault_deleted_vault_holder_type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultDeletedVaultHolder(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultVault(recurse), + Attributes: dataSourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), } attr.Computed = true - schemaAttrs["vault"] = attr + schemaAttrs["system"] = attr + } + schemaAttrs["username"] = dsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = dsschema.StringAttribute{ + Required: recurse, + Computed: !recurse, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } return schemaAttrs } -func dataSourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["prefix"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ + schemaAttrs["items"] = dsschema.ListNestedAttribute{ + NestedObject: dsschema.NestedAttributeObject{ + Attributes: dataSourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), + }, Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - } - attr.Computed = true - schemaAttrs["target_group"] = attr - } return schemaAttrs } -func dataSourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]dsschema.Attribute { +func dataSourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), + Attributes: dataSourceSchemaAttrsAuditInfo(recurse), } attr.Computed = true - schemaAttrs["account"] = attr - } - schemaAttrs["action"] = dsschema.StringAttribute{ - Computed: true, + schemaAttrs["audit"] = attr } { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsGroupGroupPrimer(recurse), - } + attr := dataSourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"].(dsschema.ListNestedAttribute) attr.Computed = true - schemaAttrs["group"] = attr + schemaAttrs["groups"] = attr } { attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + Attributes: dataSourceSchemaAttrsGeneratedSecret(recurse), } attr.Computed = true - schemaAttrs["share_duration"] = attr - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["nanos"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["seconds"] = dsschema.Int64Attribute{ - Computed: true, + schemaAttrs["secret"] = attr } return schemaAttrs } @@ -6671,6 +3467,7 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["additional"] = dsschema.ListAttribute{ @@ -6706,16 +3503,6 @@ func dataSourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]dsschema.Att } return schemaAttrs } -func dataSourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsVaultVaultRecord(recurse), - }, - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["links"] = dsschema.ListNestedAttribute{ @@ -6744,6 +3531,7 @@ func dataSourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]dssche Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } return schemaAttrs @@ -6859,37 +3647,6 @@ func dataSourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[s } return schemaAttrs } -func dataSourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuthAccountPrimer(recurse), - } - attr.Computed = true - schemaAttrs["account"] = attr - } - schemaAttrs["private_key"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["expires_at"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["session_password"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -7007,6 +3764,7 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri Computed: !recurse, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 36), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["verbose_payloads"] = dsschema.BoolAttribute{ @@ -7014,80 +3772,6 @@ func dataSourceSchemaAttrsWebhookWebhook(recurse bool) map[string]dsschema.Attri } return schemaAttrs } -func dataSourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) - } - schemaAttrs["links"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - } - schemaAttrs["permissions"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - schemaAttrs["additional"] = dsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre(stringvalidator.OneOf( - "audit", - )), - }, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookPush(false), - } - attr.Computed = true - schemaAttrs["payload"] = attr - } - schemaAttrs["reponse_headers"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["request_headers"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["response"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["time"] = dsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["trigger_time"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["items"] = dsschema.ListNestedAttribute{ - NestedObject: dsschema.NestedAttributeObject{ - Attributes: dataSourceSchemaAttrsWebhookWebhookDelivery(recurse), - }, - Computed: true, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} func dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["items"] = dsschema.ListNestedAttribute{ @@ -7098,147 +3782,6 @@ func dataSourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string } return schemaAttrs } -func dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - schemaAttrs["name"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsLinkable(recurse), - } - attr.Computed = true - schemaAttrs["object"] = attr - } - schemaAttrs["uuid"] = dsschema.StringAttribute{ - Required: recurse, - Computed: !recurse, - } - return schemaAttrs -} -func dataSourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["account"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["by_party"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["certificate"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["client"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["directory"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["group"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["group2"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["group_classification"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["modification_request"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["organizational_unit"] = attr - } - schemaAttrs["parameter1"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter2"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["parameter3"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["security_level"] = dsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["seq"] = dsschema.Int64Attribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["service_account"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["system"] = attr - } - schemaAttrs["timestamp"] = dsschema.StringAttribute{ - Computed: true, - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["vault_record"] = attr - } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Computed = true - schemaAttrs["webhook"] = attr - } - schemaAttrs["type"] = dsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} func dataSourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) { diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index d78166b..8fc65e5 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -40,46 +40,6 @@ func resourceSchemaAttrsAuditInfo(recurse bool) map[string]rsschema.Attribute { } return schemaAttrs } -func resourceSchemaAttrsErrorReport(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["application_error"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse), - } - attr.Optional = true - schemaAttrs["application_error_parameters"] = attr - } - schemaAttrs["code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["error_details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["exception"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["message"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["stacktrace"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsErrorReport_applicationErrorParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} func resourceSchemaAttrsGeneratedSecret(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["generated_secret"] = rsschema.StringAttribute{ @@ -135,24 +95,124 @@ func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { } return schemaAttrs } -func resourceSchemaAttrsSegmentCount(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["count"] = rsschema.Int64Attribute{ + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["validity"] = rsschema.StringAttribute{ Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["full"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["instances"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["operations"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "CREATE", "READ", "UPDATE", "DELETE", + ), + ), + }, + } + schemaAttrs["type_escaped"] = rsschema.StringAttribute{ + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["alias"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 128), + }, + } + schemaAttrs["type"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["certificate_data"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + } + schemaAttrs["expiration"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["global"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["subject_dn"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } -func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -232,10 +292,10 @@ func resourceSchemaAttrsAccountVaultVaultRecord(recurse bool) map[string]rsschem } return schemaAttrs } -func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsAuditAuditRecord_additionalObjects(false)) + maps.Copy(schemaAttrs, resourceSchemaAttrsClientClientApplication_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -255,106 +315,80 @@ func resourceSchemaAttrsAuditAuditRecord(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["date_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_account"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_certificate"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_client"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_directory"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_group"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_group2"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["on_group_classification"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["on_organizational_unit"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["on_service_account"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, } - schemaAttrs["on_system"] = rsschema.StringAttribute{ + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } - schemaAttrs["on_vault_record"] = rsschema.StringAttribute{ + schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["on_webhook"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["parameter1"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["parameter2"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["parameter3"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(false), + } + attr.Optional = true + schemaAttrs["ldap_client"] = attr } - schemaAttrs["performed_by"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + } + attr.Optional = true + schemaAttrs["o_auth2_client"] = attr } - schemaAttrs["security_level"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientSaml2Client(false), + } + attr.Optional = true + schemaAttrs["saml2_client"] = attr } return schemaAttrs } -func resourceSchemaAttrsAuditAuditRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuditAuditRecord(recurse), + Attributes: resourceSchemaAttrsClientClientApplication(recurse), }, Optional: true, } return schemaAttrs } -func resourceSchemaAttrsAuditAuditRecord_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsAuthAccount_additionalObjects(false)) - } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -369,275 +403,262 @@ func resourceSchemaAttrsAuthAccount(recurse bool) map[string]rsschema.Attribute Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ + schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(false), + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, - Computed: true, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["directory_password_change_required"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["directory_rotating_password"] = rsschema.StringAttribute{ - Computed: true, } - schemaAttrs["directory_type"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["email"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["scopes"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, } - schemaAttrs["id_in_directory"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["sso_application"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } - schemaAttrs["key_hub_password_change_required"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["license_role"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ + Optional: true, } - schemaAttrs["locale"] = rsschema.StringAttribute{ - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["groupclients"] = attr } - schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["groups"] = attr } - schemaAttrs["token_password_enabled"] = rsschema.BoolAttribute{ - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), + } + attr.Optional = true + schemaAttrs["secret"] = attr } - schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), + } + attr.Optional = true + schemaAttrs["tile"] = attr } - schemaAttrs["valid_in_directory"] = rsschema.BoolAttribute{ + schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ Computed: true, } return schemaAttrs } -func resourceSchemaAttrsAuthAccountBulkUpdate(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["action"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, Validators: []validator.String{ - stringvalidator.OneOf( - "CHANGE_LICENSE_ROLE_TO_PRO", "CHANGE_LICENSE_ROLE_TO_BUSINESS", "MARK_FOR_RENAME", - ), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["exclusive_selection"] = rsschema.BoolAttribute{ + schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["selected_accounts"] = rsschema.ListAttribute{ - ElementType: types.Int64Type, - Required: true, + Default: booldefault.StaticBool(true), } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountChangeLocale(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["locale"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 31), - }, + schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ + Computed: true, } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthAccount(recurse), - }, - Optional: true, + schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, } return schemaAttrs } -func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), + } + attr.Optional = true + schemaAttrs["attributes"] = attr } - schemaAttrs["validity"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["callback_uri"] = rsschema.StringAttribute{ + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountRecoveryStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["pending2fa_recovery_request"] = rsschema.BoolAttribute{ + schemaAttrs["confidential"] = rsschema.BoolAttribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), + Default: booldefault.StaticBool(true), } - schemaAttrs["pending_password_recovery_request"] = rsschema.BoolAttribute{ + schemaAttrs["debug_mode"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountSettings(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["default_organizational_unit_uuid"] = rsschema.StringAttribute{ + schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + stringvalidator.UTF8LengthBetween(0, 512), }, } - schemaAttrs["directory_name"] = rsschema.StringAttribute{ + schemaAttrs["initiate_login_uri"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["directory_type"] = rsschema.StringAttribute{ + schemaAttrs["resource_uris"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", - ), - }, } - schemaAttrs["in_groups"] = rsschema.BoolAttribute{ + schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), + Default: booldefault.StaticBool(true), } - schemaAttrs["in_multiple_organizational_units"] = rsschema.BoolAttribute{ + schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["key_hub_admin"] = rsschema.BoolAttribute{ + schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["multiple_organizational_units_exist"] = rsschema.BoolAttribute{ + schemaAttrs["use_client_credentials"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["password_mode"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "UNSET", "ONE_PASSWORD_UNSYNCED", "ONE_PASSWORD", "TWO_PASSWORDS", - ), + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) + } + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["ssh_public_key"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["two_factor_authentication"] = rsschema.StringAttribute{ + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.OneOf( - "DISABLED", "EXTERNAL", "TOTP", "APP", "WEBAUTHN", "MIXED", - ), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["use_token_password"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["vault_status"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "NOT_CREATED", "INITIALIZING", "LOCKED", "UNLOCKED", + "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", ), }, } return schemaAttrs } -func resourceSchemaAttrsAuthAccountStatus(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ - Optional: true, + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) } - schemaAttrs["can_request_groups"] = rsschema.BoolAttribute{ - Optional: true, + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["decline_recovery_requests"] = rsschema.BoolAttribute{ + schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["license_role"] = rsschema.StringAttribute{ + schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["value"] = rsschema.StringAttribute{ + Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "BUSINESS", "PRO", + "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", ), }, } - schemaAttrs["reregistration_required"] = rsschema.BoolAttribute{ - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientOAuth2Client(false), + } + attr.Optional = true + schemaAttrs["client"] = attr } - schemaAttrs["two_factor_authentication_enabled"] = rsschema.BoolAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), + }, Optional: true, } return schemaAttrs } -func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["active_login"] = rsschema.BoolAttribute{ - Computed: true, - } { attr := rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsAuditInfo(recurse), @@ -645,208 +666,48 @@ func resourceSchemaAttrsAuthAccount_additionalObjects(recurse bool) map[string]r attr.Computed = true schemaAttrs["audit"] = attr } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["groups"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountRecoveryStatus(recurse), - } - attr.Computed = true - schemaAttrs["pending_recovery_requests"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountSettings(recurse), - } - attr.Computed = true - schemaAttrs["settings"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthStoredAccountAttributes(recurse), - } - attr.Computed = true - schemaAttrs["stored_attributes"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - } - attr.Computed = true - schemaAttrs["vault"] = attr - } return schemaAttrs } -func resourceSchemaAttrsAuthAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse), - } - attr.Optional = true - schemaAttrs["directory_stats"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse), - } - attr.Optional = true - schemaAttrs["two_fa_stats"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse), + Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), } attr.Optional = true - schemaAttrs["validity_stats"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats_directoryStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats_twoFAStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsAuthAccountsAuditStats_validityStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["activation_code"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["attributes"] = attr } - schemaAttrs["company"] = rsschema.StringAttribute{ + schemaAttrs["metadata"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["first_name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["last_name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, } - schemaAttrs["status"] = rsschema.StringAttribute{ + schemaAttrs["metadata_url"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "UNVERIFIED", "NOT_ACTIVATED", "ACTIVATION_EXPIRED", "ACTIVATED", - ), - }, - } - schemaAttrs["telephone"] = rsschema.StringAttribute{ - Required: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 255), }, } - return schemaAttrs -} -func resourceSchemaAttrsAuthInternalAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthInternalAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthInternalAccountStatusObject(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["status"] = rsschema.StringAttribute{ + schemaAttrs["subject_format"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "UNVERIFIED", "NOT_ACTIVATED", "ACTIVATION_EXPIRED", "ACTIVATED", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthMoveInternalAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(recurse), - } - attr.Required = true - schemaAttrs["internal_directory"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsAuthPermission(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["full"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["instances"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["operations"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "CREATE", "READ", "UPDATE", "DELETE", - ), + "ID", "UPN", "USERNAME", "EMAIL", ), }, } - schemaAttrs["type_escaped"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsAuthStoredAccountAttribute(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["value"] = rsschema.StringAttribute{ - Optional: true, - } return schemaAttrs } -func resourceSchemaAttrsAuthStoredAccountAttributes(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["attributes"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthStoredAccountAttribute(recurse), - }, - Optional: true, - } return schemaAttrs } -func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsCertificateCertificate_additionalObjects(false)) + maps.Copy(schemaAttrs, resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -862,58 +723,105 @@ func resourceSchemaAttrsCertificateCertificate(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["alias"] = rsschema.StringAttribute{ + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["type"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 128), + stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["type"] = rsschema.StringAttribute{ + schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["certificate_data"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["expiration"] = rsschema.StringAttribute{ + schemaAttrs["default_directory"] = rsschema.BoolAttribute{ Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ + schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["global"] = rsschema.BoolAttribute{ + schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "DEFAULT_OFF", "DEFAULT_ON", "ALWAYS_ON", + ), + }, + } + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["subject_dn"] = rsschema.StringAttribute{ - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), + } + attr.Optional = true + schemaAttrs["internal_directory"] = attr } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), + } + attr.Optional = true + schemaAttrs["l_d_a_p_directory"] = attr } - schemaAttrs["key_data"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), + } + attr.Optional = true + schemaAttrs["maintenance_directory"] = attr + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), + } + attr.Optional = true + schemaAttrs["o_id_c_directory"] = attr } return schemaAttrs } -func resourceSchemaAttrsCertificateCertificateLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsCertificateCertificate(recurse), + Attributes: resourceSchemaAttrsDirectoryAccountDirectory(recurse), }, Optional: true, } return schemaAttrs } -func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -929,144 +837,53 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["alias"] = rsschema.StringAttribute{ + schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 128), - }, + Default: booldefault.StaticBool(false), } schemaAttrs["type"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["certificate_data"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha1"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["fingerprint_sha256"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["global"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["subject_dn"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsCertificateCertificate_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) - } - schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["color"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NONE"), - Validators: []validator.String{ - stringvalidator.OneOf( - "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", - ), - }, - } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["filename"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["accounts"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["username"] = rsschema.StringAttribute{ + schemaAttrs["reason"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, } - schemaAttrs["warning_period"] = rsschema.StringAttribute{ + schemaAttrs["status"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.OneOf( - "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + "INIT_REQUIRED", "ONLINE", "DEGRADED", "NON_REDUNDANT", "OFFLINE", "DISABLED", ), }, } return schemaAttrs } -func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsClientClientApplication_additionalObjects(false)) - } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -1082,307 +899,260 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + stringvalidator.OneOf( + "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", + ), }, } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + schemaAttrs["name"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), + } + attr.Optional = true + schemaAttrs["status"] = attr } - schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ + schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Default: booldefault.StaticBool(false), } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), }, + Optional: true, } + return schemaAttrs +} +func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(false), + Attributes: resourceSchemaAttrsAuditInfo(recurse), } - attr.Optional = true - schemaAttrs["o_auth2_client"] = attr + attr.Computed = true + schemaAttrs["audit"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(false), + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), } - attr.Optional = true - schemaAttrs["ldap_client"] = attr + attr.Computed = true + schemaAttrs["markers"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client(false), + Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), } - attr.Optional = true - schemaAttrs["saml2_client"] = attr + attr.Computed = true + schemaAttrs["status"] = attr } return schemaAttrs } -func resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsClientClientApplication(recurse), + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, - Optional: true, } return schemaAttrs } -func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + schemaAttrs["base_dn"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["client_id"] = rsschema.StringAttribute{ + schemaAttrs["dialect"] = rsschema.StringAttribute{ + Computed: true, Optional: true, + Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + stringvalidator.OneOf( + "ACTIVE_DIRECTORY", "OPENLDAP", + ), }, } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["failover_host"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["host"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["scopes"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, + schemaAttrs["password_recovery"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "DISABLED", "VERIFY_2FA", "VERIFY_MAIL", "VERIFY_MAIL_AND_2FA", + ), + }, } - schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsClientClientApplication_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - schemaAttrs["delete_tile"] = rsschema.BoolAttribute{ - Optional: true, - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Optional = true - schemaAttrs["groupclients"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["groups"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGeneratedSecret(recurse), - } - attr.Optional = true - schemaAttrs["secret"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse), - } - attr.Optional = true - schemaAttrs["tile"] = attr - } - schemaAttrs["vault_record_count"] = rsschema.Int64Attribute{ + schemaAttrs["port"] = rsschema.Int64Attribute{ Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + stringvalidator.UTF8LengthBetween(0, 128), }, } - schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["search_filter"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(true), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", + ), + }, } - schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } return schemaAttrs } -func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), - } - attr.Optional = true - schemaAttrs["attributes"] = attr - } - schemaAttrs["callback_uri"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["confidential"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["debug_mode"] = rsschema.BoolAttribute{ - Computed: true, + return schemaAttrs +} +func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["acr_values"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } - schemaAttrs["id_token_claims"] = rsschema.StringAttribute{ + schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 512), }, } - schemaAttrs["initiate_login_uri"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["resource_uris"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["share_secret_in_vault"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Computed: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), + }, } - schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ + schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["use_client_credentials"] = rsschema.BoolAttribute{ + schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + schemaAttrs["issuer"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 512), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["logout_url"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + stringvalidator.UTF8LengthBetween(0, 512), }, } - schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ + Computed: true, Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Default: booldefault.StaticBool(false), } - schemaAttrs["value"] = rsschema.StringAttribute{ + schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", + "GENERIC", "GOOGLE", "AZURE_AD", ), }, } return schemaAttrs } -func resourceSchemaAttrsClientOAuth2ClientPermissionLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermission(recurse), + Attributes: resourceSchemaAttrsGroupGroup(recurse), }, Optional: true, } + schemaAttrs["group_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } return schemaAttrs } -func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroup_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1398,181 +1168,212 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["admin"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["application_administration"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), + } + attr.Optional = true + attr.Computed = true + schemaAttrs["audit_config"] = attr + } + schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["auditor"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["value"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ + Optional: true, Validators: []validator.String{ - stringvalidator.OneOf( - "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", - ), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(false), - } - attr.Optional = true - schemaAttrs["client"] = attr + schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), - } - attr.Optional = true - schemaAttrs["attributes"] = attr - } - schemaAttrs["metadata"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, } - schemaAttrs["metadata_url"] = rsschema.StringAttribute{ + schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["subject_format"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["extended_access"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NOT_ALLOWED"), Validators: []validator.String{ stringvalidator.OneOf( - "ID", "UPN", "USERNAME", "EMAIL", + "NOT_ALLOWED", "ONE_WEEK", "TWO_WEEKS", "TWO_WEEKS_NO_CONFIRM", ), }, } - return schemaAttrs -} -func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsDeletedVaultHolderVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) + schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["deleted_vault_holder_uuid"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ + Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + schemaAttrs["private_group"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } - schemaAttrs["color"] = rsschema.StringAttribute{ + schemaAttrs["record_trail"] = rsschema.BoolAttribute{ Computed: true, Optional: true, - Default: stringdefault.StaticString("NONE"), + Default: booldefault.StaticBool(false), + } + schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["single_managed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("FULL"), Validators: []validator.String{ stringvalidator.OneOf( - "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + "NONE", "RECOVERY_KEY_ONLY", "FULL", ), }, } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + Computed: true, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["filename"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["url"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, } - schemaAttrs["username"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, + schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["warning_period"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["rights"] = rsschema.StringAttribute{ + Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + "MANAGER", "NORMAL", ), }, } + schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + Computed: true, + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + }, + Optional: true, + } return schemaAttrs } -func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr + } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(false)) + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1588,105 +1389,50 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), + }, Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, + schemaAttrs["created_at"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["created_by"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + schemaAttrs["group_name"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["default_directory"] = rsschema.BoolAttribute{ + schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["helpdesk_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["restrict2fa"] = rsschema.BoolAttribute{ + schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["rotating_password"] = rsschema.StringAttribute{ + schemaAttrs["status"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "DEFAULT_OFF", "DEFAULT_ON", "ALWAYS_ON", + "NEW", "DRAFT", "UNDER_REVIEW", "FINAL", ), }, } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ + schemaAttrs["submitted_at"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryOIDCDirectory(false), - } - attr.Optional = true - schemaAttrs["o_id_c_directory"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(false), - } - attr.Optional = true - schemaAttrs["l_d_a_p_directory"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryMaintenanceDirectory(false), - } - attr.Optional = true - schemaAttrs["maintenance_directory"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryInternalDirectory(false), - } - attr.Optional = true - schemaAttrs["internal_directory"] = attr } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectory(recurse), - }, - Optional: true, + schemaAttrs["submitted_by"] = rsschema.StringAttribute{ + Computed: true, } return schemaAttrs } -func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1702,52 +1448,50 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["account_valid"] = rsschema.BoolAttribute{ + Computed: true, } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["action"] = rsschema.StringAttribute{ + Optional: true, Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + stringvalidator.OneOf( + "APPROVE", "CHANGE_TO_MANAGER", "CHANGE_TO_NORMAL", "REMOVE", "CONNECT_NESTED", + ), }, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["comment"] = rsschema.StringAttribute{ + Optional: true, } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["accounts"] = rsschema.Int64Attribute{ + schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Computed: true, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "INIT_REQUIRED", "ONLINE", "DEGRADED", "NON_REDUNDANT", "OFFLINE", "DISABLED", - ), - }, + schemaAttrs["end_date"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_active"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["last_used"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["nested"] = rsschema.BoolAttribute{ + Computed: true, + } + schemaAttrs["rights"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["username"] = rsschema.StringAttribute{ + Computed: true, } return schemaAttrs } -func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1763,48 +1507,31 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", + schemaAttrs["months"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Computed: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", + ), ), }, } - schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - } - attr.Optional = true - schemaAttrs["status"] = attr - } - schemaAttrs["username_customizable"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } return schemaAttrs } -func resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse), + Attributes: resourceSchemaAttrsGroupGroupAudit(recurse), }, Optional: true, } return schemaAttrs } -func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ @@ -1813,261 +1540,172 @@ func resourceSchemaAttrsDirectoryAccountDirectory_additionalObjects(recurse bool attr.Computed = true schemaAttrs["audit"] = attr } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - } - attr.Computed = true - schemaAttrs["markers"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryAccountDirectoryStatusReport(recurse), - } - attr.Computed = true - schemaAttrs["status"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsDirectoryInternalDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } return schemaAttrs } -func resourceSchemaAttrsDirectoryLDAPDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ + schemaAttrs["audit_due_date"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 512), - }, - } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ + schemaAttrs["last_audit_date"] = rsschema.StringAttribute{ Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, } - schemaAttrs["dialect"] = rsschema.StringAttribute{ + schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ Computed: true, Optional: true, - Default: stringdefault.StaticString("ACTIVE_DIRECTORY"), - Validators: []validator.String{ - stringvalidator.OneOf( - "ACTIVE_DIRECTORY", "OPENLDAP", - ), - }, + Default: int64default.StaticInt64(0), } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ + schemaAttrs["nr_disabled_accounts"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ + schemaAttrs["nr_disabled_managers"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["password_recovery"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "DISABLED", "VERIFY_2FA", "VERIFY_MAIL", "VERIFY_MAIL_AND_2FA", - ), - }, + Default: int64default.StaticInt64(0), } - schemaAttrs["port"] = rsschema.Int64Attribute{ + schemaAttrs["nr_expired_vault_records"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(0), } - schemaAttrs["search_bind_dn"] = rsschema.StringAttribute{ + schemaAttrs["nr_managers"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, + Default: int64default.StaticInt64(0), } - schemaAttrs["search_bind_password"] = rsschema.StringAttribute{ + schemaAttrs["nr_vault_records_with_end_date"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 128), - }, + Default: int64default.StaticInt64(0), } - schemaAttrs["search_filter"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", - ), + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + stringvalidator.UTF8LengthBetween(0, 255), }, } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } return schemaAttrs } -func resourceSchemaAttrsDirectoryMaintenanceDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsDirectoryOIDCDirectory(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["acr_values"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 512), - }, - } - schemaAttrs["attributes_to_store"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 512), - }, + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupClient_additionalObjects(false)) } - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["domain_restriction"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 512), + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["enforces2fa"] = rsschema.BoolAttribute{ + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["fully_resolved_issuer"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["issuer"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 512), - }, + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["logout_url"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 512), - }, + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["send_login_hint"] = rsschema.BoolAttribute{ + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), } - schemaAttrs["vendor_escaped"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "GENERIC", "GOOGLE", "AZURE_AD", - ), - }, + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Computed: true, } return schemaAttrs } -func resourceSchemaAttrsGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupClient(recurse), }, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), + Attributes: resourceSchemaAttrsAuditInfo(recurse), } attr.Computed = true - schemaAttrs["folder"] = attr + schemaAttrs["audit"] = attr } - schemaAttrs["last_used"] = rsschema.StringAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ + schemaAttrs["nr_accounts_with_vault"] = rsschema.Int64Attribute{ Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MANAGER", "NORMAL", - ), - }, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ + schemaAttrs["nr_audits"] = rsschema.Int64Attribute{ Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupAccountGroup(recurse), - }, + schemaAttrs["nr_clients"] = rsschema.Int64Attribute{ + Computed: true, Optional: true, + Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsGroupAccountGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr + schemaAttrs["nr_provisioned_systems"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - } - attr.Computed = true - schemaAttrs["vault"] = attr + schemaAttrs["nr_vault_records"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), } return schemaAttrs } -func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2075,18 +1713,10 @@ func resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse bool) map[string]rs }, Optional: true, } - schemaAttrs["group_count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } return schemaAttrs } -func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroup_additionalObjects(false)) - } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -2115,207 +1745,228 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["application_administration"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + return schemaAttrs +} +func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, } + return schemaAttrs +} +func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), - } + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Optional = true + schemaAttrs["accounts"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Computed = true - schemaAttrs["audit_config"] = attr + schemaAttrs["administered_clients"] = attr } - schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["administered_systems"] = attr } - schemaAttrs["auditor"] = rsschema.BoolAttribute{ - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + attr.DeprecationMessage = "This property will be removed in a future version." + schemaAttrs["admins"] = attr } - schemaAttrs["authorizing_group_auditing_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - schemaAttrs["authorizing_group_delegation_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), + } + attr.Computed = true + schemaAttrs["authorized_groups"] = attr } - schemaAttrs["authorizing_group_membership_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["client_permissions"] = attr } - schemaAttrs["authorizing_group_provisioning_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["clients"] = attr } - schemaAttrs["authorizing_group_types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["content_administered_systems"] = attr } - schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), + } + attr.Computed = true + schemaAttrs["groupauditinginfo"] = attr } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), + } + attr.Computed = true + schemaAttrs["groupinfo"] = attr } - schemaAttrs["extended_access"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NOT_ALLOWED"), - Validators: []validator.String{ - stringvalidator.OneOf( - "NOT_ALLOWED", "ONE_WEEK", "TWO_WEEKS", "TWO_WEEKS_NO_CONFIRM", - ), - }, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["helpdesk"] = attr } - schemaAttrs["hide_audit_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["nested_under_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + } + attr.Computed = true + schemaAttrs["myaccount"] = attr } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + } + attr.Computed = true + schemaAttrs["mydelegatedaccount"] = attr } - schemaAttrs["private_group"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + { + attr := resetListAttributeFlags(resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Computed = true + schemaAttrs["nested_groups"] = attr } - schemaAttrs["record_trail"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_clients"] = attr } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_directories"] = attr } - schemaAttrs["single_managed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), + } + attr.Computed = true + schemaAttrs["owned_groups_on_system"] = attr } - schemaAttrs["vault_recovery"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("FULL"), - Validators: []validator.String{ - stringvalidator.OneOf( - "NONE", "RECOVERY_KEY_ONLY", "FULL", - ), - }, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_organizational_units"] = attr } - schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["owned_systems"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["recent_audits"] = attr + } + schemaAttrs["requeststatus"] = rsschema.StringAttribute{ Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["service_accounts"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["systems"] = attr + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsVaultVault(recurse), + } + attr.Computed = true + schemaAttrs["vault"] = attr + } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["webhooks"] = attr } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) + maps.Copy(schemaAttrs, resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false)) } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ - stringvalidator.OneOf( - "MANAGER", "NORMAL", - ), + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), + } + attr.Computed = true + attr.PlanModifiers = []planmodifier.Object{objectplanmodifier.UseStateForUnknown()} + schemaAttrs["group_on_system"] = attr } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), + Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), }, Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAccountNesting(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["connected"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccountStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - } - attr.Optional = true - schemaAttrs["folder"] = attr - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ @@ -2326,17 +1977,16 @@ func resourceSchemaAttrsGroupGroupAccount_additionalObjects(recurse bool) map[st } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAdminMail(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["body"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) + maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) + } + schemaAttrs["group_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2352,51 +2002,129 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), + schemaAttrs["color"] = rsschema.StringAttribute{ + Computed: true, + Optional: true, + Default: stringdefault.StaticString("NONE"), + Validators: []validator.String{ + stringvalidator.OneOf( + "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", + ), + }, + } + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, + } + schemaAttrs["share_end_time"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["derived"] = rsschema.BoolAttribute{ + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["comment"] = rsschema.StringAttribute{ + schemaAttrs["filename"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Computed: true, } - schemaAttrs["created_by"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["url"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["username"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["warning_period"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", + ), + }, } - schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["uri"] = rsschema.StringAttribute{ + Optional: true, } - schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["level"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "INFO", "WARNING", + ), + }, } - schemaAttrs["status"] = rsschema.StringAttribute{ - Required: true, + schemaAttrs["type"] = rsschema.StringAttribute{ + Optional: true, Validators: []validator.String{ stringvalidator.OneOf( - "NEW", "DRAFT", "UNDER_REVIEW", "FINAL", + "TLS_DISABLED", "TLS_UNVERIFIED", "WEAK_PASSWORD_HASHING", "GROUP_NO_MANAGER", "GROUP_ONE_MANAGER", "GROUP_UNREADABLE_VAULT", "GROUP_UNRECOVERABLE_VAULT", "GROUP_CRITERIA_UNSATISFIED_AUDIT_INTERVAL", "GROUP_CRITERIA_UNSATISFIED_AUDIT_MONTHS", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_PROVISIONING", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_MEMBERSHIP", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_DELEGATION", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_AUDITING", "GROUP_CRITERIA_UNSATISFIED_RECORD_TRAIL", "GROUP_CRITERIA_UNSATISFIED_ROTATING_PASSWORD_REQUIRED", "GROUP_CRITERIA_UNSATISFIED_VAULT_REQUIRES_ACTIVATION", "GROUP_CRITERIA_UNSATISFIED_MINIMUM_NR_MANAGERS", ), }, } - schemaAttrs["submitted_at"] = rsschema.StringAttribute{ - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), + } + attr.Optional = true + schemaAttrs["parameters"] = attr } - schemaAttrs["submitted_by"] = rsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["markers"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsMarkItemMarker(recurse), + }, + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) + } + schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -2411,50 +2139,91 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["account_valid"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["action"] = rsschema.StringAttribute{ - Optional: true, + schemaAttrs["type"] = rsschema.StringAttribute{ + Required: true, Validators: []validator.String{ stringvalidator.OneOf( - "APPROVE", "CHANGE_TO_MANAGER", "CHANGE_TO_NORMAL", "REMOVE", "CONNECT_NESTED", + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", ), }, } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Computed: true, + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false)) } - schemaAttrs["last_active"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["nested"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["rights"] = rsschema.StringAttribute{ + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["depth"] = rsschema.Int64Attribute{ Computed: true, } - schemaAttrs["username"] = rsschema.StringAttribute{ + schemaAttrs["description"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit(recurse), + }, + Optional: true, + } + return schemaAttrs +} +func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -2470,31 +2239,32 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["months"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Computed: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", - ), - ), + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAudit(recurse), + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), }, - Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ @@ -2503,169 +2273,147 @@ func resourceSchemaAttrsGroupGroupAudit_additionalObjects(recurse bool) map[stri attr.Computed = true schemaAttrs["audit"] = attr } + { + attr := resetListAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Optional = true + schemaAttrs["create_as_parent_of"] = attr + } return schemaAttrs } -func resourceSchemaAttrsGroupGroupAuditingInfo(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audit_due_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["last_audit_date"] = rsschema.StringAttribute{ - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), + } + attr.Optional = true + schemaAttrs["attributes"] = attr } - schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), + schemaAttrs["base_dn"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["nr_disabled_accounts"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["bind_dn"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["nr_disabled_managers"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["bind_password"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 128), + }, } - schemaAttrs["nr_expired_vault_records"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["nr_managers"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["failover_host"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - schemaAttrs["nr_vault_records_with_end_date"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupClassification_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), + schemaAttrs["group_dn"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["host"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["authorizing_group_auditing_required"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["object_classes"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["authorizing_group_delegation_required"] = rsschema.BoolAttribute{ + schemaAttrs["port"] = rsschema.Int64Attribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), + Default: int64default.StaticInt64(0), } - schemaAttrs["authorizing_group_membership_required"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["authorizing_group_provisioning_required"] = rsschema.BoolAttribute{ + schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["default_classification"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, + Default: booldefault.StaticBool(true), } - schemaAttrs["maximum_audit_interval"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - Validators: []validator.Int64{ - int64validator.Between(0, 12), + schemaAttrs["tls"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", + ), }, } - schemaAttrs["minimum_nr_managers"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(1), - Validators: []validator.Int64{ - int64validator.AtLeast(1), + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } - schemaAttrs["record_trail_required"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["user_dn"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["required_months"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "JANUARY", "FEBRUARY", "MARCH", "APRIL", "MAY", "JUNE", "JULY", "AUGUST", "SEPTEMBER", "OCTOBER", "NOVEMBER", "DECEMBER", - ), - ), + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["rotating_password_required"] = rsschema.BoolAttribute{ + return schemaAttrs +} +func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + return schemaAttrs +} +func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["number_of_failed_calls"] = rsschema.Int64Attribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), + Default: int64default.StaticInt64(0), } - schemaAttrs["vault_requires_activation"] = rsschema.BoolAttribute{ + schemaAttrs["number_of_not_permitted_calls"] = rsschema.Int64Attribute{ Computed: true, Optional: true, - Default: booldefault.StaticBool(false), + Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nr_groups"] = rsschema.Int64Attribute{ + schemaAttrs["number_of_successful_calls"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(0), } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), - }, + schemaAttrs["state"] = rsschema.StringAttribute{ Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "CLOSED", "OPEN", "HALF_OPEN", + ), + }, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) + } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -2680,21 +2428,27 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["name"] = rsschema.StringAttribute{ + schemaAttrs["display_name"] = rsschema.StringAttribute{ + Optional: true, + } + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 255), }, } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["type"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["classificaton_uuid"] = rsschema.StringAttribute{ + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ + Computed: true, + } + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -2702,29 +2456,18 @@ func resourceSchemaAttrsGroupGroupClassificationUpdate(recurse bool) map[string] } return schemaAttrs } -func resourceSchemaAttrsGroupGroupClassification_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupClassificationInfo(recurse), - } - attr.Computed = true - schemaAttrs["info"] = attr + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupClient_additionalObjects(false)) - } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -2739,38 +2482,44 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, + schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["client_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + schemaAttrs["name_in_system"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Computed: true, + schemaAttrs["type"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + }, } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ Computed: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupClient(recurse), + schemaAttrs["types"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.OneOf( + "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", + ), + ), }, - Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ @@ -2779,13 +2528,38 @@ func resourceSchemaAttrsGroupGroupClient_additionalObjects(recurse bool) map[str attr.Computed = true schemaAttrs["audit"] = attr } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupFolder_additionalObjects(false)) - } + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Optional = true + schemaAttrs["provgroups"] = attr + } + { + attr := resetListAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Optional = true + schemaAttrs["service_accounts"] = attr + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + }, + Optional: true, + } + schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(0), + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false)) + } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -2800,25 +2574,71 @@ func resourceSchemaAttrsGroupGroupFolder(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, + } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, Validators: []validator.String{ stringvalidator.UTF8LengthBetween(0, 255), }, } + schemaAttrs["next_uid"] = rsschema.Int64Attribute{ + Computed: true, + Optional: true, + Default: int64default.StaticInt64(2000), + Validators: []validator.Int64{ + int64validator.Between(2000, 60000), + }, + } return schemaAttrs } -func resourceSchemaAttrsGroupGroupFolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr + } + { + attr := resetListAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr.Computed = true + schemaAttrs["systems"] = attr + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "OMIT", "TRUNCATE", "TRANSFER", "TRANSFER_TRUNCATE", "USERNAME", + ), }, - Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["uid"] = rsschema.Int64Attribute{ + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ @@ -2829,52 +2649,119 @@ func resourceSchemaAttrsGroupGroupFolder_additionalObjects(recurse bool) map[str } return schemaAttrs } -func resourceSchemaAttrsGroupGroupInfo(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nr_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - schemaAttrs["nr_accounts_with_vault"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["nr_audits"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } - schemaAttrs["nr_clients"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, } - schemaAttrs["nr_provisioned_systems"] = rsschema.Int64Attribute{ - Computed: true, + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["client_id"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, + } + schemaAttrs["client_secret"] = rsschema.StringAttribute{ + Required: true, + } + schemaAttrs["idp_domain"] = rsschema.StringAttribute{ Optional: true, - Default: int64default.StaticInt64(0), } - schemaAttrs["nr_vault_records"] = rsschema.Int64Attribute{ + schemaAttrs["tenant"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsClientLdapClient(recurse), + } + attr.Optional = true + schemaAttrs["client"] = attr + } + return schemaAttrs +} +func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["gid"] = rsschema.Int64Attribute{ Computed: true, Optional: true, Default: int64default.StaticInt64(0), } + schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "SSHA", "PBKDF2", + ), + }, + } + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), + } + attr.Required = true + schemaAttrs["numbering"] = attr + } return schemaAttrs } -func resourceSchemaAttrsGroupGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), + schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["group_dn"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), }, - Optional: true, } return schemaAttrs } -func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) + if recurse { + maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false)) + } schemaAttrs["links"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), @@ -2889,9 +2776,10 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri Computed: true, PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["admin"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + schemaAttrs["active"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2899,3377 +2787,264 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri stringvalidator.UTF8LengthBetween(0, 255), }, } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, + } + schemaAttrs["type"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } schemaAttrs["uuid"] = rsschema.StringAttribute{ Computed: true, PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), - }, + schemaAttrs["account_count"] = rsschema.Int64Attribute{ + Computed: true, } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupSegmentedLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), + schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, - Optional: true, } - schemaAttrs["segments"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsSegmentCount(recurse), - }, - Optional: true, + schemaAttrs["external_uuid"] = rsschema.StringAttribute{ + Computed: true, } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Optional = true - schemaAttrs["accounts"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["administered_clients"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["administered_systems"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Optional = true - attr.DeprecationMessage = "This property will be removed in a future version." - schemaAttrs["admins"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupAuthorizedGroupsWrapper(recurse), - } - attr.Computed = true - schemaAttrs["authorized_groups"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Optional = true - schemaAttrs["client_permissions"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["clients"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["content_administered_systems"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAuditingInfo(recurse), - } - attr.Computed = true - schemaAttrs["groupauditinginfo"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupInfo(recurse), - } - attr.Computed = true - schemaAttrs["groupinfo"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsDirectoryAccountDirectorySummaryLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["helpdesk"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - } - attr.Computed = true - schemaAttrs["markers"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - } - attr.Computed = true - schemaAttrs["myaccount"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupAccount(recurse), - } - attr.Computed = true - schemaAttrs["mydelegatedaccount"] = attr - } - { - attr := resetListAttributeFlags(resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) - attr.Computed = true - schemaAttrs["nested_groups"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientClientApplicationLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["owned_clients"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsDirectoryAccountDirectoryLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["owned_directories"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse), - } - attr.Computed = true - schemaAttrs["owned_groups_on_system"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["owned_organizational_units"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["owned_systems"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupAuditLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["recent_audits"] = attr - } - schemaAttrs["requeststatus"] = rsschema.StringAttribute{ - Computed: true, - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["service_accounts"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["systems"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - } - attr.Computed = true - schemaAttrs["vault"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["webhooks"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsGroupGroupsAuditStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["audited_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["classifications"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupClassification(recurse), - }, - Optional: true, - } - schemaAttrs["overdue_audit_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["overdue_vault_policies"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["unaudited_groups"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["valid_vault_policies"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["vaults_without_policies"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(false), - } - attr.Computed = true - attr.PlanModifiers = []planmodifier.Object{objectplanmodifier.UseStateForUnknown()} - schemaAttrs["group_on_system"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsGroupProvisioningGroup_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsVaultVaultRecord_additionalObjects(false)) - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["color"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("NONE"), - Validators: []validator.String{ - stringvalidator.OneOf( - "NONE", "GREEN", "RED", "BLUE", "DARK", "PINK_LAVENDER", "CRIMSON_RED", "MIDDLE_YELLOW", "ANDROID_GREEN", "SAGE", "ARTICHOKE", - ), - }, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["filename"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Computed: true, - } - schemaAttrs["url"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["username"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["warning_period"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "AT_EXPIRATION", "TWO_WEEKS", "ONE_MONTH", "TWO_MONTHS", "THREE_MONTHS", "SIX_MONTHS", "NEVER", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse), - } - attr.Optional = true - schemaAttrs["tile"] = attr - } - schemaAttrs["title"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadDisplayedLaunchpadTiles(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsLaunchpadDisplayedLaunchpadTile(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["identicon_code"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["launchpad_launchpad_tile_type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["logo"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["vault_record_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(false), - } - attr.Optional = true - schemaAttrs["vault_record_launchpad_tile"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(false), - } - attr.Optional = true - schemaAttrs["sso_application_launchpad_tile"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLaunchpadManualLaunchpadTile(false), - } - attr.Optional = true - schemaAttrs["manual_launchpad_tile"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTileLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsLaunchpadLaunchpadTile(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTilePrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadLaunchpadTile_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadManualLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["title"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["uri"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadSsoApplicationLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["uri"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["current_license_status"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "OK", "NOT_YET_VALID", "EXPIRED", "TERMINATED", "SOFT_LIMIT_REACHED", "HARD_LIMIT_REACHED", "HARD_LIMIT_EXCEEDED", "WRONG_DOMAIN", "PRO_LIMIT_EXCEEDED", "FEATURE_IN_USE", - ), - }, - } - schemaAttrs["customer_company"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 100), - }, - } - schemaAttrs["customer_contact"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 100), - }, - } - schemaAttrs["customer_domains"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.UTF8LengthBetween(0, 100), - ), - }, - } - schemaAttrs["details"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["expiration_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["features"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "CLUSTER_HA", "CLUSTER_HA_ENTERPRISE", "WORKFLOWS", "NESTED_GROUPS", "ENTERPRISE_ORGANISATION", "COMPLIANCE_PLUS", "OFFLINE_MODE", "SERVICE_ACCOUNTS", - ), - ), - }, - } - schemaAttrs["issue_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["key_hub_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["license_key"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["not_before_time"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["users_hard_limit"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["users_pro_limit"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["users_soft_limit"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 36), - }, - } - schemaAttrs["version"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["level"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "INFO", "WARNING", - ), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "TLS_DISABLED", "TLS_UNVERIFIED", "WEAK_PASSWORD_HASHING", "GROUP_NO_MANAGER", "GROUP_ONE_MANAGER", "GROUP_UNREADABLE_VAULT", "GROUP_UNRECOVERABLE_VAULT", "GROUP_CRITERIA_UNSATISFIED_AUDIT_INTERVAL", "GROUP_CRITERIA_UNSATISFIED_AUDIT_MONTHS", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_PROVISIONING", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_MEMBERSHIP", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_DELEGATION", "GROUP_CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_AUDITING", "GROUP_CRITERIA_UNSATISFIED_RECORD_TRAIL", "GROUP_CRITERIA_UNSATISFIED_ROTATING_PASSWORD_REQUIRED", "GROUP_CRITERIA_UNSATISFIED_VAULT_REQUIRES_ACTIVATION", "GROUP_CRITERIA_UNSATISFIED_MINIMUM_NR_MANAGERS", - ), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), - } - attr.Optional = true - schemaAttrs["parameters"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["markers"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsMarkItemMarker(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedAuthInternalAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_directory_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["activation_code"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["activation_deadline"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["company"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["first_name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["last_name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "UNVERIFIED", "NOT_ACTIVATED", "ACTIVATION_EXPIRED", "ACTIVATED", - ), - }, - } - schemaAttrs["telephone"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedClientOAuth2ClientPermission(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(false)) - } - schemaAttrs["client_application_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["value"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedGroupAccountGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupAccountGroup_additionalObjects(false)) - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(false), - } - attr.Computed = true - schemaAttrs["folder"] = attr - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MANAGER", "NORMAL", - ), - }, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedGroupGroupAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAccount_additionalObjects(false)) - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["last_used"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["nested"] = rsschema.BoolAttribute{ - Computed: true, - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MANAGER", "NORMAL", - ), - }, - } - schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedGroupGroupAudit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsGroupGroupAudit_additionalObjects(false)) - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsGroupGroupAuditAccount(false), - }, - Optional: true, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["created_by"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["name_on_audit"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["reviewed_by"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "NEW", "DRAFT", "UNDER_REVIEW", "FINAL", - ), - }, - } - schemaAttrs["submitted_at"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["submitted_by"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) - } - schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", - ), - }, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) - } - schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) - } - schemaAttrs["provisioned_system_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedServiceaccountServiceAccountGroup(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsServiceaccountServiceAccountGroup_additionalObjects(false)) - } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", - ), - }, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNestedWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) - } - schemaAttrs["webhook_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookPush(false), - } - attr.Optional = true - schemaAttrs["payload"] = attr - } - schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["request_headers"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["response"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["time"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["trigger_time"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationCertificateExpiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsCertificateCertificate(recurse), - } - attr.Optional = true - schemaAttrs["certificate"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsDirectoryLDAPDirectory(recurse), - } - attr.Optional = true - schemaAttrs["directory"] = attr - } - schemaAttrs["expiration"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(recurse), - } - attr.Optional = true - schemaAttrs["ldap_client"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - } - attr.Optional = true - schemaAttrs["system"] = attr - } - schemaAttrs["usage"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "LDAP_DIRECTORY", "PROVISIONED_AD", "PROVISIONED_LDAP", "WEBHOOK", "LDAP_CLIENT", "LDAP_SERVER_SETTING", "GLOBAL_TRUSTED_CERTIFICATE", "IDP", "KEYHUB", - ), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhook(recurse), - } - attr.Optional = true - schemaAttrs["webhook"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationGroupAuditRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["due_date"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - } - attr.Optional = true - schemaAttrs["group"] = attr - } - schemaAttrs["notification_group_audit_required_notification_type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "CONFORM", "PERIODIC", "REQUESTED", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationGroupEditRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - } - attr.Optional = true - schemaAttrs["group"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse), - } - attr.Optional = true - schemaAttrs["parameters"] = attr - } - schemaAttrs["reason"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "ONE_MANAGER", "CRITERIA_UNSATISFIED_AUDIT_INTERVAL", "CRITERIA_UNSATISFIED_AUDIT_MONTHS", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_PROVISIONING", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_MEMBERSHIP", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_DELEGATION", "CRITERIA_UNSATISFIED_AUTHORIZING_GROUP_AUDITING", "CRITERIA_UNSATISFIED_RECORD_TRAIL", "CRITERIA_UNSATISFIED_ROTATING_PASSWORD_REQUIRED", "CRITERIA_UNSATISFIED_VAULT_REQUIRES_ACTIVATION", "CRITERIA_UNSATISFIED_MINIMUM_NR_MANAGERS", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationGroupEditRequiredNotification_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsNotificationInvalidSignaturesDetectedNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsNotificationLicenseStatusNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["active_accounts"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLicenseKeyHubLicenseInfo(recurse), - } - attr.Optional = true - schemaAttrs["license_info"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationModificationRequestNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["admins"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["groups"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - } - attr.Optional = true - schemaAttrs["request"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsNotificationNotifications(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsNotificationNotification(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationOldApiVersionUsageNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["api_version"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(recurse), - } - attr.Optional = true - schemaAttrs["client"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationProvisionConfigRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["systems"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationRotatingPasswordRequiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["groups"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationUpdateAvailableNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["released_at"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsNotificationVaultRecordExpiredNotification(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), - } - attr.Optional = true - schemaAttrs["record"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(false)) - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsOrganizationAccountOrganizationalUnit(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["depth"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(false)) - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsOrganizationOrganizationalUnit(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := resetListAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) - attr.Optional = true - schemaAttrs["create_as_parent_of"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), - } - attr.Optional = true - schemaAttrs["attributes"] = attr - } - schemaAttrs["base_dn"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["bind_dn"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["bind_password"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 128), - }, - } - schemaAttrs["client_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["failover_host"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["failover_trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["host"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["object_classes"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["port"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["service_account_dn"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["ssh_public_key_supported"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["tls"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "VERIFIED_PINNED", "VERIFIED", "SECURE_PINNED", "SECURE", "ENCRYPTED", "UNSECURE", - ), - }, - } - schemaAttrs["trusted_certificate_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["user_dn"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["description"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["result"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "OK", "CONFIGURATION_REQUIRED", "ERROR", - ), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupProvisioningGroup(recurse), - } - attr.Optional = true - schemaAttrs["system"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["status"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatus(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["number_of_failed_calls"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["number_of_not_permitted_calls"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["number_of_successful_calls"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["state"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "CLOSED", "OPEN", "HALF_OPEN", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", - ), - }, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["display_name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", - ), - }, - } - schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["types"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.OneOf( - "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", - ), - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupProvisioningGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Optional = true - schemaAttrs["provgroups"] = attr - } - { - attr := resetListAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) - attr.Optional = true - schemaAttrs["service_accounts"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroupFolder(recurse), - } - attr.Optional = true - schemaAttrs["folder"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGroupGroup(recurse), - } - attr.Optional = true - schemaAttrs["group"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse), - } - attr.Optional = true - schemaAttrs["provisioning_duration"] = attr - } - schemaAttrs["provisioning_end_time"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["provisioning_permission_end_time"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAccountProvisioningStatusReport(recurse), - } - attr.Optional = true - schemaAttrs["status_report"] = attr - } - schemaAttrs["visible_on_dashboard"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningOwnedGroupOnSystemsWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - }, - Optional: true, - } - schemaAttrs["unlinked_count"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["next_uid"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(2000), - Validators: []validator.Int64{ - int64validator.Between(2000, 60000), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := resetListAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) - attr.Computed = true - schemaAttrs["systems"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAD(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["sam_account_name_scheme"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "OMIT", "TRUNCATE", "TRANSFER", "TRANSFER_TRUNCATE", "USERNAME", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(false)) - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAccountLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["client_id"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["client_secret"] = rsschema.StringAttribute{ - Required: true, - } - schemaAttrs["idp_domain"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["tenant"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(recurse), - } - attr.Optional = true - schemaAttrs["client"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["gid"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["hashing_scheme"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "SSHA", "PBKDF2", - ), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse), - } - attr.Required = true - schemaAttrs["numbering"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["group_dn"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["account_count"] = rsschema.Int64Attribute{ - Computed: true, - } - schemaAttrs["content_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["external_uuid"] = rsschema.StringAttribute{ - Computed: true, - } - schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["username_prefix"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), - } - attr.Optional = true - schemaAttrs["provisioned_azure_oidc_directory"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), - } - attr.Optional = true - schemaAttrs["abstract_provisioned_ldap"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), - } - attr.Optional = true - schemaAttrs["provisioned_ldap"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), - } - attr.Optional = true - schemaAttrs["provisioned_azure_tenant"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), - } - attr.Optional = true - schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), - } - attr.Optional = true - schemaAttrs["provisioned_a_d"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), - } - attr.Optional = true - schemaAttrs["provisioned_internal_ldap"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), - } - attr.Optional = true - schemaAttrs["provisioned_ldap_directory"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["active"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["created_at"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["errors"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - schemaAttrs["log"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["modifications"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningProvisionedSystemSyncLog(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), - } - attr.Computed = true - schemaAttrs["account"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["issued_permissions"] = attr - } - schemaAttrs["login_name"] = rsschema.StringAttribute{ - Computed: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), - } - attr.Computed = true - schemaAttrs["management_permissions"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), - } - attr.Computed = true - schemaAttrs["markers"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), - } - attr.Computed = true - schemaAttrs["statistics"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), - } - attr.Computed = true - schemaAttrs["supported_group_types"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningProvisioningStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["groups"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsProvisioningGroupProvisioningStatus(recurse), - }, - Optional: true, - } - schemaAttrs["ignore_errors"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["restricted_by_license"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsProvisioningTokenPassword(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractApplicationModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["application_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse), - } - attr.Optional = true - schemaAttrs["access_duration"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptJoinGroupRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["make_manager"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestAddGroupAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["new_admin_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - schemaAttrs["group_on_system_type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "POSIX_GROUP", "GROUP_OF_NAMES", "GROUP_OF_UNIQUE_NAMES", "GROUP", "AZURE_ROLE", "AZURE_UNIFIED_GROUP", "AZURE_SECURITY_GROUP", - ), - }, - } - schemaAttrs["name_in_system"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestCreateServiceAccountRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["username"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestDisable2FARequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["subject"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestExtendAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["extend_until"] = rsschema.StringAttribute{ - Required: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantAccessRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantApplicationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantClientPermissionRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["permission_type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "ACCOUNTS_QUERY", "ACCOUNTS_REMOVE", "CLIENTS_CREATE", "CLIENTS_QUERY", "GROUPONSYSTEM_CREATE", "GROUPS_CREATE", "GROUPS_GRANT_PERMISSIONS_AFTER_CREATE", "GROUPS_QUERY", "GROUPS_SET_CLASSIFICATION", "GROUP_FULL_VAULT_ACCESS", "GROUP_LAUNCHPADTILES", "GROUP_READ_CONTENTS", "GROUP_SET_AUTHORIZATION", "PROVISIONEDSYSTEMS_QUERY", "SERVICE_ACCOUNTS_CREATE", "SERVICE_ACCOUNTS_QUERY", "SERVICE_ACCOUNTS_UPDATE", - ), - }, - } - schemaAttrs["system_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - } - attr.Required = true - schemaAttrs["group_on_system"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["activation_required"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(true), - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - } - attr.Required = true - schemaAttrs["group_on_system"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), - } - attr.Required = true - schemaAttrs["group_on_system"] = attr - } - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestJoinVaultRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsRequestModificationRequest_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["comment"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["feedback"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["mail_key"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["request_modification_request_type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["status"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "REQUESTED", "ALLOWED", "DISALLOWED", "CANCELLED", - ), - }, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestEnableTechnicalAdministrationRequest(false), - } - attr.Optional = true - schemaAttrs["enable_technical_administration_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractApplicationModificationRequest(false), - } - attr.Optional = true - schemaAttrs["abstract_application_modification_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_application_administration_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequest(false), - } - attr.Optional = true - schemaAttrs["password_reset_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractProvisionedSystemModificationRequest(false), - } - attr.Optional = true - schemaAttrs["abstract_provisioned_system_modification_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_provisioned_system_ownership_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAddGroupAdminRequest(false), - } - attr.Optional = true - schemaAttrs["add_group_admin_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAbstractOrganizationalUnitModificationRequest(false), - } - attr.Optional = true - schemaAttrs["abstract_organizational_unit_modification_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupRequest(false), - } - attr.Optional = true - schemaAttrs["create_group_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(false), - } - attr.Optional = true - schemaAttrs["remove_provisioned_system_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantApplicationRequest(false), - } - attr.Optional = true - schemaAttrs["grant_application_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateGroupOnSystemRequest(false), - } - attr.Optional = true - schemaAttrs["create_group_on_system_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupNestedGroupRequest(false), - } - attr.Optional = true - schemaAttrs["setup_nested_group_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestVerifyInternalAccountRequest(false), - } - attr.Optional = true - schemaAttrs["verify_internal_account_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequestRequest(false), - } - attr.Optional = true - schemaAttrs["grant_group_on_system_request_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinGroupRequest(false), - } - attr.Optional = true - schemaAttrs["join_group_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_organizational_unit_ownership_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestDisable2FARequest(false), - } - attr.Optional = true - schemaAttrs["disable2fa_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_provisioned_system_content_administration_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantGroupOnSystemRequest(false), - } - attr.Optional = true - schemaAttrs["grant_group_on_system_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_application_ownership_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_group_on_system_ownership_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_service_account_administration_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferAuditorGroupRequest(false), - } - attr.Optional = true - schemaAttrs["transfer_auditor_group_request"] = attr + schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestReviewAuditRequest(false), - } - attr.Optional = true - schemaAttrs["review_audit_request"] = attr + schemaAttrs["self_service_existing_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestUpdateGroupMembershipRequest(false), - } - attr.Optional = true - schemaAttrs["update_group_membership_request"] = attr + schemaAttrs["self_service_new_groups"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestExtendAccessRequest(false), - } - attr.Optional = true - schemaAttrs["extend_access_request"] = attr + schemaAttrs["self_service_service_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(true), } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveGroupRequest(false), - } - attr.Optional = true - schemaAttrs["remove_group_request"] = attr + schemaAttrs["should_destroy_unknown_accounts"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRevokeAdminRequest(false), - } - attr.Optional = true - schemaAttrs["revoke_admin_request"] = attr + schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantServiceAccountGroupRequest(false), - } - attr.Optional = true - schemaAttrs["grant_service_account_group_request"] = attr + schemaAttrs["username_prefix"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(false), + Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(false), } attr.Optional = true - schemaAttrs["setup_authorizing_group_request"] = attr + schemaAttrs["abstract_provisioned_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAD(false), } attr.Optional = true - schemaAttrs["transfer_provisioned_system_administration_request"] = attr + schemaAttrs["provisioned_a_d"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantAccessRequest(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureOIDCDirectory(false), } attr.Optional = true - schemaAttrs["grant_access_request"] = attr + schemaAttrs["provisioned_azure_oidc_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestJoinVaultRequest(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureSyncLDAPDirectory(false), } attr.Optional = true - schemaAttrs["join_vault_request"] = attr + schemaAttrs["provisioned_azure_sync_ldap_directory"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedAzureTenant(false), } attr.Optional = true - schemaAttrs["remove_organizational_unit_request"] = attr + schemaAttrs["provisioned_azure_tenant"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestCreateServiceAccountRequest(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedInternalLDAP(false), } attr.Optional = true - schemaAttrs["create_service_account_request"] = attr + schemaAttrs["provisioned_internal_ldap"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestGrantClientPermissionRequest(false), + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAP(false), } attr.Optional = true - schemaAttrs["grant_client_permission_request"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequestLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRequestModificationRequest(recurse), - }, - Optional: true, + schemaAttrs["provisioned_ldap"] = attr } - return schemaAttrs -} -func resourceSchemaAttrsRequestModificationRequest_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestAcceptModificationRequestParameters(recurse), + Attributes: resourceSchemaAttrsProvisioningProvisionedLDAPDirectory(false), } attr.Optional = true - schemaAttrs["accept_params"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse), - } - attr.Computed = true - schemaAttrs["reset_status"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["new_vault_and_directory_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["new_vault_password"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["unsynced_password"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - return schemaAttrs -} -func resourceSchemaAttrsRequestPasswordResetRequestStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["cooldown_end"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["managers"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - } - schemaAttrs["nr_accepted"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - schemaAttrs["reset_via_mail"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "NONE", "REACTIVATION", "EXTERNAL", - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["group_name"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveOrganizationalUnitRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["organizational_unit_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestRemoveProvisionedSystemRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["system_name"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsRequestReviewAuditRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestRevokeAdminRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["admin_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + schemaAttrs["provisioned_ldap_directory"] = attr } return schemaAttrs } -func resourceSchemaAttrsRequestSetupAuthorizingGroupRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["authorizing_group_type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "PROVISIONING", "MEMBERSHIP", "DELEGATION", "AUDITING", - ), - }, - } - schemaAttrs["connect"] = rsschema.BoolAttribute{ - Computed: true, - Optional: true, - Default: booldefault.StaticBool(false), - } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), +func resourceSchemaAttrsProvisioningProvisionedSystemLinkableWrapper(recurse bool) map[string]rsschema.Attribute { + schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystem(recurse), }, + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsRequestSetupNestedGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_action"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "REMOVE", "CONVERT", "RETAIN", - ), + schemaAttrs["links"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsRestLink(recurse), + }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsAuthPermission(recurse), }, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } - schemaAttrs["connect"] = rsschema.BoolAttribute{ + schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, Optional: true, Default: booldefault.StaticBool(false), } - schemaAttrs["requesting_group_uuid"] = rsschema.StringAttribute{ + schemaAttrs["name"] = rsschema.StringAttribute{ + Required: true, + Validators: []validator.String{ + stringvalidator.UTF8LengthBetween(0, 255), + }, + } + schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } + schemaAttrs["type"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } + schemaAttrs["uuid"] = rsschema.StringAttribute{ + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + } return schemaAttrs } -func resourceSchemaAttrsRequestTransferApplicationAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferApplicationOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferAuditorGroupRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) + schemaAttrs["items"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), + }, + } return schemaAttrs } -func resourceSchemaAttrsRequestTransferGroupOnSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisionedSystem_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningGroupOnSystem(recurse), + Attributes: resourceSchemaAttrsProvisioningProvisionedAccount(recurse), } - attr.Required = true - schemaAttrs["group_on_system"] = attr + attr.Computed = true + schemaAttrs["account"] = attr } - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferOrganizationalUnitOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferProvisionedSystemOwnershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsRequestTransferServiceAccountAdministrationRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["service_account_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsAuditInfo(recurse), + } + attr.Computed = true + schemaAttrs["audit"] = attr } - return schemaAttrs -} -func resourceSchemaAttrsRequestUpdateGroupMembershipRequest(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_to_update_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + { + attr := resetListNestedAttributeFlags(resourceSchemaAttrsClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) + attr.Computed = true + schemaAttrs["issued_permissions"] = attr } - schemaAttrs["current_end_date"] = rsschema.StringAttribute{ + schemaAttrs["login_name"] = rsschema.StringAttribute{ Computed: true, } - schemaAttrs["current_rights"] = rsschema.StringAttribute{ - Computed: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse), + } + attr.Computed = true + schemaAttrs["management_permissions"] = attr } - schemaAttrs["end_date"] = rsschema.StringAttribute{ - Optional: true, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsMarkItemMarkers(recurse), + } + attr.Computed = true + schemaAttrs["markers"] = attr } - schemaAttrs["rights"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MANAGER", "NORMAL", - ), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse), + } + attr.Computed = true + schemaAttrs["statistics"] = attr } - schemaAttrs["update_group_membership_type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "ADD", "MODIFY", "REMOVE", - ), - }, + { + attr := rsschema.SingleNestedAttribute{ + Attributes: resourceSchemaAttrsProvisioningGroupOnSystemTypes(recurse), + } + attr.Computed = true + schemaAttrs["supported_group_types"] = attr } return schemaAttrs } -func resourceSchemaAttrsRequestVerifyInternalAccountRequest(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsProvisioningProvisioningManagementPermissions(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["internal_account_name"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.UTF8LengthBetween(0, 255), - }, + schemaAttrs["create_new_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["create_service_accounts_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), + } + schemaAttrs["reuse_existing_groups_allowed"] = rsschema.BoolAttribute{ + Computed: true, + Optional: true, + Default: booldefault.StaticBool(false), } return schemaAttrs } @@ -6460,133 +3235,14 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurs ElementType: types.StringType, Optional: true, Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountStatus(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_enabled"] = rsschema.BoolAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - { - attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) - attr.Computed = true - schemaAttrs["groups"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsGeneratedSecret(recurse), - } - attr.Optional = true - schemaAttrs["secret"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["disabled_count"] = rsschema.Int64Attribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse), - } - attr.Optional = true - schemaAttrs["password_scheme_enabled_stats"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse), - } - attr.Optional = true - schemaAttrs["system_stats"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsServiceaccountServiceAccountsAuditStats_systemStats(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} -func resourceSchemaAttrsSimpleStringValue(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["value"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsSimpleVersionInfo(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["contract_versions"] = rsschema.ListAttribute{ - ElementType: types.Int64Type, - Optional: true, - } - schemaAttrs["key_hub_version"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultHolder(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["record_count"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, - } - schemaAttrs["vault_deleted_vault_holder_type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultHolderLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultDeletedVaultHolder(recurse), + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), }, - Optional: true, } return schemaAttrs } -func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) map[string]rsschema.Attribute { +func resourceSchemaAttrsServiceaccountServiceAccount_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { attr := rsschema.SingleNestedAttribute{ @@ -6596,70 +3252,16 @@ func resourceSchemaAttrsVaultDeletedVaultHolder_additionalObjects(recurse bool) schemaAttrs["audit"] = attr } { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultVault(recurse), - } + attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountGroupLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Computed = true - schemaAttrs["vault"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsVaultDeletedVaultRecovery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["prefix"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["target_group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultMoveVaultRecord(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["action"] = rsschema.StringAttribute{ - Computed: true, - Optional: true, - Default: stringdefault.StaticString("MOVE"), - Validators: []validator.String{ - stringvalidator.OneOf( - "MOVE", "COPY", "SHARE", - ), - }, - } - schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + schemaAttrs["groups"] = attr } { attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse), + Attributes: resourceSchemaAttrsGeneratedSecret(recurse), } attr.Optional = true - schemaAttrs["share_duration"] = attr - } - return schemaAttrs -} -func resourceSchemaAttrsVaultMoveVaultRecord_shareDuration(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["nanos"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["seconds"] = rsschema.Int64Attribute{ - Optional: true, + schemaAttrs["secret"] = attr } return schemaAttrs } @@ -6825,16 +3427,6 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri } return schemaAttrs } -func resourceSchemaAttrsVaultVaultRecordLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), - }, - Optional: true, - } - return schemaAttrs -} func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["links"] = rsschema.ListNestedAttribute{ @@ -7000,36 +3592,6 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str } return schemaAttrs } -func resourceSchemaAttrsVaultVaultRecovery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["account_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, - } - schemaAttrs["private_key"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultUnlock(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsVaultVaultUnlockResponse(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["expires_at"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["session_password"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -7185,73 +3747,6 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu } return schemaAttrs } -func resourceSchemaAttrsWebhookWebhookDelivery(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - if recurse { - maps.Copy(schemaAttrs, resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(false)) - } - schemaAttrs["links"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsRestLink(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsAuthPermission(recurse), - }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookPush(false), - } - attr.Optional = true - schemaAttrs["payload"] = attr - } - schemaAttrs["reponse_headers"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["request_headers"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["response"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["status"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["time"] = rsschema.Int64Attribute{ - Optional: true, - } - schemaAttrs["trigger_time"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookDeliveryLinkableWrapper(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsWebhookWebhookDelivery(recurse), - }, - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookDelivery_additionalObjects(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsAuditInfo(recurse), - } - attr.Computed = true - schemaAttrs["audit"] = attr - } - return schemaAttrs -} func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["items"] = rsschema.ListNestedAttribute{ @@ -7262,158 +3757,6 @@ func resourceSchemaAttrsWebhookWebhookLinkableWrapper(recurse bool) map[string]r } return schemaAttrs } -func resourceSchemaAttrsWebhookWebhookNameUuid(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["name"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsLinkable(recurse), - } - attr.Optional = true - schemaAttrs["object"] = attr - } - schemaAttrs["uuid"] = rsschema.StringAttribute{ - Optional: true, - } - return schemaAttrs -} -func resourceSchemaAttrsWebhookWebhookPush(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["account"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["by_party"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["certificate"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["client"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["directory"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["group"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["group2"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["group_classification"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["modification_request"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["organizational_unit"] = attr - } - schemaAttrs["parameter1"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["parameter2"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["parameter3"] = rsschema.StringAttribute{ - Optional: true, - } - schemaAttrs["security_level"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "LOW", "MEDIUM", "HIGH", - ), - }, - } - schemaAttrs["seq"] = rsschema.Int64Attribute{ - Computed: true, - Optional: true, - Default: int64default.StaticInt64(0), - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["service_account"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["system"] = attr - } - schemaAttrs["timestamp"] = rsschema.StringAttribute{ - Optional: true, - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["vault_record"] = attr - } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsWebhookWebhookNameUuid(recurse), - } - attr.Optional = true - schemaAttrs["webhook"] = attr - } - schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "ACCOUNT_2FA_DISABLED", "ACCOUNT_2FA_ENABLED", "ACCOUNT_ADDED_TO_GROUP", "ACCOUNT_ADDED_TO_ORGANIZATIONAL_UNIT", "ACCOUNT_CREATED", "ACCOUNT_DEPROVISIONED", "ACCOUNT_DISABLED", "ACCOUNT_ENABLED", "ACCOUNT_GROUP_ACTIVATED", "ACCOUNT_GROUP_ACTIVATION_REASON", "ACCOUNT_GROUP_DEPROVISIONED", "ACCOUNT_GROUP_PROVISIONED", "ACCOUNT_LOGIN", "ACCOUNT_LOGIN_FAILED", "ACCOUNT_MODIFIED_FOR_GROUP", "ACCOUNT_PASSWORD_CHANGED", "ACCOUNT_PROVISIONED", "ACCOUNT_PROVISIONING_DESTROYED", "ACCOUNT_PROVISIONING_INITED", "ACCOUNT_PROVISIONING_SETUP", "ACCOUNT_REMOVED", "ACCOUNT_REMOVED_FROM_GROUP", "ACCOUNT_REMOVED_FROM_ORGANIZATIONAL_UNIT", "ACCOUNT_REREGISTERED", "ACCOUNT_SSH_PUBLIC_KEY_MODIFIED", "ACCOUNT_TOKEN_SIGNED", "ACCOUNT_TOTP_OFFSET_CHANGED", "ACCOUNT_VAULT_UNLOCKED", "ADD_GROUP_ADMIN_ACCEPTED", "ADD_GROUP_ADMIN_DECLINED", "ADD_GROUP_ADMIN_REQUESTED", "AUDITOR_EXPORT_GENERATED", "CERTIFICATE_CREATED", "CERTIFICATE_MODIFIED", "CERTIFICATE_REMOVED", "CLIENT_ADDED_TO_GROUP", "CLIENT_CREATED", "CLIENT_MODIFIED", "CLIENT_MODIFIED_FOR_GROUP", "CLIENT_PERMISSION_GRANTED", "CLIENT_PERMISSION_REVOKED", "CLIENT_REMOVED", "CLIENT_REMOVED_FROM_GROUP", "CLIENT_SECRET_ROTATED", "CREATE_GROUP_ACCEPTED", "CREATE_GROUP_DECLINED", "CREATE_GROUP_REQUESTED", "CREATE_GROUP_ON_SYSTEM_ACCEPTED", "CREATE_GROUP_ON_SYSTEM_DECLINED", "CREATE_GROUP_ON_SYSTEM_REQUESTED", "CREATE_SERVICE_ACCOUNT_ACCEPTED", "CREATE_SERVICE_ACCOUNT_DECLINED", "CREATE_SERVICE_ACCOUNT_REQUESTED", "DIRECTORY_CREATED", "DIRECTORY_HELPDESK_MODIFIED", "DIRECTORY_MODIFIED", "DIRECTORY_REMOVED", "DISABLE_2FA_ACCEPTED", "DISABLE_2FA_DECLINED", "DISABLE_2FA_REQUESTED", "ENABLE_TECHNICAL_ADMINISTRATION_ACCEPTED", "ENABLE_TECHNICAL_ADMINISTRATION_DECLINED", "ENABLE_TECHNICAL_ADMINISTRATION_REQUESTED", "EXTENDED_ACCESS_ACCEPTED", "EXTENDED_ACCESS_DECLINED", "EXTENDED_ACCESS_REQUESTED", "GRANT_ACCESS_ACCEPTED", "GRANT_ACCESS_DECLINED", "GRANT_ACCESS_REQUESTED", "GRANT_APPLICATION_ACCEPTED", "GRANT_APPLICATION_DECLINED", "GRANT_APPLICATION_REQUESTED", "GRANT_CLIENT_PERMISSION_ACCEPTED", "GRANT_CLIENT_PERMISSION_DECLINED", "GRANT_CLIENT_PERMISSION_REQUESTED", "GRANT_GROUP_ON_SYSTEM_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUESTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_ACCEPTED", "GRANT_GROUP_ON_SYSTEM_REQUEST_DECLINED", "GRANT_GROUP_ON_SYSTEM_REQUEST_REQUESTED", "GRANT_SERVICE_ACCOUNT_GROUP_ACCEPTED", "GRANT_SERVICE_ACCOUNT_GROUP_DECLINED", "GRANT_SERVICE_ACCOUNT_GROUP_REQUESTED", "GROUP_AUDIT_CREATED", "GROUP_AUDIT_REQUESTED", "GROUP_AUTHORIZATION_CONNECTED", "GROUP_AUTHORIZATION_DISCONNECTED", "GROUP_CLASSIFICATION_ASSIGNED", "GROUP_CLASSIFICATION_CREATED", "GROUP_CLASSIFICATION_MODIFIED", "GROUP_CLASSIFICATION_REMOVED", "GROUP_CREATED", "GROUP_MODIFIED", "GROUP_NESTING_CONNECTED", "GROUP_NESTING_DISCONNECTED", "GROUP_ON_SYSTEM_CREATED", "GROUP_ON_SYSTEM_DEPROVISIONED", "GROUP_ON_SYSTEM_PROVISIONED", "GROUP_ON_SYSTEM_REMOVED", "GROUP_REMOVED", "INTERNAL_ACCOUNT_ACTIVATED", "INTERNAL_ACCOUNT_CREATED", "INTERNAL_ACCOUNT_MODIFIED", "INTERNAL_ACCOUNT_REMOVED", "INVALID_SIGNATURE_DETECTED", "JOIN_GROUP_ACCEPTED", "JOIN_GROUP_DECLINED", "JOIN_GROUP_REQUESTED", "JOIN_VAULT_ACCEPTED", "JOIN_VAULT_DECLINED", "JOIN_VAULT_REQUESTED", "LICENSE_KEY_UPLOADED", "ORGANIZATIONAL_UNIT_CREATED", "ORGANIZATIONAL_UNIT_MODIFIED", "ORGANIZATIONAL_UNIT_REMOVED", "PROVISIONED_SYSTEM_ADDED_TO_GROUP", "PROVISIONED_SYSTEM_CREATED", "PROVISIONED_SYSTEM_MODIFIED", "PROVISIONED_SYSTEM_MODIFIED_FOR_GROUP", "PROVISIONED_SYSTEM_REMOVED", "PROVISIONED_SYSTEM_REMOVED_FROM_GROUP", "PROVISIONED_SYSTEM_UNKNOWN_ACCOUNT_DESTROYED", "REMOVE_GROUP_ACCEPTED", "REMOVE_GROUP_DECLINED", "REMOVE_GROUP_REQUESTED", "REMOVE_ORGANIZATIONAL_UNIT_ACCEPTED", "REMOVE_ORGANIZATIONAL_UNIT_DECLINED", "REMOVE_ORGANIZATIONAL_UNIT_REQUESTED", "REMOVE_PROVISIONED_SYSTEM_ACCEPTED", "REMOVE_PROVISIONED_SYSTEM_DECLINED", "REMOVE_PROVISIONED_SYSTEM_REQUESTED", "RESET_PASSWORD_ACCEPTED", "RESET_PASSWORD_DECLINED", "RESET_PASSWORD_FINISHED", "RESET_PASSWORD_REQUESTED", "REVIEW_AUDIT_ACCEPTED", "REVIEW_AUDIT_DECLINED", "REVIEW_AUDIT_REQUESTED", "REVOKE_ADMIN_ACCEPTED", "REVOKE_ADMIN_DECLINED", "REVOKE_ADMIN_REQUESTED", "SERVICE_ACCOUNT_ADDED_TO_GROUP", "SERVICE_ACCOUNT_CREATED", "SERVICE_ACCOUNT_GROUP_DEPROVISIONED", "SERVICE_ACCOUNT_GROUP_PROVISIONED", "SERVICE_ACCOUNT_MODIFIED", "SERVICE_ACCOUNT_PASSWORD_ROTATED", "SERVICE_ACCOUNT_PROVISIONING_DESTROYED", "SERVICE_ACCOUNT_PROVISIONING_INITED", "SERVICE_ACCOUNT_REMOVED", "SERVICE_ACCOUNT_REMOVED_FROM_GROUP", "SETUP_AUTHORIZING_GROUP_CONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_CONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_CONNECT_REQUESTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_ACCEPTED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_DECLINED", "SETUP_AUTHORIZING_GROUP_DISCONNECT_REQUESTED", "SETUP_NESTED_GROUP_CONNECT_ACCEPTED", "SETUP_NESTED_GROUP_CONNECT_DECLINED", "SETUP_NESTED_GROUP_CONNECT_REQUESTED", "SETUP_NESTED_GROUP_DISCONNECT_ACCEPTED", "SETUP_NESTED_GROUP_DISCONNECT_DECLINED", "SETUP_NESTED_GROUP_DISCONNECT_REQUESTED", "TRANSFER_APPLICATION_ADMINISTRATION_ACCEPTED", "TRANSFER_APPLICATION_ADMINISTRATION_DECLINED", "TRANSFER_APPLICATION_ADMINISTRATION_REQUESTED", "TRANSFER_APPLICATION_OWNERSHIP_ACCEPTED", "TRANSFER_APPLICATION_OWNERSHIP_DECLINED", "TRANSFER_APPLICATION_OWNERSHIP_REQUESTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_GROUP_ON_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_ACCEPTED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_DECLINED", "TRANSFER_ORGANIZATIONAL_UNIT_OWNERSHIP_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_CONTENT_ADMINISTRATION_REQUESTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_ACCEPTED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_DECLINED", "TRANSFER_PROVISIONED_SYSTEM_OWNERSHIP_REQUESTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_ACCEPTED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_DECLINED", "TRANSFER_SERVICE_ACCOUNT_ADMINISTRATION_REQUESTED", "TRANSFER_AUDITOR_GROUP_ACCEPTED", "TRANSFER_AUDITOR_GROUP_DECLINED", "TRANSFER_AUDITOR_GROUP_REQUESTED", "UPDATE_GROUP_MEMBERSHIP_ACCEPTED", "UPDATE_GROUP_MEMBERSHIP_DECLINED", "UPDATE_GROUP_MEMBERSHIP_REQUESTED", "VAULT_ACCESS_RESTORED", "VAULT_EXPORTED", "VAULT_PERSONAL_RESET", "VAULT_PERSONAL_SETUP", "VAULT_RECORD_CREATED", "VAULT_RECORD_MODIFIED", "VAULT_RECORD_MOVED_COPIED_SHARED", "VAULT_RECORD_READ", "VAULT_RECORD_REMOVED", "VAULT_RECOVERED", "VERIFY_INTERNAL_ACCOUNT_ACCEPTED", "VERIFY_INTERNAL_ACCOUNT_DECLINED", "VERIFY_INTERNAL_ACCOUNT_REQUESTED", "WEBHOOK_CREATED", "WEBHOOK_MODIFIED", "WEBHOOK_REMOVED", - ), - }, - } - return schemaAttrs -} func resourceSchemaAttrsWebhookWebhook_additionalObjects(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) { diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index e6c3480..dddc496 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -15,20 +15,6 @@ func fillDataStructFromTFObjectDSAuditInfo(data *auditInfoDataDS, obj types.Obje data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSErrorReport(data *errorReportDataDS, obj types.Object) { - data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) - data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) - data.Code = obj.Attributes()["code"].(basetypes.Int64Value) - data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) - data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) - data.Message = obj.Attributes()["message"].(basetypes.StringValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataDS, obj types.Object) { -} - func fillDataStructFromTFObjectDSGeneratedSecret(data *generatedSecretDataDS, obj types.Object) { data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) @@ -50,71 +36,6 @@ func fillDataStructFromTFObjectDSRestLink(data *restLinkDataDS, obj types.Object data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSSegmentCount(data *segmentCountDataDS, obj types.Object) { - data.Count = obj.Attributes()["count"].(basetypes.Int64Value) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAccountVaultVaultRecord(data *accountVaultVaultRecordDataDS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) - data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuditAuditRecord(data *auditAuditRecordDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) - data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) - data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) - data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) - data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) - data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) - data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) - data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) - data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) - data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) - data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) - data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) - data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) - data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -151,20 +72,6 @@ func fillDataStructFromTFObjectDSAuthAccount(data *authAccountDataDS, obj types. data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectDSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataDS, obj types.Object) { - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) - data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuthAccountChangeLocale(data *authAccountChangeLocaleDataDS, obj types.Object) { - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSAuthAccountPrimer(data *authAccountPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -195,15 +102,6 @@ func fillDataStructFromTFObjectDSAuthAccountSettings(data *authAccountSettingsDa data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSAuthAccountStatus(data *authAccountStatusDataDS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) -} - func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataDS, obj types.Object) { data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) @@ -214,76 +112,6 @@ func fillDataStructFromTFObjectDSAuthAccount_additionalObjects(data *authAccount data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSAuthAccountsAuditStats(data *authAccountsAuditStatsDataDS, obj types.Object) { - data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_fa_stats"].(basetypes.ObjectValue) - data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSAuthInternalAccount(data *authInternalAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataDS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSAuthMoveInternalAccount(data *authMoveInternalAccountDataDS, obj types.Object) { - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectDSAuthPermission(data *authPermissionDataDS, obj types.Object) { data.Full = obj.Attributes()["full"].(basetypes.StringValue) data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) @@ -317,10 +145,6 @@ func fillDataStructFromTFObjectDSCertificateCertificate(data *certificateCertifi data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSCertificateCertificatePrimer(data *certificateCertificatePrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -339,32 +163,6 @@ func fillDataStructFromTFObjectDSCertificateCertificate_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSClientApplicationVaultVaultRecord(data *clientApplicationVaultVaultRecordDataDS, obj types.Object) { - data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) - data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientApplicationDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -384,8 +182,8 @@ func fillDataStructFromTFObjectDSClientClientApplication(data *clientClientAppli data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) - data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) } @@ -446,10 +244,6 @@ func fillDataStructFromTFObjectDSClientOAuth2ClientPermission(data *clientOAuth2 data.Value = obj.Attributes()["value"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -482,32 +276,6 @@ func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { } -func fillDataStructFromTFObjectDSDeletedVaultHolderVaultVaultRecord(data *deletedVaultHolderVaultVaultRecordDataDS, obj types.Object) { - data.DeletedVaultHolderUUID = obj.Attributes()["deleted_vault_holder_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) - data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -526,10 +294,10 @@ func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectDSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataDS, obj types.Object) { @@ -724,23 +492,10 @@ func fillDataStructFromTFObjectDSGroupGroupAccountLinkableWrapper(data *groupGro data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSGroupGroupAccountNesting(data *groupGroupAccountNestingDataDS, obj types.Object) { - data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSGroupGroupAccountStatus(data *groupGroupAccountStatusDataDS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - func fillDataStructFromTFObjectDSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSGroupGroupAdminMail(data *groupGroupAdminMailDataDS, obj types.Object) { - data.Body = obj.Attributes()["body"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSGroupGroupAudit(data *groupGroupAuditDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -827,10 +582,6 @@ func fillDataStructFromTFObjectDSGroupGroupClassificationInfo(data *groupGroupCl data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectDSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -838,10 +589,6 @@ func fillDataStructFromTFObjectDSGroupGroupClassificationPrimer(data *groupGroup data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataDS, obj types.Object) { - data.Classificaton = obj.Attributes()["classificaton"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectDSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) @@ -875,10 +622,6 @@ func fillDataStructFromTFObjectDSGroupGroupFolder(data *groupGroupFolderDataDS, data.Name = obj.Attributes()["name"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } @@ -908,11 +651,6 @@ func fillDataStructFromTFObjectDSGroupGroupPrimerLinkableWrapper(data *groupGrou data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataDS, obj types.Object) { data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ListValue) @@ -943,16 +681,6 @@ func fillDataStructFromTFObjectDSGroupGroup_additionalObjects(data *groupGroup_a data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataDS, obj types.Object) { - data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) - data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) - data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) - data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) - data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) - data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) - data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectDSGroupProvisioningGroup(data *groupProvisioningGroupDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -971,81 +699,6 @@ func fillDataStructFromTFObjectDSGroupProvisioningGroup_additionalObjects(data * data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSGroupVaultVaultRecord(data *groupVaultVaultRecordDataDS, obj types.Object) { - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) - data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.URI = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) - data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) - data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataDS, obj types.Object) { - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.URI = obj.Attributes()["uri"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataDS, obj types.Object) { data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } @@ -1053,25 +706,6 @@ func fillDataStructFromTFObjectDSLaunchpadSsoApplicationLaunchpadTile(data *laun func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataDS, obj types.Object) { } -func fillDataStructFromTFObjectDSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataDS, obj types.Object) { - data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) - data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) - data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) - data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) - data.Details = obj.Attributes()["details"].(basetypes.ListValue) - data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) - data.Features = obj.Attributes()["features"].(basetypes.ListValue) - data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) - data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) - data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) - data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) - data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) - data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) - data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Version = obj.Attributes()["version"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) @@ -1085,300 +719,10 @@ func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, ob data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSNestedAuthInternalAccount(data *nestedAuthInternalAccountDataDS, obj types.Object) { - data.AccountDirectoryUUID = obj.Attributes()["account_directory_uuid"].(basetypes.StringValue) +func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNestedClientOAuth2ClientPermission(data *nestedClientOAuth2ClientPermissionDataDS, obj types.Object) { - data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ForGroup = obj.Attributes()["for_group"].(basetypes.ObjectValue) - data.ForSystem = obj.Attributes()["for_system"].(basetypes.ObjectValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataDS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Admin = obj.Attributes()["admin"].(basetypes.BoolValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataDS, obj types.Object) { - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSNestedGroupGroupAudit(data *nestedGroupGroupAuditDataDS, obj types.Object) { - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) - data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) - data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) - data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) - data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataDS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataDS, obj types.Object) { - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNestedProvisioningGroupOnSystem(data *nestedProvisioningGroupOnSystemDataDS, obj types.Object) { - data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Provgroups = obj.Attributes()["provgroups"].(basetypes.ListValue) - data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) - data.Owner = obj.Attributes()["owner"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataDS, obj types.Object) { - data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSNestedProvisioningProvisionedSystemSyncLog(data *nestedProvisioningProvisionedSystemSyncLogDataDS, obj types.Object) { - data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSNestedServiceaccountServiceAccountGroup(data *nestedServiceaccountServiceAccountGroupDataDS, obj types.Object) { - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataDS, obj types.Object) { - data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) - data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) - data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) - data.Response = obj.Attributes()["response"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.Int64Value) - data.Time = obj.Attributes()["time"].(basetypes.Int64Value) - data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataDS, obj types.Object) { - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataDS, obj types.Object) { - data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataDS, obj types.Object) { - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataDS, obj types.Object) { - data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) - data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataDS, obj types.Object) { - data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationNotification(data *notificationNotificationDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSNotificationNotifications(data *notificationNotificationsDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataDS, obj types.Object) { - data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataDS, obj types.Object) { - data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataDS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataDS, obj types.Object) { - data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataDS, obj types.Object) { - data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) + data.Name = obj.Attributes()["name"].(basetypes.StringValue) data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) @@ -1388,27 +732,6 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit(data *organizati data.Parent = obj.Attributes()["parent"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } @@ -1420,10 +743,6 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimer(data *orga data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(data *organizationOrganizationalUnitPrimerLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObjects(data *organizationOrganizationalUnit_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } @@ -1450,16 +769,6 @@ func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provi func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataDS, obj types.Object) { } -func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataDS, obj types.Object) { - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Result = obj.Attributes()["result"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataDS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataDS, obj types.Object) { data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) @@ -1504,21 +813,6 @@ func fillDataStructFromTFObjectDSProvisioningGroupOnSystem_additionalObjects(dat data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataDS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) - data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) - data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataDS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) @@ -1535,10 +829,6 @@ func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence(data *provi data.NextUID = obj.Attributes()["next_uid"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) @@ -1561,10 +851,6 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedAccount(data *provisioni data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectDSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } @@ -1630,13 +916,13 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministrator = obj.Attributes()["technical_administrator"].(basetypes.ObjectValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } @@ -1658,25 +944,6 @@ func fillDataStructFromTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrap data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectDSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataDS, obj types.Object) { data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) @@ -1694,251 +961,6 @@ func fillDataStructFromTFObjectDSProvisioningProvisioningManagementPermissions(d data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectDSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataDS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) - data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSProvisioningTokenPassword(data *provisioningTokenPasswordDataDS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataDS, obj types.Object) { - data.Application = obj.Attributes()["application"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataDS, obj types.Object) { - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataDS, obj types.Object) { - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataDS, obj types.Object) { - data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataDS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectDSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataDS, obj types.Object) { - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectDSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataDS, obj types.Object) { - data.NewAdmin = obj.Attributes()["new_admin"].(basetypes.ObjectValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataDS, obj types.Object) { - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestCreateGroupRequest(data *requestCreateGroupRequestDataDS, obj types.Object) { - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataDS, obj types.Object) { - data.Username = obj.Attributes()["username"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestDisable2FARequest(data *requestDisable2FARequestDataDS, obj types.Object) { - data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestExtendAccessRequest(data *requestExtendAccessRequestDataDS, obj types.Object) { - data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestGrantAccessRequest(data *requestGrantAccessRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataDS, obj types.Object) { - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataDS, obj types.Object) { - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataDS, obj types.Object) { - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataDS, obj types.Object) { - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestJoinGroupRequest(data *requestJoinGroupRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestJoinVaultRequest(data *requestJoinVaultRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestModificationRequest(data *requestModificationRequestDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestPasswordResetRequest(data *requestPasswordResetRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataDS, obj types.Object) { - data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) - data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) - data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) - data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataDS, obj types.Object) { - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataDS, obj types.Object) { - data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataDS, obj types.Object) { - data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestReviewAuditRequest(data *requestReviewAuditRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataDS, obj types.Object) { - data.Admin = obj.Attributes()["admin"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataDS, obj types.Object) { - data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataDS, obj types.Object) { - data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroup = obj.Attributes()["requesting_group"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataDS, obj types.Object) { - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataDS, obj types.Object) { - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataDS, obj types.Object) { - data.AccountToUpdate = obj.Attributes()["account_to_update"].(basetypes.ObjectValue) - data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) - data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataDS, obj types.Object) { - data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1994,75 +1016,12 @@ func fillDataStructFromTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapp data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataDS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) -} - func fillDataStructFromTFObjectDSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataDS, obj types.Object) { - data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) - data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) - data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataDS, obj types.Object) { -} - -func fillDataStructFromTFObjectDSSimpleStringValue(data *simpleStringValueDataDS, obj types.Object) { - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSSimpleVersionInfo(data *simpleVersionInfoDataDS, obj types.Object) { - data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) - data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) - data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataDS, obj types.Object) { - data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) - data.TargetGroup = obj.Attributes()["target_group"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataDS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectDSVaultPasswordMetadata(data *vaultPasswordMetadataDataDS, obj types.Object) { data.Dictionary = obj.Attributes()["dictionary"].(basetypes.BoolValue) data.Duplicate = obj.Attributes()["duplicate"].(basetypes.BoolValue) @@ -2111,10 +1070,6 @@ func fillDataStructFromTFObjectDSVaultVaultRecord(data *vaultVaultRecordDataDS, data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectDSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -2156,20 +1111,6 @@ func fillDataStructFromTFObjectDSVaultVaultRecord_additionalObjects(data *vaultV data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSVaultVaultRecovery(data *vaultVaultRecoveryDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultUnlock(data *vaultVaultUnlockDataDS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataDS, obj types.Object) { - data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) - data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -2198,62 +1139,10 @@ func fillDataStructFromTFObjectDSWebhookWebhook(data *webhookWebhookDataDS, obj data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectDSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataDS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Additional = obj.Attributes()["additional"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) - data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) - data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) - data.Response = obj.Attributes()["response"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.Int64Value) - data.Time = obj.Attributes()["time"].(basetypes.Int64Value) - data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataDS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataDS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectDSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataDS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectDSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataDS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectDSWebhookWebhookPush(data *webhookWebhookPushDataDS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) - data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) - data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) - data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["type"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectDSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataDS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 5e39847..3dba160 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -15,20 +15,6 @@ func fillDataStructFromTFObjectRSAuditInfo(data *auditInfoDataRS, obj types.Obje data.LastModifiedBy = obj.Attributes()["last_modified_by"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSErrorReport(data *errorReportDataRS, obj types.Object) { - data.ApplicationError = obj.Attributes()["application_error"].(basetypes.StringValue) - data.ApplicationErrorParameters = obj.Attributes()["application_error_parameters"].(basetypes.ObjectValue) - data.Code = obj.Attributes()["code"].(basetypes.Int64Value) - data.ErrorDetails = obj.Attributes()["error_details"].(basetypes.ListValue) - data.Exception = obj.Attributes()["exception"].(basetypes.StringValue) - data.Message = obj.Attributes()["message"].(basetypes.StringValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) - data.Stacktrace = obj.Attributes()["stacktrace"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSErrorReport_applicationErrorParameters(data *errorReport_applicationErrorParametersDataRS, obj types.Object) { -} - func fillDataStructFromTFObjectRSGeneratedSecret(data *generatedSecretDataRS, obj types.Object) { data.GeneratedSecret = obj.Attributes()["generated_secret"].(basetypes.StringValue) data.OldSecret = obj.Attributes()["old_secret"].(basetypes.StringValue) @@ -50,119 +36,6 @@ func fillDataStructFromTFObjectRSRestLink(data *restLinkDataRS, obj types.Object data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSSegmentCount(data *segmentCountDataRS, obj types.Object) { - data.Count = obj.Attributes()["count"].(basetypes.Int64Value) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAccountVaultVaultRecord(data *accountVaultVaultRecordDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) - data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) - data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuditAuditRecord(data *auditAuditRecordDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.AuditAuditRecordType = obj.Attributes()["type"].(basetypes.StringValue) - data.DateTime = obj.Attributes()["date_time"].(basetypes.StringValue) - data.OnAccount = obj.Attributes()["on_account"].(basetypes.StringValue) - data.OnCertificate = obj.Attributes()["on_certificate"].(basetypes.StringValue) - data.OnClient = obj.Attributes()["on_client"].(basetypes.StringValue) - data.OnDirectory = obj.Attributes()["on_directory"].(basetypes.StringValue) - data.OnGroup = obj.Attributes()["on_group"].(basetypes.StringValue) - data.OnGroup2 = obj.Attributes()["on_group2"].(basetypes.StringValue) - data.OnGroupClassification = obj.Attributes()["on_group_classification"].(basetypes.StringValue) - data.OnOrganizationalUnit = obj.Attributes()["on_organizational_unit"].(basetypes.StringValue) - data.OnServiceAccount = obj.Attributes()["on_service_account"].(basetypes.StringValue) - data.OnSystem = obj.Attributes()["on_system"].(basetypes.StringValue) - data.OnVaultRecord = obj.Attributes()["on_vault_record"].(basetypes.StringValue) - data.OnWebhook = obj.Attributes()["on_webhook"].(basetypes.StringValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.PerformedBy = obj.Attributes()["performed_by"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuditAuditRecordLinkableWrapper(data *auditAuditRecordLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuditAuditRecord_additionalObjects(data *auditAuditRecord_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthAccount(data *authAccountDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.LastActive = obj.Attributes()["last_active"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) - data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Active = obj.Attributes()["active"].(basetypes.BoolValue) - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryPasswordChangeRequired = obj.Attributes()["directory_password_change_required"].(basetypes.BoolValue) - data.DirectoryRotatingPassword = obj.Attributes()["directory_rotating_password"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.Email = obj.Attributes()["email"].(basetypes.StringValue) - data.IDInDirectory = obj.Attributes()["id_in_directory"].(basetypes.StringValue) - data.KeyHubPasswordChangeRequired = obj.Attributes()["key_hub_password_change_required"].(basetypes.BoolValue) - data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TokenPasswordEnabled = obj.Attributes()["token_password_enabled"].(basetypes.BoolValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.ValidInDirectory = obj.Attributes()["valid_in_directory"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSAuthAccountBulkUpdate(data *authAccountBulkUpdateDataRS, obj types.Object) { - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.ExclusiveSelection = obj.Attributes()["exclusive_selection"].(basetypes.BoolValue) - data.SelectedAccounts = obj.Attributes()["selected_accounts"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuthAccountChangeLocale(data *authAccountChangeLocaleDataRS, obj types.Object) { - data.Locale = obj.Attributes()["locale"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthAccountLinkableWrapper(data *authAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSAuthAccountPrimer(data *authAccountPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -173,83 +46,6 @@ func fillDataStructFromTFObjectRSAuthAccountPrimer(data *authAccountPrimerDataRS data.Validity = obj.Attributes()["validity"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSAuthAccountRecoveryStatus(data *authAccountRecoveryStatusDataRS, obj types.Object) { - data.Pending2FARecoveryRequest = obj.Attributes()["pending2fa_recovery_request"].(basetypes.BoolValue) - data.PendingPasswordRecoveryRequest = obj.Attributes()["pending_password_recovery_request"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSAuthAccountSettings(data *authAccountSettingsDataRS, obj types.Object) { - data.DefaultOrganizationalUnitUUID = obj.Attributes()["default_organizational_unit_uuid"].(basetypes.StringValue) - data.DirectoryName = obj.Attributes()["directory_name"].(basetypes.StringValue) - data.DirectoryType = obj.Attributes()["directory_type"].(basetypes.StringValue) - data.InGroups = obj.Attributes()["in_groups"].(basetypes.BoolValue) - data.InMultipleOrganizationalUnits = obj.Attributes()["in_multiple_organizational_units"].(basetypes.BoolValue) - data.KeyHubAdmin = obj.Attributes()["key_hub_admin"].(basetypes.BoolValue) - data.MultipleOrganizationalUnitsExist = obj.Attributes()["multiple_organizational_units_exist"].(basetypes.BoolValue) - data.PasswordMode = obj.Attributes()["password_mode"].(basetypes.StringValue) - data.SshPublicKey = obj.Attributes()["ssh_public_key"].(basetypes.StringValue) - data.TwoFactorAuthentication = obj.Attributes()["two_factor_authentication"].(basetypes.StringValue) - data.UseTokenPassword = obj.Attributes()["use_token_password"].(basetypes.BoolValue) - data.VaultStatus = obj.Attributes()["vault_status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthAccountStatus(data *authAccountStatusDataRS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) - data.CanRequestGroups = obj.Attributes()["can_request_groups"].(basetypes.BoolValue) - data.DeclineRecoveryRequests = obj.Attributes()["decline_recovery_requests"].(basetypes.BoolValue) - data.LicenseRole = obj.Attributes()["license_role"].(basetypes.StringValue) - data.ReregistrationRequired = obj.Attributes()["reregistration_required"].(basetypes.BoolValue) - data.TwoFactorAuthenticationEnabled = obj.Attributes()["two_factor_authentication_enabled"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSAuthAccount_additionalObjects(data *authAccount_additionalObjectsDataRS, obj types.Object) { - data.ActiveLogin = obj.Attributes()["active_login"].(basetypes.BoolValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.PendingRecoveryRequests = obj.Attributes()["pending_recovery_requests"].(basetypes.ObjectValue) - data.Settings = obj.Attributes()["settings"].(basetypes.ObjectValue) - data.StoredAttributes = obj.Attributes()["stored_attributes"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats(data *authAccountsAuditStatsDataRS, obj types.Object) { - data.DirectoryStats = obj.Attributes()["directory_stats"].(basetypes.ObjectValue) - data.TwoFAStats = obj.Attributes()["two_fa_stats"].(basetypes.ObjectValue) - data.ValidityStats = obj.Attributes()["validity_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats_directoryStats(data *authAccountsAuditStats_directoryStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats_twoFAStats(data *authAccountsAuditStats_twoFAStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSAuthAccountsAuditStats_validityStats(data *authAccountsAuditStats_validityStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSAuthInternalAccount(data *authInternalAccountDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthInternalAccountLinkableWrapper(data *authInternalAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSAuthInternalAccountStatusObject(data *authInternalAccountStatusObjectDataRS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthMoveInternalAccount(data *authMoveInternalAccountDataRS, obj types.Object) { - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSAuthPermission(data *authPermissionDataRS, obj types.Object) { data.Full = obj.Attributes()["full"].(basetypes.StringValue) data.Instances = obj.Attributes()["instances"].(basetypes.ListValue) @@ -257,35 +53,6 @@ func fillDataStructFromTFObjectRSAuthPermission(data *authPermissionDataRS, obj data.TypeEscaped = obj.Attributes()["type_escaped"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSAuthStoredAccountAttribute(data *authStoredAccountAttributeDataRS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSAuthStoredAccountAttributes(data *authStoredAccountAttributesDataRS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSCertificateCertificate(data *certificateCertificateDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Alias = obj.Attributes()["alias"].(basetypes.StringValue) - data.CertificateCertificatePrimerType = obj.Attributes()["type"].(basetypes.StringValue) - data.CertificateData = obj.Attributes()["certificate_data"].(basetypes.ListValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.FingerprintSha1 = obj.Attributes()["fingerprint_sha1"].(basetypes.StringValue) - data.FingerprintSha256 = obj.Attributes()["fingerprint_sha256"].(basetypes.StringValue) - data.Global = obj.Attributes()["global"].(basetypes.BoolValue) - data.SubjectDN = obj.Attributes()["subject_dn"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.KeyData = obj.Attributes()["key_data"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSCertificateCertificateLinkableWrapper(data *certificateCertificateLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateCertificatePrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -300,10 +67,6 @@ func fillDataStructFromTFObjectRSCertificateCertificatePrimer(data *certificateC data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSCertificateCertificate_additionalObjects(data *certificateCertificate_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSClientApplicationVaultVaultRecord(data *clientApplicationVaultVaultRecordDataRS, obj types.Object) { data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) data.Links = obj.Attributes()["links"].(basetypes.ListValue) @@ -349,8 +112,8 @@ func fillDataStructFromTFObjectRSClientClientApplication(data *clientClientAppli data.LastModifiedAt = obj.Attributes()["last_modified_at"].(basetypes.StringValue) data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) - data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) + data.OAuth2Client = obj.Attributes()["o_auth2_client"].(basetypes.ObjectValue) data.Saml2Client = obj.Attributes()["saml2_client"].(basetypes.ObjectValue) } @@ -411,10 +174,6 @@ func fillDataStructFromTFObjectRSClientOAuth2ClientPermission(data *clientOAuth2 data.Value = obj.Attributes()["value"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(data *clientOAuth2ClientPermissionLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClient(data *clientOAuth2ClientPermissionWithClientDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -446,32 +205,6 @@ func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { } -func fillDataStructFromTFObjectRSDeletedVaultHolderVaultVaultRecord(data *deletedVaultHolderVaultVaultRecordDataRS, obj types.Object) { - data.DeletedVaultHolderUUID = obj.Attributes()["deleted_vault_holder_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Color = obj.Attributes()["color"].(basetypes.StringValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.ShareEndTime = obj.Attributes()["share_end_time"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DeleteTile = obj.Attributes()["delete_tile"].(basetypes.BoolValue) - data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) - data.PasswordMetadata = obj.Attributes()["password_metadata"].(basetypes.ObjectValue) - data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) - data.ShareSummary = obj.Attributes()["share_summary"].(basetypes.ObjectValue) - data.Shares = obj.Attributes()["shares"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) - data.Derived = obj.Attributes()["derived"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Filename = obj.Attributes()["filename"].(basetypes.StringValue) - data.Types = obj.Attributes()["types"].(basetypes.ListValue) - data.URL = obj.Attributes()["url"].(basetypes.StringValue) - data.Username = obj.Attributes()["username"].(basetypes.StringValue) - data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -489,10 +222,10 @@ func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccoun data.Restrict2fa = obj.Attributes()["restrict2fa"].(basetypes.BoolValue) data.RotatingPassword = obj.Attributes()["rotating_password"].(basetypes.StringValue) data.UsernameCustomizable = obj.Attributes()["username_customizable"].(basetypes.BoolValue) - data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) + data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) data.LDAPDirectory = obj.Attributes()["l_d_a_p_directory"].(basetypes.ObjectValue) data.MaintenanceDirectory = obj.Attributes()["maintenance_directory"].(basetypes.ObjectValue) - data.InternalDirectory = obj.Attributes()["internal_directory"].(basetypes.ObjectValue) + data.OIDCDirectory = obj.Attributes()["o_id_c_directory"].(basetypes.ObjectValue) } func fillDataStructFromTFObjectRSDirectoryAccountDirectoryLinkableWrapper(data *directoryAccountDirectoryLinkableWrapperDataRS, obj types.Object) { @@ -574,27 +307,6 @@ func fillDataStructFromTFObjectRSDirectoryOIDCDirectory(data *directoryOIDCDirec data.VendorEscaped = obj.Attributes()["vendor_escaped"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSGroupAccountGroup(data *groupAccountGroupDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupAccountGroupLinkableWrapper(data *groupAccountGroupLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupAccountGroup_additionalObjects(data *groupAccountGroup_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSGroupAuthorizedGroupsWrapper(data *groupAuthorizedGroupsWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) data.GroupCount = obj.Attributes()["group_count"].(basetypes.Int64Value) @@ -674,23 +386,10 @@ func fillDataStructFromTFObjectRSGroupGroupAccountLinkableWrapper(data *groupGro data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSGroupGroupAccountNesting(data *groupGroupAccountNestingDataRS, obj types.Object) { - data.Connected = obj.Attributes()["connected"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupAccountStatus(data *groupGroupAccountStatusDataRS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - func fillDataStructFromTFObjectRSGroupGroupAccount_additionalObjects(data *groupGroupAccount_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSGroupGroupAdminMail(data *groupGroupAdminMailDataRS, obj types.Object) { - data.Body = obj.Attributes()["body"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSGroupGroupAudit(data *groupGroupAuditDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -750,35 +449,6 @@ func fillDataStructFromTFObjectRSGroupGroupAuditingInfo(data *groupGroupAuditing data.NrVaultRecordsWithEndDate = obj.Attributes()["nr_vault_records_with_end_date"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectRSGroupGroupClassification(data *groupGroupClassificationDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) - data.AuthorizingGroupAuditingRequired = obj.Attributes()["authorizing_group_auditing_required"].(basetypes.BoolValue) - data.AuthorizingGroupDelegationRequired = obj.Attributes()["authorizing_group_delegation_required"].(basetypes.BoolValue) - data.AuthorizingGroupMembershipRequired = obj.Attributes()["authorizing_group_membership_required"].(basetypes.BoolValue) - data.AuthorizingGroupProvisioningRequired = obj.Attributes()["authorizing_group_provisioning_required"].(basetypes.BoolValue) - data.DefaultClassification = obj.Attributes()["default_classification"].(basetypes.BoolValue) - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.MaximumAuditInterval = obj.Attributes()["maximum_audit_interval"].(basetypes.Int64Value) - data.MinimumNrManagers = obj.Attributes()["minimum_nr_managers"].(basetypes.Int64Value) - data.RecordTrailRequired = obj.Attributes()["record_trail_required"].(basetypes.BoolValue) - data.RequiredMonths = obj.Attributes()["required_months"].(basetypes.ListValue) - data.RotatingPasswordRequired = obj.Attributes()["rotating_password_required"].(basetypes.BoolValue) - data.VaultRequiresActivation = obj.Attributes()["vault_requires_activation"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClassificationInfo(data *groupGroupClassificationInfoDataRS, obj types.Object) { - data.NrGroups = obj.Attributes()["nr_groups"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSGroupGroupClassificationLinkableWrapper(data *groupGroupClassificationLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSGroupGroupClassificationPrimer(data *groupGroupClassificationPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -786,15 +456,6 @@ func fillDataStructFromTFObjectRSGroupGroupClassificationPrimer(data *groupGroup data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSGroupGroupClassificationUpdate(data *groupGroupClassificationUpdateDataRS, obj types.Object) { - data.ClassificatonUUID = obj.Attributes()["classificaton_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupClassification_additionalObjects(data *groupGroupClassification_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Info = obj.Attributes()["info"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSGroupGroupClient(data *groupGroupClientDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -814,21 +475,6 @@ func fillDataStructFromTFObjectRSGroupGroupClient_additionalObjects(data *groupG data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSGroupGroupFolder(data *groupGroupFolderDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSGroupGroupFolderLinkableWrapper(data *groupGroupFolderLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSGroupGroupFolder_additionalObjects(data *groupGroupFolder_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSGroupGroupInfo(data *groupGroupInfoDataRS, obj types.Object) { data.NrAccounts = obj.Attributes()["nr_accounts"].(basetypes.Int64Value) data.NrAccountsWithVault = obj.Attributes()["nr_accounts_with_vault"].(basetypes.Int64Value) @@ -854,11 +500,6 @@ func fillDataStructFromTFObjectRSGroupGroupPrimerLinkableWrapper(data *groupGrou data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSGroupGroupSegmentedLinkableWrapper(data *groupGroupSegmentedLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) - data.Segments = obj.Attributes()["segments"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSGroupGroup_additionalObjects(data *groupGroup_additionalObjectsDataRS, obj types.Object) { data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) data.AdministeredClients = obj.Attributes()["administered_clients"].(basetypes.ListValue) @@ -889,16 +530,6 @@ func fillDataStructFromTFObjectRSGroupGroup_additionalObjects(data *groupGroup_a data.Webhooks = obj.Attributes()["webhooks"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSGroupGroupsAuditStats(data *groupGroupsAuditStatsDataRS, obj types.Object) { - data.AuditedGroups = obj.Attributes()["audited_groups"].(basetypes.Int64Value) - data.Classifications = obj.Attributes()["classifications"].(basetypes.ListValue) - data.OverdueAuditGroups = obj.Attributes()["overdue_audit_groups"].(basetypes.Int64Value) - data.OverdueVaultPolicies = obj.Attributes()["overdue_vault_policies"].(basetypes.Int64Value) - data.UnauditedGroups = obj.Attributes()["unaudited_groups"].(basetypes.Int64Value) - data.ValidVaultPolicies = obj.Attributes()["valid_vault_policies"].(basetypes.Int64Value) - data.VaultsWithoutPolicies = obj.Attributes()["vaults_without_policies"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectRSGroupProvisioningGroup(data *groupProvisioningGroupDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -942,54 +573,6 @@ func fillDataStructFromTFObjectRSGroupVaultVaultRecord(data *groupVaultVaultReco data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTile(data *launchpadDisplayedLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.Tile = obj.Attributes()["tile"].(basetypes.ObjectValue) - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.URI = obj.Attributes()["uri"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSLaunchpadDisplayedLaunchpadTiles(data *launchpadDisplayedLaunchpadTilesDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile(data *launchpadLaunchpadTileDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.IDenticonCode = obj.Attributes()["identicon_code"].(basetypes.Int64Value) - data.LaunchpadLaunchpadTileType = obj.Attributes()["launchpad_launchpad_tile_type"].(basetypes.StringValue) - data.Logo = obj.Attributes()["logo"].(basetypes.ListValue) - data.VaultRecordUUID = obj.Attributes()["vault_record_uuid"].(basetypes.StringValue) - data.VaultRecordLaunchpadTile = obj.Attributes()["vault_record_launchpad_tile"].(basetypes.ObjectValue) - data.SsoApplicationLaunchpadTile = obj.Attributes()["sso_application_launchpad_tile"].(basetypes.ObjectValue) - data.ManualLaunchpadTile = obj.Attributes()["manual_launchpad_tile"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(data *launchpadLaunchpadTileLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTilePrimer(data *launchpadLaunchpadTilePrimerDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSLaunchpadLaunchpadTile_additionalObjects(data *launchpadLaunchpadTile_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSLaunchpadManualLaunchpadTile(data *launchpadManualLaunchpadTileDataRS, obj types.Object) { - data.Title = obj.Attributes()["title"].(basetypes.StringValue) - data.URI = obj.Attributes()["uri"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *launchpadSsoApplicationLaunchpadTileDataRS, obj types.Object) { data.URI = obj.Attributes()["uri"].(basetypes.StringValue) } @@ -997,25 +580,6 @@ func fillDataStructFromTFObjectRSLaunchpadSsoApplicationLaunchpadTile(data *laun func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchpadVaultRecordLaunchpadTileDataRS, obj types.Object) { } -func fillDataStructFromTFObjectRSLicenseKeyHubLicenseInfo(data *licenseKeyHubLicenseInfoDataRS, obj types.Object) { - data.CurrentLicenseStatus = obj.Attributes()["current_license_status"].(basetypes.StringValue) - data.CustomerCompany = obj.Attributes()["customer_company"].(basetypes.StringValue) - data.CustomerContact = obj.Attributes()["customer_contact"].(basetypes.StringValue) - data.CustomerDomains = obj.Attributes()["customer_domains"].(basetypes.ListValue) - data.Details = obj.Attributes()["details"].(basetypes.ListValue) - data.ExpirationTime = obj.Attributes()["expiration_time"].(basetypes.StringValue) - data.Features = obj.Attributes()["features"].(basetypes.ListValue) - data.IssueTime = obj.Attributes()["issue_time"].(basetypes.StringValue) - data.KeyHubDomain = obj.Attributes()["key_hub_domain"].(basetypes.StringValue) - data.LicenseKey = obj.Attributes()["license_key"].(basetypes.StringValue) - data.NotBeforeTime = obj.Attributes()["not_before_time"].(basetypes.StringValue) - data.UsersHardLimit = obj.Attributes()["users_hard_limit"].(basetypes.Int64Value) - data.UsersProLimit = obj.Attributes()["users_pro_limit"].(basetypes.Int64Value) - data.UsersSoftLimit = obj.Attributes()["users_soft_limit"].(basetypes.Int64Value) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Version = obj.Attributes()["version"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) @@ -1029,87 +593,6 @@ func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, ob data.Markers = obj.Attributes()["markers"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSNestedAuthInternalAccount(data *nestedAuthInternalAccountDataRS, obj types.Object) { - data.AccountDirectoryUUID = obj.Attributes()["account_directory_uuid"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.ActivationCode = obj.Attributes()["activation_code"].(basetypes.StringValue) - data.ActivationDeadline = obj.Attributes()["activation_deadline"].(basetypes.StringValue) - data.Company = obj.Attributes()["company"].(basetypes.StringValue) - data.FirstName = obj.Attributes()["first_name"].(basetypes.StringValue) - data.LastName = obj.Attributes()["last_name"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.Telephone = obj.Attributes()["telephone"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNestedClientOAuth2ClientPermission(data *nestedClientOAuth2ClientPermissionDataRS, obj types.Object) { - data.ClientApplicationUUID = obj.Attributes()["client_application_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) - data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNestedGroupAccountGroup(data *nestedGroupAccountGroupDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSNestedGroupGroupAccount(data *nestedGroupGroupAccountDataRS, obj types.Object) { - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) - data.DisconnectedNested = obj.Attributes()["disconnected_nested"].(basetypes.BoolValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.LastUsed = obj.Attributes()["last_used"].(basetypes.StringValue) - data.Nested = obj.Attributes()["nested"].(basetypes.BoolValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.TwoFactorStatus = obj.Attributes()["two_factor_status"].(basetypes.StringValue) - data.VisibleForProvisioning = obj.Attributes()["visible_for_provisioning"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSNestedGroupGroupAudit(data *nestedGroupGroupAuditDataRS, obj types.Object) { - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Accounts = obj.Attributes()["accounts"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.CreatedBy = obj.Attributes()["created_by"].(basetypes.StringValue) - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) - data.NameOnAudit = obj.Attributes()["name_on_audit"].(basetypes.StringValue) - data.ReviewedAt = obj.Attributes()["reviewed_at"].(basetypes.StringValue) - data.ReviewedBy = obj.Attributes()["reviewed_by"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.SubmittedAt = obj.Attributes()["submitted_at"].(basetypes.StringValue) - data.SubmittedBy = obj.Attributes()["submitted_by"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNestedOrganizationAccountOrganizationalUnit(data *nestedOrganizationAccountOrganizationalUnitDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNestedOrganizationOrganizationalUnitAccount(data *nestedOrganizationOrganizationalUnitAccountDataRS, obj types.Object) { - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedProvisioningGroupOnSystemDataRS, obj types.Object) { data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) data.Links = obj.Attributes()["links"].(basetypes.ListValue) @@ -1124,129 +607,6 @@ func fillDataStructFromTFObjectRSNestedProvisioningGroupOnSystem(data *nestedPro data.OwnerUUID = obj.Attributes()["owner_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSNestedProvisioningProvisionedAccount(data *nestedProvisioningProvisionedAccountDataRS, obj types.Object) { - data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSNestedProvisioningProvisionedSystemSyncLog(data *nestedProvisioningProvisionedSystemSyncLogDataRS, obj types.Object) { - data.ProvisionedSystemUUID = obj.Attributes()["provisioned_system_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSNestedServiceaccountServiceAccountGroup(data *nestedServiceaccountServiceAccountGroupDataRS, obj types.Object) { - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.DisplayName = obj.Attributes()["display_name"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) - data.ProvisioningGroupOnSystemPrimerType = obj.Attributes()["type"].(basetypes.StringValue) - data.ShortNameInSystem = obj.Attributes()["short_name_in_system"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNestedWebhookWebhookDelivery(data *nestedWebhookWebhookDeliveryDataRS, obj types.Object) { - data.WebhookUUID = obj.Attributes()["webhook_uuid"].(basetypes.StringValue) - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) - data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) - data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) - data.Response = obj.Attributes()["response"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.Int64Value) - data.Time = obj.Attributes()["time"].(basetypes.Int64Value) - data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationCertificateExpiredNotification(data *notificationCertificateExpiredNotificationDataRS, obj types.Object) { - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Expiration = obj.Attributes()["expiration"].(basetypes.StringValue) - data.LDAPClient = obj.Attributes()["ldap_client"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Usage = obj.Attributes()["usage"].(basetypes.StringValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationGroupAuditRequiredNotification(data *notificationGroupAuditRequiredNotificationDataRS, obj types.Object) { - data.DueDate = obj.Attributes()["due_date"].(basetypes.StringValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.NotificationGroupAuditRequiredNotificationType = obj.Attributes()["notification_group_audit_required_notification_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification(data *notificationGroupEditRequiredNotificationDataRS, obj types.Object) { - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) - data.Reason = obj.Attributes()["reason"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationGroupEditRequiredNotification_parameters(data *notificationGroupEditRequiredNotification_parametersDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSNotificationInvalidSignaturesDetectedNotification(data *notificationInvalidSignaturesDetectedNotificationDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSNotificationLicenseStatusNotification(data *notificationLicenseStatusNotificationDataRS, obj types.Object) { - data.ActiveAccounts = obj.Attributes()["active_accounts"].(basetypes.Int64Value) - data.LicenseInfo = obj.Attributes()["license_info"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationModificationRequestNotification(data *notificationModificationRequestNotificationDataRS, obj types.Object) { - data.Admins = obj.Attributes()["admins"].(basetypes.ListValue) - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.Request = obj.Attributes()["request"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationNotification(data *notificationNotificationDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSNotificationNotifications(data *notificationNotificationsDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationOldApiVersionUsageNotification(data *notificationOldApiVersionUsageNotificationDataRS, obj types.Object) { - data.ApiVersion = obj.Attributes()["api_version"].(basetypes.Int64Value) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSNotificationProvisionConfigRequiredNotification(data *notificationProvisionConfigRequiredNotificationDataRS, obj types.Object) { - data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationRotatingPasswordRequiredNotification(data *notificationRotatingPasswordRequiredNotificationDataRS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSNotificationUpdateAvailableNotification(data *notificationUpdateAvailableNotificationDataRS, obj types.Object) { - data.ReleasedAt = obj.Attributes()["released_at"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSNotificationVaultRecordExpiredNotification(data *notificationVaultRecordExpiredNotificationDataRS, obj types.Object) { - data.Record = obj.Attributes()["record"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit(data *organizationAccountOrganizationalUnitDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(data *organizationAccountOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(data *organizationAccountOrganizationalUnit_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizationOrganizationalUnitDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1260,20 +620,6 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit(data *organizati data.ParentUUID = obj.Attributes()["parent_uuid"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount(data *organizationOrganizationalUnitAccountDataRS, obj types.Object) { - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.DirectoryUUID = obj.Attributes()["directory_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(data *organizationOrganizationalUnitAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(data *organizationOrganizationalUnitAccount_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(data *organizationOrganizationalUnitLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } @@ -1316,16 +662,6 @@ func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provi func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataRS, obj types.Object) { } -func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatus(data *provisioningAccountProvisioningStatusDataRS, obj types.Object) { - data.Description = obj.Attributes()["description"].(basetypes.StringValue) - data.Result = obj.Attributes()["result"].(basetypes.StringValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSProvisioningAccountProvisioningStatusReport(data *provisioningAccountProvisioningStatusReportDataRS, obj types.Object) { - data.Status = obj.Attributes()["status"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataRS, obj types.Object) { data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) @@ -1369,21 +705,6 @@ func fillDataStructFromTFObjectRSProvisioningGroupOnSystem_additionalObjects(dat data.ServiceAccounts = obj.Attributes()["service_accounts"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus(data *provisioningGroupProvisioningStatusDataRS, obj types.Object) { - data.Folder = obj.Attributes()["folder"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.ProvisioningDuration = obj.Attributes()["provisioning_duration"].(basetypes.ObjectValue) - data.ProvisioningEndTime = obj.Attributes()["provisioning_end_time"].(basetypes.StringValue) - data.ProvisioningPermissionEndTime = obj.Attributes()["provisioning_permission_end_time"].(basetypes.StringValue) - data.StatusReport = obj.Attributes()["status_report"].(basetypes.ObjectValue) - data.VisibleOnDashboard = obj.Attributes()["visible_on_dashboard"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(data *provisioningGroupProvisioningStatus_provisioningDurationDataRS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(data *provisioningOwnedGroupOnSystemsWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) data.UnlinkedCount = obj.Attributes()["unlinked_count"].(basetypes.Int64Value) @@ -1399,10 +720,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence(data *provi data.NextUID = obj.Attributes()["next_uid"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(data *provisioningProvisionNumberSequenceLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(data *provisioningProvisionNumberSequence_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Systems = obj.Attributes()["systems"].(basetypes.ListValue) @@ -1418,10 +735,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAccount(data *provisioni data.UID = obj.Attributes()["uid"].(basetypes.Int64Value) } -func fillDataStructFromTFObjectRSProvisioningProvisionedAccountLinkableWrapper(data *provisioningProvisionedAccountLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSProvisioningProvisionedAccount_additionalObjects(data *provisioningProvisionedAccount_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } @@ -1486,13 +799,13 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystem(data *provisionin data.ShouldDestroyUnknownAccounts = obj.Attributes()["should_destroy_unknown_accounts"].(basetypes.BoolValue) data.TechnicalAdministratorUUID = obj.Attributes()["technical_administrator_uuid"].(basetypes.StringValue) data.UsernamePrefix = obj.Attributes()["username_prefix"].(basetypes.StringValue) - data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) data.AbstractProvisionedLDAP = obj.Attributes()["abstract_provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) - data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) - data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) data.ProvisionedAD = obj.Attributes()["provisioned_a_d"].(basetypes.ObjectValue) + data.ProvisionedAzureOIDCDirectory = obj.Attributes()["provisioned_azure_oidc_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureSyncLDAPDirectory = obj.Attributes()["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue) + data.ProvisionedAzureTenant = obj.Attributes()["provisioned_azure_tenant"].(basetypes.ObjectValue) data.ProvisionedInternalLDAP = obj.Attributes()["provisioned_internal_ldap"].(basetypes.ObjectValue) + data.ProvisionedLDAP = obj.Attributes()["provisioned_ldap"].(basetypes.ObjectValue) data.ProvisionedLDAPDirectory = obj.Attributes()["provisioned_ldap_directory"].(basetypes.ObjectValue) } @@ -1514,24 +827,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrap data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog(data *provisioningProvisionedSystemSyncLogDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.CreatedAt = obj.Attributes()["created_at"].(basetypes.StringValue) - data.Errors = obj.Attributes()["errors"].(basetypes.Int64Value) - data.Log = obj.Attributes()["log"].(basetypes.StringValue) - data.Modifications = obj.Attributes()["modifications"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(data *provisioningProvisionedSystemSyncLogLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(data *provisioningProvisionedSystemSyncLog_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSProvisioningProvisionedSystem_additionalObjects(data *provisioningProvisionedSystem_additionalObjectsDataRS, obj types.Object) { data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) @@ -1549,255 +844,6 @@ func fillDataStructFromTFObjectRSProvisioningProvisioningManagementPermissions(d data.ReuseExistingGroupsAllowed = obj.Attributes()["reuse_existing_groups_allowed"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectRSProvisioningProvisioningStatus(data *provisioningProvisioningStatusDataRS, obj types.Object) { - data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) - data.IgnoreErrors = obj.Attributes()["ignore_errors"].(basetypes.BoolValue) - data.RestrictedByLicense = obj.Attributes()["restricted_by_license"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSProvisioningTokenPassword(data *provisioningTokenPasswordDataRS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestAbstractApplicationModificationRequest(data *requestAbstractApplicationModificationRequestDataRS, obj types.Object) { - data.ApplicationUUID = obj.Attributes()["application_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(data *requestAbstractOrganizationalUnitModificationRequestDataRS, obj types.Object) { - data.OrganizationalUnitUUID = obj.Attributes()["organizational_unit_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestAbstractProvisionedSystemModificationRequest(data *requestAbstractProvisionedSystemModificationRequestDataRS, obj types.Object) { - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters(data *requestAcceptGrantAccessRequestParametersDataRS, obj types.Object) { - data.AccessDuration = obj.Attributes()["access_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(data *requestAcceptGrantAccessRequestParameters_accessDurationDataRS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - -func fillDataStructFromTFObjectRSRequestAcceptJoinGroupRequestParameters(data *requestAcceptJoinGroupRequestParametersDataRS, obj types.Object) { - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.MakeManager = obj.Attributes()["make_manager"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSRequestAcceptModificationRequestParameters(data *requestAcceptModificationRequestParametersDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestAddGroupAdminRequest(data *requestAddGroupAdminRequestDataRS, obj types.Object) { - data.NewAdminUUID = obj.Attributes()["new_admin_uuid"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestCreateGroupOnSystemRequest(data *requestCreateGroupOnSystemRequestDataRS, obj types.Object) { - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystemType = obj.Attributes()["group_on_system_type"].(basetypes.StringValue) - data.NameInSystem = obj.Attributes()["name_in_system"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestCreateGroupRequest(data *requestCreateGroupRequestDataRS, obj types.Object) { - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestCreateServiceAccountRequest(data *requestCreateServiceAccountRequestDataRS, obj types.Object) { - data.Username = obj.Attributes()["username"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestDisable2FARequest(data *requestDisable2FARequestDataRS, obj types.Object) { - data.Subject = obj.Attributes()["subject"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestEnableTechnicalAdministrationRequest(data *requestEnableTechnicalAdministrationRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestExtendAccessRequest(data *requestExtendAccessRequestDataRS, obj types.Object) { - data.ExtendUntil = obj.Attributes()["extend_until"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestGrantAccessRequest(data *requestGrantAccessRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestGrantApplicationRequest(data *requestGrantApplicationRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestGrantClientPermissionRequest(data *requestGrantClientPermissionRequestDataRS, obj types.Object) { - data.PermissionType = obj.Attributes()["permission_type"].(basetypes.StringValue) - data.SystemUUID = obj.Attributes()["system_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequest(data *requestGrantGroupOnSystemRequestDataRS, obj types.Object) { - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestGrantGroupOnSystemRequestRequest(data *requestGrantGroupOnSystemRequestRequestDataRS, obj types.Object) { - data.ActivationRequired = obj.Attributes()["activation_required"].(basetypes.BoolValue) - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestGrantServiceAccountGroupRequest(data *requestGrantServiceAccountGroupRequestDataRS, obj types.Object) { - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestJoinGroupRequest(data *requestJoinGroupRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestJoinVaultRequest(data *requestJoinVaultRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestModificationRequest(data *requestModificationRequestDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) - data.Comment = obj.Attributes()["comment"].(basetypes.StringValue) - data.Feedback = obj.Attributes()["feedback"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.MailKey = obj.Attributes()["mail_key"].(basetypes.StringValue) - data.RequestModificationRequestType = obj.Attributes()["request_modification_request_type"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.StringValue) - data.EnableTechnicalAdministrationRequest = obj.Attributes()["enable_technical_administration_request"].(basetypes.ObjectValue) - data.AbstractApplicationModificationRequest = obj.Attributes()["abstract_application_modification_request"].(basetypes.ObjectValue) - data.TransferApplicationAdministrationRequest = obj.Attributes()["transfer_application_administration_request"].(basetypes.ObjectValue) - data.PasswordResetRequest = obj.Attributes()["password_reset_request"].(basetypes.ObjectValue) - data.AbstractProvisionedSystemModificationRequest = obj.Attributes()["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemOwnershipRequest = obj.Attributes()["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue) - data.AddGroupAdminRequest = obj.Attributes()["add_group_admin_request"].(basetypes.ObjectValue) - data.AbstractOrganizationalUnitModificationRequest = obj.Attributes()["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue) - data.CreateGroupRequest = obj.Attributes()["create_group_request"].(basetypes.ObjectValue) - data.RemoveProvisionedSystemRequest = obj.Attributes()["remove_provisioned_system_request"].(basetypes.ObjectValue) - data.GrantApplicationRequest = obj.Attributes()["grant_application_request"].(basetypes.ObjectValue) - data.CreateGroupOnSystemRequest = obj.Attributes()["create_group_on_system_request"].(basetypes.ObjectValue) - data.SetupNestedGroupRequest = obj.Attributes()["setup_nested_group_request"].(basetypes.ObjectValue) - data.VerifyInternalAccountRequest = obj.Attributes()["verify_internal_account_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequestRequest = obj.Attributes()["grant_group_on_system_request_request"].(basetypes.ObjectValue) - data.JoinGroupRequest = obj.Attributes()["join_group_request"].(basetypes.ObjectValue) - data.TransferOrganizationalUnitOwnershipRequest = obj.Attributes()["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue) - data.Disable2FARequest = obj.Attributes()["disable2fa_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemContentAdministrationRequest = obj.Attributes()["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue) - data.GrantGroupOnSystemRequest = obj.Attributes()["grant_group_on_system_request"].(basetypes.ObjectValue) - data.TransferApplicationOwnershipRequest = obj.Attributes()["transfer_application_ownership_request"].(basetypes.ObjectValue) - data.TransferGroupOnSystemOwnershipRequest = obj.Attributes()["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue) - data.TransferServiceAccountAdministrationRequest = obj.Attributes()["transfer_service_account_administration_request"].(basetypes.ObjectValue) - data.TransferAuditorGroupRequest = obj.Attributes()["transfer_auditor_group_request"].(basetypes.ObjectValue) - data.ReviewAuditRequest = obj.Attributes()["review_audit_request"].(basetypes.ObjectValue) - data.UpdateGroupMembershipRequest = obj.Attributes()["update_group_membership_request"].(basetypes.ObjectValue) - data.ExtendAccessRequest = obj.Attributes()["extend_access_request"].(basetypes.ObjectValue) - data.RemoveGroupRequest = obj.Attributes()["remove_group_request"].(basetypes.ObjectValue) - data.RevokeAdminRequest = obj.Attributes()["revoke_admin_request"].(basetypes.ObjectValue) - data.GrantServiceAccountGroupRequest = obj.Attributes()["grant_service_account_group_request"].(basetypes.ObjectValue) - data.SetupAuthorizingGroupRequest = obj.Attributes()["setup_authorizing_group_request"].(basetypes.ObjectValue) - data.TransferProvisionedSystemAdministrationRequest = obj.Attributes()["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue) - data.GrantAccessRequest = obj.Attributes()["grant_access_request"].(basetypes.ObjectValue) - data.JoinVaultRequest = obj.Attributes()["join_vault_request"].(basetypes.ObjectValue) - data.RemoveOrganizationalUnitRequest = obj.Attributes()["remove_organizational_unit_request"].(basetypes.ObjectValue) - data.CreateServiceAccountRequest = obj.Attributes()["create_service_account_request"].(basetypes.ObjectValue) - data.GrantClientPermissionRequest = obj.Attributes()["grant_client_permission_request"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestModificationRequestLinkableWrapper(data *requestModificationRequestLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSRequestModificationRequest_additionalObjects(data *requestModificationRequest_additionalObjectsDataRS, obj types.Object) { - data.AcceptParams = obj.Attributes()["accept_params"].(basetypes.ObjectValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.ResetStatus = obj.Attributes()["reset_status"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestPasswordResetRequest(data *requestPasswordResetRequestDataRS, obj types.Object) { - data.NewVaultAndDirectoryPassword = obj.Attributes()["new_vault_and_directory_password"].(basetypes.StringValue) - data.NewVaultPassword = obj.Attributes()["new_vault_password"].(basetypes.StringValue) - data.UnsyncedPassword = obj.Attributes()["unsynced_password"].(basetypes.BoolValue) -} - -func fillDataStructFromTFObjectRSRequestPasswordResetRequestStatus(data *requestPasswordResetRequestStatusDataRS, obj types.Object) { - data.CooldownEnd = obj.Attributes()["cooldown_end"].(basetypes.StringValue) - data.Managers = obj.Attributes()["managers"].(basetypes.ListValue) - data.NrAccepted = obj.Attributes()["nr_accepted"].(basetypes.Int64Value) - data.ResetViaMail = obj.Attributes()["reset_via_mail"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRemoveGroupRequest(data *requestRemoveGroupRequestDataRS, obj types.Object) { - data.GroupName = obj.Attributes()["group_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRemoveOrganizationalUnitRequest(data *requestRemoveOrganizationalUnitRequestDataRS, obj types.Object) { - data.OrganizationalUnitName = obj.Attributes()["organizational_unit_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestRemoveProvisionedSystemRequest(data *requestRemoveProvisionedSystemRequestDataRS, obj types.Object) { - data.SystemName = obj.Attributes()["system_name"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestReviewAuditRequest(data *requestReviewAuditRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestRevokeAdminRequest(data *requestRevokeAdminRequestDataRS, obj types.Object) { - data.AdminUUID = obj.Attributes()["admin_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestSetupAuthorizingGroupRequest(data *requestSetupAuthorizingGroupRequestDataRS, obj types.Object) { - data.AuthorizingGroupType = obj.Attributes()["authorizing_group_type"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestSetupNestedGroupRequest(data *requestSetupNestedGroupRequestDataRS, obj types.Object) { - data.AccountAction = obj.Attributes()["account_action"].(basetypes.StringValue) - data.Connect = obj.Attributes()["connect"].(basetypes.BoolValue) - data.RequestingGroupUUID = obj.Attributes()["requesting_group_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestTransferApplicationAdministrationRequest(data *requestTransferApplicationAdministrationRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferApplicationOwnershipRequest(data *requestTransferApplicationOwnershipRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferAuditorGroupRequest(data *requestTransferAuditorGroupRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(data *requestTransferGroupOnSystemOwnershipRequestDataRS, obj types.Object) { - data.GroupOnSystem = obj.Attributes()["group_on_system"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(data *requestTransferOrganizationalUnitOwnershipRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(data *requestTransferProvisionedSystemAdministrationRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(data *requestTransferProvisionedSystemContentAdministrationRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(data *requestTransferProvisionedSystemOwnershipRequestDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSRequestTransferServiceAccountAdministrationRequest(data *requestTransferServiceAccountAdministrationRequestDataRS, obj types.Object) { - data.ServiceAccountUUID = obj.Attributes()["service_account_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestUpdateGroupMembershipRequest(data *requestUpdateGroupMembershipRequestDataRS, obj types.Object) { - data.AccountToUpdateUUID = obj.Attributes()["account_to_update_uuid"].(basetypes.StringValue) - data.CurrentEndDate = obj.Attributes()["current_end_date"].(basetypes.StringValue) - data.CurrentRights = obj.Attributes()["current_rights"].(basetypes.StringValue) - data.EndDate = obj.Attributes()["end_date"].(basetypes.StringValue) - data.Rights = obj.Attributes()["rights"].(basetypes.StringValue) - data.UpdateGroupMembershipType = obj.Attributes()["update_group_membership_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSRequestVerifyInternalAccountRequest(data *requestVerifyInternalAccountRequestDataRS, obj types.Object) { - data.InternalAccountName = obj.Attributes()["internal_account_name"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSServiceaccountServiceAccount(data *serviceaccountServiceAccountDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -1851,74 +897,12 @@ func fillDataStructFromTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapp data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSServiceaccountServiceAccountStatus(data *serviceaccountServiceAccountStatusDataRS, obj types.Object) { - data.AccountEnabled = obj.Attributes()["account_enabled"].(basetypes.BoolValue) -} - func fillDataStructFromTFObjectRSServiceaccountServiceAccount_additionalObjects(data *serviceaccountServiceAccount_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) data.Groups = obj.Attributes()["groups"].(basetypes.ListValue) data.Secret = obj.Attributes()["secret"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats(data *serviceaccountServiceAccountsAuditStatsDataRS, obj types.Object) { - data.DisabledCount = obj.Attributes()["disabled_count"].(basetypes.Int64Value) - data.PasswordSchemeEnabledStats = obj.Attributes()["password_scheme_enabled_stats"].(basetypes.ObjectValue) - data.SystemStats = obj.Attributes()["system_stats"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(data *serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(data *serviceaccountServiceAccountsAuditStats_systemStatsDataRS, obj types.Object) { -} - -func fillDataStructFromTFObjectRSSimpleStringValue(data *simpleStringValueDataRS, obj types.Object) { - data.Value = obj.Attributes()["value"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSSimpleVersionInfo(data *simpleVersionInfoDataRS, obj types.Object) { - data.ContractVersions = obj.Attributes()["contract_versions"].(basetypes.ListValue) - data.KeyHubVersion = obj.Attributes()["key_hub_version"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultHolder(data *vaultDeletedVaultHolderDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.RecordCount = obj.Attributes()["record_count"].(basetypes.Int64Value) - data.VaultDeletedVaultHolderType = obj.Attributes()["vault_deleted_vault_holder_type"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultHolderLinkableWrapper(data *vaultDeletedVaultHolderLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultHolder_additionalObjects(data *vaultDeletedVaultHolder_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Vault = obj.Attributes()["vault"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultDeletedVaultRecovery(data *vaultDeletedVaultRecoveryDataRS, obj types.Object) { - data.Prefix = obj.Attributes()["prefix"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) - data.TargetGroupUUID = obj.Attributes()["target_group_uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultMoveVaultRecord(data *vaultMoveVaultRecordDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.Action = obj.Attributes()["action"].(basetypes.StringValue) - data.GroupUUID = obj.Attributes()["group_uuid"].(basetypes.StringValue) - data.ShareDuration = obj.Attributes()["share_duration"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSVaultMoveVaultRecord_shareDuration(data *vaultMoveVaultRecord_shareDurationDataRS, obj types.Object) { - data.Nanos = obj.Attributes()["nanos"].(basetypes.Int64Value) - data.Seconds = obj.Attributes()["seconds"].(basetypes.Int64Value) -} - func fillDataStructFromTFObjectRSVaultPasswordMetadata(data *vaultPasswordMetadataDataRS, obj types.Object) { data.Dictionary = obj.Attributes()["dictionary"].(basetypes.BoolValue) data.Duplicate = obj.Attributes()["duplicate"].(basetypes.BoolValue) @@ -1967,10 +951,6 @@ func fillDataStructFromTFObjectRSVaultVaultRecord(data *vaultVaultRecordDataRS, data.WarningPeriod = obj.Attributes()["warning_period"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSVaultVaultRecordLinkableWrapper(data *vaultVaultRecordLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - func fillDataStructFromTFObjectRSVaultVaultRecordPrimer(data *vaultVaultRecordPrimerDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -2014,20 +994,6 @@ func fillDataStructFromTFObjectRSVaultVaultRecord_additionalObjects(data *vaultV data.Vaultholder = obj.Attributes()["vaultholder"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSVaultVaultRecovery(data *vaultVaultRecoveryDataRS, obj types.Object) { - data.AccountUUID = obj.Attributes()["account_uuid"].(basetypes.StringValue) - data.PrivateKey = obj.Attributes()["private_key"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultUnlock(data *vaultVaultUnlockDataRS, obj types.Object) { - data.Password = obj.Attributes()["password"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSVaultVaultUnlockResponse(data *vaultVaultUnlockResponseDataRS, obj types.Object) { - data.ExpiresAt = obj.Attributes()["expires_at"].(basetypes.StringValue) - data.SessionPassword = obj.Attributes()["session_password"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -2055,61 +1021,10 @@ func fillDataStructFromTFObjectRSWebhookWebhook(data *webhookWebhookDataRS, obj data.VerbosePayloads = obj.Attributes()["verbose_payloads"].(basetypes.BoolValue) } -func fillDataStructFromTFObjectRSWebhookWebhookDelivery(data *webhookWebhookDeliveryDataRS, obj types.Object) { - data.Links = obj.Attributes()["links"].(basetypes.ListValue) - data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) - data.Payload = obj.Attributes()["payload"].(basetypes.ObjectValue) - data.ReponseHeaders = obj.Attributes()["reponse_headers"].(basetypes.StringValue) - data.RequestHeaders = obj.Attributes()["request_headers"].(basetypes.StringValue) - data.Response = obj.Attributes()["response"].(basetypes.StringValue) - data.Status = obj.Attributes()["status"].(basetypes.Int64Value) - data.Time = obj.Attributes()["time"].(basetypes.Int64Value) - data.TriggerTime = obj.Attributes()["trigger_time"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookDeliveryLinkableWrapper(data *webhookWebhookDeliveryLinkableWrapperDataRS, obj types.Object) { - data.Items = obj.Attributes()["items"].(basetypes.ListValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookDelivery_additionalObjects(data *webhookWebhookDelivery_additionalObjectsDataRS, obj types.Object) { - data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) -} - func fillDataStructFromTFObjectRSWebhookWebhookLinkableWrapper(data *webhookWebhookLinkableWrapperDataRS, obj types.Object) { data.Items = obj.Attributes()["items"].(basetypes.ListValue) } -func fillDataStructFromTFObjectRSWebhookWebhookNameUuid(data *webhookWebhookNameUuidDataRS, obj types.Object) { - data.Name = obj.Attributes()["name"].(basetypes.StringValue) - data.Object = obj.Attributes()["object"].(basetypes.ObjectValue) - data.UUID = obj.Attributes()["uuid"].(basetypes.StringValue) -} - -func fillDataStructFromTFObjectRSWebhookWebhookPush(data *webhookWebhookPushDataRS, obj types.Object) { - data.Account = obj.Attributes()["account"].(basetypes.ObjectValue) - data.ByParty = obj.Attributes()["by_party"].(basetypes.ObjectValue) - data.Certificate = obj.Attributes()["certificate"].(basetypes.ObjectValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) - data.Directory = obj.Attributes()["directory"].(basetypes.ObjectValue) - data.Group = obj.Attributes()["group"].(basetypes.ObjectValue) - data.Group2 = obj.Attributes()["group2"].(basetypes.ObjectValue) - data.GroupClassification = obj.Attributes()["group_classification"].(basetypes.ObjectValue) - data.ModificationRequest = obj.Attributes()["modification_request"].(basetypes.ObjectValue) - data.OrganizationalUnit = obj.Attributes()["organizational_unit"].(basetypes.ObjectValue) - data.Parameter1 = obj.Attributes()["parameter1"].(basetypes.StringValue) - data.Parameter2 = obj.Attributes()["parameter2"].(basetypes.StringValue) - data.Parameter3 = obj.Attributes()["parameter3"].(basetypes.StringValue) - data.SecurityLevel = obj.Attributes()["security_level"].(basetypes.StringValue) - data.Seq = obj.Attributes()["seq"].(basetypes.Int64Value) - data.ServiceAccount = obj.Attributes()["service_account"].(basetypes.ObjectValue) - data.System = obj.Attributes()["system"].(basetypes.ObjectValue) - data.Timestamp = obj.Attributes()["timestamp"].(basetypes.StringValue) - data.VaultRecord = obj.Attributes()["vault_record"].(basetypes.ObjectValue) - data.Webhook = obj.Attributes()["webhook"].(basetypes.ObjectValue) - data.WebhookWebhookPushType = obj.Attributes()["type"].(basetypes.StringValue) -} - func fillDataStructFromTFObjectRSWebhookWebhook_additionalObjects(data *webhookWebhook_additionalObjectsDataRS, obj types.Object) { data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index c01b0de..2514ea2 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -37,51 +37,6 @@ func tfObjectToTKHDSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob return tkh, diags } -func tfObjectToTKHDSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ErrorReportable - tkh = keyhubmodel.NewErrorReport() - tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplicationErrorParameters(val) - } - tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetErrorDetails(val) - } - tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetStacktrace(val) - } - return tkh, diags -} - -func tfObjectToTKHDSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ErrorReport_applicationErrorParametersable - tkh = keyhubmodel.NewErrorReport_applicationErrorParameters() - return tkh, diags -} - func tfObjectToTKHDSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -150,195 +105,6 @@ func tfObjectToTKHDSRestLink(ctx context.Context, recurse bool, objVal types.Obj return tkh, diags } -func tfObjectToTKHDSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.SegmentCountable - tkh = keyhubmodel.NewSegmentCount() - tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAccountVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuditAuditRecordable - tkh = keyhubmodel.NewAuditAuditRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetAuditAuditRecordType(val) - } - { - val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDateTime(val) - } - tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - if recurse { - { - val, d := tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuditAuditRecordLinkableWrapperable - tkh = keyhubmodel.NewAuditAuditRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { - tkh, d := tfObjectToTKHDSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuditAuditRecord_additionalObjectsable - tkh = keyhubmodel.NewAuditAuditRecord_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -444,64 +210,6 @@ func tfObjectToTKHDSAuthAccount(ctx context.Context, recurse bool, objVal types. return tkh, diags } -func tfObjectToTKHDSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountBulkUpdateable - tkh = keyhubmodel.NewAuthAccountBulkUpdate() - { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) - }) - diags.Append(d...) - tkh.SetAction(val) - } - tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { - return val.(basetypes.Int64Value).ValueInt64() - }) - diags.Append(d...) - tkh.SetSelectedAccounts(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountChangeLocaleable - tkh = keyhubmodel.NewAuthAccountChangeLocale() - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountLinkableWrapperable - tkh = keyhubmodel.NewAuthAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { - tkh, d := tfObjectToTKHDSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHDSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -604,27 +312,6 @@ func tfObjectToTKHDSAuthAccountSettings(ctx context.Context, recurse bool, objVa return tkh, diags } -func tfObjectToTKHDSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountStatusable - tkh = keyhubmodel.NewAuthAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -667,268 +354,36 @@ func tfObjectToTKHDSAuthAccount_additionalObjects(ctx context.Context, recurse b return tkh, diags } -func tfObjectToTKHDSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { +func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountsAuditStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats() - { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectoryStats(val) - } + var tkh keyhubmodel.AuthPermissionable + tkh = keyhubmodel.NewAuthPermission() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_fa_stats"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) diags.Append(d...) - tkh.SetTwoFAStats(val) + tkh.SetInstances(val) } { - val, d := tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetValidityStats(val) + tkh.SetOperations(val) } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats_directoryStats() - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() - return tkh, diags -} - -func tfObjectToTKHDSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats_validityStats() - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountable - tkh = keyhubmodel.NewAuthInternalAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) - } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) - } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) - diags.Append(d...) - tkh.SetLicenseRole(val) - } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetActivationDeadline(val) - } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountLinkableWrapperable - tkh = keyhubmodel.NewAuthInternalAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { - tkh, d := tfObjectToTKHDSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountStatusObjectable - tkh = keyhubmodel.NewAuthInternalAccountStatusObject() - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthMoveInternalAccountable - tkh = keyhubmodel.NewAuthMoveInternalAccount() - { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetInternalDirectory(val) - } - return tkh, diags -} - -func tfObjectToTKHDSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthPermissionable - tkh = keyhubmodel.NewAuthPermission() - tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetInstances(val) - } - { - val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetOperations(val) - } - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { +func tfObjectToTKHDSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags @@ -1029,26 +484,6 @@ func tfObjectToTKHDSCertificateCertificate(ctx context.Context, recurse bool, ob return tkh, diags } -func tfObjectToTKHDSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.CertificateCertificateLinkableWrapperable - tkh = keyhubmodel.NewCertificateCertificateLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { - tkh, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHDSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -1119,14 +554,14 @@ func tfObjectToTKHDSCertificateCertificate_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHDSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.ClientClientApplicationable + tkh = keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1146,124 +581,51 @@ func tfObjectToTKHDSClientApplicationVaultVaultRecord(ctx context.Context, recur tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) diags.Append(d...) - tkh.SetColor(val) + tkh.SetClientClientApplicationPrimerType(val) } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) diags.Append(d...) - tkh.SetShareEndTime(val) + tkh.SetScopes(val) } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetLastModifiedAt(val) } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTypes(val) + tkh.SetOwner(val) } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetWarningPeriod(val) + tkh.SetTechnicalAdministrator(val) } - if recurse { - { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientClientApplicationable - tkh = keyhubmodel.NewClientClientApplication() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) - diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) - } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastModifiedAt(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if !objAttrs["o_auth2_client"].IsNull() { - val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHDSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + if !objAttrs["o_auth2_client"].IsNull() { + val, d := tfObjectToTKHDSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) val.SetTypeEscaped(dtype) tkh = val } @@ -1505,26 +867,6 @@ func tfObjectToTKHDSClientOAuth2ClientPermission(ctx context.Context, recurse bo return tkh, diags } -func tfObjectToTKHDSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable - tkh = keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { - tkh, d := tfObjectToTKHDSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHDSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -1662,79 +1004,6 @@ func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bo return tkh, diags } -func tfObjectToTKHDSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -1792,11 +1061,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, tkh.SetRotatingPassword(val) } tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -1816,11 +1085,11 @@ func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHDSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHDSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) val.SetTypeEscaped(dtype) tkh = val } @@ -2453,35 +1722,6 @@ func tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx context.Context, recurs return tkh, diags } -func tfObjectToTKHDSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountNestingable - tkh = keyhubmodel.NewGroupGroupAccountNesting() - tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountStatusable - tkh = keyhubmodel.NewGroupGroupAccountStatus() - { - val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2498,18 +1738,6 @@ func tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx context.Context, rec return tkh, diags } -func tfObjectToTKHDSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAdminMailable - tkh = keyhubmodel.NewGroupGroupAdminMail() - tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - func tfObjectToTKHDSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2813,26 +2041,6 @@ func tfObjectToTKHDSGroupGroupClassificationInfo(ctx context.Context, recurse bo return tkh, diags } -func tfObjectToTKHDSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupClassificationLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2864,22 +2072,6 @@ func tfObjectToTKHDSGroupGroupClassificationPrimer(ctx context.Context, recurse return tkh, diags } -func tfObjectToTKHDSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationUpdateable - tkh = keyhubmodel.NewGroupGroupClassificationUpdate() - { - val, d := tfObjectToTKHDSGroupGroupClassificationPrimer(ctx, recurse, objAttrs["classificaton"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClassificaton(val) - } - return tkh, diags -} - func tfObjectToTKHDSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -3031,26 +2223,6 @@ func tfObjectToTKHDSGroupGroupFolder(ctx context.Context, recurse bool, objVal t return tkh, diags } -func tfObjectToTKHDSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupFolderLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupFolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { - tkh, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHDSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -3156,43 +2328,14 @@ func tfObjectToTKHDSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse return tkh, diags } -func tfObjectToTKHDSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHDSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - { - val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { - tkh, d := tfObjectToTKHDSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSegments(val) - } - return tkh, diags -} - -func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroup_additionalObjectsable - tkh = keyhubmodel.NewGroupGroup_additionalObjects() + var tkh keyhubmodel.GroupGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupGroup_additionalObjects() { val, d := tfObjectToTKHDSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["accounts"])) diags.Append(d...) @@ -3331,32 +2474,6 @@ func tfObjectToTKHDSGroupGroup_additionalObjects(ctx context.Context, recurse bo return tkh, diags } -func tfObjectToTKHDSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupsAuditStatsable - tkh = keyhubmodel.NewGroupGroupsAuditStats() - tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHDSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetClassifications(val) - } - tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - func tfObjectToTKHDSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -3440,156 +2557,92 @@ func tfObjectToTKHDSGroupProvisioningGroup_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHDSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } -func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetLevel(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetMarkItemMarkerType(val) } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLogo(val) + tkh.SetParameters(val) } - { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) + return tkh, diags +} + +func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHDSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { +func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { - tkh, d := tfObjectToTKHDSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetMarkers(val) } return tkh, diags } -func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile() + var tkh keyhubmodel.OrganizationOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3608,63 +2661,23 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, false, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLogo(val) + tkh.SetOwner(val) } { - val, d := tfObjectToTKHDSVaultVaultRecordPrimer(ctx, false, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if !objAttrs["vault_record_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["manual_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["parent"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetParent(val) } if recurse { { - val, d := tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -3672,17 +2685,17 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, ob return tkh, diags } -func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable - tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { - tkh, d := tfObjectToTKHDSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -3692,14 +2705,14 @@ func tfObjectToTKHDSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, r return tkh, diags } -func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { +func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable - tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3718,17 +2731,19 @@ func tfObjectToTKHDSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bo diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -3737,170 +2752,163 @@ func tfObjectToTKHDSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context return tkh, diags } -func tfObjectToTKHDSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadManualLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() + { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() return tkh, diags } -func tfObjectToTKHDSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable + tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) + } return tkh, diags } -func tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.LicenseKeyHubLicenseInfoable - tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() - { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) - } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCustomerDomains(val) - } + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetDetails(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpirationTime(val) + tkh.SetLinks(val) } { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetFeatures(val) - } - { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetIssueTime(val) - } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetNotBeforeTime(val) - } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkerable - tkh = keyhubmodel.NewMarkItemMarker() - { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) - diags.Append(d...) - tkh.SetLevel(val) + tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetMarkItemMarkerType(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetParameters(val) + tkh.SetOwner(val) } - return tkh, diags -} - -func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + if recurse { + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkersable - tkh = keyhubmodel.NewMarkItemMarkers() + var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHDSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetMarkers(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHDSNestedAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountable - tkh = keyhubmodel.NewAuthInternalAccount() + var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable + tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -3920,109 +2928,95 @@ func tfObjectToTKHDSNestedAuthInternalAccount(ctx context.Context, recurse bool, tkh.SetPermissions(val) } tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) - tkh.SetLastActive(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable + tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) + tkh.SetTypes(val) } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryType(val) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLastModifiedAt(val) + tkh.SetAudit(val) } { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["provgroups"])) diags.Append(d...) - tkh.SetLicenseRole(val) + tkh.SetProvgroups(val) } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) + val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) diags.Append(d...) - tkh.SetTwoFactorStatus(val) + tkh.SetServiceAccounts(val) } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetActivationDeadline(val) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable + tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSAuthAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetItems(val) } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } -func tfObjectToTKHDSNestedClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionable - tkh = keyhubmodel.NewClientOAuth2ClientPermission() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4041,26 +3035,12 @@ func tfObjectToTKHDSNestedClientOAuth2ClientPermission(ctx context.Context, recu diags.Append(d...) tkh.SetPermissions(val) } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["for_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, false, objAttrs["for_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetValue(val) - } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4068,79 +3048,53 @@ func tfObjectToTKHDSNestedClientOAuth2ClientPermission(ctx context.Context, recu return tkh, diags } -func tfObjectToTKHDSNestedGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupAccountGroupable - tkh = keyhubmodel.NewGroupAccountGroup() + var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := tfObjectToTKHDSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetFolder(val) + tkh.SetAudit(val) } { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) - tkh.SetLastUsed(val) + tkh.SetSystems(val) } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedADable + tkh = keyhubmodel.NewProvisioningProvisionedAD() { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) + }) diags.Append(d...) - tkh.SetRights(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupAccountGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetSamAccountNameScheme(val) } return tkh, diags } -func tfObjectToTKHDSNestedGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountable - tkh = keyhubmodel.NewGroupGroupAccount() + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4172,44 +3126,10 @@ func tfObjectToTKHDSNestedGroupGroupAccount(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetValidity(val) } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHDSGroupGroupAccount_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -4217,123 +3137,138 @@ func tfObjectToTKHDSNestedGroupGroupAccount(ctx context.Context, recurse bool, o return tkh, diags } -func tfObjectToTKHDSNestedGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditable - tkh = keyhubmodel.NewGroupGroupAudit() + var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetAudit(val) } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { - val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { - tkh, d := tfObjectToTKHDSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccounts(val) + tkh.SetDirectory(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetReviewedAt(val) + tkh.SetDirectory(val) } - tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) - diags.Append(d...) - tkh.SetStatus(val) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable + tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() { - val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSubmittedAt(val) - } - tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSGroupGroupAudit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetClient(val) } return tkh, diags } -func tfObjectToTKHDSNestedOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() + var tkh keyhubmodel.ProvisioningProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedLDAP() + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) }) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetHashingScheme(val) } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetNumbering(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh, diags +} + +func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() + { + val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetDirectory(val) } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSNestedOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() + var tkh keyhubmodel.ProvisioningProvisionedSystemable + tkh = keyhubmodel.NewProvisioningProvisionedSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -4352,2588 +3287,114 @@ func tfObjectToTKHDSNestedOrganizationOrganizationalUnitAccount(ctx context.Cont diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemable - tkh = keyhubmodel.NewProvisioningGroupOnSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSNestedProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccountable - tkh = keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSNestedProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSNestedServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountGroupable - tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSNestedWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDeliveryable - tkh = keyhubmodel.NewWebhookWebhookDelivery() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPayload(val) - } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTriggerTime(val) - } - if recurse { - { - val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationCertificateExpiredNotificationable - tkh = keyhubmodel.NewNotificationCertificateExpiredNotification() - { - val, d := tfObjectToTKHDSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHDSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - { - val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLdapClient(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return *val.(*keyhubmodel.NotificationCertificateUsage) - }) - diags.Append(d...) - tkh.SetUsage(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable - tkh = keyhubmodel.NewNotificationGroupAuditRequiredNotification() - { - val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDueDate(val) - } - { - val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return *val.(*keyhubmodel.AuditAuditRequiredSourceType) - }) - diags.Append(d...) - tkh.SetNotificationGroupAuditRequiredNotificationType(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationGroupEditRequiredNotificationable - tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification() - { - val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - { - val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return *val.(*keyhubmodel.GroupGroupEditRequiredReason) - }) - diags.Append(d...) - tkh.SetReason(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable - tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() - return tkh, diags -} - -func tfObjectToTKHDSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable - tkh = keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() - return tkh, diags -} - -func tfObjectToTKHDSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationLicenseStatusNotificationable - tkh = keyhubmodel.NewNotificationLicenseStatusNotification() - tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLicenseInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationModificationRequestNotificationable - tkh = keyhubmodel.NewNotificationModificationRequestNotification() - { - val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetAdmins(val) - } - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequest(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.NotificationNotificationable - tkh = keyhubmodel.NewNotificationNotification() - return tkh, diags -} - -func tfObjectToTKHDSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationNotificationsable - tkh = keyhubmodel.NewNotificationNotifications() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { - tkh, d := tfObjectToTKHDSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable - tkh = keyhubmodel.NewNotificationOldApiVersionUsageNotification() - tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable - tkh = keyhubmodel.NewNotificationProvisionConfigRequiredNotification() - { - val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable - tkh = keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationUpdateAvailableNotificationable - tkh = keyhubmodel.NewNotificationUpdateAvailableNotification() - { - val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetReleasedAt(val) - } - return tkh, diags -} - -func tfObjectToTKHDSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable - tkh = keyhubmodel.NewNotificationVaultRecordExpiredNotification() - { - val, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecord(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { - tkh, d := tfObjectToTKHDSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitable - tkh = keyhubmodel.NewOrganizationOrganizationalUnit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, false, objAttrs["parent"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParent(val) - } - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, false, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - if recurse { - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { - tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { - tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { - tkh, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable - tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable - tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["client_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["failover_trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := tfObjectToTKHDSCertificateCertificatePrimer(ctx, recurse, objAttrs["trusted_certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable - tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningAccountProvisioningStatusable - tkh = keyhubmodel.NewProvisioningAccountProvisioningStatus() - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) - }) - diags.Append(d...) - tkh.SetResult(val) - } - { - val, d := tfObjectToTKHDSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable - tkh = keyhubmodel.NewProvisioningAccountProvisioningStatusReport() - { - val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { - tkh, d := tfObjectToTKHDSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable - tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() - tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) - }) - diags.Append(d...) - tkh.SetState(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemable - tkh = keyhubmodel.NewProvisioningGroupOnSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable - tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable - tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable - tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable - tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["provgroups"])) - diags.Append(d...) - tkh.SetProvgroups(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) - diags.Append(d...) - tkh.SetServiceAccounts(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupProvisioningStatusable - tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus() - { - val, d := tfObjectToTKHDSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := tfObjectToTKHDSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetProvisioningDuration(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningPermissionEndTime(val) - } - { - val, d := tfObjectToTKHDSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatusReport(val) - } - tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable - tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable - tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable - tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { - tkh, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) - diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedADable - tkh = keyhubmodel.NewProvisioningProvisionedAD() - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccountable - tkh = keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable - tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable - tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable - tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable - tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() - { - val, d := tfObjectToTKHDSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedLDAPable - tkh = keyhubmodel.NewProvisioningProvisionedLDAP() - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) - diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable - tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - { - val, d := tfObjectToTKHDSDirectoryAccountDirectoryPrimer(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemable - tkh = keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_a_d"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable - tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["issued_permissions"])) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable - tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisioningStatusable - tkh = keyhubmodel.NewProvisioningProvisioningStatus() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHDSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningTokenPasswordable - tkh = keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAbstractApplicationModificationRequestable - tkh = keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := tfObjectToTKHDSClientClientApplicationPrimer(ctx, recurse, objAttrs["application"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplication(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable - tkh = keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable - tkh = keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable - tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - { - val, d := tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable - tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable - tkh = keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestAcceptModificationRequestParametersable - tkh = keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHDSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAddGroupAdminRequestable - tkh = keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["new_admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestCreateGroupOnSystemRequestable - tkh = keyhubmodel.NewRequestCreateGroupOnSystemRequest() - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestCreateGroupRequestable - tkh = keyhubmodel.NewRequestCreateGroupRequest() - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestCreateServiceAccountRequestable - tkh = keyhubmodel.NewRequestCreateServiceAccountRequest() - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestDisable2FARequestable - tkh = keyhubmodel.NewRequestDisable2FARequest() - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable - tkh = keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestExtendAccessRequestable - tkh = keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestGrantAccessRequestable - tkh = keyhubmodel.NewRequestGrantAccessRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestGrantApplicationRequestable - tkh = keyhubmodel.NewRequestGrantApplicationRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantClientPermissionRequestable - tkh = keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantGroupOnSystemRequestable - tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequest() - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable - tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable - tkh = keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestJoinGroupRequestable - tkh = keyhubmodel.NewRequestJoinGroupRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestJoinVaultRequestable - tkh = keyhubmodel.NewRequestJoinVaultRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestModificationRequestable - tkh = keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, false, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHDSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHDSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHDSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetOrganizationalUnit(val) } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetProvisioningProvisionedSystemPrimerType(val) } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["content_administrator"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetContentAdministrator(val) } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) + { + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetExternalUuid(val) } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["owner"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetOwner(val) } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, false, objAttrs["technical_administrator"].(basetypes.ObjectValue)) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetTechnicalAdministrator(val) } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHDSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHDSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHDSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHDSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) diags.Append(d...) dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) val.SetTypeEscaped(dtype) tkh = val } if recurse { { - val, d := tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -6941,17 +3402,17 @@ func tfObjectToTKHDSRequestModificationRequest(ctx context.Context, recurse bool return tkh, diags } -func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestModificationRequestLinkableWrapperable - tkh = keyhubmodel.NewRequestModificationRequestLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHDSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -6961,332 +3422,128 @@ func tfObjectToTKHDSRequestModificationRequestLinkableWrapper(ctx context.Contex return tkh, diags } -func tfObjectToTKHDSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestModificationRequest_additionalObjectsable - tkh = keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestPasswordResetRequestable - tkh = keyhubmodel.NewRequestPasswordResetRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestPasswordResetRequestStatusable - tkh = keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) - diags.Append(d...) - tkh.SetResetViaMail(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRemoveGroupRequestable - tkh = keyhubmodel.NewRequestRemoveGroupRequest() - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable - tkh = keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable - tkh = keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestReviewAuditRequestable - tkh = keyhubmodel.NewRequestReviewAuditRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRevokeAdminRequestable - tkh = keyhubmodel.NewRequestRevokeAdminRequest() - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["admin"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAdmin(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable - tkh = keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetAuthorizingGroupType(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetLinks(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestSetupNestedGroupRequestable - tkh = keyhubmodel.NewRequestSetupNestedGroupRequest() { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetAccountAction(val) - } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["requesting_group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequestingGroup(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestTransferAuditorGroupRequestable - tkh = keyhubmodel.NewRequestTransferAuditorGroupRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - { - val, d := tfObjectToTKHDSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetPermissions(val) } - var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHDSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSOrganizationOrganizationalUnitPrimer(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) } - var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { - val, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetServiceAccount(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHDSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestUpdateGroupMembershipRequestable - tkh = keyhubmodel.NewRequestUpdateGroupMembershipRequest() + var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account_to_update"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccountToUpdate(val) + tkh.SetAccount(val) } { - val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetCurrentEndDate(val) + tkh.SetAudit(val) } { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfObjectToTKHDSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["issued_permissions"])) diags.Append(d...) - tkh.SetCurrentRights(val) + tkh.SetIssuedPermissions(val) } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetManagementPermissions(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfObjectToTKHDSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRights(val) + tkh.SetMarkers(val) } { - val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) - }) + val, d := tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetStatistics(val) + } + { + val, d := tfObjectToTKHDSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetUpdateGroupMembershipType(val) + tkh.SetSupportedGroupTypes(val) } return tkh, diags } -func tfObjectToTKHDSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { +func tfObjectToTKHDSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestVerifyInternalAccountRequestable - tkh = keyhubmodel.NewRequestVerifyInternalAccountRequest() - tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable + tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -7442,242 +3699,10 @@ func tfObjectToTKHDSServiceaccountServiceAccountLinkableWrapper(ctx context.Cont } objAttrs := objVal.Attributes() var tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable - tkh = keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { - tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountPrimerable - tkh = keyhubmodel.NewServiceaccountServiceAccountPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable - tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { - tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountStatusable - tkh = keyhubmodel.NewServiceaccountServiceAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable - tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable - tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats() - tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPasswordSchemeEnabledStats(val) - } - { - val, d := tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystemStats(val) - } - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable - tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() - return tkh, diags -} - -func tfObjectToTKHDSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable - tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() - return tkh, diags -} - -func tfObjectToTKHDSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.SimpleStringValueable - tkh = keyhubmodel.NewSimpleStringValue() - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.SimpleVersionInfoable - tkh = keyhubmodel.NewSimpleVersionInfo() - { - val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { - return int32(val.(basetypes.Int64Value).ValueInt64()) - }) - diags.Append(d...) - tkh.SetContractVersions(val) - } - tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultHolderable - tkh = keyhubmodel.NewVaultDeletedVaultHolder() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) - diags.Append(d...) - tkh.SetVaultDeletedVaultHolderType(val) - } - if recurse { - { - val, d := tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable - tkh = keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() + tkh = keyhubmodel.NewServiceaccountServiceAccountLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { - tkh, d := tfObjectToTKHDSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccount(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -7687,88 +3712,87 @@ func tfObjectToTKHDSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, return tkh, diags } -func tfObjectToTKHDSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable - tkh = keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimer() { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetLinks(val) } { - val, d := tfObjectToTKHDSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetVault(val) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfObjectToTKHDSProvisioningProvisionedSystemPrimer(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetSystem(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHDSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { +func tfObjectToTKHDSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultRecoveryable - tkh = keyhubmodel.NewVaultDeletedVaultRecovery() - tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["target_group"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := tfObjectToTKHDSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetTargetGroup(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHDSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHDSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultMoveVaultRecordable - tkh = keyhubmodel.NewVaultMoveVaultRecord() - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } + var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return *val.(*keyhubmodel.VaultMoveVaultRecordAction) - }) + val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAction(val) + tkh.SetAudit(val) } { - val, d := tfObjectToTKHDSGroupGroupPrimer(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetGroups(val) } { - val, d := tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHDSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetShareDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHDSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetSecret(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable - tkh = keyhubmodel.NewVaultMoveVaultRecord_shareDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } @@ -7915,26 +3939,6 @@ func tfObjectToTKHDSVaultVaultRecord(ctx context.Context, recurse bool, objVal t return tkh, diags } -func tfObjectToTKHDSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordLinkableWrapperable - tkh = keyhubmodel.NewVaultVaultRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHDSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHDSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -8104,52 +4108,6 @@ func tfObjectToTKHDSVaultVaultRecord_additionalObjects(ctx context.Context, recu return tkh, diags } -func tfObjectToTKHDSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecoveryable - tkh = keyhubmodel.NewVaultVaultRecovery() - { - val, d := tfObjectToTKHDSAuthAccountPrimer(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultUnlockable - tkh = keyhubmodel.NewVaultVaultUnlock() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultUnlockResponseable - tkh = keyhubmodel.NewVaultVaultUnlockResponse() - { - val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiresAt(val) - } - tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -8253,93 +4211,6 @@ func tfObjectToTKHDSWebhookWebhook(ctx context.Context, recurse bool, objVal typ return tkh, diags } -func tfObjectToTKHDSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDeliveryable - tkh = keyhubmodel.NewWebhookWebhookDelivery() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHDSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHDSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPayload(val) - } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTriggerTime(val) - } - if recurse { - { - val, d := tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable - tkh = keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { - tkh, d := tfObjectToTKHDSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable - tkh = keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() - { - val, d := tfObjectToTKHDSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -8360,124 +4231,6 @@ func tfObjectToTKHDSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b return tkh, diags } -func tfObjectToTKHDSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookNameUuidable - tkh = keyhubmodel.NewWebhookWebhookNameUuid() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHDSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetObject(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHDSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookPushable - tkh = keyhubmodel.NewWebhookWebhookPush() - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetByParty(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup2(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupClassification(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetModificationRequest(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTimestamp(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - { - val, d := tfObjectToTKHDSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetWebhookWebhookPushType(val) - } - return tkh, diags -} - func tfObjectToTKHDSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 3fa6b02..6a5a207 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -37,51 +37,6 @@ func tfObjectToTKHRSAuditInfo(ctx context.Context, recurse bool, objVal types.Ob return tkh, diags } -func tfObjectToTKHRSErrorReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ErrorReportable - tkh = keyhubmodel.NewErrorReport() - tkh.SetApplicationError(objAttrs["application_error"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx, recurse, objAttrs["application_error_parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetApplicationErrorParameters(val) - } - tkh.SetCode(int64PToInt32P(objAttrs["code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["error_details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetErrorDetails(val) - } - tkh.SetException(objAttrs["exception"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMessage(objAttrs["message"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["stacktrace"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetStacktrace(val) - } - return tkh, diags -} - -func tfObjectToTKHRSErrorReport_applicationErrorParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ErrorReport_applicationErrorParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ErrorReport_applicationErrorParametersable - tkh = keyhubmodel.NewErrorReport_applicationErrorParameters() - return tkh, diags -} - func tfObjectToTKHRSGeneratedSecret(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GeneratedSecretable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -150,20 +105,132 @@ func tfObjectToTKHRSRestLink(ctx context.Context, recurse bool, objVal types.Obj return tkh, diags } -func tfObjectToTKHRSSegmentCount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SegmentCountable, diag.Diagnostics) { +func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.SegmentCountable - tkh = keyhubmodel.NewSegmentCount() - tkh.SetCount(objAttrs["count"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.AuthAccountPrimerable + tkh = keyhubmodel.NewAuthAccountPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + diags.Append(d...) + tkh.SetValidity(val) + } + return tkh, diags +} + +func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.AuthPermissionable + tkh = keyhubmodel.NewAuthPermission() + tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetInstances(val) + } + { + val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetOperations(val) + } + tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.CertificateCertificatePrimerable + tkh = keyhubmodel.NewCertificateCertificatePrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { + return *val.(*keyhubmodel.CertificateCertificateType) + }) + diags.Append(d...) + tkh.SetCertificateCertificatePrimerType(val) + } + { + val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetCertificateData(val) + } + { + val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetExpiration(val) + } + tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSAccountVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags @@ -236,14 +303,14 @@ func tfObjectToTKHRSAccountVaultVaultRecord(ctx context.Context, recurse bool, o return tkh, diags } -func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordable, diag.Diagnostics) { +func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuditAuditRecordable - tkh = keyhubmodel.NewAuditAuditRecord() + var tkh keyhubmodel.ClientClientApplicationable + tkh = keyhubmodel.NewClientClientApplication() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -263,39 +330,65 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t tkh.SetPermissions(val) } { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) + }) + diags.Append(d...) + tkh.SetClientClientApplicationPrimerType(val) + } + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() + }) + diags.Append(d...) + tkh.SetScopes(val) + } + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetAuditAuditRecordType(val) + tkh.SetLastModifiedAt(val) } { - val, d := tfToTimePointer(objAttrs["date_time"].(basetypes.StringValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetDateTime(val) + tkh.SetOwner(val) } - tkh.SetOnAccount(objAttrs["on_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnCertificate(objAttrs["on_certificate"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnClient(objAttrs["on_client"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnDirectory(objAttrs["on_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup(objAttrs["on_group"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroup2(objAttrs["on_group2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnGroupClassification(objAttrs["on_group_classification"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnOrganizationalUnit(objAttrs["on_organizational_unit"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnServiceAccount(objAttrs["on_service_account"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnSystem(objAttrs["on_system"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnVaultRecord(objAttrs["on_vault_record"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetOnWebhook(objAttrs["on_webhook"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPerformedBy(objAttrs["performed_by"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) + } + if !objAttrs["ldap_client"].IsNull() { + val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["o_auth2_client"].IsNull() { + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["saml2_client"].IsNull() { + val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSecurityLevel(val) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) + val.SetTypeEscaped(dtype) + tkh = val } if recurse { { - val, d := tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -303,17 +396,17 @@ func tfObjectToTKHRSAuditAuditRecord(ctx context.Context, recurse bool, objVal t return tkh, diags } -func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecordLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuditAuditRecordLinkableWrapperable - tkh = keyhubmodel.NewAuditAuditRecordLinkableWrapper() + var tkh keyhubmodel.ClientClientApplicationLinkableWrapperable + tkh = keyhubmodel.NewClientClientApplicationLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuditAuditRecordable { - tkh, d := tfObjectToTKHRSAuditAuditRecord(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { + tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -323,30 +416,14 @@ func tfObjectToTKHRSAuditAuditRecordLinkableWrapper(ctx context.Context, recurse return tkh, diags } -func tfObjectToTKHRSAuditAuditRecord_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuditAuditRecord_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuditAuditRecord_additionalObjectsable - tkh = keyhubmodel.NewAuditAuditRecord_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountable, diag.Diagnostics) { +func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountable - tkh = keyhubmodel.NewAuthAccount() + var tkh keyhubmodel.ClientClientApplicationPrimerable + tkh = keyhubmodel.NewClientClientApplicationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -365,151 +442,142 @@ func tfObjectToTKHRSAuthAccount(ctx context.Context, recurse bool, objVal types. diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) - diags.Append(d...) - tkh.SetValidity(val) - } { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { + return *val.(*keyhubmodel.ClientClientApplicationType) }) diags.Append(d...) - tkh.SetAccountPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) + tkh.SetClientClientApplicationPrimerType(val) } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDirectoryPasswordChangeRequired(objAttrs["directory_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["directory_rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) + val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { + return val.(basetypes.StringValue).ValueString() }) diags.Append(d...) - tkh.SetDirectoryRotatingPassword(val) + tkh.SetScopes(val) } - { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) + tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ClientClientApplication_additionalObjectsable + tkh = keyhubmodel.NewClientClientApplication_additionalObjects() + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetDirectoryType(val) + tkh.SetAudit(val) } - tkh.SetEmail(objAttrs["email"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdInDirectory(objAttrs["id_in_directory"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetKeyHubPasswordChangeRequired(objAttrs["key_hub_password_change_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groupclients"])) diags.Append(d...) - tkh.SetLastModifiedAt(val) + tkh.SetGroupclients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) - tkh.SetLicenseRole(val) + tkh.SetGroups(val) } - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTokenPasswordEnabled(objAttrs["token_password_enabled"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) + val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTwoFactorStatus(val) + tkh.SetSecret(val) } - tkh.SetValidInDirectory(objAttrs["valid_in_directory"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSAuthAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) + { + val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetTile(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "launchpad.SsoApplicationLaunchpadTile"}) } } + tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHRSAuthAccountBulkUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountBulkUpdateable, diag.Diagnostics) { +func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountBulkUpdateable - tkh = keyhubmodel.NewAuthAccountBulkUpdate() + var tkh keyhubmodel.ClientLdapClientable + tkh = keyhubmodel.NewClientLdapClient() + tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountBulkUpdateAction, func(val any) keyhubmodel.AuthAccountBulkUpdateAction { - return *val.(*keyhubmodel.AuthAccountBulkUpdateAction) - }) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAction(val) + tkh.SetClientCertificate(val) } - tkh.SetExclusiveSelection(objAttrs["exclusive_selection"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["selected_accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int64 { - return val.(basetypes.Int64Value).ValueInt64() - }) + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetSelectedAccounts(val) - } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountChangeLocale(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountChangeLocaleable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetSharedSecret(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountChangeLocaleable - tkh = keyhubmodel.NewAuthAccountChangeLocale() - tkh.SetLocale(objAttrs["locale"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSAuthAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountLinkableWrapperable - tkh = keyhubmodel.NewAuthAccountLinkableWrapper() + var tkh keyhubmodel.ClientOAuth2Clientable + tkh = keyhubmodel.NewClientOAuth2Client() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthAccountable { - tkh, d := tfObjectToTKHRSAuthAccount(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetAccountPermissions(val) + } + { + val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetCallbackURI(objAttrs["callback_uri"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetInitiateLoginURI(objAttrs["initiate_login_uri"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetResourceURIs(objAttrs["resource_uris"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetSharedSecret(val) } + tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountPrimerable, diag.Diagnostics) { +func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountPrimerable - tkh = keyhubmodel.NewAuthAccountPrimer() + var tkh keyhubmodel.ClientOAuth2ClientPermissionable + tkh = keyhubmodel.NewClientOAuth2ClientPermission() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -528,365 +596,357 @@ func tfObjectToTKHRSAuthAccountPrimer(ctx context.Context, recurse bool, objVal diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLastActive(val) + tkh.SetForGroup(val) } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["validity"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountValidity, func(val any) keyhubmodel.AuthAccountValidity { return *val.(*keyhubmodel.AuthAccountValidity) }) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetValidity(val) + tkh.SetForSystem(val) } - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountRecoveryStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountRecoveryStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + }) + diags.Append(d...) + tkh.SetValue(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountRecoveryStatusable - tkh = keyhubmodel.NewAuthAccountRecoveryStatus() - tkh.SetPending2FARecoveryRequest(objAttrs["pending2fa_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetPendingPasswordRecoveryRequest(objAttrs["pending_password_recovery_request"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSAuthAccountSettings(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountSettingsable, diag.Diagnostics) { +func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountSettingsable - tkh = keyhubmodel.NewAuthAccountSettings() + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClient() { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["default_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetDefaultOrganizationalUnit(val) + tkh.SetLinks(val) } - tkh.SetDirectoryName(objAttrs["directory_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["directory_type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetDirectoryType(val) + tkh.SetPermissions(val) + } + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetForGroup(val) } - tkh.SetInGroups(objAttrs["in_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetInMultipleOrganizationalUnits(objAttrs["in_multiple_organizational_units"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetKeyHubAdmin(objAttrs["key_hub_admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetMultipleOrganizationalUnitsExist(objAttrs["multiple_organizational_units_exist"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["password_mode"].(basetypes.StringValue), keyhubmodel.ParseAuthPasswordMode, func(val any) keyhubmodel.AuthPasswordMode { return *val.(*keyhubmodel.AuthPasswordMode) }) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetPasswordMode(val) + tkh.SetForSystem(val) } - tkh.SetSshPublicKey(objAttrs["ssh_public_key"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["two_factor_authentication"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { + return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) }) diags.Append(d...) - tkh.SetTwoFactorAuthentication(val) + tkh.SetValue(val) } - tkh.SetUseTokenPassword(objAttrs["use_token_password"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vault_status"].(basetypes.StringValue), keyhubmodel.ParseVaultAccountVaultStatus, func(val any) keyhubmodel.VaultAccountVaultStatus { return *val.(*keyhubmodel.VaultAccountVaultStatus) }) + val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetVaultStatus(val) + tkh.SetClient(val) + } + if recurse { + { + val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHRSAuthAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountStatusable, diag.Diagnostics) { +func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountStatusable - tkh = keyhubmodel.NewAuthAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCanRequestGroups(objAttrs["can_request_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDeclineRecoveryRequests(objAttrs["decline_recovery_requests"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable + tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() { - val, d := parseCastPointer(objAttrs["license_role"].(basetypes.StringValue), keyhubmodel.ParseAuthAccountLicenseRole, func(val any) keyhubmodel.AuthAccountLicenseRole { return *val.(*keyhubmodel.AuthAccountLicenseRole) }) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { + tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetLicenseRole(val) + tkh.SetItems(val) } - tkh.SetReregistrationRequired(objAttrs["reregistration_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetTwoFactorAuthenticationEnabled(objAttrs["two_factor_authentication_enabled"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSAuthAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccount_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccount_additionalObjectsable - tkh = keyhubmodel.NewAuthAccount_additionalObjects() - tkh.SetActiveLogin(objAttrs["active_login"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable + tkh = keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } - { - val, d := tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) - diags.Append(d...) - tkh.SetGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSAuthAccountRecoveryStatus(ctx, recurse, objAttrs["pending_recovery_requests"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPendingRecoveryRequests(val) - } - { - val, d := tfObjectToTKHRSAuthAccountSettings(ctx, recurse, objAttrs["settings"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSettings(val) - } - { - val, d := tfObjectToTKHRSAuthStoredAccountAttributes(ctx, recurse, objAttrs["stored_attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStoredAttributes(val) - } - { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } return tkh, diags } -func tfObjectToTKHRSAuthAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStatsable, diag.Diagnostics) { +func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthAccountsAuditStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats() - { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx, recurse, objAttrs["directory_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectoryStats(val) - } - { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx, recurse, objAttrs["two_fa_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTwoFAStats(val) - } - { - val, d := tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx, recurse, objAttrs["validity_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetValidityStats(val) - } + var tkh keyhubmodel.ClientOAuth2Client_attributesable + tkh = keyhubmodel.NewClientOAuth2Client_attributes() return tkh, diags } -func tfObjectToTKHRSAuthAccountsAuditStats_directoryStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_directoryStatsable, diag.Diagnostics) { +func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - var tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats_directoryStats() - return tkh, diags -} - -func tfObjectToTKHRSAuthAccountsAuditStats_twoFAStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_twoFAStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ClientSaml2Clientable + tkh = keyhubmodel.NewClientSaml2Client() + { + val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAttributes(val) + } + tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) + diags.Append(d...) + tkh.SetSubjectFormat(val) } - var tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats_twoFAStats() return tkh, diags } -func tfObjectToTKHRSAuthAccountsAuditStats_validityStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthAccountsAuditStats_validityStatsable, diag.Diagnostics) { +func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - var tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable - tkh = keyhubmodel.NewAuthAccountsAuditStats_validityStats() + var tkh keyhubmodel.ClientSaml2Client_attributesable + tkh = keyhubmodel.NewClientSaml2Client_attributes() return tkh, diags } -func tfObjectToTKHRSAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountable - tkh = keyhubmodel.NewAuthInternalAccount() + var tkh keyhubmodel.DirectoryAccountDirectoryable + tkh = keyhubmodel.NewDirectoryAccountDirectory() { - val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.AuthInternalAccount)).AuthAccount = *(val.(*keyhubmodel.AuthAccount)) - tkh.SetTypeEscaped(dtype) - } + tkh.SetLinks(val) } - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetActivationDeadline(val) + tkh.SetPermissions(val) } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthInternalAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetDirectoryAccountDirectoryPrimerType(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountLinkableWrapperable - tkh = keyhubmodel.NewAuthInternalAccountLinkableWrapper() + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthInternalAccountable { - tkh, d := tfObjectToTKHRSAuthInternalAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetItems(val) + tkh.SetBaseOrganizationalUnit(val) } - return tkh, diags -} - -func tfObjectToTKHRSAuthInternalAccountStatusObject(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountStatusObjectable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetHelpdeskGroup(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountStatusObjectable - tkh = keyhubmodel.NewAuthInternalAccountStatusObject() + tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) + val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { + return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetRotatingPassword(val) + } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + if !objAttrs["internal_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["l_d_a_p_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["maintenance_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["o_id_c_directory"].IsNull() { + val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) + val.SetTypeEscaped(dtype) + tkh = val + } + if recurse { + { + val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } return tkh, diags } -func tfObjectToTKHRSAuthMoveInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthMoveInternalAccountable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthMoveInternalAccountable - tkh = keyhubmodel.NewAuthMoveInternalAccount() + var tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, recurse, objAttrs["internal_directory"].(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { + tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetInternalDirectory(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHRSAuthPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthPermissionable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthPermissionable - tkh = keyhubmodel.NewAuthPermission() - tkh.SetFull(objAttrs["full"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.DirectoryAccountDirectoryPrimerable + tkh = keyhubmodel.NewDirectoryAccountDirectoryPrimer() { - val, d := tfToSlice(objAttrs["instances"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetInstances(val) + tkh.SetLinks(val) } { - val, d := tfToSlice(objAttrs["operations"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermittedOperation { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseAuthPermittedOperation, func(val any) keyhubmodel.AuthPermittedOperation { return *val.(*keyhubmodel.AuthPermittedOperation) }) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetOperations(val) + tkh.SetPermissions(val) } - tkh.SetTypeEscaped(objAttrs["type_escaped"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSAuthStoredAccountAttribute(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributeable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) + }) + diags.Append(d...) + tkh.SetDirectoryAccountDirectoryPrimerType(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthStoredAccountAttributeable - tkh = keyhubmodel.NewAuthStoredAccountAttribute() tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSAuthStoredAccountAttributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthStoredAccountAttributesable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthStoredAccountAttributesable - tkh = keyhubmodel.NewAuthStoredAccountAttributes() + var tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable + tkh = keyhubmodel.NewDirectoryAccountDirectoryStatusReport() + tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["attributes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthStoredAccountAttributeable { - tkh, d := tfObjectToTKHRSAuthStoredAccountAttribute(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { + return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) }) diags.Append(d...) - tkh.SetAttributes(val) + tkh.SetStatus(val) } return tkh, diags } -func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.CertificateCertificateable - tkh = keyhubmodel.NewCertificateCertificate() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummary() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -905,59 +965,36 @@ func tfObjectToTKHRSCertificateCertificate(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return *val.(*keyhubmodel.CertificateCertificateType) - }) - diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) - } { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { + return *val.(*keyhubmodel.DirectoryAccountDirectoryType) }) diags.Append(d...) - tkh.SetCertificateData(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) + tkh.SetDirectoryAccountDirectorySummaryType(val) } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["key_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetKeyData(val) - } - if recurse { - { - val, d := tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetStatus(val) } + tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificateLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.CertificateCertificateLinkableWrapperable - tkh = keyhubmodel.NewCertificateCertificateLinkableWrapper() + var tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable + tkh = keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.CertificateCertificateable { - tkh, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { + tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -967,157 +1004,164 @@ func tfObjectToTKHRSCertificateCertificateLinkableWrapper(ctx context.Context, r return tkh, diags } -func tfObjectToTKHRSCertificateCertificatePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificatePrimerable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.CertificateCertificatePrimerable - tkh = keyhubmodel.NewCertificateCertificatePrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAlias(objAttrs["alias"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable + tkh = keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseCertificateCertificateType, func(val any) keyhubmodel.CertificateCertificateType { - return *val.(*keyhubmodel.CertificateCertificateType) - }) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetCertificateCertificatePrimerType(val) + tkh.SetAudit(val) } { - val, d := tfToSlice(objAttrs["certificate_data"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetCertificateData(val) + tkh.SetMarkers(val) } { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) + val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetExpiration(val) + tkh.SetStatus(val) } - tkh.SetFingerprintSha1(objAttrs["fingerprint_sha1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFingerprintSha256(objAttrs["fingerprint_sha256"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGlobal(objAttrs["global"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSubjectDN(objAttrs["subject_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSCertificateCertificate_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.CertificateCertificate_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.CertificateCertificate_additionalObjectsable - tkh = keyhubmodel.NewCertificateCertificate_additionalObjects() + var tkh keyhubmodel.DirectoryInternalDirectoryable + tkh = keyhubmodel.NewDirectoryInternalDirectory() { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetOwner(val) } return tkh, diags } -func tfObjectToTKHRSClientApplicationVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.DirectoryLDAPDirectoryable + tkh = keyhubmodel.NewDirectoryLDAPDirectory() + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetClientCertificate(val) } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetDialect(val) } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetColor(val) + tkh.SetFailoverTrustedCertificate(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) + val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { + return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) + }) diags.Append(d...) - tkh.SetShareEndTime(val) + tkh.SetPasswordRecovery(val) } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetTls(val) } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetTypes(val) + tkh.SetTrustedCertificate(val) } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.DirectoryMaintenanceDirectoryable + tkh = keyhubmodel.NewDirectoryMaintenanceDirectory() + return tkh, diags +} + +func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.DirectoryOIDCDirectoryable + tkh = keyhubmodel.NewDirectoryOIDCDirectory() + tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) + val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) diags.Append(d...) - tkh.SetWarningPeriod(val) + tkh.SetVendorEscaped(val) } - if recurse { - { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) + return tkh, diags +} + +func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupAuthorizedGroupsWrapperable + tkh = keyhubmodel.NewGroupAuthorizedGroupsWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) } + tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } -func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientClientApplicationable - tkh = keyhubmodel.NewClientClientApplication() + var tkh keyhubmodel.GroupGroupable + tkh = keyhubmodel.NewGroupGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1136,66 +1180,87 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) + val, d := tfObjectToTKHRSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) + tkh.SetAuditConfig(val) } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetScopes(val) + tkh.SetAuthorizingGroupAuditing(val) } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["last_modified_at"].(basetypes.StringValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLastModifiedAt(val) + tkh.SetAuthorizingGroupDelegation(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetAuthorizingGroupMembership(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) + tkh.SetAuthorizingGroupProvisioning(val) } - if !objAttrs["o_auth2_client"].IsNull() { - val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["o_auth2_client"].(basetypes.ObjectValue)) + { + val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { + return *val.(*keyhubmodel.RequestAuthorizingGroupType) + }) + diags.Append(d...) + return tkh + }) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientOAuth2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetAuthorizingGroupTypes(val) } - if !objAttrs["ldap_client"].IsNull() { - val, d := tfObjectToTKHRSClientLdapClient(ctx, false, objAttrs["ldap_client"].(basetypes.ObjectValue)) + { + val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientLdapClient)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetClassification(val) } - if !objAttrs["saml2_client"].IsNull() { - val, d := tfObjectToTKHRSClientSaml2Client(ctx, false, objAttrs["saml2_client"].(basetypes.ObjectValue)) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { + return *val.(*keyhubmodel.GroupGroupExtendedAccess) + }) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ClientSaml2Client)).ClientClientApplication = *tkh.(*keyhubmodel.ClientClientApplication) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetExtendedAccess(val) + } + tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetNestedUnder(val) + } + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { + return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) + }) + diags.Append(d...) + tkh.SetVaultRecovery(val) } + tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSClientClientApplication_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1203,188 +1268,112 @@ func tfObjectToTKHRSClientClientApplication(ctx context.Context, recurse bool, o return tkh, diags } -func tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientClientApplicationLinkableWrapperable - tkh = keyhubmodel.NewClientClientApplicationLinkableWrapper() + var tkh keyhubmodel.GroupGroupAccountable + tkh = keyhubmodel.NewGroupGroupAccount() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientClientApplicationable { - tkh, d := tfObjectToTKHRSClientClientApplication(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientClientApplicationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplicationPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + if val != nil { + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientClientApplicationPrimerable - tkh = keyhubmodel.NewClientClientApplicationPrimer() { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLinks(val) + tkh.SetDirectory(val) } + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetEndDate(val) } { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseClientClientApplicationType, func(val any) keyhubmodel.ClientClientApplicationType { - return *val.(*keyhubmodel.ClientClientApplicationType) - }) + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetClientClientApplicationPrimerType(val) + tkh.SetLastUsed(val) } - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToSlice(objAttrs["scopes"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) + val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetScopes(val) - } - tkh.SetSsoApplication(objAttrs["sso_application"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientClientApplication_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientClientApplication_additionalObjectsable - tkh = keyhubmodel.NewClientClientApplication_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - tkh.SetDeleteTile(objAttrs["delete_tile"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groupclients"])) - diags.Append(d...) - tkh.SetGroupclients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } + tkh.SetProvisioningEndTime(val) } { - val, d := tfObjectToTKHRSGroupGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) diags.Append(d...) - tkh.SetGroups(val) + tkh.SetRights(val) } { - val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { + return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + }) diags.Append(d...) - tkh.SetSecret(val) + tkh.SetTwoFactorStatus(val) } - { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "launchpad.SsoApplicationLaunchpadTile"}) + tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) + if recurse { + { + val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) } } - tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHRSClientLdapClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientLdapClientable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientLdapClientable - tkh = keyhubmodel.NewClientLdapClient() - tkh.SetBindDn(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.GroupGroupAccountLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAccountLinkableWrapper() { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetSharedSecret(val) + tkh.SetItems(val) } - tkh.SetUsedForProvisioning(objAttrs["used_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Clientable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2Clientable - tkh = keyhubmodel.NewClientOAuth2Client() - { - val, d := tfToSlice(objAttrs["account_permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccountPermissions(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetCallbackURI(objAttrs["callback_uri"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetConfidential(objAttrs["confidential"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDebugMode(objAttrs["debug_mode"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetIdTokenClaims(objAttrs["id_token_claims"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetInitiateLoginURI(objAttrs["initiate_login_uri"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResourceURIs(objAttrs["resource_uris"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetShareSecretInVault(objAttrs["share_secret_in_vault"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.GroupGroupAccount_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAccount_additionalObjects() { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["shared_secret_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetSharedSecret(val) + tkh.SetAudit(val) } - tkh.SetShowLandingPage(objAttrs["show_landing_page"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetUseClientCredentials(objAttrs["use_client_credentials"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionable - tkh = keyhubmodel.NewClientOAuth2ClientPermission() + var tkh keyhubmodel.GroupGroupAuditable + tkh = keyhubmodel.NewGroupGroupAudit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1404,25 +1393,43 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo tkh.SetPermissions(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { + tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetForGroup(val) + tkh.SetAccounts(val) } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetForSystem(val) + tkh.SetCreatedAt(val) } + tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) + val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetValue(val) + tkh.SetReviewedAt(val) + } + tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) + diags.Append(d...) + tkh.SetStatus(val) + } + { + val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetSubmittedAt(val) } + tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1430,34 +1437,75 @@ func tfObjectToTKHRSClientOAuth2ClientPermission(ctx context.Context, recurse bo return tkh, diags } -func tfObjectToTKHRSClientOAuth2ClientPermissionLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable - tkh = keyhubmodel.NewClientOAuth2ClientPermissionLinkableWrapper() + var tkh keyhubmodel.GroupGroupAuditAccountable + tkh = keyhubmodel.NewGroupGroupAuditAccount() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionable { - tkh, d := tfObjectToTKHRSClientOAuth2ClientPermission(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) + diags.Append(d...) + tkh.SetAction(val) + } + tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetEndDate(val) + } + { + val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) + diags.Append(d...) + tkh.SetLastActive(val) + } + { + val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + diags.Append(d...) + tkh.SetLastUsed(val) + } + tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + diags.Append(d...) + tkh.SetRights(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable - tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClient() + var tkh keyhubmodel.GroupGroupAuditConfigable + tkh = keyhubmodel.NewGroupGroupAuditConfig() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1477,48 +1525,28 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, tkh.SetPermissions(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) + val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetValue(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - if recurse { - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetMonths(val) } return tkh, diags } -func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable - tkh = keyhubmodel.NewClientOAuth2ClientPermissionWithClientLinkableWrapper() + var tkh keyhubmodel.GroupGroupAuditLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupAuditLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ClientOAuth2ClientPermissionWithClientable { - tkh, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { + tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -1528,14 +1556,14 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx co return tkh, diags } -func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable - tkh = keyhubmodel.NewClientOAuth2ClientPermission_additionalObjects() + var tkh keyhubmodel.GroupGroupAudit_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupAudit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) @@ -1544,57 +1572,41 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C return tkh, diags } -func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ClientOAuth2Client_attributesable - tkh = keyhubmodel.NewClientOAuth2Client_attributes() - return tkh, diags -} - -func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientSaml2Clientable - tkh = keyhubmodel.NewClientSaml2Client() + var tkh keyhubmodel.GroupGroupAuditingInfoable + tkh = keyhubmodel.NewGroupGroupAuditingInfo() { - val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetAttributes(val) + tkh.SetAuditDueDate(val) } - tkh.SetMetadata(objAttrs["metadata"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMetadataUrl(objAttrs["metadata_url"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["subject_format"].(basetypes.StringValue), keyhubmodel.ParseClientSubjectFormat, func(val any) keyhubmodel.ClientSubjectFormat { return *val.(*keyhubmodel.ClientSubjectFormat) }) + val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetSubjectFormat(val) - } - return tkh, diags -} - -func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetLastAuditDate(val) } - var tkh keyhubmodel.ClientSaml2Client_attributesable - tkh = keyhubmodel.NewClientSaml2Client_attributes() + tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } -func tfObjectToTKHRSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() + var tkh keyhubmodel.GroupGroupClassificationPrimerable + tkh = keyhubmodel.NewGroupGroupClassificationPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1613,61 +1625,19 @@ func tfObjectToTKHRSDeletedVaultHolderVaultVaultRecord(ctx context.Context, recu diags.Append(d...) tkh.SetPermissions(val) } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectoryable - tkh = keyhubmodel.NewDirectoryAccountDirectory() + var tkh keyhubmodel.GroupGroupClientable + tkh = keyhubmodel.NewGroupGroupClient() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1686,72 +1656,30 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) + val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + tkh.SetClient(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["base_organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetBaseOrganizationalUnit(val) + tkh.SetGroup(val) } - tkh.SetDefaultDirectory(objAttrs["default_directory"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["helpdesk_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetHelpdeskGroup(val) + tkh.SetOwner(val) } - tkh.SetRestrict2fa(objAttrs["restrict2fa"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["rotating_password"].(basetypes.StringValue), keyhubmodel.ParseDirectoryDirectoryRotatingPassword, func(val any) keyhubmodel.DirectoryDirectoryRotatingPassword { - return *val.(*keyhubmodel.DirectoryDirectoryRotatingPassword) - }) - diags.Append(d...) - tkh.SetRotatingPassword(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) - if !objAttrs["o_id_c_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryOIDCDirectory(ctx, false, objAttrs["o_id_c_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryOIDCDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["l_d_a_p_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, false, objAttrs["l_d_a_p_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryLDAPDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["maintenance_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx, false, objAttrs["maintenance_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryMaintenanceDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["internal_directory"].IsNull() { - val, d := tfObjectToTKHRSDirectoryInternalDirectory(ctx, false, objAttrs["internal_directory"].(basetypes.ObjectValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.DirectoryInternalDirectory)).DirectoryAccountDirectory = *tkh.(*keyhubmodel.DirectoryAccountDirectory) - val.SetTypeEscaped(dtype) - tkh = val + tkh.SetTechnicalAdministrator(val) } if recurse { { - val, d := tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -1759,17 +1687,17 @@ func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable - tkh = keyhubmodel.NewDirectoryAccountDirectoryLinkableWrapper() + var tkh keyhubmodel.GroupGroupClientLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupClientLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectoryable { - tkh, d := tfObjectToTKHRSDirectoryAccountDirectory(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { + tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -1779,74 +1707,67 @@ func tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx context.Context return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectoryPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryPrimerable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectoryPrimerable - tkh = keyhubmodel.NewDirectoryAccountDirectoryPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } + var tkh keyhubmodel.GroupGroupClient_additionalObjectsable + tkh = keyhubmodel.NewGroupGroupClient_additionalObjects() { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetPermissions(val) + tkh.SetAudit(val) } - tkh.SetAccountValiditySupported(objAttrs["account_validity_supported"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectoryPrimerType(val) + return tkh, diags +} + +func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupGroupInfoable + tkh = keyhubmodel.NewGroupGroupInfo() + tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryStatusReportable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable - tkh = keyhubmodel.NewDirectoryAccountDirectoryStatusReport() - tkh.SetAccounts(objAttrs["accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetReason(objAttrs["reason"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.GroupGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupLinkableWrapper() { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryStatus, func(val any) keyhubmodel.DirectoryAccountDirectoryStatus { - return *val.(*keyhubmodel.DirectoryAccountDirectoryStatus) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { + tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetStatus(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectorySummaryable - tkh = keyhubmodel.NewDirectoryAccountDirectorySummary() + var tkh keyhubmodel.GroupGroupPrimerable + tkh = keyhubmodel.NewGroupGroupPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -1865,36 +1786,23 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx context.Context, recurs diags.Append(d...) tkh.SetPermissions(val) } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseDirectoryAccountDirectoryType, func(val any) keyhubmodel.DirectoryAccountDirectoryType { - return *val.(*keyhubmodel.DirectoryAccountDirectoryType) - }) - diags.Append(d...) - tkh.SetDirectoryAccountDirectorySummaryType(val) - } - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetUsernameCustomizable(objAttrs["username_customizable"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable - tkh = keyhubmodel.NewDirectoryAccountDirectorySummaryLinkableWrapper() + var tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable + tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.DirectoryAccountDirectorySummaryable { - tkh, d := tfObjectToTKHRSDirectoryAccountDirectorySummary(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { + tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) return tkh }) @@ -1904,258 +1812,199 @@ func tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx context. return tkh, diags } -func tfObjectToTKHRSDirectoryAccountDirectory_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectory_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable - tkh = keyhubmodel.NewDirectoryAccountDirectory_additionalObjects() + var tkh keyhubmodel.GroupGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupGroup_additionalObjects() { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["accounts"])) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetAccounts(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_clients"])) diags.Append(d...) - tkh.SetMarkers(val) + tkh.SetAdministeredClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryStatusReport(ctx, recurse, objAttrs["status"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_systems"])) diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryInternalDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryInternalDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetAdministeredSystems(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryInternalDirectoryable - tkh = keyhubmodel.NewDirectoryInternalDirectory() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["admins"])) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetAdmins(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAudit(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryLDAPDirectoryable - tkh = keyhubmodel.NewDirectoryLDAPDirectory() - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetClientCertificate(val) + tkh.SetAuthorizedGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "group.AuthorizedGroupsWrapper"}) + } } { - val, d := parseCastPointer(objAttrs["dialect"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDialect, func(val any) keyhubmodel.DirectoryLDAPDialect { return *val.(*keyhubmodel.DirectoryLDAPDialect) }) + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["client_permissions"])) diags.Append(d...) - tkh.SetDialect(val) + tkh.SetClientPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["clients"])) diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) + tkh.SetClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["password_recovery"].(basetypes.StringValue), keyhubmodel.ParseDirectoryLDAPDirectoryPasswordRecovery, func(val any) keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery { - return *val.(*keyhubmodel.DirectoryLDAPDirectoryPasswordRecovery) - }) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["content_administered_systems"])) diags.Append(d...) - tkh.SetPasswordRecovery(val) + tkh.SetContentAdministeredSystems(val) } - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSearchBindDN(objAttrs["search_bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchBindPassword(objAttrs["search_bind_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSearchFilter(objAttrs["search_filter"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + val, d := tfObjectToTKHRSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTls(val) + tkh.SetGroupauditinginfo(val) } { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetTrustedCertificate(val) + tkh.SetGroupinfo(val) } - return tkh, diags -} - -func tfObjectToTKHRSDirectoryMaintenanceDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryMaintenanceDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["helpdesk"])) + diags.Append(d...) + tkh.SetHelpdesk(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } - var tkh keyhubmodel.DirectoryMaintenanceDirectoryable - tkh = keyhubmodel.NewDirectoryMaintenanceDirectory() - return tkh, diags -} - -func tfObjectToTKHRSDirectoryOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMarkers(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.DirectoryOIDCDirectoryable - tkh = keyhubmodel.NewDirectoryOIDCDirectory() - tkh.SetAcrValues(objAttrs["acr_values"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAttributesToStore(objAttrs["attributes_to_store"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDomainRestriction(objAttrs["domain_restriction"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetEnforces2fa(objAttrs["enforces2fa"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetFullyResolvedIssuer(objAttrs["fully_resolved_issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIssuer(objAttrs["issuer"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLogoutUrl(objAttrs["logout_url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSendLoginHint(objAttrs["send_login_hint"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parseCastPointer(objAttrs["vendor_escaped"].(basetypes.StringValue), keyhubmodel.ParseDirectoryOIDCVendor, func(val any) keyhubmodel.DirectoryOIDCVendor { return *val.(*keyhubmodel.DirectoryOIDCVendor) }) + val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetVendorEscaped(val) + tkh.SetMyaccount(val) } - return tkh, diags -} - -func tfObjectToTKHRSGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetMydelegatedaccount(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupAccountGroupable - tkh = keyhubmodel.NewGroupAccountGroup() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["nested_groups"])) diags.Append(d...) + tkh.SetNestedGroups(val) if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.GroupAccountGroup)).GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) - tkh.SetTypeEscaped(dtype) + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) } } { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_clients"])) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetOwnedClients(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_directories"])) diags.Append(d...) - tkh.SetFolder(val) + tkh.SetOwnedDirectories(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetLastUsed(val) + tkh.SetOwnedGroupsOnSystem(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "provisioning.OwnedGroupOnSystemsWrapper"}) + } } { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_organizational_units"])) diags.Append(d...) - tkh.SetProvisioningEndTime(val) + tkh.SetOwnedOrganizationalUnits(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_systems"])) diags.Append(d...) - tkh.SetRights(val) + tkh.SetOwnedSystems(val) } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) + { + val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["recent_audits"])) + diags.Append(d...) + tkh.SetRecentAudits(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) } } - return tkh, diags -} - -func tfObjectToTKHRSGroupAccountGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupAccountGroupLinkableWrapperable - tkh = keyhubmodel.NewGroupAccountGroupLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupAccountGroupable { - tkh, d := tfObjectToTKHRSGroupAccountGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) diags.Append(d...) - tkh.SetItems(val) + tkh.SetRequeststatus(val) } - return tkh, diags -} - -func tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) + diags.Append(d...) + tkh.SetServiceAccounts(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupAccountGroup_additionalObjectsable - tkh = keyhubmodel.NewGroupAccountGroup_additionalObjects() { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) - tkh.SetAudit(val) + tkh.SetSystems(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetVault(val) } - return tkh, diags -} - -func tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAuthorizedGroupsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupAuthorizedGroupsWrapperable - tkh = keyhubmodel.NewGroupAuthorizedGroupsWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["webhooks"])) diags.Append(d...) - tkh.SetItems(val) + tkh.SetWebhooks(val) } - tkh.SetGroupCount(objAttrs["group_count"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupable, diag.Diagnostics) { +func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupable - tkh = keyhubmodel.NewGroupGroup() + var tkh keyhubmodel.GroupProvisioningGroupable + tkh = keyhubmodel.NewGroupProvisioningGroup() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2174,149 +2023,129 @@ func tfObjectToTKHRSGroupGroup(ctx context.Context, recurse bool, objVal types.O diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetApplicationAdministration(objAttrs["application_administration"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSGroupGroupAuditConfig(ctx, false, objAttrs["audit_config"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuditConfig(val) - } - tkh.SetAuditRequested(objAttrs["audit_requested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuditor(objAttrs["auditor"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_auditing_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAuthorizingGroupAuditing(val) + tkh.SetGroup(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_delegation_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAuthorizingGroupDelegation(val) + tkh.SetGroupOnSystem(val) } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_membership_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupMembership(val) + if recurse { + { + val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["authorizing_group_provisioning_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAuthorizingGroupProvisioning(val) + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable + tkh = keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() { - val, d := tfToSlice(objAttrs["authorizing_group_types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestAuthorizingGroupType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) - }) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { + tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetAuthorizingGroupTypes(val) - } - { - val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classification_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClassification(val) - } - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["extended_access"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupExtendedAccess, func(val any) keyhubmodel.GroupGroupExtendedAccess { - return *val.(*keyhubmodel.GroupGroupExtendedAccess) - }) - diags.Append(d...) - tkh.SetExtendedAccess(val) - } - tkh.SetHideAuditTrail(objAttrs["hide_audit_trail"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["nested_under_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNestedUnder(val) + tkh.SetItems(val) } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) + return tkh, diags +} + +func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetPrivateGroup(objAttrs["private_group"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRecordTrail(objAttrs["record_trail"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSingleManaged(objAttrs["single_managed"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable + tkh = keyhubmodel.NewGroupProvisioningGroup_additionalObjects() { - val, d := parseCastPointer(objAttrs["vault_recovery"].(basetypes.StringValue), keyhubmodel.ParseGroupVaultRecoveryAvailability, func(val any) keyhubmodel.GroupVaultRecoveryAvailability { - return *val.(*keyhubmodel.GroupVaultRecoveryAvailability) - }) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetVaultRecovery(val) - } - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } + tkh.SetAudit(val) } return tkh, diags } -func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { +func tfObjectToTKHRSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountable - tkh = keyhubmodel.NewGroupGroupAccount() + var tkh keyhubmodel.VaultVaultRecordable + tkh = keyhubmodel.NewVaultVaultRecord() { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } + tkh.SetLinks(val) } { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetDirectory(val) + tkh.SetPermissions(val) } - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetColor(val) } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) diags.Append(d...) - tkh.SetLastUsed(val) + tkh.SetShareEndTime(val) } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) + val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) diags.Append(d...) - tkh.SetProvisioningEndTime(val) + tkh.SetEndDate(val) } + tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetRights(val) + tkh.SetTypes(val) } + tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) + val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { + return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) }) diags.Append(d...) - tkh.SetTwoFactorStatus(val) + tkh.SetWarningPeriod(val) } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2324,91 +2153,92 @@ func tfObjectToTKHRSGroupGroupAccount(ctx context.Context, recurse bool, objVal return tkh, diags } -func tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAccountable { - tkh, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } + var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() + tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupAccountNesting(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountNestingable, diag.Diagnostics) { +func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountNestingable - tkh = keyhubmodel.NewGroupGroupAccountNesting() - tkh.SetConnected(objAttrs["connected"].(basetypes.BoolValue).ValueBoolPointer()) + var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable + tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() return tkh, diags } -func tfObjectToTKHRSGroupGroupAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountStatusable, diag.Diagnostics) { +func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountStatusable - tkh = keyhubmodel.NewGroupGroupAccountStatus() + var tkh keyhubmodel.MarkItemMarkerable + tkh = keyhubmodel.NewMarkItemMarker() { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) + val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) diags.Append(d...) - tkh.SetFolder(val) + tkh.SetLevel(val) + } + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) + diags.Append(d...) + tkh.SetMarkItemMarkerType(val) + } + { + val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetParameters(val) } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccount_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccount_additionalObjectsable - tkh = keyhubmodel.NewGroupGroupAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } + var tkh keyhubmodel.MarkItemMarker_parametersable + tkh = keyhubmodel.NewMarkItemMarker_parameters() return tkh, diags } -func tfObjectToTKHRSGroupGroupAdminMail(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAdminMailable, diag.Diagnostics) { +func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAdminMailable - tkh = keyhubmodel.NewGroupGroupAdminMail() - tkh.SetBody(objAttrs["body"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.MarkItemMarkersable + tkh = keyhubmodel.NewMarkItemMarkers() + { + val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { + tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetMarkers(val) + } return tkh, diags } -func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { +func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditable - tkh = keyhubmodel.NewGroupGroupAudit() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2427,44 +2257,24 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { - tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) - tkh.SetAccounts(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetReviewedAt(val) + tkh.SetOwner(val) } - tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetSubmittedAt(val) - } - tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2472,14 +2282,14 @@ func tfObjectToTKHRSGroupGroupAudit(ctx context.Context, recurse bool, objVal ty return tkh, diags } -func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditAccountable, diag.Diagnostics) { +func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditAccountable - tkh = keyhubmodel.NewGroupGroupAuditAccount() + var tkh keyhubmodel.OrganizationOrganizationalUnitable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2498,49 +2308,58 @@ func tfObjectToTKHRSGroupGroupAuditAccount(ctx context.Context, recurse bool, ob diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetAccountUuid(objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountValid(objAttrs["account_valid"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditAccountAction, func(val any) keyhubmodel.AuditAuditAccountAction { return *val.(*keyhubmodel.AuditAuditAccountAction) }) + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAction(val) + tkh.SetOwner(val) } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetParent(val) } - { - val, d := tfToTimePointer(objAttrs["last_active"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetLastActive(val) + if recurse { + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) + return tkh, diags +} + +func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) + objAttrs := objVal.Attributes() + var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { + tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetRights(val) + tkh.SetItems(val) } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditConfigable, diag.Diagnostics) { +func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditConfigable - tkh = keyhubmodel.NewGroupGroupAuditConfig() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2559,29 +2378,22 @@ func tfObjectToTKHRSGroupGroupAuditConfig(ctx context.Context, recurse bool, obj diags.Append(d...) tkh.SetPermissions(val) } - { - val, d := tfToSlice(objAttrs["months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetMonths(val) - } + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupAuditLinkableWrapper() + var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable + tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditable { - tkh, d := tfObjectToTKHRSGroupGroupAudit(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { + tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) return tkh }) @@ -2591,57 +2403,116 @@ func tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx context.Context, recurse return tkh, diags } -func tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAudit_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAudit_additionalObjectsable - tkh = keyhubmodel.NewGroupGroupAudit_additionalObjects() + var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable + tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } + { + val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["create_as_parent_of"])) + diags.Append(d...) + tkh.SetCreateAsParentOf(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } + } return tkh, diags } -func tfObjectToTKHRSGroupGroupAuditingInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditingInfoable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditingInfoable - tkh = keyhubmodel.NewGroupGroupAuditingInfo() + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := parsePointer2(objAttrs["audit_due_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAuditDueDate(val) + tkh.SetAttributes(val) } + tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parsePointer2(objAttrs["last_audit_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetLastAuditDate(val) + tkh.SetClientCertificate(val) + } + tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetFailoverTrustedCertificate(val) + } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) + tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) + diags.Append(d...) + tkh.SetTls(val) + } + { + val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTrustedCertificate(val) + } + tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) + return tkh, diags +} + +func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable + tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() + return tkh, diags +} + +func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { + var diags diag.Diagnostics + if objVal.IsNull() || objVal.IsUnknown() { + return nil, diags + } + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable + tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() + tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { + return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) + }) + diags.Append(d...) + tkh.SetState(val) } - tkh.SetNrAccounts(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledAccounts(objAttrs["nr_disabled_accounts"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrDisabledManagers(objAttrs["nr_disabled_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrExpiredVaultRecords(objAttrs["nr_expired_vault_records"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrManagers(objAttrs["nr_managers"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNrVaultRecordsWithEndDate(objAttrs["nr_vault_records_with_end_date"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationable - tkh = keyhubmodel.NewGroupGroupClassification() + var tkh keyhubmodel.ProvisioningGroupOnSystemable + tkh = keyhubmodel.NewProvisioningGroupOnSystem() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2660,31 +2531,24 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAuthorizingGroupAuditingRequired(objAttrs["authorizing_group_auditing_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupDelegationRequired(objAttrs["authorizing_group_delegation_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupMembershipRequired(objAttrs["authorizing_group_membership_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetAuthorizingGroupProvisioningRequired(objAttrs["authorizing_group_provisioning_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDefaultClassification(objAttrs["default_classification"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetMaximumAuditInterval(int64PToInt32P(objAttrs["maximum_audit_interval"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetMinimumNrManagers(int64PToInt32P(objAttrs["minimum_nr_managers"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetRecordTrailRequired(objAttrs["record_trail_required"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfToSlice(objAttrs["required_months"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.Month { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseMonth, func(val any) keyhubmodel.Month { return *val.(*keyhubmodel.Month) }) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) }) diags.Append(d...) - tkh.SetRequiredMonths(val) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) } - tkh.SetRotatingPasswordRequired(objAttrs["rotating_password_required"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetVaultRequiresActivation(objAttrs["vault_requires_activation"].(basetypes.BoolValue).ValueBoolPointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2692,29 +2556,17 @@ func tfObjectToTKHRSGroupGroupClassification(ctx context.Context, recurse bool, return tkh, diags } -func tfObjectToTKHRSGroupGroupClassificationInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationInfoable - tkh = keyhubmodel.NewGroupGroupClassificationInfo() - tkh.SetNrGroups(int64PToInt32P(objAttrs["nr_groups"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupClassificationLinkableWrapper() + var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -2724,14 +2576,14 @@ func tfObjectToTKHRSGroupGroupClassificationLinkableWrapper(ctx context.Context, return tkh, diags } -func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationPrimerable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationPrimerable - tkh = keyhubmodel.NewGroupGroupClassificationPrimer() + var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable + tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2750,149 +2602,102 @@ func tfObjectToTKHRSGroupGroupClassificationPrimer(ctx context.Context, recurse diags.Append(d...) tkh.SetPermissions(val) } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningGroupOnSystemPrimerType(val) + } + tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupClassificationUpdate(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassificationUpdateable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassificationUpdateable - tkh = keyhubmodel.NewGroupGroupClassificationUpdate() + var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable + tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() { - val, d := findGroupGroupClassificationPrimerByUUID(ctx, objAttrs["classificaton_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { + tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { + return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) + }) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetClassificaton(val) + tkh.SetTypes(val) } return tkh, diags } -func tfObjectToTKHRSGroupGroupClassification_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClassification_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClassification_additionalObjectsable - tkh = keyhubmodel.NewGroupGroupClassification_additionalObjects() + var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } { - val, d := tfObjectToTKHRSGroupGroupClassificationInfo(ctx, recurse, objAttrs["info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupClient(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClientable - tkh = keyhubmodel.NewGroupGroupClient() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["provgroups"])) diags.Append(d...) - tkh.SetOwner(val) + tkh.SetProvgroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) + tkh.SetServiceAccounts(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) } } return tkh, diags } -func tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClientLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClientLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupClientLinkableWrapper() + var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable + tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClientable { - tkh, d := tfObjectToTKHRSGroupGroupClient(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { + tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) tkh.SetItems(val) } + tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } -func tfObjectToTKHRSGroupGroupClient_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupClient_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupClient_additionalObjectsable - tkh = keyhubmodel.NewGroupGroupClient_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupFolderable - tkh = keyhubmodel.NewGroupGroupFolder() + var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() { val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) @@ -2911,10 +2716,12 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t diags.Append(d...) tkh.SetPermissions(val) } + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -2922,3739 +2729,69 @@ func tfObjectToTKHRSGroupGroupFolder(ctx context.Context, recurse bool, objVal t return tkh, diags } -func tfObjectToTKHRSGroupGroupFolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupFolderLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupFolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupFolderable { - tkh, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupFolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupFolder_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupFolder_additionalObjectsable - tkh = keyhubmodel.NewGroupGroupFolder_additionalObjects() + var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() { val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetAudit(val) } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupInfoable - tkh = keyhubmodel.NewGroupGroupInfo() - tkh.SetNrAccounts(int64PToInt32P(objAttrs["nr_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAccountsWithVault(int64PToInt32P(objAttrs["nr_accounts_with_vault"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrAudits(int64PToInt32P(objAttrs["nr_audits"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrClients(int64PToInt32P(objAttrs["nr_clients"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrProvisionedSystems(int64PToInt32P(objAttrs["nr_provisioned_systems"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetNrVaultRecords(int64PToInt32P(objAttrs["nr_vault_records"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupPrimerable - tkh = keyhubmodel.NewGroupGroupPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAdmin(objAttrs["admin"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) diags.Append(d...) - tkh.SetItems(val) + tkh.SetSystems(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } return tkh, diags } -func tfObjectToTKHRSGroupGroupSegmentedLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupSegmentedLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable - tkh = keyhubmodel.NewGroupGroupSegmentedLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupable { - tkh, d := tfObjectToTKHRSGroupGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } + var tkh keyhubmodel.ProvisioningProvisionedADable + tkh = keyhubmodel.NewProvisioningProvisionedAD() { - val, d := tfToSlice(objAttrs["segments"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.SegmentCountable { - tkh, d := tfObjectToTKHRSSegmentCount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh + val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { + return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) }) diags.Append(d...) - tkh.SetSegments(val) + tkh.SetSamAccountNameScheme(val) } return tkh, diags } -func tfObjectToTKHRSGroupGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroup_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroup_additionalObjectsable - tkh = keyhubmodel.NewGroupGroup_additionalObjects() - { - val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["accounts"])) - diags.Append(d...) - tkh.SetAccounts(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_clients"])) - diags.Append(d...) - tkh.SetAdministeredClients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["administered_systems"])) - diags.Append(d...) - tkh.SetAdministeredSystems(val) - } + var tkh keyhubmodel.ProvisioningProvisionedAccountable + tkh = keyhubmodel.NewProvisioningProvisionedAccount() { - val, d := tfObjectToTKHRSGroupGroupAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["admins"])) + val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAdmins(val) if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSGroupAuthorizedGroupsWrapper(ctx, recurse, objAttrs["authorized_groups"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAuthorizedGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "group.AuthorizedGroupsWrapper"}) - } - } - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["client_permissions"])) - diags.Append(d...) - tkh.SetClientPermissions(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSGroupGroupClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["clients"])) - diags.Append(d...) - tkh.SetClients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["content_administered_systems"])) - diags.Append(d...) - tkh.SetContentAdministeredSystems(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAuditingInfo(ctx, recurse, objAttrs["groupauditinginfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupauditinginfo(val) - } - { - val, d := tfObjectToTKHRSGroupGroupInfo(ctx, recurse, objAttrs["groupinfo"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupinfo(val) - } - { - val, d := tfObjectToTKHRSDirectoryAccountDirectorySummaryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["helpdesk"])) - diags.Append(d...) - tkh.SetHelpdesk(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["myaccount"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMyaccount(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAccount(ctx, recurse, objAttrs["mydelegatedaccount"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMydelegatedaccount(val) - } - { - val, d := tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["nested_groups"])) - diags.Append(d...) - tkh.SetNestedGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSClientClientApplicationLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_clients"])) - diags.Append(d...) - tkh.SetOwnedClients(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSDirectoryAccountDirectoryLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_directories"])) - diags.Append(d...) - tkh.SetOwnedDirectories(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx, recurse, objAttrs["owned_groups_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOwnedGroupsOnSystem(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "provisioning.OwnedGroupOnSystemsWrapper"}) - } - } - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_organizational_units"])) - diags.Append(d...) - tkh.SetOwnedOrganizationalUnits(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["owned_systems"])) - diags.Append(d...) - tkh.SetOwnedSystems(val) - } - { - val, d := tfObjectToTKHRSGroupGroupAuditLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["recent_audits"])) - diags.Append(d...) - tkh.SetRecentAudits(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := parseCastPointer(objAttrs["requeststatus"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRequestStatus, func(val any) keyhubmodel.GroupGroupRequestStatus { return *val.(*keyhubmodel.GroupGroupRequestStatus) }) - diags.Append(d...) - tkh.SetRequeststatus(val) - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) - diags.Append(d...) - tkh.SetServiceAccounts(val) - } - { - val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) - diags.Append(d...) - tkh.SetSystems(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVault(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["webhooks"])) - diags.Append(d...) - tkh.SetWebhooks(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupGroupsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupsAuditStatsable - tkh = keyhubmodel.NewGroupGroupsAuditStats() - tkh.SetAuditedGroups(objAttrs["audited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfToSlice(objAttrs["classifications"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupClassificationable { - tkh, d := tfObjectToTKHRSGroupGroupClassification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetClassifications(val) - } - tkh.SetOverdueAuditGroups(objAttrs["overdue_audit_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetOverdueVaultPolicies(objAttrs["overdue_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetUnauditedGroups(objAttrs["unaudited_groups"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetValidVaultPolicies(objAttrs["valid_vault_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetVaultsWithoutPolicies(objAttrs["vaults_without_policies"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSGroupProvisioningGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupProvisioningGroupable - tkh = keyhubmodel.NewGroupProvisioningGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, false, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - if recurse { - { - val, d := tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroupLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable - tkh = keyhubmodel.NewGroupProvisioningGroupLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupProvisioningGroupable { - tkh, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupProvisioningGroup_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupProvisioningGroup_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable - tkh = keyhubmodel.NewGroupProvisioningGroup_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSGroupVaultVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordable - tkh = keyhubmodel.NewVaultVaultRecord() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := parseCastPointer(objAttrs["color"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordColor, func(val any) keyhubmodel.VaultVaultRecordColor { return *val.(*keyhubmodel.VaultVaultRecordColor) }) - diags.Append(d...) - tkh.SetColor(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["share_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetShareEndTime(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDerived(objAttrs["derived"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetFilename(objAttrs["filename"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultSecretType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseVaultVaultSecretType, func(val any) keyhubmodel.VaultVaultSecretType { return *val.(*keyhubmodel.VaultVaultSecretType) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - tkh.SetUrl(objAttrs["url"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["warning_period"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultRecordWarningPeriod, func(val any) keyhubmodel.VaultVaultRecordWarningPeriod { - return *val.(*keyhubmodel.VaultVaultRecordWarningPeriod) - }) - diags.Append(d...) - tkh.SetWarningPeriod(val) - } - if recurse { - { - val, d := tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetTile(val) - } - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadDisplayedLaunchpadTiles(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadDisplayedLaunchpadTilesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable - tkh = keyhubmodel.NewLaunchpadDisplayedLaunchpadTiles() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadDisplayedLaunchpadTileable { - tkh, d := tfObjectToTKHRSLaunchpadDisplayedLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetIdenticonCode(int64PToInt32P(objAttrs["identicon_code"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["launchpad_launchpad_tile_type"].(basetypes.StringValue), keyhubmodel.ParseLaunchpadLaunchpadTileType, func(val any) keyhubmodel.LaunchpadLaunchpadTileType { - return *val.(*keyhubmodel.LaunchpadLaunchpadTileType) - }) - diags.Append(d...) - tkh.SetLaunchpadLaunchpadTileType(val) - } - { - val, d := tfToSlice(objAttrs["logo"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetLogo(val) - } - { - val, d := findVaultVaultRecordPrimerByUUID(ctx, objAttrs["vault_record_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - if !objAttrs["vault_record_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, false, objAttrs["vault_record_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadVaultRecordLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["sso_application_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, false, objAttrs["sso_application_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadSsoApplicationLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["manual_launchpad_tile"].IsNull() { - val, d := tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx, false, objAttrs["manual_launchpad_tile"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.LaunchpadManualLaunchpadTile)).LaunchpadLaunchpadTile = *tkh.(*keyhubmodel.LaunchpadLaunchpadTile) - val.SetTypeEscaped(dtype) - tkh = val - } - if recurse { - { - val, d := tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTileLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable - tkh = keyhubmodel.NewLaunchpadLaunchpadTileLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LaunchpadLaunchpadTileable { - tkh, d := tfObjectToTKHRSLaunchpadLaunchpadTile(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTilePrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTilePrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable - tkh = keyhubmodel.NewLaunchpadLaunchpadTilePrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadLaunchpadTile_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable - tkh = keyhubmodel.NewLaunchpadLaunchpadTile_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadManualLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadManualLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadManualLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadManualLaunchpadTile() - tkh.SetTitle(objAttrs["title"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadSsoApplicationLaunchpadTile() - tkh.SetUri(objAttrs["uri"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LaunchpadVaultRecordLaunchpadTileable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable - tkh = keyhubmodel.NewLaunchpadVaultRecordLaunchpadTile() - return tkh, diags -} - -func tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.LicenseKeyHubLicenseInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.LicenseKeyHubLicenseInfoable - tkh = keyhubmodel.NewLicenseKeyHubLicenseInfo() - { - val, d := parseCastPointer(objAttrs["current_license_status"].(basetypes.StringValue), keyhubmodel.ParseLicenseKeyHubLicenseInfoLicenseStatus, func(val any) keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus { - return *val.(*keyhubmodel.LicenseKeyHubLicenseInfoLicenseStatus) - }) - diags.Append(d...) - tkh.SetCurrentLicenseStatus(val) - } - tkh.SetCustomerCompany(objAttrs["customer_company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetCustomerContact(objAttrs["customer_contact"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToSlice(objAttrs["customer_domains"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetCustomerDomains(val) - } - { - val, d := tfToSlice(objAttrs["details"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetDetails(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpirationTime(val) - } - { - val, d := tfToSlice(objAttrs["features"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.LicenseLicenseFeature { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseLicenseLicenseFeature, func(val any) keyhubmodel.LicenseLicenseFeature { return *val.(*keyhubmodel.LicenseLicenseFeature) }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetFeatures(val) - } - { - val, d := tfToTimePointer(objAttrs["issue_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetIssueTime(val) - } - tkh.SetKeyHubDomain(objAttrs["key_hub_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLicenseKey(objAttrs["license_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["not_before_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetNotBeforeTime(val) - } - tkh.SetUsersHardLimit(int64PToInt32P(objAttrs["users_hard_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersProLimit(int64PToInt32P(objAttrs["users_pro_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUsersSoftLimit(int64PToInt32P(objAttrs["users_soft_limit"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetVersion(int64PToInt32P(objAttrs["version"].(basetypes.Int64Value).ValueInt64Pointer())) - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkerable - tkh = keyhubmodel.NewMarkItemMarker() - { - val, d := parseCastPointer(objAttrs["level"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerLevel, func(val any) keyhubmodel.MarkItemMarkerLevel { return *val.(*keyhubmodel.MarkItemMarkerLevel) }) - diags.Append(d...) - tkh.SetLevel(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseMarkItemMarkerType, func(val any) keyhubmodel.MarkItemMarkerType { return *val.(*keyhubmodel.MarkItemMarkerType) }) - diags.Append(d...) - tkh.SetMarkItemMarkerType(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() - return tkh, diags -} - -func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.MarkItemMarkersable - tkh = keyhubmodel.NewMarkItemMarkers() - { - val, d := tfToSlice(objAttrs["markers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.MarkItemMarkerable { - tkh, d := tfObjectToTKHRSMarkItemMarker(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetMarkers(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNestedAuthInternalAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.AuthInternalAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.AuthInternalAccountable - tkh = keyhubmodel.NewAuthInternalAccount() - { - val, d := findAuthAccountByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.AuthInternalAccount)).AuthAccount = *(val.(*keyhubmodel.AuthAccount)) - tkh.SetTypeEscaped(dtype) - } - } - tkh.SetActivationCode(objAttrs["activation_code"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["activation_deadline"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetActivationDeadline(val) - } - tkh.SetCompany(objAttrs["company"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFirstName(objAttrs["first_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetLastName(objAttrs["last_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseAuthInternalAccountStatus, func(val any) keyhubmodel.AuthInternalAccountStatus { - return *val.(*keyhubmodel.AuthInternalAccountStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - tkh.SetTelephone(objAttrs["telephone"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSNestedClientOAuth2ClientPermission(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2ClientPermissionable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ClientOAuth2ClientPermissionable - tkh = keyhubmodel.NewClientOAuth2ClientPermission() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["for_group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForGroup(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["for_system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetForSystem(val) - } - { - val, d := parseCastPointer(objAttrs["value"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetValue(val) - } - if recurse { - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedGroupAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupAccountGroupable - tkh = keyhubmodel.NewGroupAccountGroup() - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.GroupAccountGroup)).GroupGroupPrimer = *(val.(*keyhubmodel.GroupGroupPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, false, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupAccountGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedGroupGroupAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAccountable - tkh = keyhubmodel.NewGroupGroupAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.GroupGroupAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetDisconnectedNested(objAttrs["disconnected_nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - { - val, d := parsePointer2(objAttrs["last_used"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetLastUsed(val) - } - tkh.SetNested(objAttrs["nested"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) - diags.Append(d...) - tkh.SetRights(val) - } - { - val, d := parseCastPointer(objAttrs["two_factor_status"].(basetypes.StringValue), keyhubmodel.ParseAuthTwoFactorAuthenticationStatus, func(val any) keyhubmodel.AuthTwoFactorAuthenticationStatus { - return *val.(*keyhubmodel.AuthTwoFactorAuthenticationStatus) - }) - diags.Append(d...) - tkh.SetTwoFactorStatus(val) - } - tkh.SetVisibleForProvisioning(objAttrs["visible_for_provisioning"].(basetypes.BoolValue).ValueBoolPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedGroupGroupAudit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.GroupGroupAuditable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.GroupGroupAuditable - tkh = keyhubmodel.NewGroupGroupAudit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToSlice(objAttrs["accounts"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupAuditAccountable { - tkh, d := tfObjectToTKHRSGroupGroupAuditAccount(ctx, false, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetAccounts(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetCreatedBy(objAttrs["created_by"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameOnAudit(objAttrs["name_on_audit"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfToTimePointer(objAttrs["reviewed_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetReviewedAt(val) - } - tkh.SetReviewedBy(objAttrs["reviewed_by"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupAuditStatus, func(val any) keyhubmodel.GroupGroupAuditStatus { return *val.(*keyhubmodel.GroupGroupAuditStatus) }) - diags.Append(d...) - tkh.SetStatus(val) - } - { - val, d := tfToTimePointer(objAttrs["submitted_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetSubmittedAt(val) - } - tkh.SetSubmittedBy(objAttrs["submitted_by"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSGroupGroupAudit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.OrganizationAccountOrganizationalUnit)).OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.OrganizationOrganizationalUnitAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemable - tkh = keyhubmodel.NewProvisioningGroupOnSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccountable - tkh = keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.ProvisioningProvisionedAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedServiceaccountServiceAccountGroup(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountGroupable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountGroupable - tkh = keyhubmodel.NewServiceaccountServiceAccountGroup() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - if recurse { - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroup_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNestedWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDeliveryable - tkh = keyhubmodel.NewWebhookWebhookDelivery() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPayload(val) - } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTriggerTime(val) - } - if recurse { - { - val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationCertificateExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationCertificateExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationCertificateExpiredNotificationable - tkh = keyhubmodel.NewNotificationCertificateExpiredNotification() - { - val, d := tfObjectToTKHRSCertificateCertificate(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHRSDirectoryLDAPDirectory(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfToTimePointer(objAttrs["expiration"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiration(val) - } - { - val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["ldap_client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLdapClient(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := parseCastPointer(objAttrs["usage"].(basetypes.StringValue), keyhubmodel.ParseNotificationCertificateUsage, func(val any) keyhubmodel.NotificationCertificateUsage { - return *val.(*keyhubmodel.NotificationCertificateUsage) - }) - diags.Append(d...) - tkh.SetUsage(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhook(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationGroupAuditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupAuditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable - tkh = keyhubmodel.NewNotificationGroupAuditRequiredNotification() - { - val, d := tfToTimePointer(objAttrs["due_date"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetDueDate(val) - } - { - val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := parseCastPointer(objAttrs["notification_group_audit_required_notification_type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRequiredSourceType, func(val any) keyhubmodel.AuditAuditRequiredSourceType { - return *val.(*keyhubmodel.AuditAuditRequiredSourceType) - }) - diags.Append(d...) - tkh.SetNotificationGroupAuditRequiredNotificationType(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationGroupEditRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationGroupEditRequiredNotificationable - tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification() - { - val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetParameters(val) - } - { - val, d := parseCastPointer(objAttrs["reason"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupEditRequiredReason, func(val any) keyhubmodel.GroupGroupEditRequiredReason { - return *val.(*keyhubmodel.GroupGroupEditRequiredReason) - }) - diags.Append(d...) - tkh.SetReason(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationGroupEditRequiredNotification_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationGroupEditRequiredNotification_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable - tkh = keyhubmodel.NewNotificationGroupEditRequiredNotification_parameters() - return tkh, diags -} - -func tfObjectToTKHRSNotificationInvalidSignaturesDetectedNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable - tkh = keyhubmodel.NewNotificationInvalidSignaturesDetectedNotification() - return tkh, diags -} - -func tfObjectToTKHRSNotificationLicenseStatusNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationLicenseStatusNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationLicenseStatusNotificationable - tkh = keyhubmodel.NewNotificationLicenseStatusNotification() - tkh.SetActiveAccounts(int64PToInt32P(objAttrs["active_accounts"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHRSLicenseKeyHubLicenseInfo(ctx, recurse, objAttrs["license_info"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetLicenseInfo(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationModificationRequestNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationModificationRequestNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationModificationRequestNotificationable - tkh = keyhubmodel.NewNotificationModificationRequestNotification() - { - val, d := tfToSlice(objAttrs["admins"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetAdmins(val) - } - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetGroups(val) - } - { - val, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, objAttrs["request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRequest(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.NotificationNotificationable - tkh = keyhubmodel.NewNotificationNotification() - return tkh, diags -} - -func tfObjectToTKHRSNotificationNotifications(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationNotificationsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationNotificationsable - tkh = keyhubmodel.NewNotificationNotifications() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.NotificationNotificationable { - tkh, d := tfObjectToTKHRSNotificationNotification(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationOldApiVersionUsageNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationOldApiVersionUsageNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable - tkh = keyhubmodel.NewNotificationOldApiVersionUsageNotification() - tkh.SetApiVersion(int64PToInt32P(objAttrs["api_version"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfObjectToTKHRSClientOAuth2Client(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationProvisionConfigRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationProvisionConfigRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable - tkh = keyhubmodel.NewNotificationProvisionConfigRequiredNotification() - { - val, d := tfToSlice(objAttrs["systems"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetSystems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationRotatingPasswordRequiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationRotatingPasswordRequiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable - tkh = keyhubmodel.NewNotificationRotatingPasswordRequiredNotification() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationUpdateAvailableNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationUpdateAvailableNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationUpdateAvailableNotificationable - tkh = keyhubmodel.NewNotificationUpdateAvailableNotification() - { - val, d := parsePointer2(objAttrs["released_at"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetReleasedAt(val) - } - return tkh, diags -} - -func tfObjectToTKHRSNotificationVaultRecordExpiredNotification(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.NotificationVaultRecordExpiredNotificationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable - tkh = keyhubmodel.NewNotificationVaultRecordExpiredNotification() - { - val, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, objAttrs["record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetRecord(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnitable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit() - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.OrganizationAccountOrganizationalUnit)).OrganizationOrganizationalUnitPrimer = *(val.(*keyhubmodel.OrganizationOrganizationalUnitPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationAccountOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationAccountOrganizationalUnitable { - tkh, d := tfObjectToTKHRSOrganizationAccountOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationAccountOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable - tkh = keyhubmodel.NewOrganizationAccountOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnit(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitable - tkh = keyhubmodel.NewOrganizationOrganizationalUnit() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetDepth(int64PToInt32P(objAttrs["depth"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["parent_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetParent(val) - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccountable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.OrganizationOrganizationalUnitAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - if recurse { - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitAccountable { - tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitable { - tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnit(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable - tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { - tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSOrganizationOrganizationalUnit_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable - tkh = keyhubmodel.NewOrganizationOrganizationalUnit_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["create_as_parent_of"])) - diags.Append(d...) - tkh.SetCreateAsParentOf(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable - tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() - { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAttributes(val) - } - tkh.SetBaseDN(objAttrs["base_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindDN(objAttrs["bind_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetBindPassword(objAttrs["bind_password"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["client_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetClientCertificate(val) - } - tkh.SetFailoverHost(objAttrs["failover_host"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["failover_trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetFailoverTrustedCertificate(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetHost(objAttrs["host"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetObjectClasses(objAttrs["object_classes"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPort(int64PToInt32P(objAttrs["port"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetServiceAccountDN(objAttrs["service_account_dn"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetSshPublicKeySupported(objAttrs["ssh_public_key_supported"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["tls"].(basetypes.StringValue), keyhubmodel.ParseTLSLevel, func(val any) keyhubmodel.TLSLevel { return *val.(*keyhubmodel.TLSLevel) }) - diags.Append(d...) - tkh.SetTls(val) - } - { - val, d := findCertificateCertificatePrimerByUUID(ctx, objAttrs["trusted_certificate_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTrustedCertificate(val) - } - tkh.SetUserDN(objAttrs["user_dn"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable - tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningAccountProvisioningStatusable - tkh = keyhubmodel.NewProvisioningAccountProvisioningStatus() - tkh.SetDescription(objAttrs["description"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["result"].(basetypes.StringValue), keyhubmodel.ParseProvisioningAccountProvisioningResult, func(val any) keyhubmodel.ProvisioningAccountProvisioningResult { - return *val.(*keyhubmodel.ProvisioningAccountProvisioningResult) - }) - diags.Append(d...) - tkh.SetResult(val) - } - { - val, d := tfObjectToTKHRSGroupProvisioningGroup(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAccountProvisioningStatusReportable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable - tkh = keyhubmodel.NewProvisioningAccountProvisioningStatusReport() - { - val, d := tfToSlice(objAttrs["status"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningAccountProvisioningStatusable { - tkh, d := tfObjectToTKHRSProvisioningAccountProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable - tkh = keyhubmodel.NewProvisioningCircuitBreakerStatistics() - tkh.SetNumberOfFailedCalls(objAttrs["number_of_failed_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfNotPermittedCalls(objAttrs["number_of_not_permitted_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - tkh.SetNumberOfSuccessfulCalls(objAttrs["number_of_successful_calls"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["state"].(basetypes.StringValue), keyhubmodel.ParseProvisioningCircuitBreakerState, func(val any) keyhubmodel.ProvisioningCircuitBreakerState { - return *val.(*keyhubmodel.ProvisioningCircuitBreakerState) - }) - diags.Append(d...) - tkh.SetState(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemable - tkh = keyhubmodel.NewProvisioningGroupOnSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable - tkh = keyhubmodel.NewProvisioningGroupOnSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable - tkh = keyhubmodel.NewProvisioningGroupOnSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetDisplayName(objAttrs["display_name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningGroupOnSystemPrimerType(val) - } - tkh.SetShortNameInSystem(objAttrs["short_name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystemTypesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystemTypesable - tkh = keyhubmodel.NewProvisioningGroupOnSystemTypes() - { - val, d := tfToSlice(objAttrs["types"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemType { - tkh, d := parseCast(val.(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupOnSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable - tkh = keyhubmodel.NewProvisioningGroupOnSystem_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSGroupProvisioningGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["provgroups"])) - diags.Append(d...) - tkh.SetProvgroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["service_accounts"])) - diags.Append(d...) - tkh.SetServiceAccounts(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupProvisioningStatusable - tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus() - { - val, d := tfObjectToTKHRSGroupGroupFolder(ctx, recurse, objAttrs["folder"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetFolder(val) - } - { - val, d := tfObjectToTKHRSGroupGroup(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx, recurse, objAttrs["provisioning_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetProvisioningDuration(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningEndTime(val) - } - { - val, d := tfToTimePointer(objAttrs["provisioning_permission_end_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetProvisioningPermissionEndTime(val) - } - { - val, d := tfObjectToTKHRSProvisioningAccountProvisioningStatusReport(ctx, recurse, objAttrs["status_report"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatusReport(val) - } - tkh.SetVisibleOnDashboard(objAttrs["visible_on_dashboard"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningGroupProvisioningStatus_provisioningDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable - tkh = keyhubmodel.NewProvisioningGroupProvisioningStatus_provisioningDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningOwnedGroupOnSystemsWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable - tkh = keyhubmodel.NewProvisioningOwnedGroupOnSystemsWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupOnSystemable { - tkh, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - tkh.SetUnlinkedCount(objAttrs["unlinked_count"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionNumberSequenceable - tkh = keyhubmodel.NewProvisioningProvisionNumberSequence() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNextUID(objAttrs["next_uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionNumberSequenceLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionNumberSequenceLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionNumberSequenceable { - tkh, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionNumberSequence_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionNumberSequence_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["systems"])) - diags.Append(d...) - tkh.SetSystems(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAD(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedADable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedADable - tkh = keyhubmodel.NewProvisioningProvisionedAD() - { - val, d := parseCastPointer(objAttrs["sam_account_name_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningADSamAccountNameScheme, func(val any) keyhubmodel.ProvisioningADSamAccountNameScheme { - return *val.(*keyhubmodel.ProvisioningADSamAccountNameScheme) - }) - diags.Append(d...) - tkh.SetSamAccountNameScheme(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccount(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccountable - tkh = keyhubmodel.NewProvisioningProvisionedAccount() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - if val != nil { - dtype := tkh.GetTypeEscaped() - (*tkh.(*keyhubmodel.ProvisioningProvisionedAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) - tkh.SetTypeEscaped(dtype) - } - } - tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccountLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedAccountLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedAccountable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable - tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable - tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable - tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() - tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable - tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() - { - val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedLDAPable - tkh = keyhubmodel.NewProvisioningProvisionedLDAP() - tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { - return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) - }) - diags.Append(d...) - tkh.SetHashingScheme(val) - } - { - val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetNumbering(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable - tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() - { - val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetDirectory(val) - } - tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemable - tkh = keyhubmodel.NewProvisioningProvisionedSystem() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetContentAdministrator(val) - } - { - val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) - diags.Append(d...) - tkh.SetExternalUuid(val) - } - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOwner(val) - } - tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetTechnicalAdministrator(val) - } - tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) - if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_azure_tenant"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_a_d"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_internal_ldap"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["provisioned_ldap_directory"].IsNull() { - val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) - val.SetTypeEscaped(dtype) - tkh = val - } - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable - tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { - return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) - }) - diags.Append(d...) - tkh.SetProvisioningProvisionedSystemPrimerType(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfToTimePointer(objAttrs["created_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCreatedAt(val) - } - tkh.SetErrors(int64PToInt32P(objAttrs["errors"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetLog(objAttrs["log"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetModifications(int64PToInt32P(objAttrs["modifications"].(basetypes.Int64Value).ValueInt64Pointer())) - if recurse { - { - val, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLogLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLogLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemSyncLogable { - tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemSyncLog(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystemSyncLog_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionedSystemSyncLog_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable - tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() - { - val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["issued_permissions"])) - diags.Append(d...) - tkh.SetIssuedPermissions(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetManagementPermissions(val) - } - { - val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetMarkers(val) - } - { - val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetStatistics(val) - } - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSupportedGroupTypes(val) - } - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable - tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() - tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningProvisioningStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningProvisioningStatusable - tkh = keyhubmodel.NewProvisioningProvisioningStatus() - { - val, d := tfToSlice(objAttrs["groups"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningGroupProvisioningStatusable { - tkh, d := tfObjectToTKHRSProvisioningGroupProvisioningStatus(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetGroups(val) - } - tkh.SetIgnoreErrors(objAttrs["ignore_errors"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetRestrictedByLicense(objAttrs["restricted_by_license"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSProvisioningTokenPassword(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningTokenPasswordable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ProvisioningTokenPasswordable - tkh = keyhubmodel.NewProvisioningTokenPassword() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractApplicationModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAbstractApplicationModificationRequestable - tkh = keyhubmodel.NewRequestAbstractApplicationModificationRequest() - { - val, d := findClientClientApplicationPrimerByUUID(ctx, objAttrs["application_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetApplication(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable - tkh = keyhubmodel.NewRequestAbstractOrganizationalUnitModificationRequest() - { - val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable - tkh = keyhubmodel.NewRequestAbstractProvisionedSystemModificationRequest() - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable - tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters() - { - val, d := tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx, recurse, objAttrs["access_duration"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccessDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptGrantAccessRequestParameters_accessDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable - tkh = keyhubmodel.NewRequestAcceptGrantAccessRequestParameters_accessDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptJoinGroupRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptJoinGroupRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable - tkh = keyhubmodel.NewRequestAcceptJoinGroupRequestParameters() - { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) - diags.Append(d...) - tkh.SetEndDate(val) - } - tkh.SetMakeManager(objAttrs["make_manager"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAcceptModificationRequestParametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestAcceptModificationRequestParametersable - tkh = keyhubmodel.NewRequestAcceptModificationRequestParameters() - return tkh, diags -} - -func tfObjectToTKHRSRequestAddGroupAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestAddGroupAdminRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestAddGroupAdminRequestable - tkh = keyhubmodel.NewRequestAddGroupAdminRequest() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["new_admin_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetNewAdmin(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestCreateGroupOnSystemRequestable - tkh = keyhubmodel.NewRequestCreateGroupOnSystemRequest() - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := parseCastPointer(objAttrs["group_on_system_type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningGroupOnSystemType, func(val any) keyhubmodel.ProvisioningGroupOnSystemType { - return *val.(*keyhubmodel.ProvisioningGroupOnSystemType) - }) - diags.Append(d...) - tkh.SetGroupOnSystemType(val) - } - tkh.SetNameInSystem(objAttrs["name_in_system"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestCreateGroupRequestable - tkh = keyhubmodel.NewRequestCreateGroupRequest() - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestCreateServiceAccountRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestCreateServiceAccountRequestable - tkh = keyhubmodel.NewRequestCreateServiceAccountRequest() - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestDisable2FARequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestDisable2FARequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestDisable2FARequestable - tkh = keyhubmodel.NewRequestDisable2FARequest() - tkh.SetSubject(objAttrs["subject"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestEnableTechnicalAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable - tkh = keyhubmodel.NewRequestEnableTechnicalAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestExtendAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestExtendAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestExtendAccessRequestable - tkh = keyhubmodel.NewRequestExtendAccessRequest() - { - val, d := tfToTimePointer(objAttrs["extend_until"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExtendUntil(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantAccessRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantAccessRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestGrantAccessRequestable - tkh = keyhubmodel.NewRequestGrantAccessRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantApplicationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantApplicationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestGrantApplicationRequestable - tkh = keyhubmodel.NewRequestGrantApplicationRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantClientPermissionRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantClientPermissionRequestable - tkh = keyhubmodel.NewRequestGrantClientPermissionRequest() - { - val, d := parseCastPointer(objAttrs["permission_type"].(basetypes.StringValue), keyhubmodel.ParseClientOAuth2ClientPermissionType, func(val any) keyhubmodel.ClientOAuth2ClientPermissionType { - return *val.(*keyhubmodel.ClientOAuth2ClientPermissionType) - }) - diags.Append(d...) - tkh.SetPermissionType(val) - } - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantGroupOnSystemRequestable - tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequest() - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantGroupOnSystemRequestRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable - tkh = keyhubmodel.NewRequestGrantGroupOnSystemRequestRequest() - tkh.SetActivationRequired(objAttrs["activation_required"].(basetypes.BoolValue).ValueBoolPointer()) - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestGrantServiceAccountGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable - tkh = keyhubmodel.NewRequestGrantServiceAccountGroupRequest() - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupOnSystem(val) - } - { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestJoinGroupRequestable - tkh = keyhubmodel.NewRequestJoinGroupRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestJoinVaultRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestJoinVaultRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.RequestJoinVaultRequestable - tkh = keyhubmodel.NewRequestJoinVaultRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestModificationRequestable - tkh = keyhubmodel.NewRequestModificationRequest() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetComment(objAttrs["comment"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetFeedback(objAttrs["feedback"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetGroup(val) - } - tkh.SetMailKey(objAttrs["mail_key"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["request_modification_request_type"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestType, func(val any) keyhubmodel.RequestModificationRequestType { - return *val.(*keyhubmodel.RequestModificationRequestType) - }) - diags.Append(d...) - tkh.SetRequestModificationRequestType(val) - } - { - val, d := parseCastPointer(objAttrs["status"].(basetypes.StringValue), keyhubmodel.ParseRequestModificationRequestStatus, func(val any) keyhubmodel.RequestModificationRequestStatus { - return *val.(*keyhubmodel.RequestModificationRequestStatus) - }) - diags.Append(d...) - tkh.SetStatus(val) - } - if !objAttrs["enable_technical_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestEnableTechnicalAdministrationRequest(ctx, false, objAttrs["enable_technical_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestEnableTechnicalAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_application_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractApplicationModificationRequest(ctx, false, objAttrs["abstract_application_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractApplicationModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_application_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx, false, objAttrs["transfer_application_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["password_reset_request"].IsNull() { - val, d := tfObjectToTKHRSRequestPasswordResetRequest(ctx, false, objAttrs["password_reset_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestPasswordResetRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_provisioned_system_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractProvisionedSystemModificationRequest(ctx, false, objAttrs["abstract_provisioned_system_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractProvisionedSystemModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx, false, objAttrs["transfer_provisioned_system_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["add_group_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAddGroupAdminRequest(ctx, false, objAttrs["add_group_admin_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAddGroupAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["abstract_organizational_unit_modification_request"].IsNull() { - val, d := tfObjectToTKHRSRequestAbstractOrganizationalUnitModificationRequest(ctx, false, objAttrs["abstract_organizational_unit_modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestAbstractOrganizationalUnitModificationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupRequest(ctx, false, objAttrs["create_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["remove_provisioned_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx, false, objAttrs["remove_provisioned_system_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveProvisionedSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_application_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantApplicationRequest(ctx, false, objAttrs["grant_application_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantApplicationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateGroupOnSystemRequest(ctx, false, objAttrs["create_group_on_system_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["setup_nested_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx, false, objAttrs["setup_nested_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupNestedGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["verify_internal_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx, false, objAttrs["verify_internal_account_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestVerifyInternalAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_group_on_system_request_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequestRequest(ctx, false, objAttrs["grant_group_on_system_request_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequestRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["join_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinGroupRequest(ctx, false, objAttrs["join_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_organizational_unit_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx, false, objAttrs["transfer_organizational_unit_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["disable2fa_request"].IsNull() { - val, d := tfObjectToTKHRSRequestDisable2FARequest(ctx, false, objAttrs["disable2fa_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestDisable2FARequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_content_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_content_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_group_on_system_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantGroupOnSystemRequest(ctx, false, objAttrs["grant_group_on_system_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantGroupOnSystemRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_application_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx, false, objAttrs["transfer_application_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferApplicationOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_group_on_system_ownership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx, false, objAttrs["transfer_group_on_system_ownership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferGroupOnSystemOwnershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_service_account_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx, false, objAttrs["transfer_service_account_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferServiceAccountAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_auditor_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx, false, objAttrs["transfer_auditor_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferAuditorGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["review_audit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestReviewAuditRequest(ctx, false, objAttrs["review_audit_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestReviewAuditRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["update_group_membership_request"].IsNull() { - val, d := tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx, false, objAttrs["update_group_membership_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestUpdateGroupMembershipRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["extend_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestExtendAccessRequest(ctx, false, objAttrs["extend_access_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestExtendAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["remove_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveGroupRequest(ctx, false, objAttrs["remove_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["revoke_admin_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRevokeAdminRequest(ctx, false, objAttrs["revoke_admin_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRevokeAdminRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_service_account_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantServiceAccountGroupRequest(ctx, false, objAttrs["grant_service_account_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantServiceAccountGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["setup_authorizing_group_request"].IsNull() { - val, d := tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx, false, objAttrs["setup_authorizing_group_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestSetupAuthorizingGroupRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["transfer_provisioned_system_administration_request"].IsNull() { - val, d := tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx, false, objAttrs["transfer_provisioned_system_administration_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestTransferProvisionedSystemAdministrationRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_access_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantAccessRequest(ctx, false, objAttrs["grant_access_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantAccessRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["join_vault_request"].IsNull() { - val, d := tfObjectToTKHRSRequestJoinVaultRequest(ctx, false, objAttrs["join_vault_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestJoinVaultRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["remove_organizational_unit_request"].IsNull() { - val, d := tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx, false, objAttrs["remove_organizational_unit_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestRemoveOrganizationalUnitRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["create_service_account_request"].IsNull() { - val, d := tfObjectToTKHRSRequestCreateServiceAccountRequest(ctx, false, objAttrs["create_service_account_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestCreateServiceAccountRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val - } - if !objAttrs["grant_client_permission_request"].IsNull() { - val, d := tfObjectToTKHRSRequestGrantClientPermissionRequest(ctx, false, objAttrs["grant_client_permission_request"].(basetypes.ObjectValue)) - diags.Append(d...) - dtype := val.GetTypeEscaped() - (*val.(*keyhubmodel.RequestGrantClientPermissionRequest)).RequestModificationRequest = *tkh.(*keyhubmodel.RequestModificationRequest) - val.SetTypeEscaped(dtype) - tkh = val + dtype := tkh.GetTypeEscaped() + (*tkh.(*keyhubmodel.ProvisioningProvisionedAccount)).AuthAccountPrimer = *(val.(*keyhubmodel.AuthAccountPrimer)) + tkh.SetTypeEscaped(dtype) + } } + tkh.SetUid(objAttrs["uid"].(basetypes.Int64Value).ValueInt64Pointer()) if recurse { { - val, d := tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx, false, objVal) + val, d := tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx, false, objVal) diags.Append(d...) tkh.SetAdditionalObjects(val) } @@ -6662,361 +2799,416 @@ func tfObjectToTKHRSRequestModificationRequest(ctx context.Context, recurse bool return tkh, diags } -func tfObjectToTKHRSRequestModificationRequestLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequestLinkableWrapperable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestModificationRequestLinkableWrapperable - tkh = keyhubmodel.NewRequestModificationRequestLinkableWrapper() + var tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedAccount_additionalObjects() { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RequestModificationRequestable { - tkh, d := tfObjectToTKHRSRequestModificationRequest(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetItems(val) + tkh.SetAudit(val) } return tkh, diags } -func tfObjectToTKHRSRequestModificationRequest_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestModificationRequest_additionalObjectsable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestModificationRequest_additionalObjectsable - tkh = keyhubmodel.NewRequestModificationRequest_additionalObjects() - { - val, d := tfObjectToTKHRSRequestAcceptModificationRequestParameters(ctx, recurse, objAttrs["accept_params"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAcceptParams(val) - } - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } + var tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureOIDCDirectory() { - val, d := tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx, recurse, objAttrs["reset_status"].(basetypes.ObjectValue)) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetResetStatus(val) - } - return tkh, diags -} - -func tfObjectToTKHRSRequestPasswordResetRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetDirectory(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestPasswordResetRequestable - tkh = keyhubmodel.NewRequestPasswordResetRequest() - tkh.SetNewVaultAndDirectoryPassword(objAttrs["new_vault_and_directory_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetNewVaultPassword(objAttrs["new_vault_password"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUnsyncedPassword(objAttrs["unsynced_password"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSRequestPasswordResetRequestStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestPasswordResetRequestStatusable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestPasswordResetRequestStatusable - tkh = keyhubmodel.NewRequestPasswordResetRequestStatus() - { - val, d := tfToTimePointer(objAttrs["cooldown_end"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetCooldownEnd(val) - } - { - val, d := tfToSlice(objAttrs["managers"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) string { - return val.(basetypes.StringValue).ValueString() - }) - diags.Append(d...) - tkh.SetManagers(val) - } - tkh.SetNrAccepted(objAttrs["nr_accepted"].(basetypes.Int64Value).ValueInt64Pointer()) + var tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedAzureSyncLDAPDirectory() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["reset_via_mail"].(basetypes.StringValue), keyhubmodel.ParseRequestPasswordResetEmailType, func(val any) keyhubmodel.RequestPasswordResetEmailType { - return *val.(*keyhubmodel.RequestPasswordResetEmailType) - }) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetResetViaMail(val) + tkh.SetDirectory(val) } + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSRequestRemoveGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedAzureTenantable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRemoveGroupRequestable - tkh = keyhubmodel.NewRequestRemoveGroupRequest() - tkh.SetGroupName(objAttrs["group_name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ProvisioningProvisionedAzureTenantable + tkh = keyhubmodel.NewProvisioningProvisionedAzureTenant() + tkh.SetClientId(objAttrs["client_id"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetClientSecret(objAttrs["client_secret"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetIdpDomain(objAttrs["idp_domain"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetTenant(objAttrs["tenant"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSRequestRemoveOrganizationalUnitRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveOrganizationalUnitRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedInternalLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable - tkh = keyhubmodel.NewRequestRemoveOrganizationalUnitRequest() - tkh.SetOrganizationalUnitName(objAttrs["organizational_unit_name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() + { + val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetClient(val) + } return tkh, diags } -func tfObjectToTKHRSRequestRemoveProvisionedSystemRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRemoveProvisionedSystemRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedLDAP(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable - tkh = keyhubmodel.NewRequestRemoveProvisionedSystemRequest() - tkh.SetSystemName(objAttrs["system_name"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSRequestReviewAuditRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestReviewAuditRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + var tkh keyhubmodel.ProvisioningProvisionedLDAPable + tkh = keyhubmodel.NewProvisioningProvisionedLDAP() + tkh.SetGid(objAttrs["gid"].(basetypes.Int64Value).ValueInt64Pointer()) + { + val, d := parseCastPointer(objAttrs["hashing_scheme"].(basetypes.StringValue), keyhubmodel.ParseProvisioningLDAPPasswordHashingScheme, func(val any) keyhubmodel.ProvisioningLDAPPasswordHashingScheme { + return *val.(*keyhubmodel.ProvisioningLDAPPasswordHashingScheme) + }) + diags.Append(d...) + tkh.SetHashingScheme(val) + } + { + val, d := tfObjectToTKHRSProvisioningProvisionNumberSequence(ctx, recurse, objAttrs["numbering"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetNumbering(val) } - var tkh keyhubmodel.RequestReviewAuditRequestable - tkh = keyhubmodel.NewRequestReviewAuditRequest() return tkh, diags } -func tfObjectToTKHRSRequestRevokeAdminRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestRevokeAdminRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedLDAPDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestRevokeAdminRequestable - tkh = keyhubmodel.NewRequestRevokeAdminRequest() + var tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable + tkh = keyhubmodel.NewProvisioningProvisionedLDAPDirectory() { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["admin_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := findDirectoryAccountDirectoryPrimerByUUID(ctx, objAttrs["directory_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetAdmin(val) + tkh.SetDirectory(val) } + tkh.SetGroupDN(objAttrs["group_dn"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSRequestSetupAuthorizingGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupAuthorizingGroupRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystem(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable - tkh = keyhubmodel.NewRequestSetupAuthorizingGroupRequest() + var tkh keyhubmodel.ProvisioningProvisionedSystemable + tkh = keyhubmodel.NewProvisioningProvisionedSystem() { - val, d := parseCastPointer(objAttrs["authorizing_group_type"].(basetypes.StringValue), keyhubmodel.ParseRequestAuthorizingGroupType, func(val any) keyhubmodel.RequestAuthorizingGroupType { - return *val.(*keyhubmodel.RequestAuthorizingGroupType) + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh }) diags.Append(d...) - tkh.SetAuthorizingGroupType(val) + tkh.SetLinks(val) } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetRequestingGroup(val) + tkh.SetPermissions(val) } - return tkh, diags -} - -func tfObjectToTKHRSRequestSetupNestedGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestSetupNestedGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestSetupNestedGroupRequestable - tkh = keyhubmodel.NewRequestSetupNestedGroupRequest() { - val, d := parseCastPointer(objAttrs["account_action"].(basetypes.StringValue), keyhubmodel.ParseRequestGroupNestAccountAction, func(val any) keyhubmodel.RequestGroupNestAccountAction { - return *val.(*keyhubmodel.RequestGroupNestAccountAction) + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) }) diags.Append(d...) - tkh.SetAccountAction(val) + tkh.SetProvisioningProvisionedSystemPrimerType(val) + } + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetAccountCount(int64PToInt32P(objAttrs["account_count"].(basetypes.Int64Value).ValueInt64Pointer())) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["content_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetContentAdministrator(val) } - tkh.SetConnect(objAttrs["connect"].(basetypes.BoolValue).ValueBoolPointer()) { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["requesting_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := parsePointer(objAttrs["external_uuid"].(basetypes.StringValue), uuid.Parse) diags.Append(d...) - tkh.SetRequestingGroup(val) + tkh.SetExternalUuid(val) } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationAdministrationRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["owner_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOwner(val) } - var tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferApplicationAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferApplicationOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferApplicationOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetSelfServiceExistingGroups(objAttrs["self_service_existing_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceNewGroups(objAttrs["self_service_new_groups"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetSelfServiceServiceAccounts(objAttrs["self_service_service_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetShouldDestroyUnknownAccounts(objAttrs["should_destroy_unknown_accounts"].(basetypes.BoolValue).ValueBoolPointer()) + { + val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["technical_administrator_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetTechnicalAdministrator(val) } - var tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferApplicationOwnershipRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferAuditorGroupRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferAuditorGroupRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetUsernamePrefix(objAttrs["username_prefix"].(basetypes.StringValue).ValueStringPointer()) + if !objAttrs["abstract_provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx, false, objAttrs["abstract_provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningAbstractProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - var tkh keyhubmodel.RequestTransferAuditorGroupRequestable - tkh = keyhubmodel.NewRequestTransferAuditorGroupRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferGroupOnSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + if !objAttrs["provisioned_a_d"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAD(ctx, false, objAttrs["provisioned_a_d"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAD)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferGroupOnSystemOwnershipRequest() - { - val, d := tfObjectToTKHRSProvisioningGroupOnSystem(ctx, recurse, objAttrs["group_on_system"].(basetypes.ObjectValue)) + if !objAttrs["provisioned_azure_oidc_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureOIDCDirectory(ctx, false, objAttrs["provisioned_azure_oidc_directory"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetGroupOnSystem(val) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureOIDCDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val } - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferOrganizationalUnitOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + if !objAttrs["provisioned_azure_sync_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureSyncLDAPDirectory(ctx, false, objAttrs["provisioned_azure_sync_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_azure_tenant"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedAzureTenant(ctx, false, objAttrs["provisioned_azure_tenant"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedAzureTenant)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_internal_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx, false, objAttrs["provisioned_internal_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedInternalLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAP(ctx, false, objAttrs["provisioned_ldap"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAP)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if !objAttrs["provisioned_ldap_directory"].IsNull() { + val, d := tfObjectToTKHRSProvisioningProvisionedLDAPDirectory(ctx, false, objAttrs["provisioned_ldap_directory"].(basetypes.ObjectValue)) + diags.Append(d...) + dtype := val.GetTypeEscaped() + (*val.(*keyhubmodel.ProvisioningProvisionedLDAPDirectory)).ProvisioningProvisionedSystem = *tkh.(*keyhubmodel.ProvisioningProvisionedSystem) + val.SetTypeEscaped(dtype) + tkh = val + } + if recurse { + { + val, d := tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx, false, objVal) + diags.Append(d...) + tkh.SetAdditionalObjects(val) + } } - var tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferOrganizationalUnitOwnershipRequest() return tkh, diags } -func tfObjectToTKHRSRequestTransferProvisionedSystemAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - var tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferProvisionedSystemAdministrationRequest() + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemLinkableWrapper() + { + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemable { + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystem(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetItems(val) + } return tkh, diags } -func tfObjectToTKHRSRequestTransferProvisionedSystemContentAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } - var tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferProvisionedSystemContentAdministrationRequest() - return tkh, diags -} - -func tfObjectToTKHRSRequestTransferProvisionedSystemOwnershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + objAttrs := objVal.Attributes() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimer() + { + val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { + tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetLinks(val) + } + { + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) + diags.Append(d...) + return tkh + }) + diags.Append(d...) + tkh.SetPermissions(val) + } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) + { + val, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, objAttrs["organizational_unit_uuid"].(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + tkh.SetOrganizationalUnit(val) + } + { + val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseProvisioningProvisionedSystemType, func(val any) keyhubmodel.ProvisioningProvisionedSystemType { + return *val.(*keyhubmodel.ProvisioningProvisionedSystemType) + }) + diags.Append(d...) + tkh.SetProvisioningProvisionedSystemPrimerType(val) } - var tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable - tkh = keyhubmodel.NewRequestTransferProvisionedSystemOwnershipRequest() + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSRequestTransferServiceAccountAdministrationRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestTransferServiceAccountAdministrationRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable - tkh = keyhubmodel.NewRequestTransferServiceAccountAdministrationRequest() + var tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable + tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { - val, d := findServiceaccountServiceAccountPrimerByUUID(ctx, objAttrs["service_account_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { + tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetServiceAccount(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHRSRequestUpdateGroupMembershipRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestUpdateGroupMembershipRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisionedSystem_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestUpdateGroupMembershipRequestable - tkh = keyhubmodel.NewRequestUpdateGroupMembershipRequest() + var tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable + tkh = keyhubmodel.NewProvisioningProvisionedSystem_additionalObjects() + { + val, d := tfObjectToTKHRSProvisioningProvisionedAccount(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) + diags.Append(d...) + tkh.SetAccount(val) + } { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_to_update_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAccountToUpdate(val) + tkh.SetAudit(val) } { - val, d := parsePointer2(objAttrs["current_end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHRSClientOAuth2ClientPermissionWithClientLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["issued_permissions"])) diags.Append(d...) - tkh.SetCurrentEndDate(val) + tkh.SetIssuedPermissions(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } + tkh.SetLoginName(objAttrs["login_name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := parseCastPointer(objAttrs["current_rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx, recurse, objAttrs["management_permissions"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetCurrentRights(val) + tkh.SetManagementPermissions(val) } { - val, d := parsePointer2(objAttrs["end_date"].(basetypes.StringValue), serialization.ParseDateOnly) + val, d := tfObjectToTKHRSMarkItemMarkers(ctx, recurse, objAttrs["markers"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetEndDate(val) + tkh.SetMarkers(val) } { - val, d := parseCastPointer(objAttrs["rights"].(basetypes.StringValue), keyhubmodel.ParseGroupGroupRights, func(val any) keyhubmodel.GroupGroupRights { return *val.(*keyhubmodel.GroupGroupRights) }) + val, d := tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx, recurse, objAttrs["statistics"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetRights(val) + tkh.SetStatistics(val) } { - val, d := parseCastPointer(objAttrs["update_group_membership_type"].(basetypes.StringValue), keyhubmodel.ParseRequestUpdateGroupMembershipType, func(val any) keyhubmodel.RequestUpdateGroupMembershipType { - return *val.(*keyhubmodel.RequestUpdateGroupMembershipType) - }) + val, d := tfObjectToTKHRSProvisioningGroupOnSystemTypes(ctx, recurse, objAttrs["supported_group_types"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetUpdateGroupMembershipType(val) + tkh.SetSupportedGroupTypes(val) } return tkh, diags } -func tfObjectToTKHRSRequestVerifyInternalAccountRequest(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.RequestVerifyInternalAccountRequestable, diag.Diagnostics) { +func tfObjectToTKHRSProvisioningProvisioningManagementPermissions(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningProvisioningManagementPermissionsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.RequestVerifyInternalAccountRequestable - tkh = keyhubmodel.NewRequestVerifyInternalAccountRequest() - tkh.SetInternalAccountName(objAttrs["internal_account_name"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable + tkh = keyhubmodel.NewProvisioningProvisioningManagementPermissions() + tkh.SetCreateNewGroupsAllowed(objAttrs["create_new_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetCreateServiceAccountsAllowed(objAttrs["create_service_accounts_allowed"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetReuseExistingGroupsAllowed(objAttrs["reuse_existing_groups_allowed"].(basetypes.BoolValue).ValueBoolPointer()) return tkh, diags } @@ -7203,305 +3395,72 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx context.Context, recu tkh.SetLinks(val) } { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetSystem(val) - } - tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable - tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { - tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountStatus(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountStatusable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountStatusable - tkh = keyhubmodel.NewServiceaccountServiceAccountStatus() - tkh.SetAccountEnabled(objAttrs["account_enabled"].(basetypes.BoolValue).ValueBoolPointer()) - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable - tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) - diags.Append(d...) - tkh.SetGroups(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) - } - } - { - val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSecret(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable - tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats() - tkh.SetDisabledCount(objAttrs["disabled_count"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx, recurse, objAttrs["password_scheme_enabled_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPasswordSchemeEnabledStats(val) - } - { - val, d := tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx, recurse, objAttrs["system_stats"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystemStats(val) - } - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable - tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats() - return tkh, diags -} - -func tfObjectToTKHRSServiceaccountServiceAccountsAuditStats_systemStats(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable - tkh = keyhubmodel.NewServiceaccountServiceAccountsAuditStats_systemStats() - return tkh, diags -} - -func tfObjectToTKHRSSimpleStringValue(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleStringValueable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.SimpleStringValueable - tkh = keyhubmodel.NewSimpleStringValue() - tkh.SetValue(objAttrs["value"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSSimpleVersionInfo(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.SimpleVersionInfoable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.SimpleVersionInfoable - tkh = keyhubmodel.NewSimpleVersionInfo() - { - val, d := tfToSlice(objAttrs["contract_versions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) int32 { - return int32(val.(basetypes.Int64Value).ValueInt64()) - }) - diags.Append(d...) - tkh.SetContractVersions(val) - } - tkh.SetKeyHubVersion(objAttrs["key_hub_version"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultHolder(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultHolderable - tkh = keyhubmodel.NewVaultDeletedVaultHolder() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRecordCount(int64PToInt32P(objAttrs["record_count"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := parseCastPointer(objAttrs["vault_deleted_vault_holder_type"].(basetypes.StringValue), keyhubmodel.ParseVaultVaultHolderType, func(val any) keyhubmodel.VaultVaultHolderType { return *val.(*keyhubmodel.VaultVaultHolderType) }) - diags.Append(d...) - tkh.SetVaultDeletedVaultHolderType(val) - } - if recurse { - { - val, d := tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultHolderLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable - tkh = keyhubmodel.NewVaultDeletedVaultHolderLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultDeletedVaultHolderable { - tkh, d := tfObjectToTKHRSVaultDeletedVaultHolder(ctx, recurse, val.(basetypes.ObjectValue)) + val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { + tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultDeletedVaultHolder_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable - tkh = keyhubmodel.NewVaultDeletedVaultHolder_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) + tkh.SetPermissions(val) } + tkh.SetActive(objAttrs["active"].(basetypes.BoolValue).ValueBoolPointer()) + tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { - val, d := tfObjectToTKHRSVaultVault(ctx, recurse, objAttrs["vault"].(basetypes.ObjectValue)) + val, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, objAttrs["system_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) - tkh.SetVault(val) + tkh.SetSystem(val) } + tkh.SetUsername(objAttrs["username"].(basetypes.StringValue).ValueStringPointer()) + tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) return tkh, diags } -func tfObjectToTKHRSVaultDeletedVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultDeletedVaultRecoveryable, diag.Diagnostics) { +func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultDeletedVaultRecoveryable - tkh = keyhubmodel.NewVaultDeletedVaultRecovery() - tkh.SetPrefix(objAttrs["prefix"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) + var tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable + tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["target_group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { + tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + diags.Append(d...) + return tkh + }) diags.Append(d...) - tkh.SetTargetGroup(val) + tkh.SetItems(val) } return tkh, diags } -func tfObjectToTKHRSVaultMoveVaultRecord(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecordable, diag.Diagnostics) { +func tfObjectToTKHRSServiceaccountServiceAccount_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { return nil, diags } objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultMoveVaultRecordable - tkh = keyhubmodel.NewVaultMoveVaultRecord() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } + var tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable + tkh = keyhubmodel.NewServiceaccountServiceAccount_additionalObjects() { - val, d := parseCastPointer(objAttrs["action"].(basetypes.StringValue), keyhubmodel.ParseVaultMoveVaultRecordAction, func(val any) keyhubmodel.VaultMoveVaultRecordAction { - return *val.(*keyhubmodel.VaultMoveVaultRecordAction) - }) + val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetAction(val) + tkh.SetAudit(val) } { - val, d := findGroupGroupPrimerByUUID(ctx, objAttrs["group_uuid"].(basetypes.StringValue).ValueStringPointer()) + val, d := tfObjectToTKHRSServiceaccountServiceAccountGroupLinkableWrapper(ctx, recurse, toItemsList(ctx, objAttrs["groups"])) diags.Append(d...) - tkh.SetGroup(val) + tkh.SetGroups(val) + if val != nil { + val.SetAdditionalData(map[string]any{"$type": "LinkableWrapper"}) + } } { - val, d := tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx, recurse, objAttrs["share_duration"].(basetypes.ObjectValue)) + val, d := tfObjectToTKHRSGeneratedSecret(ctx, recurse, objAttrs["secret"].(basetypes.ObjectValue)) diags.Append(d...) - tkh.SetShareDuration(val) - } - return tkh, diags -} - -func tfObjectToTKHRSVaultMoveVaultRecord_shareDuration(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultMoveVaultRecord_shareDurationable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags + tkh.SetSecret(val) } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable - tkh = keyhubmodel.NewVaultMoveVaultRecord_shareDuration() - tkh.SetNanos(int64PToInt32P(objAttrs["nanos"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetSeconds(objAttrs["seconds"].(basetypes.Int64Value).ValueInt64Pointer()) return tkh, diags } @@ -7648,26 +3607,6 @@ func tfObjectToTKHRSVaultVaultRecord(ctx context.Context, recurse bool, objVal t return tkh, diags } -func tfObjectToTKHRSVaultVaultRecordLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecordLinkableWrapperable - tkh = keyhubmodel.NewVaultVaultRecordLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - func tfObjectToTKHRSVaultVaultRecordPrimer(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecordPrimerable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -7845,52 +3784,6 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu return tkh, diags } -func tfObjectToTKHRSVaultVaultRecovery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultRecoveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultRecoveryable - tkh = keyhubmodel.NewVaultVaultRecovery() - { - val, d := findAuthAccountPrimerByUUID(ctx, objAttrs["account_uuid"].(basetypes.StringValue).ValueStringPointer()) - diags.Append(d...) - tkh.SetAccount(val) - } - tkh.SetPrivateKey(objAttrs["private_key"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultUnlock(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultUnlockable - tkh = keyhubmodel.NewVaultVaultUnlock() - tkh.SetPassword(objAttrs["password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSVaultVaultUnlockResponse(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.VaultVaultUnlockResponseable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.VaultVaultUnlockResponseable - tkh = keyhubmodel.NewVaultVaultUnlockResponse() - { - val, d := tfToTimePointer(objAttrs["expires_at"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetExpiresAt(val) - } - tkh.SetSessionPassword(objAttrs["session_password"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -7994,93 +3887,6 @@ func tfObjectToTKHRSWebhookWebhook(ctx context.Context, recurse bool, objVal typ return tkh, diags } -func tfObjectToTKHRSWebhookWebhookDelivery(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDeliveryable - tkh = keyhubmodel.NewWebhookWebhookDelivery() - { - val, d := tfToSlice(objAttrs["links"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.RestLinkable { - tkh, d := tfObjectToTKHRSRestLink(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetLinks(val) - } - { - val, d := tfToSlice(objAttrs["permissions"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.AuthPermissionable { - tkh, d := tfObjectToTKHRSAuthPermission(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetPermissions(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookPush(ctx, false, objAttrs["payload"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetPayload(val) - } - tkh.SetReponseHeaders(objAttrs["reponse_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetRequestHeaders(objAttrs["request_headers"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetResponse(objAttrs["response"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetStatus(int64PToInt32P(objAttrs["status"].(basetypes.Int64Value).ValueInt64Pointer())) - tkh.SetTime(int64PToInt32P(objAttrs["time"].(basetypes.Int64Value).ValueInt64Pointer())) - { - val, d := tfToTimePointer(objAttrs["trigger_time"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTriggerTime(val) - } - if recurse { - { - val, d := tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx, false, objVal) - diags.Append(d...) - tkh.SetAdditionalObjects(val) - } - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookDeliveryLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable - tkh = keyhubmodel.NewWebhookWebhookDeliveryLinkableWrapper() - { - val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.WebhookWebhookDeliveryable { - tkh, d := tfObjectToTKHRSWebhookWebhookDelivery(ctx, recurse, val.(basetypes.ObjectValue)) - diags.Append(d...) - return tkh - }) - diags.Append(d...) - tkh.SetItems(val) - } - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookDelivery_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookDelivery_additionalObjectsable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable - tkh = keyhubmodel.NewWebhookWebhookDelivery_additionalObjects() - { - val, d := tfObjectToTKHRSAuditInfo(ctx, recurse, objAttrs["audit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAudit(val) - } - return tkh, diags -} - func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookLinkableWrapperable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -8101,124 +3907,6 @@ func tfObjectToTKHRSWebhookWebhookLinkableWrapper(ctx context.Context, recurse b return tkh, diags } -func tfObjectToTKHRSWebhookWebhookNameUuid(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookNameUuidable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookNameUuidable - tkh = keyhubmodel.NewWebhookWebhookNameUuid() - tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := tfObjectToTKHRSLinkable(ctx, recurse, objAttrs["object"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetObject(val) - } - tkh.SetUuid(objAttrs["uuid"].(basetypes.StringValue).ValueStringPointer()) - return tkh, diags -} - -func tfObjectToTKHRSWebhookWebhookPush(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhookPushable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - objAttrs := objVal.Attributes() - var tkh keyhubmodel.WebhookWebhookPushable - tkh = keyhubmodel.NewWebhookWebhookPush() - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetAccount(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["by_party"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetByParty(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["certificate"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetCertificate(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetClient(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["directory"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetDirectory(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group2"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroup2(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["group_classification"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetGroupClassification(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["modification_request"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetModificationRequest(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["organizational_unit"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetOrganizationalUnit(val) - } - tkh.SetParameter1(objAttrs["parameter1"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter2(objAttrs["parameter2"].(basetypes.StringValue).ValueStringPointer()) - tkh.SetParameter3(objAttrs["parameter3"].(basetypes.StringValue).ValueStringPointer()) - { - val, d := parseCastPointer(objAttrs["security_level"].(basetypes.StringValue), keyhubmodel.ParseAuthSecurityLevel, func(val any) keyhubmodel.AuthSecurityLevel { return *val.(*keyhubmodel.AuthSecurityLevel) }) - diags.Append(d...) - tkh.SetSecurityLevel(val) - } - tkh.SetSeq(objAttrs["seq"].(basetypes.Int64Value).ValueInt64Pointer()) - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["service_account"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetServiceAccount(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["system"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetSystem(val) - } - { - val, d := tfToTimePointer(objAttrs["timestamp"].(basetypes.StringValue)) - diags.Append(d...) - tkh.SetTimestamp(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["vault_record"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetVaultRecord(val) - } - { - val, d := tfObjectToTKHRSWebhookWebhookNameUuid(ctx, recurse, objAttrs["webhook"].(basetypes.ObjectValue)) - diags.Append(d...) - tkh.SetWebhook(val) - } - { - val, d := parseCastPointer(objAttrs["type"].(basetypes.StringValue), keyhubmodel.ParseAuditAuditRecordType, func(val any) keyhubmodel.AuditAuditRecordType { return *val.(*keyhubmodel.AuditAuditRecordType) }) - diags.Append(d...) - tkh.SetWebhookWebhookPushType(val) - } - return tkh, diags -} - func tfObjectToTKHRSWebhookWebhook_additionalObjects(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.WebhookWebhook_additionalObjectsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index c1c6b62..141b98f 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -35,70 +35,6 @@ func tkhToTFObjectDSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (type return objVal, diags } -func tkhToTFObjectDSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = errorReportAttrTypesDSRecurse - } else { - attrs = errorReportAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) - { - val, d := tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) - diags.Append(d...) - obj["application_error_parameters"] = val - } - obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) - { - elemType := attrs["error_details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["error_details"] = val - } - obj["exception"] = types.StringPointerValue(tkh.GetException()) - obj["message"] = types.StringPointerValue(tkh.GetMessage()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - { - elemType := attrs["stacktrace"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["stacktrace"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = errorReport_applicationErrorParametersAttrTypesDSRecurse - } else { - attrs = errorReport_applicationErrorParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -202,34 +138,13 @@ func tkhToTFObjectDSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types. return objVal, diags } -func tkhToTFObjectDSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = segmentCountAttrTypesDSRecurse - } else { - attrs = segmentCountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["count"] = types.Int64PointerValue(tkh.GetCount()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = accountVaultVaultRecordAttrTypesDSRecurse + attrs = authAccountAttrTypesDSRecurse } else { - attrs = accountVaultVaultRecordAttrTypesDS + attrs = authAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -238,12 +153,11 @@ func tkhToTFObjectDSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultV obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } } - obj["account_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -264,51 +178,62 @@ func tkhToTFObjectDSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultV diags.Append(d...) obj["permissions"] = val } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) obj["additional"] = types.ListNull(types.StringType) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(false, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["types"] = val + obj["account_permissions"] = val } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) + obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["email"] = types.StringPointerValue(tkh.GetEmail()) + obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) + obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) + obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) + obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditAuditRecordAttrTypesDSRecurse + attrs = authAccountPrimerAttrTypesDSRecurse } else { - attrs = auditAuditRecordAttrTypesDS + attrs = authAccountPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -329,68 +254,45 @@ func tkhToTFObjectDSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec diags.Append(d...) obj["permissions"] = val } - obj["additional"] = types.ListNull(types.StringType) - obj["type"] = stringerToTF(tkh.GetAuditAuditRecordType()) - obj["date_time"] = timePointerToTF(tkh.GetDateTime()) - obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) - obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) - obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) - obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) - obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) - obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) - obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) - obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) - obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) - obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) - obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) - obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditAuditRecordLinkableWrapperAttrTypesDSRecurse + attrs = authAccountRecoveryStatusAttrTypesDSRecurse } else { - attrs = auditAuditRecordLinkableWrapperAttrTypesDS + attrs = authAccountRecoveryStatusAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuditAuditRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["pending2fa_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) + obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditAuditRecord_additionalObjectsAttrTypesDSRecurse + attrs = authAccountSettingsAttrTypesDSRecurse } else { - attrs = auditAuditRecord_additionalObjectsAttrTypesDS + attrs = authAccountSettingsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -398,155 +300,142 @@ func tkhToTFObjectDSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetDefaultOrganizationalUnit()) diags.Append(d...) - obj["audit"] = val + obj["default_organizational_unit"] = val } + obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) + obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) + obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) + obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) + obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) + obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) + obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) + obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) + obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) + obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) + obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountAttrTypesDSRecurse + attrs = authAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = authAccountAttrTypesDS + attrs = authAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } + obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) diags.Append(d...) - obj["links"] = val + obj["groups"] = getItemsAttr(val, attrs["groups"]) } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) diags.Append(d...) - obj["permissions"] = val + obj["pending_recovery_requests"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuthAccountSettings(recurse, tkh.GetSettings()) diags.Append(d...) - obj["account_permissions"] = val + obj["settings"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) diags.Append(d...) - obj["directory"] = val + obj["stored_attributes"] = val + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountBulkUpdateAttrTypesDSRecurse + attrs = authPermissionAttrTypesDSRecurse } else { - attrs = authAccountBulkUpdateAttrTypesDS + attrs = authPermissionAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) + obj["full"] = types.StringPointerValue(tkh.GetFull()) + { + elemType := attrs["instances"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["instances"] = val + } { - elemType := attrs["selected_accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(tkh) + elemType := attrs["operations"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["selected_accounts"] = val + obj["operations"] = val } + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountChangeLocaleAttrTypesDSRecurse + attrs = authStoredAccountAttributeAttrTypesDSRecurse } else { - attrs = authAccountChangeLocaleAttrTypesDS + attrs = authStoredAccountAttributeAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["value"] = types.StringPointerValue(tkh.GetValue()) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountLinkableWrapperAttrTypesDSRecurse + attrs = authStoredAccountAttributesAttrTypesDSRecurse } else { - attrs = authAccountLinkableWrapperAttrTypesDS + attrs = authStoredAccountAttributesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -554,14 +443,14 @@ func tkhToTFObjectDSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.Aut obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthAccount(recurse, tkh) + elemType := attrs["attributes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthStoredAccountAttribute(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["attributes"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -569,19 +458,26 @@ func tkhToTFObjectDSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.Aut return objVal, diags } -func tkhToTFObjectDSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountPrimerAttrTypesDSRecurse + attrs = certificateCertificateAttrTypesDSRecurse } else { - attrs = authAccountPrimerAttrTypesDS + attrs = certificateCertificateAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -602,45 +498,99 @@ func tkhToTFObjectDSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountP diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + { + elemType := attrs["key_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["key_data"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountRecoveryStatusAttrTypesDSRecurse + attrs = certificateCertificatePrimerAttrTypesDSRecurse } else { - attrs = authAccountRecoveryStatusAttrTypesDS + attrs = certificateCertificatePrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["pending2fa_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) - obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountSettingsAttrTypesDSRecurse + attrs = certificateCertificate_additionalObjectsAttrTypesDSRecurse } else { - attrs = authAccountSettingsAttrTypesDS + attrs = certificateCertificate_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -648,95 +598,98 @@ func tkhToTFObjectDSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccoun obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetDefaultOrganizationalUnit()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["default_organizational_unit"] = val + obj["audit"] = val } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) - obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) - obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) - obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) - obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) - obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) - obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) - obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) - obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountStatusAttrTypesDSRecurse + attrs = clientClientApplicationAttrTypesDSRecurse } else { - attrs = authAccountStatusAttrTypesDS + attrs = clientClientApplicationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = authAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = authAccount_additionalObjectsAttrTypesDS + { + val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) - obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["permissions"] = val } + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) diags.Append(d...) - obj["groups"] = getItemsAttr(val, attrs["groups"]) + obj["scopes"] = val } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) { - val, d := tkhToTFObjectDSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - obj["pending_recovery_requests"] = val + obj["owner"] = val } { - val, d := tkhToTFObjectDSAuthAccountSettings(recurse, tkh.GetSettings()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - obj["settings"] = val + obj["technical_administrator"] = val } { - val, d := tkhToTFObjectDSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) diags.Append(d...) - obj["stored_attributes"] = val + obj["ldap_client"] = val } { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + tkhCast, _ := tkh.(keyhubmodel.ClientOAuth2Clientable) + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkhCast) diags.Append(d...) - obj["vault"] = val + obj["o_auth2_client"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) + val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) + diags.Append(d...) + obj["saml2_client"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -744,13 +697,13 @@ func tkhToTFObjectDSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel. return objVal, diags } -func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStatsAttrTypesDSRecurse + attrs = clientClientApplicationLinkableWrapperAttrTypesDSRecurse } else { - attrs = authAccountsAuditStatsAttrTypesDS + attrs = clientClientApplicationLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -758,19 +711,14 @@ func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAcc obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) - diags.Append(d...) - obj["directory_stats"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) - diags.Append(d...) - obj["two_fa_stats"] = val - } - { - val, d := tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientClientApplication(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["validity_stats"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -778,70 +726,190 @@ func tkhToTFObjectDSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAcc return objVal, diags } -func tkhToTFObjectDSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_directoryStatsAttrTypesDSRecurse + attrs = clientClientApplicationPrimerAttrTypesDSRecurse } else { - attrs = authAccountsAuditStats_directoryStatsAttrTypesDS + attrs = clientClientApplicationPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val + } + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesDSRecurse + attrs = clientClientApplication_additionalObjectsAttrTypesDSRecurse } else { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesDS + attrs = clientClientApplication_additionalObjectsAttrTypesDS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = getItemsAttr(val, attrs["groupclients"]) + } + { + val, d := tkhToTFObjectDSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = getItemsAttr(val, attrs["groups"]) + } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = clientLdapClientAttrTypesDSRecurse + } else { + attrs = clientLdapClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) + diags.Append(d...) + obj["shared_secret"] = val + } + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_validityStatsAttrTypesDSRecurse + attrs = clientOAuth2ClientAttrTypesDSRecurse } else { - attrs = authAccountsAuditStats_validityStatsAttrTypesDS + attrs = clientOAuth2ClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectDSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["callback_uri"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_uri"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + { + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) + diags.Append(d...) + obj["shared_secret"] = val + } + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountAttrTypesDSRecurse + attrs = clientOAuth2ClientPermissionAttrTypesDSRecurse } else { - attrs = authInternalAccountAttrTypesDS + attrs = clientOAuth2ClientPermissionAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -850,7 +918,7 @@ func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthIntern obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -875,78 +943,80 @@ func tkhToTFObjectDSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthIntern diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) obj["additional"] = types.ListNull(types.StringType) { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) diags.Append(d...) - obj["account_permissions"] = val + obj["for_group"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) diags.Append(d...) - obj["directory"] = val + obj["for_system"] = val } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + obj["value"] = stringerToTF(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountLinkableWrapperAttrTypesDSRecurse + attrs = clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse } else { - attrs = authInternalAccountLinkableWrapperAttrTypesDS + attrs = clientOAuth2ClientPermissionWithClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthInternalAccount(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) + diags.Append(d...) + obj["for_group"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + diags.Append(d...) + obj["for_system"] = val + } + obj["value"] = stringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -954,33 +1024,42 @@ func tkhToTFObjectDSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubm return objVal, diags } -func tkhToTFObjectDSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountStatusObjectAttrTypesDSRecurse + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse } else { - attrs = authInternalAccountStatusObjectAttrTypesDS + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["status"] = stringerToTF(tkh.GetStatus()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authMoveInternalAccountAttrTypesDSRecurse + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse } else { - attrs = authMoveInternalAccountAttrTypesDS + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -988,9 +1067,9 @@ func tkhToTFObjectDSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["internal_directory"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -998,100 +1077,78 @@ func tkhToTFObjectDSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMo return objVal, diags } -func tkhToTFObjectDSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authPermissionAttrTypesDSRecurse + attrs = clientOAuth2Client_attributesAttrTypesDSRecurse } else { - attrs = authPermissionAttrTypesDS + attrs = clientOAuth2Client_attributesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["full"] = types.StringPointerValue(tkh.GetFull()) - { - elemType := attrs["instances"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["instances"] = val - } - { - elemType := attrs["operations"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["operations"] = val - } - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authStoredAccountAttributeAttrTypesDSRecurse + attrs = clientSaml2ClientAttrTypesDSRecurse } else { - attrs = authStoredAccountAttributeAttrTypesDS + attrs = clientSaml2ClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["value"] = types.StringPointerValue(tkh.GetValue()) + { + val, d := tkhToTFObjectDSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authStoredAccountAttributesAttrTypesDSRecurse + attrs = clientSaml2Client_attributesAttrTypesDSRecurse } else { - attrs = authStoredAccountAttributesAttrTypesDS + attrs = clientSaml2Client_attributesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["attributes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthStoredAccountAttribute(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["attributes"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificateAttrTypesDSRecurse + attrs = directoryAccountDirectoryAttrTypesDSRecurse } else { - attrs = certificateCertificateAttrTypesDS + attrs = directoryAccountDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1100,7 +1157,7 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -1125,30 +1182,49 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi diags.Append(d...) obj["permissions"] = val } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) diags.Append(d...) - obj["certificate_data"] = val + obj["base_organizational_unit"] = val } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) { - elemType := attrs["key_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) diags.Append(d...) - obj["key_data"] = val + obj["helpdesk_group"] = val + } + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) + diags.Append(d...) + obj["internal_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) + val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["o_id_c_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -1156,13 +1232,13 @@ func tkhToTFObjectDSCertificateCertificate(recurse bool, tkh keyhubmodel.Certifi return objVal, diags } -func tkhToTFObjectDSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificateLinkableWrapperAttrTypesDSRecurse + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse } else { - attrs = certificateCertificateLinkableWrapperAttrTypesDS + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1171,8 +1247,8 @@ func tkhToTFObjectDSCertificateCertificateLinkableWrapper(recurse bool, tkh keyh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSDirectoryAccountDirectory(recurse, tkh) diags.Append(d...) return val }) @@ -1185,13 +1261,13 @@ func tkhToTFObjectDSCertificateCertificateLinkableWrapper(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificatePrimerAttrTypesDSRecurse + attrs = directoryAccountDirectoryPrimerAttrTypesDSRecurse } else { - attrs = certificateCertificatePrimerAttrTypesDS + attrs = directoryAccountDirectoryPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1218,21 +1294,10 @@ func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C diags.Append(d...) obj["permissions"] = val } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -1240,51 +1305,41 @@ func tkhToTFObjectDSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C return objVal, diags } -func tkhToTFObjectDSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificate_additionalObjectsAttrTypesDSRecurse + attrs = directoryAccountDirectoryStatusReportAttrTypesDSRecurse } else { - attrs = certificateCertificate_additionalObjectsAttrTypesDS + attrs = directoryAccountDirectoryStatusReportAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientApplicationVaultVaultRecordAttrTypesDSRecurse + attrs = directoryAccountDirectorySummaryAttrTypesDSRecurse } else { - attrs = clientApplicationVaultVaultRecordAttrTypesDS + attrs = directoryAccountDirectorySummaryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["client_application_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -1305,113 +1360,78 @@ func tkhToTFObjectDSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmo diags.Append(d...) obj["permissions"] = val } - obj["color"] = stringerToTF(tkh.GetColor()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) diags.Append(d...) - obj["types"] = val + obj["status"] = val } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationAttrTypesDSRecurse + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse } else { - attrs = clientClientApplicationAttrTypesDS + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val + obj["items"] = val } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse + } else { + attrs = directoryAccountDirectory_additionalObjectsAttrTypesDS } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - tkhCast, _ := tkh.(keyhubmodel.ClientOAuth2Clientable) - val, d := tkhToTFObjectDSClientOAuth2Client(false, tkhCast) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["o_auth2_client"] = val + obj["audit"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) - val, d := tkhToTFObjectDSClientLdapClient(false, tkhCast) + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - obj["ldap_client"] = val + obj["markers"] = val } { - tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) - val, d := tkhToTFObjectDSClientSaml2Client(false, tkhCast) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) diags.Append(d...) - obj["saml2_client"] = val + obj["status"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -1419,13 +1439,13 @@ func tkhToTFObjectDSClientClientApplication(recurse bool, tkh keyhubmodel.Client return objVal, diags } -func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationLinkableWrapperAttrTypesDSRecurse + attrs = directoryInternalDirectoryAttrTypesDSRecurse } else { - attrs = clientClientApplicationLinkableWrapperAttrTypesDS + attrs = directoryInternalDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1433,14 +1453,9 @@ func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSClientClientApplication(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetOwner()) diags.Append(d...) - obj["items"] = val + obj["owner"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -1448,190 +1463,107 @@ func tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectDSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationPrimerAttrTypesDSRecurse + attrs = directoryLDAPDirectoryAttrTypesDSRecurse } else { - attrs = clientClientApplicationPrimerAttrTypesDS + attrs = directoryLDAPDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) diags.Append(d...) - obj["links"] = val + obj["client_certificate"] = val } + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientClientApplication_additionalObjectsAttrTypesDSRecurse - } else { - attrs = clientClientApplication_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) - diags.Append(d...) - obj["groupclients"] = getItemsAttr(val, attrs["groupclients"]) - } - { - val, d := tkhToTFObjectDSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = getItemsAttr(val, attrs["groups"]) - } - { - val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) diags.Append(d...) - obj["secret"] = val + obj["failover_trusted_certificate"] = val } + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["search_bind_dn"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) diags.Append(d...) - obj["tile"] = val + obj["trusted_certificate"] = val } - obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientLdapClientAttrTypesDSRecurse + attrs = directoryMaintenanceDirectoryAttrTypesDSRecurse } else { - attrs = clientLdapClientAttrTypesDS + attrs = directoryMaintenanceDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) - diags.Append(d...) - obj["shared_secret"] = val - } - obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientAttrTypesDSRecurse + attrs = directoryOIDCDirectoryAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientAttrTypesDS + attrs = directoryOIDCDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["callback_uri"] = types.StringPointerValue(tkh.GetCallbackURI()) - obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) - obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) - obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_uri"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(recurse, tkh.GetSharedSecret()) - diags.Append(d...) - obj["shared_secret"] = val - } - obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) - obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionAttrTypesDSRecurse + attrs = groupAccountGroupAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionAttrTypesDS + attrs = groupAccountGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1640,7 +1572,7 @@ func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.C obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -1665,31 +1597,33 @@ func tkhToTFObjectDSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.C diags.Append(d...) obj["permissions"] = val } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) - diags.Append(d...) - obj["for_group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) diags.Append(d...) - obj["for_system"] = val + obj["folder"] = val } - obj["value"] = stringerToTF(tkh.GetValue()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDSRecurse + attrs = groupAccountGroupLinkableWrapperAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesDS + attrs = groupAccountGroupLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1698,8 +1632,8 @@ func tkhToTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tk obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupAccountGroup(recurse, tkh) diags.Append(d...) return val }) @@ -1712,62 +1646,28 @@ func tkhToTFObjectDSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tk return objVal, diags } -func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesDSRecurse + attrs = groupAccountGroup_additionalObjectsAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesDS + attrs = groupAccountGroup_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) - diags.Append(d...) - obj["for_group"] = val - } { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["for_system"] = val + obj["audit"] = val } - obj["value"] = stringerToTF(tkh.GetValue()) { - val, d := tkhToTFObjectDSClientOAuth2Client(false, tkh.GetClient()) + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) diags.Append(d...) - obj["client"] = val + obj["vault"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -1775,13 +1675,13 @@ func tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDSRecurse + attrs = groupAuthorizedGroupsWrapperAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesDS + attrs = groupAuthorizedGroupsWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1790,116 +1690,138 @@ func tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurs obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClient(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["items"] = val } + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDSRecurse + attrs = groupGroupAttrTypesDSRecurse } else { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesDS + attrs = groupGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["links"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2Client_attributesAttrTypesDSRecurse - } else { - attrs = clientOAuth2Client_attributesAttrTypesDS + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) + { + val, d := tkhToTFObjectDSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) + diags.Append(d...) + obj["audit_config"] = val } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2ClientAttrTypesDSRecurse - } else { - attrs = clientSaml2ClientAttrTypesDS + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupAuditing()) + diags.Append(d...) + obj["authorizing_group_auditing"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) + diags.Append(d...) + obj["authorizing_group_delegation"] = val } - - obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) diags.Append(d...) - obj["attributes"] = val + obj["authorizing_group_membership"] = val } - obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) - obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) - obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesDSRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypesDS + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) + diags.Append(d...) + obj["authorizing_group_provisioning"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["authorizing_group_types"] = val } - - obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(false, tkh.GetClassification()) + diags.Append(d...) + obj["classification"] = val + } + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetNestedUnder()) + diags.Append(d...) + obj["nested_under"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + diags.Append(d...) + obj["organizational_unit"] = val + } + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = deletedVaultHolderVaultVaultRecordAttrTypesDSRecurse + attrs = groupGroupAccountAttrTypesDSRecurse } else { - attrs = deletedVaultHolderVaultVaultRecordAttrTypesDS + attrs = groupGroupAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1908,12 +1830,11 @@ func tkhToTFObjectDSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } } - obj["deleted_vault_holder_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -1934,114 +1855,53 @@ func tkhToTFObjectDSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubm diags.Append(d...) obj["permissions"] = val } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) obj["additional"] = types.ListNull(types.StringType) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) diags.Append(d...) - obj["types"] = val + obj["directory"] = val } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryAttrTypesDSRecurse + attrs = groupGroupAccountLinkableWrapperAttrTypesDSRecurse } else { - attrs = directoryAccountDirectoryAttrTypesDS + attrs = groupGroupAccountLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["permissions"] = val - } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetBaseOrganizationalUnit()) - diags.Append(d...) - obj["base_organizational_unit"] = val - } - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetHelpdeskGroup()) - diags.Append(d...) - obj["helpdesk_group"] = val - } - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) - val, d := tkhToTFObjectDSDirectoryOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["o_id_c_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) - val, d := tkhToTFObjectDSDirectoryLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["l_d_a_p_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectDSDirectoryMaintenanceDirectory(false, tkhCast) - diags.Append(d...) - obj["maintenance_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectDSDirectoryInternalDirectory(false, tkhCast) - diags.Append(d...) - obj["internal_directory"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -2049,13 +1909,13 @@ func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.Dire return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDSRecurse + attrs = groupGroupAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesDS + attrs = groupGroupAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2063,14 +1923,9 @@ func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh k obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSDirectoryAccountDirectory(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -2078,19 +1933,26 @@ func tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh k return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryPrimerAttrTypesDSRecurse + attrs = groupGroupAuditAttrTypesDSRecurse } else { - attrs = directoryAccountDirectoryPrimerAttrTypesDS + attrs = groupGroupAuditAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -2111,46 +1973,91 @@ func tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmode diags.Append(d...) obj["permissions"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - + obj["additional"] = types.ListNull(types.StringType) + { + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["accounts"] = val + } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryStatusReportAttrTypesDSRecurse + attrs = groupGroupAuditAccountAttrTypesDSRecurse } else { - attrs = directoryAccountDirectoryStatusReportAttrTypesDS + attrs = groupGroupAuditAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - obj["status"] = stringerToTF(tkh.GetStatus()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectorySummaryAttrTypesDSRecurse + attrs = groupGroupAuditConfigAttrTypesDSRecurse } else { - attrs = directoryAccountDirectorySummaryAttrTypesDS + attrs = groupGroupAuditConfigAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2177,29 +2084,27 @@ func tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + elemType := attrs["months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - obj["status"] = val + obj["months"] = val } - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDSRecurse + attrs = groupGroupAuditLinkableWrapperAttrTypesDSRecurse } else { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesDS + attrs = groupGroupAuditLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2208,8 +2113,8 @@ func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSDirectoryAccountDirectorySummary(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupAudit(recurse, tkh) diags.Append(d...) return val }) @@ -2222,13 +2127,13 @@ func tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool return objVal, diags } -func tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesDSRecurse + attrs = groupGroupAudit_additionalObjectsAttrTypesDSRecurse } else { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesDS + attrs = groupGroupAudit_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2240,160 +2145,140 @@ func tkhToTFObjectDSDirectoryAccountDirectory_additionalObjects(recurse bool, tk diags.Append(d...) obj["audit"] = val } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryInternalDirectoryAttrTypesDSRecurse + attrs = groupGroupAuditingInfoAttrTypesDSRecurse } else { - attrs = directoryInternalDirectoryAttrTypesDS + attrs = groupGroupAuditingInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryLDAPDirectoryAttrTypesDSRecurse + attrs = groupGroupClassificationAttrTypesDSRecurse } else { - attrs = directoryLDAPDirectoryAttrTypesDS + attrs = groupGroupClassificationAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + if recurse { + { + val, d := tkhToTFObjectDSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["client_certificate"] = val + obj["links"] = val } - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["failover_trusted_certificate"] = val + obj["permissions"] = val } - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_dn"] = types.StringPointerValue(tkh.GetSearchBindDN()) - obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) - obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) - obj["tls"] = stringerToTF(tkh.GetTls()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) + obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) + obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) + obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) + obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) + obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) + obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) + elemType := attrs["required_months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) diags.Append(d...) - obj["trusted_certificate"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryMaintenanceDirectoryAttrTypesDSRecurse - } else { - attrs = directoryMaintenanceDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["required_months"] = val } - - obj := make(map[string]attr.Value) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryOIDCDirectoryAttrTypesDSRecurse + attrs = groupGroupClassificationInfoAttrTypesDSRecurse } else { - attrs = directoryOIDCDirectoryAttrTypesDS + attrs = groupGroupClassificationInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) - obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) - obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) - obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) + obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupAccountGroupAttrTypesDSRecurse + attrs = groupGroupClassificationPrimerAttrTypesDSRecurse } else { - attrs = groupAccountGroupAttrTypesDS + attrs = groupGroupClassificationPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -2414,62 +2299,21 @@ func tkhToTFObjectDSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccount diags.Append(d...) obj["permissions"] = val } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupAccountGroupLinkableWrapperAttrTypesDSRecurse + attrs = groupGroupClassification_additionalObjectsAttrTypesDSRecurse } else { - attrs = groupAccountGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupAccountGroup_additionalObjectsAttrTypesDS + attrs = groupGroupClassification_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2482,53 +2326,23 @@ func tkhToTFObjectDSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhub obj["audit"] = val } { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAuthorizedGroupsWrapperAttrTypesDSRecurse - } else { - attrs = groupAuthorizedGroupsWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) diags.Append(d...) - obj["items"] = val + obj["info"] = val } - obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAttrTypesDSRecurse + attrs = groupGroupClientAttrTypesDSRecurse } else { - attrs = groupGroupAttrTypesDS + attrs = groupGroupClientAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2537,7 +2351,7 @@ func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (ty obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -2562,83 +2376,94 @@ func tkhToTFObjectDSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (ty diags.Append(d...) obj["permissions"] = val } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) - obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) { - val, d := tkhToTFObjectDSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) + val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) diags.Append(d...) - obj["audit_config"] = val + obj["client"] = val } - obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) - obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupAuditing()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) diags.Append(d...) - obj["authorizing_group_auditing"] = val + obj["group"] = val } { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupDelegation()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - obj["authorizing_group_delegation"] = val + obj["owner"] = val } { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupMembership()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - obj["authorizing_group_membership"] = val + obj["technical_administrator"] = val } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetAuthorizingGroupProvisioning()) - diags.Append(d...) - obj["authorizing_group_provisioning"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClientLinkableWrapperAttrTypesDSRecurse + } else { + attrs = groupGroupClientLinkableWrapperAttrTypesDS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - elemType := attrs["authorizing_group_types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupClient(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["authorizing_group_types"] = val + obj["items"] = val } - { - val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(false, tkh.GetClassification()) - diags.Append(d...) - obj["classification"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupClient_additionalObjectsAttrTypesDSRecurse + } else { + attrs = groupGroupClient_additionalObjectsAttrTypesDS } - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) - obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetNestedUnder()) - diags.Append(d...) - obj["nested_under"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetOrganizationalUnit()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["organizational_unit"] = val + obj["audit"] = val } - obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) - obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) - obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountAttrTypesDSRecurse + attrs = groupGroupFolderAttrTypesDSRecurse } else { - attrs = groupGroupAccountAttrTypesDS + attrs = groupGroupFolderAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2647,7 +2472,7 @@ func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAc obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -2672,38 +2497,21 @@ func tkhToTFObjectDSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAc diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) + obj["name"] = types.StringPointerValue(tkh.GetName()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountLinkableWrapperAttrTypesDSRecurse + attrs = groupGroupFolder_additionalObjectsAttrTypesDSRecurse } else { - attrs = groupGroupAccountLinkableWrapperAttrTypesDS + attrs = groupGroupFolder_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2711,14 +2519,9 @@ func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmod obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -2726,33 +2529,38 @@ func tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmod return objVal, diags } -func tkhToTFObjectDSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountNestingAttrTypesDSRecurse + attrs = groupGroupInfoAttrTypesDSRecurse } else { - attrs = groupGroupAccountNestingAttrTypesDS + attrs = groupGroupInfoAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccountStatusAttrTypesDSRecurse + attrs = groupGroupLinkableWrapperAttrTypesDSRecurse } else { - attrs = groupGroupAccountStatusAttrTypesDS + attrs = groupGroupLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2760,24 +2568,28 @@ func tkhToTFObjectDSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupG obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["folder"] = val + obj["items"] = val } - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAccount_additionalObjectsAttrTypesDSRecurse + attrs = groupGroupPrimerAttrTypesDSRecurse } else { - attrs = groupGroupAccount_additionalObjectsAttrTypesDS + attrs = groupGroupPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -2785,167 +2597,233 @@ func tkhToTFObjectDSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAdminMailAttrTypesDSRecurse + attrs = groupGroupPrimerLinkableWrapperAttrTypesDSRecurse } else { - attrs = groupGroupAdminMailAttrTypesDS + attrs = groupGroupPrimerLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["body"] = types.StringPointerValue(tkh.GetBody()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditAttrTypesDSRecurse + attrs = groupGroup_additionalObjectsAttrTypesDSRecurse } else { - attrs = groupGroupAuditAttrTypesDS + attrs = groupGroup_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } + { + val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) + diags.Append(d...) + obj["accounts"] = getItemsAttr(val, attrs["accounts"]) } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) - obj["links"] = val + obj["administered_clients"] = getItemsAttr(val, attrs["administered_clients"]) } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) - obj["permissions"] = val + obj["administered_systems"] = getItemsAttr(val, attrs["administered_systems"]) } - obj["additional"] = types.ListNull(types.StringType) { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) diags.Append(d...) - obj["accounts"] = val + obj["admins"] = getItemsAttr(val, attrs["admins"]) } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAccountAttrTypesDSRecurse - } else { - attrs = groupGroupAuditAccountAttrTypesDS + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) + diags.Append(d...) + obj["authorized_groups"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) diags.Append(d...) - obj["links"] = val + obj["client_permissions"] = getItemsAttr(val, attrs["client_permissions"]) } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) diags.Append(d...) - obj["permissions"] = val + obj["clients"] = getItemsAttr(val, attrs["clients"]) + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) + diags.Append(d...) + obj["content_administered_systems"] = getItemsAttr(val, attrs["content_administered_systems"]) + } + { + val, d := tkhToTFObjectDSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupInfo(recurse, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) + diags.Append(d...) + obj["helpdesk"] = getItemsAttr(val, attrs["helpdesk"]) + } + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = getItemsAttr(val, attrs["nested_groups"]) + } + { + val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = getItemsAttr(val, attrs["owned_clients"]) + } + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = getItemsAttr(val, attrs["owned_directories"]) + } + { + val, d := tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = getItemsAttr(val, attrs["owned_organizational_units"]) + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = getItemsAttr(val, attrs["owned_systems"]) + } + { + val, d := tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = getItemsAttr(val, attrs["recent_audits"]) + } + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) + } + { + val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = getItemsAttr(val, attrs["systems"]) + } + { + val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = getItemsAttr(val, attrs["webhooks"]) } - obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) - obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = groupGroupAuditConfigAttrTypesDSRecurse + attrs = groupProvisioningGroupAttrTypesDSRecurse } else { - attrs = groupGroupAuditConfigAttrTypesDS + attrs = groupProvisioningGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -2964,4662 +2842,72 @@ func tkhToTFObjectDSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGro return val }) diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["months"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupAuditLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAudit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAudit_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupAudit_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditingInfoAttrTypesDSRecurse - } else { - attrs = groupGroupAuditingInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) - obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) - obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) - obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) - obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) - obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) - obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) - obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) - obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) - obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) - obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) - obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) - obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) - obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) - { - elemType := attrs["required_months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["required_months"] = val - } - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationInfoAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationPrimerAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationUpdateAttrTypesDSRecurse - } else { - attrs = groupGroupClassificationUpdateAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupClassificationPrimer(recurse, tkh.GetClassificaton()) - diags.Append(d...) - obj["classificaton"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassification_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupClassification_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) - diags.Append(d...) - obj["info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientAttrTypesDSRecurse - } else { - attrs = groupGroupClientAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupClientLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClient_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupClient_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderAttrTypesDSRecurse - } else { - attrs = groupGroupFolderAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupFolderLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolder_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroupFolder_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupInfoAttrTypesDSRecurse - } else { - attrs = groupGroupInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) - obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) - obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) - obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) - obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) - obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerAttrTypesDSRecurse - } else { - attrs = groupGroupPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - { - elemType := attrs["segments"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSSegmentCount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["segments"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupGroup_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) - diags.Append(d...) - obj["accounts"] = getItemsAttr(val, attrs["accounts"]) - } - { - val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) - diags.Append(d...) - obj["administered_clients"] = getItemsAttr(val, attrs["administered_clients"]) - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) - diags.Append(d...) - obj["administered_systems"] = getItemsAttr(val, attrs["administered_systems"]) - } - { - val, d := tkhToTFObjectDSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) - diags.Append(d...) - obj["admins"] = getItemsAttr(val, attrs["admins"]) - } - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) - diags.Append(d...) - obj["authorized_groups"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) - diags.Append(d...) - obj["client_permissions"] = getItemsAttr(val, attrs["client_permissions"]) - } - { - val, d := tkhToTFObjectDSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) - diags.Append(d...) - obj["clients"] = getItemsAttr(val, attrs["clients"]) - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) - diags.Append(d...) - obj["content_administered_systems"] = getItemsAttr(val, attrs["content_administered_systems"]) - } - { - val, d := tkhToTFObjectDSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) - diags.Append(d...) - obj["groupauditinginfo"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupInfo(recurse, tkh.GetGroupinfo()) - diags.Append(d...) - obj["groupinfo"] = val - } - { - val, d := tkhToTFObjectDSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) - diags.Append(d...) - obj["helpdesk"] = getItemsAttr(val, attrs["helpdesk"]) - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMyaccount()) - diags.Append(d...) - obj["myaccount"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) - diags.Append(d...) - obj["mydelegatedaccount"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) - diags.Append(d...) - obj["nested_groups"] = getItemsAttr(val, attrs["nested_groups"]) - } - { - val, d := tkhToTFObjectDSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) - diags.Append(d...) - obj["owned_clients"] = getItemsAttr(val, attrs["owned_clients"]) - } - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) - diags.Append(d...) - obj["owned_directories"] = getItemsAttr(val, attrs["owned_directories"]) - } - { - val, d := tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) - diags.Append(d...) - obj["owned_groups_on_system"] = val - } - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) - diags.Append(d...) - obj["owned_organizational_units"] = getItemsAttr(val, attrs["owned_organizational_units"]) - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) - diags.Append(d...) - obj["owned_systems"] = getItemsAttr(val, attrs["owned_systems"]) - } - { - val, d := tkhToTFObjectDSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) - diags.Append(d...) - obj["recent_audits"] = getItemsAttr(val, attrs["recent_audits"]) - } - obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) - } - { - val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = getItemsAttr(val, attrs["systems"]) - } - { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) - diags.Append(d...) - obj["webhooks"] = getItemsAttr(val, attrs["webhooks"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupsAuditStatsAttrTypesDSRecurse - } else { - attrs = groupGroupsAuditStatsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) - { - elemType := attrs["classifications"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["classifications"] = val - } - obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) - obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) - obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) - obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) - obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupAttrTypesDSRecurse - } else { - attrs = groupProvisioningGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupVaultVaultRecordAttrTypesDSRecurse - } else { - attrs = groupVaultVaultRecordAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["group_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSLaunchpadDisplayedLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(false, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) - val, d := tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["vault_record_launchpad_tile"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) - val, d := tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["sso_application_launchpad_tile"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) - val, d := tkhToTFObjectDSLaunchpadManualLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["manual_launchpad_tile"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSLaunchpadLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDSRecurse - } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadManualLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse - } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesDSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val - } - { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["details"] = val - } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) - { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["features"] = val - } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesDSRecurse - } else { - attrs = markItemMarkerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) - { - val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarker_parametersAttrTypesDSRecurse - } else { - attrs = markItemMarker_parametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkersAttrTypesDSRecurse - } else { - attrs = markItemMarkersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["markers"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedAuthInternalAccountAttrTypesDSRecurse - } else { - attrs = nestedAuthInternalAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["account_directory_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedClientOAuth2ClientPermissionAttrTypesDSRecurse - } else { - attrs = nestedClientOAuth2ClientPermissionAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["client_application_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetForGroup()) - diags.Append(d...) - obj["for_group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(false, tkh.GetForSystem()) - diags.Append(d...) - obj["for_system"] = val - } - obj["value"] = stringerToTF(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedGroupAccountGroupAttrTypesDSRecurse - } else { - attrs = nestedGroupAccountGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["account_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectDSGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedGroupGroupAccountAttrTypesDSRecurse - } else { - attrs = nestedGroupGroupAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["group_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedGroupGroupAuditAttrTypesDSRecurse - } else { - attrs = nestedGroupGroupAuditAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["group_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["accounts"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesDSRecurse - } else { - attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["account_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesDSRecurse - } else { - attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["organizational_unit_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedProvisioningGroupOnSystemAttrTypesDSRecurse - } else { - attrs = nestedProvisioningGroupOnSystemAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["provisioned_system_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedProvisioningProvisionedAccountAttrTypesDSRecurse - } else { - attrs = nestedProvisioningProvisionedAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["provisioned_system_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesDSRecurse - } else { - attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["provisioned_system_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedServiceaccountServiceAccountGroupAttrTypesDSRecurse - } else { - attrs = nestedServiceaccountServiceAccountGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["service_account_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["additional"] = types.ListNull(types.StringType) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedWebhookWebhookDeliveryAttrTypesDSRecurse - } else { - attrs = nestedWebhookWebhookDeliveryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["webhook_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) - diags.Append(d...) - obj["payload"] = val - } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationCertificateExpiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationCertificateExpiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSCertificateCertificate(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectDSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - { - val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetLdapClient()) - diags.Append(d...) - obj["ldap_client"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["usage"] = stringerToTF(tkh.GetUsage()) - { - val, d := tkhToTFObjectDSWebhookWebhook(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupAuditRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationGroupAuditRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["due_date"] = timePointerToTF(tkh.GetDueDate()) - { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationGroupEditRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - obj["reason"] = stringerToTF(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDSRecurse - } else { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDSRecurse - } else { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationLicenseStatusNotificationAttrTypesDSRecurse - } else { - attrs = notificationLicenseStatusNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) - { - val, d := tkhToTFObjectDSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) - diags.Append(d...) - obj["license_info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationModificationRequestNotificationAttrTypesDSRecurse - } else { - attrs = notificationModificationRequestNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["admins"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["admins"] = val - } - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh.GetRequest()) - diags.Append(d...) - obj["request"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationAttrTypesDSRecurse - } else { - attrs = notificationNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationsAttrTypesDSRecurse - } else { - attrs = notificationNotificationsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSNotificationNotification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationOldApiVersionUsageNotificationAttrTypesDSRecurse - } else { - attrs = notificationOldApiVersionUsageNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) - { - val, d := tkhToTFObjectDSClientOAuth2Client(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["systems"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["systems"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationUpdateAvailableNotificationAttrTypesDSRecurse - } else { - attrs = notificationUpdateAvailableNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationVaultRecordExpiredNotificationAttrTypesDSRecurse - } else { - attrs = notificationVaultRecordExpiredNotificationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh.GetRecord()) - diags.Append(d...) - obj["record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitAttrTypesDSRecurse - } else { - attrs = organizationAccountOrganizationalUnitAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationAccountOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDSRecurse - } else { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetParent()) - diags.Append(d...) - obj["parent"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(false, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse - } else { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAPAttrTypesDSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAPAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) - diags.Append(d...) - obj["client_certificate"] = val - } - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) - diags.Append(d...) - obj["failover_trusted_certificate"] = val - } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - { - val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) - diags.Append(d...) - obj["trusted_certificate"] = val - } - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusAttrTypesDSRecurse - } else { - attrs = provisioningAccountProvisioningStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["result"] = stringerToTF(tkh.GetResult()) - { - val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusReportAttrTypesDSRecurse - } else { - attrs = provisioningAccountProvisioningStatusReportAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["status"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningCircuitBreakerStatisticsAttrTypesDSRecurse - } else { - attrs = provisioningCircuitBreakerStatisticsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) - obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) - obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) - obj["state"] = stringerToTF(tkh.GetState()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemPrimerAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemTypesAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystemTypesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) - diags.Append(d...) - obj["provgroups"] = getItemsAttr(val, attrs["provgroups"]) - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatusAttrTypesDSRecurse - } else { - attrs = provisioningGroupProvisioningStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - { - val, d := tkhToTFObjectDSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) - diags.Append(d...) - obj["provisioning_duration"] = val - } - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) - { - val, d := tkhToTFObjectDSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) - diags.Append(d...) - obj["status_report"] = val - } - obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDSRecurse - } else { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse - } else { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceAttrTypesDSRecurse - } else { - attrs = provisioningProvisionNumberSequenceAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_uid"] = types.Int64PointerValue(tkh.GetNextUID()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = getItemsAttr(val, attrs["systems"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedADAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedADAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAccountAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) - obj["additional"] = types.ListNull(types.StringType) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedAzureTenantAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedLDAPAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) - { - val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) - diags.Append(d...) - obj["numbering"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["additional"] = types.ListNull(types.StringType) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) - diags.Append(d...) - obj["content_administrator"] = val - } - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) - diags.Append(d...) - obj["owner"] = val - } - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) - diags.Append(d...) - obj["technical_administrator"] = val - } - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) - diags.Append(d...) - obj["abstract_provisioned_ldap"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) - val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) - diags.Append(d...) - obj["provisioned_a_d"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) - diags.Append(d...) - obj["provisioned_internal_ldap"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap_directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse - } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = getItemsAttr(val, attrs["issued_permissions"]) - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) - diags.Append(d...) - obj["supported_group_types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse - } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningStatusAttrTypesDSRecurse - } else { - attrs = provisioningProvisioningStatusAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningTokenPasswordAttrTypesDSRecurse - } else { - attrs = provisioningTokenPasswordAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesDSRecurse - } else { - attrs = requestAbstractApplicationModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSClientClientApplicationPrimer(recurse, tkh.GetApplication()) - diags.Append(d...) - obj["application"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDSRecurse - } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDSRecurse - } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) - diags.Append(d...) - obj["access_duration"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDSRecurse - } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesDSRecurse - } else { - attrs = requestAcceptModificationRequestParametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAddGroupAdminRequestAttrTypesDSRecurse - } else { - attrs = requestAddGroupAdminRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetNewAdmin()) - diags.Append(d...) - obj["new_admin"] = val - } - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesDSRecurse - } else { - attrs = requestCreateGroupOnSystemRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupRequestAttrTypesDSRecurse - } else { - attrs = requestCreateGroupRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesDSRecurse - } else { - attrs = requestCreateServiceAccountRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestDisable2FARequestAttrTypesDSRecurse - } else { - attrs = requestDisable2FARequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestExtendAccessRequestAttrTypesDSRecurse - } else { - attrs = requestExtendAccessRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["permissions"] = val } - - obj := make(map[string]attr.Value) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantAccessRequestAttrTypesDSRecurse - } else { - attrs = requestGrantAccessRequestAttrTypesDS + obj["additional"] = types.ListNull(types.StringType) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) + diags.Append(d...) + obj["group"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val } - obj := make(map[string]attr.Value) - objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantApplicationRequestAttrTypesDSRecurse + attrs = groupProvisioningGroupLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestGrantApplicationRequestAttrTypesDS + attrs = groupProvisioningGroupLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSGroupProvisioningGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesDSRecurse + attrs = groupProvisioningGroup_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestGrantClientPermissionRequestAttrTypesDS + attrs = groupProvisioningGroup_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["system"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7627,78 +2915,64 @@ func tkhToTFObjectDSRequestGrantClientPermissionRequest(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectDSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesDSRecurse + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestGrantGroupOnSystemRequestAttrTypesDS + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDSRecurse + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDSRecurse } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesDS + attrs = launchpadVaultRecordLaunchpadTileAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDSRecurse + attrs = markItemMarkerAttrTypesDSRecurse } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypesDS + attrs = markItemMarkerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh.GetServiceAccount()) + val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) - obj["service_account"] = val + obj["parameters"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -7706,13 +2980,13 @@ func tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestJoinGroupRequestAttrTypesDSRecurse + attrs = markItemMarker_parametersAttrTypesDSRecurse } else { - attrs = requestJoinGroupRequestAttrTypesDS + attrs = markItemMarker_parametersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7725,32 +2999,42 @@ func tkhToTFObjectDSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.Reques return objVal, diags } -func tkhToTFObjectDSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestJoinVaultRequestAttrTypesDSRecurse + attrs = markItemMarkersAttrTypesDSRecurse } else { - attrs = requestJoinVaultRequestAttrTypesDS + attrs = markItemMarkersAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequestAttrTypesDSRecurse + attrs = organizationOrganizationalUnitAttrTypesDSRecurse } else { - attrs = requestModificationRequestAttrTypesDS + attrs = organizationOrganizationalUnitAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7759,7 +3043,7 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -7784,257 +3068,104 @@ func tkhToTFObjectDSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["permissions"] = val } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) { - val, d := tkhToTFObjectDSAuthAccountPrimer(false, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - { - val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectDSRequestEnableTechnicalAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["enable_technical_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractApplicationModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_application_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_application_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectDSRequestPasswordResetRequest(false, tkhCast) - diags.Append(d...) - obj["password_reset_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectDSRequestAddGroupAdminRequest(false, tkhCast) - diags.Append(d...) - obj["add_group_admin_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectDSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupRequest(false, tkhCast) - diags.Append(d...) - obj["create_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(false, tkhCast) - diags.Append(d...) - obj["remove_provisioned_system_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectDSRequestGrantApplicationRequest(false, tkhCast) - diags.Append(d...) - obj["grant_application_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestCreateGroupOnSystemRequest(false, tkhCast) - diags.Append(d...) - obj["create_group_on_system_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupNestedGroupRequest(false, tkhCast) - diags.Append(d...) - obj["setup_nested_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectDSRequestVerifyInternalAccountRequest(false, tkhCast) - diags.Append(d...) - obj["verify_internal_account_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) - diags.Append(d...) - obj["grant_group_on_system_request_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectDSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectDSRequestDisable2FARequest(false, tkhCast) - diags.Append(d...) - obj["disable2fa_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectDSRequestGrantGroupOnSystemRequest(false, tkhCast) - diags.Append(d...) - obj["grant_group_on_system_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_application_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_service_account_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectDSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectDSRequestReviewAuditRequest(false, tkhCast) - diags.Append(d...) - obj["review_audit_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectDSRequestUpdateGroupMembershipRequest(false, tkhCast) - diags.Append(d...) - obj["update_group_membership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectDSRequestExtendAccessRequest(false, tkhCast) - diags.Append(d...) - obj["extend_access_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectDSRequestRemoveGroupRequest(false, tkhCast) - diags.Append(d...) - obj["remove_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectDSRequestRevokeAdminRequest(false, tkhCast) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["owner"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectDSRequestGrantServiceAccountGroupRequest(false, tkhCast) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(false, tkh.GetParent()) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["parent"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(false, tkhCast) - diags.Append(d...) - obj["setup_authorizing_group_request"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesDS } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectDSRequestGrantAccessRequest(false, tkhCast) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSOrganizationOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["grant_access_request"] = val + obj["items"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectDSRequestJoinVaultRequest(false, tkhCast) - diags.Append(d...) - obj["join_vault_request"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesDSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypesDS } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(false, tkhCast) - diags.Append(d...) - obj["remove_organizational_unit_request"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectDSRequestCreateServiceAccountRequest(false, tkhCast) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["create_service_account_request"] = val + obj["links"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectDSRequestGrantClientPermissionRequest(false, tkhCast) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["permissions"] = val } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesDSRecurse + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestModificationRequestLinkableWrapperAttrTypesDS + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8042,14 +3173,9 @@ func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRequestModificationRequest(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["items"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8057,13 +3183,13 @@ func tkhToTFObjectDSRequestModificationRequestLinkableWrapper(recurse bool, tkh return objVal, diags } -func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesDSRecurse + attrs = provisioningAbstractProvisionedLDAPAttrTypesDSRecurse } else { - attrs = requestModificationRequest_additionalObjectsAttrTypesDS + attrs = provisioningAbstractProvisionedLDAPAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8071,28 +3197,50 @@ func tkhToTFObjectDSRequestModificationRequest_additionalObjects(recurse bool, t obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) - obj["audit"] = val + obj["attributes"] = val + } + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetClientCertificate()) + diags.Append(d...) + obj["client_certificate"] = val + } + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + { + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetFailoverTrustedCertificate()) + diags.Append(d...) + obj["failover_trusted_certificate"] = val } + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) { - val, d := tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) + val, d := tkhToTFObjectDSCertificateCertificatePrimer(recurse, tkh.GetTrustedCertificate()) diags.Append(d...) - obj["reset_status"] = val + obj["trusted_certificate"] = val } + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestPasswordResetRequestAttrTypesDSRecurse + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse } else { - attrs = requestPasswordResetRequestAttrTypesDS + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8105,122 +3253,191 @@ func tkhToTFObjectDSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.Re return objVal, diags } -func tkhToTFObjectDSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesDSRecurse + attrs = provisioningCircuitBreakerStatisticsAttrTypesDSRecurse } else { - attrs = requestPasswordResetRequestStatusAttrTypesDS + attrs = provisioningCircuitBreakerStatisticsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) - { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["managers"] = val - } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = stringerToTF(tkh.GetState()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveGroupRequestAttrTypesDSRecurse + attrs = provisioningGroupOnSystemAttrTypesDSRecurse } else { - attrs = requestRemoveGroupRequestAttrTypesDS + attrs = provisioningGroupOnSystemAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["additional"] = types.ListNull(types.StringType) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDSRecurse + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDSRecurse } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesDS + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDSRecurse + attrs = provisioningGroupOnSystemPrimerAttrTypesDSRecurse } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypesDS + attrs = provisioningGroupOnSystemPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestReviewAuditRequestAttrTypesDSRecurse + attrs = provisioningGroupOnSystemTypesAttrTypesDSRecurse } else { - attrs = requestReviewAuditRequestAttrTypesDS + attrs = provisioningGroupOnSystemTypesAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRevokeAdminRequestAttrTypesDSRecurse + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestRevokeAdminRequestAttrTypesDS + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8228,9 +3445,19 @@ func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Requ obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAdmin()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) + diags.Append(d...) + obj["provgroups"] = getItemsAttr(val, attrs["provgroups"]) + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) diags.Append(d...) - obj["admin"] = val + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -8238,122 +3465,195 @@ func tkhToTFObjectDSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.Requ return objVal, diags } -func tkhToTFObjectDSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDSRecurse + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDSRecurse } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypesDS + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetRequestingGroup()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["requesting_group"] = val + obj["items"] = val } + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesDSRecurse + attrs = provisioningProvisionNumberSequenceAttrTypesDSRecurse } else { - attrs = requestSetupNestedGroupRequestAttrTypesDS + attrs = provisioningProvisionNumberSequenceAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetRequestingGroup()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["requesting_group"] = val + obj["permissions"] = val } + obj["additional"] = types.ListNull(types.StringType) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_uid"] = types.Int64PointerValue(tkh.GetNextUID()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDSRecurse + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypesDS + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = getItemsAttr(val, attrs["systems"]) + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferApplicationOwnershipRequestAttrTypesDSRecurse + attrs = provisioningProvisionedADAttrTypesDSRecurse } else { - attrs = requestTransferApplicationOwnershipRequestAttrTypesDS + attrs = provisioningProvisionedADAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferAuditorGroupRequestAttrTypesDSRecurse + attrs = provisioningProvisionedAccountAttrTypesDSRecurse } else { - attrs = requestTransferAuditorGroupRequestAttrTypesDS + attrs = provisioningProvisionedAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } - - obj := make(map[string]attr.Value) + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["additional"] = types.ListNull(types.StringType) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDSRecurse + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesDS + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8361,9 +3661,9 @@ func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["group_on_system"] = val + obj["audit"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8371,89 +3671,88 @@ func tkhToTFObjectDSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, t return objVal, diags } -func tkhToTFObjectDSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDSRecurse + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDSRecurse } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesDS + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDSRecurse - } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val } - - obj := make(map[string]attr.Value) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDSRecurse + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDSRecurse } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesDS + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDSRecurse + attrs = provisioningProvisionedAzureTenantAttrTypesDSRecurse } else { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesDS + attrs = provisioningProvisionedAzureTenantAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDSRecurse + attrs = provisioningProvisionedInternalLDAPAttrTypesDSRecurse } else { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesDS + attrs = provisioningProvisionedInternalLDAPAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8461,9 +3760,9 @@ func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse b obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh.GetServiceAccount()) + val, d := tkhToTFObjectDSClientLdapClient(recurse, tkh.GetClient()) diags.Append(d...) - obj["service_account"] = val + obj["client"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8471,62 +3770,64 @@ func tkhToTFObjectDSRequestTransferServiceAccountAdministrationRequest(recurse b return objVal, diags } -func tkhToTFObjectDSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestUpdateGroupMembershipRequestAttrTypesDSRecurse + attrs = provisioningProvisionedLDAPAttrTypesDSRecurse } else { - attrs = requestUpdateGroupMembershipRequestAttrTypesDS + attrs = provisioningProvisionedLDAPAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccountToUpdate()) + val, d := tkhToTFObjectDSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) diags.Append(d...) - obj["account_to_update"] = val + obj["numbering"] = val } - obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) - obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestVerifyInternalAccountRequestAttrTypesDSRecurse + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDSRecurse } else { - attrs = requestVerifyInternalAccountRequestAttrTypesDS + attrs = provisioningProvisionedLDAPDirectoryAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + { + val, d := tkhToTFObjectDSDirectoryAccountDirectoryPrimer(recurse, tkh.GetDirectory()) + diags.Append(d...) + obj["directory"] = val + } + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountAttrTypesDSRecurse + attrs = provisioningProvisionedSystemAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountAttrTypesDS + attrs = provisioningProvisionedSystemAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8535,7 +3836,7 @@ func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -8563,128 +3864,82 @@ func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - obj["system"] = val + obj["organizational_unit"] = val } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) obj["additional"] = types.ListNull(types.StringType) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) { - val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetPassword()) + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetContentAdministrator()) diags.Append(d...) - obj["password"] = val + obj["content_administrator"] = val } - obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetOwner()) + diags.Append(d...) + obj["owner"] = val + } + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) { val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) obj["technical_administrator"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountGroupAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["links"] = val + obj["abstract_provisioned_ldap"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectDSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) - obj["permissions"] = val + obj["provisioned_a_d"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["additional"] = types.ListNull(types.StringType) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_sync_ldap_directory"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectDSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["items"] = val + obj["provisioned_azure_tenant"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedInternalLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap"] = val } - - obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectDSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["audit"] = val + obj["provisioned_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8692,13 +3947,13 @@ func tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(recurse return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDS + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8707,8 +3962,8 @@ func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tk obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSServiceaccountServiceAccount(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) return val }) @@ -8721,13 +3976,13 @@ func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tk return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountPrimerAttrTypesDSRecurse + attrs = provisioningProvisionedSystemPrimerAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountPrimerAttrTypesDS + attrs = provisioningProvisionedSystemPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8757,11 +4012,11 @@ func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubm obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) { - val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + val, d := tkhToTFObjectDSOrganizationOrganizationalUnitPrimer(recurse, tkh.GetOrganizationalUnit()) diags.Append(d...) - obj["system"] = val + obj["organizational_unit"] = val } - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -8769,13 +4024,13 @@ func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubm return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8784,8 +4039,8 @@ func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bo obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh) diags.Append(d...) return val }) @@ -8798,83 +4053,54 @@ func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bo return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountStatusAttrTypesDSRecurse + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountStatusAttrTypesDS + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val } - - obj := make(map[string]attr.Value) { val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + val, d := tkhToTFObjectDSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - obj["groups"] = getItemsAttr(val, attrs["groups"]) + obj["issued_permissions"] = getItemsAttr(val, attrs["issued_permissions"]) } + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + val, d := tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) - obj["secret"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesDS + obj["management_permissions"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectDSMarkItemMarkers(recurse, tkh.GetMarkers()) + diags.Append(d...) + obj["markers"] = val } - - obj := make(map[string]attr.Value) - obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) { - val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) + val, d := tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) - obj["password_scheme_enabled_stats"] = val + obj["statistics"] = val } { - val, d := tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) + val, d := tkhToTFObjectDSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) diags.Append(d...) - obj["system_stats"] = val + obj["supported_group_types"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8882,99 +4108,103 @@ func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats(recurse bool, tkh ke return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDSRecurse + attrs = provisioningProvisioningManagementPermissionsAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesDS + attrs = provisioningProvisioningManagementPermissionsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDSRecurse + attrs = serviceaccountServiceAccountAttrTypesDSRecurse } else { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesDS + attrs = serviceaccountServiceAccountAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = simpleStringValueAttrTypesDSRecurse - } else { - attrs = simpleStringValueAttrTypesDS + { + val, d := tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) - obj["value"] = types.StringPointerValue(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = simpleVersionInfoAttrTypesDSRecurse - } else { - attrs = simpleVersionInfoAttrTypesDS + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val } - - obj := make(map[string]attr.Value) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["additional"] = types.ListNull(types.StringType) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) { - elemType := attrs["contract_versions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(int64(tkh)) - }) + val, d := tkhToTFObjectDSVaultVaultRecordPrimer(false, tkh.GetPassword()) + diags.Append(d...) + obj["password"] = val + } + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + { + val, d := tkhToTFObjectDSGroupGroupPrimer(false, tkh.GetTechnicalAdministrator()) diags.Append(d...) - obj["contract_versions"] = val + obj["technical_administrator"] = val } - obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolderAttrTypesDSRecurse + attrs = serviceaccountServiceAccountGroupAttrTypesDSRecurse } else { - attrs = vaultDeletedVaultHolderAttrTypesDS + attrs = serviceaccountServiceAccountGroupAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8983,7 +4213,7 @@ func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -9008,23 +4238,24 @@ func tkhToTFObjectDSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD diags.Append(d...) obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) obj["additional"] = types.ListNull(types.StringType) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) - obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDSRecurse + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDSRecurse } else { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesDS + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9033,8 +4264,8 @@ func tkhToTFObjectDSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultDeletedVaultHolder(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroup(recurse, tkh) diags.Append(d...) return val }) @@ -9047,13 +4278,13 @@ func tkhToTFObjectDSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDSRecurse + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDSRecurse } else { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesDS + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9065,36 +4296,34 @@ func tkhToTFObjectDSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh diags.Append(d...) obj["audit"] = val } - { - val, d := tkhToTFObjectDSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectDSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultRecoveryAttrTypesDSRecurse + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDSRecurse } else { - attrs = vaultDeletedVaultRecoveryAttrTypesDS + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetTargetGroup()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccount(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["target_group"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -9102,13 +4331,13 @@ func tkhToTFObjectDSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.Vaul return objVal, diags } -func tkhToTFObjectDSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultMoveVaultRecordAttrTypesDSRecurse + attrs = serviceaccountServiceAccountPrimerAttrTypesDSRecurse } else { - attrs = vaultMoveVaultRecordAttrTypesDS + attrs = serviceaccountServiceAccountPrimerAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -9116,20 +4345,62 @@ func tkhToTFObjectDSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMove obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["account"] = val + obj["links"] = val } - obj["action"] = stringerToTF(tkh.GetAction()) { - val, d := tkhToTFObjectDSGroupGroupPrimer(recurse, tkh.GetGroup()) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["group"] = val + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectDSProvisioningProvisionedSystemPrimer(recurse, tkh.GetSystem()) + diags.Append(d...) + obj["system"] = val + } + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectDSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDSRecurse + } else { + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesDS } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectDSServiceaccountServiceAccountPrimer(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["share_duration"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -9137,22 +4408,35 @@ func tkhToTFObjectDSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMove return objVal, diags } -func tkhToTFObjectDSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectDSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesDSRecurse + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDSRecurse } else { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesDS + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesDS } if tkh == nil { return types.ObjectNull(attrs), diags } - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectDSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = getItemsAttr(val, attrs["groups"]) + } + { + val, d := tkhToTFObjectDSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags @@ -9321,35 +4605,6 @@ func tkhToTFObjectDSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRec return objVal, diags } -func tkhToTFObjectDSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordLinkableWrapperAttrTypesDSRecurse - } else { - attrs = vaultVaultRecordLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -9559,72 +4814,6 @@ func tkhToTFObjectDSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm return objVal, diags } -func tkhToTFObjectDSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecoveryAttrTypesDSRecurse - } else { - attrs = vaultVaultRecoveryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuthAccountPrimer(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockAttrTypesDSRecurse - } else { - attrs = vaultVaultUnlockAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockResponseAttrTypesDSRecurse - } else { - attrs = vaultVaultUnlockResponseAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) - obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -9728,117 +4917,6 @@ func tkhToTFObjectDSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhooka return objVal, diags } -func tkhToTFObjectDSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryAttrTypesDSRecurse - } else { - attrs = webhookWebhookDeliveryAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["additional"] = types.ListNull(types.StringType) - { - val, d := tkhToTFObjectDSWebhookWebhookPush(false, tkh.GetPayload()) - diags.Append(d...) - obj["payload"] = val - } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDSRecurse - } else { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectDSWebhookWebhookDelivery(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDSRecurse - } else { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -9868,128 +4946,6 @@ func tkhToTFObjectDSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel. return objVal, diags } -func tkhToTFObjectDSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookNameUuidAttrTypesDSRecurse - } else { - attrs = webhookWebhookNameUuidAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectDSLinkable(recurse, tkh.GetObject()) - diags.Append(d...) - obj["object"] = val - } - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectDSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookPushAttrTypesDSRecurse - } else { - attrs = webhookWebhookPushAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) - diags.Append(d...) - obj["by_party"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) - diags.Append(d...) - obj["group2"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) - diags.Append(d...) - obj["group_classification"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) - diags.Append(d...) - obj["modification_request"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - { - val, d := tkhToTFObjectDSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - obj["type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 51d6012..7a66bdc 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -35,44 +35,60 @@ func tkhToTFObjectRSAuditInfo(recurse bool, tkh keyhubmodel.AuditInfoable) (type return objVal, diags } -func tkhToTFObjectRSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = errorReportAttrTypesRSRecurse + attrs = generatedSecretAttrTypesRSRecurse } else { - attrs = errorReportAttrTypesRS + attrs = generatedSecretAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["application_error"] = types.StringPointerValue(tkh.GetApplicationError()) - { - val, d := tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse, tkh.GetApplicationErrorParameters()) - diags.Append(d...) - obj["application_error_parameters"] = val + obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) + obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) + obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = linkableAttrTypesRSRecurse + } else { + attrs = linkableAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags } - obj["code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetCode())) + + obj := make(map[string]attr.Value) { - elemType := attrs["error_details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetErrorDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["error_details"] = val + obj["links"] = val } - obj["exception"] = types.StringPointerValue(tkh.GetException()) - obj["message"] = types.StringPointerValue(tkh.GetMessage()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) { - elemType := attrs["stacktrace"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStacktrace(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["stacktrace"] = val + obj["permissions"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -80,13 +96,13 @@ func tkhToTFObjectRSErrorReport(recurse bool, tkh keyhubmodel.ErrorReportable) ( return objVal, diags } -func tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse bool, tkh keyhubmodel.ErrorReport_applicationErrorParametersable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = errorReport_applicationErrorParametersAttrTypesRSRecurse + attrs = nonLinkableAttrTypesRSRecurse } else { - attrs = errorReport_applicationErrorParametersAttrTypesRS + attrs = nonLinkableAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -99,35 +115,36 @@ func tkhToTFObjectRSErrorReport_applicationErrorParameters(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectRSGeneratedSecret(recurse bool, tkh keyhubmodel.GeneratedSecretable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = generatedSecretAttrTypesRSRecurse + attrs = restLinkAttrTypesRSRecurse } else { - attrs = generatedSecretAttrTypesRS + attrs = restLinkAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["generated_secret"] = types.StringPointerValue(tkh.GetGeneratedSecret()) - obj["old_secret"] = types.StringPointerValue(tkh.GetOldSecret()) - obj["regenerate"] = types.BoolPointerValue(tkh.GetRegenerate()) + obj["href"] = types.StringPointerValue(tkh.GetHref()) + obj["id"] = types.Int64PointerValue(tkh.GetId()) + obj["rel"] = types.StringPointerValue(tkh.GetRel()) + obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = linkableAttrTypesRSRecurse + attrs = authAccountPrimerAttrTypesRSRecurse } else { - attrs = linkableAttrTypesRS + attrs = authAccountPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -154,47 +171,47 @@ func tkhToTFObjectRSLinkable(recurse bool, tkh keyhubmodel.Linkableable) (types. diags.Append(d...) obj["permissions"] = val } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["validity"] = stringerToTF(tkh.GetValidity()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSNonLinkable(recurse bool, tkh keyhubmodel.NonLinkableable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = nonLinkableAttrTypesRSRecurse + attrs = authPermissionAttrTypesRSRecurse } else { - attrs = nonLinkableAttrTypesRS + attrs = authPermissionAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = restLinkAttrTypesRSRecurse - } else { - attrs = restLinkAttrTypesRS + obj["full"] = types.StringPointerValue(tkh.GetFull()) + { + elemType := attrs["instances"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["instances"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["operations"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["operations"] = val } - - obj := make(map[string]attr.Value) - obj["href"] = types.StringPointerValue(tkh.GetHref()) - obj["id"] = types.Int64PointerValue(tkh.GetId()) - obj["rel"] = types.StringPointerValue(tkh.GetRel()) obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) @@ -202,34 +219,68 @@ func tkhToTFObjectRSRestLink(recurse bool, tkh keyhubmodel.RestLinkable) (types. return objVal, diags } -func tkhToTFObjectRSSegmentCount(recurse bool, tkh keyhubmodel.SegmentCountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = segmentCountAttrTypesRSRecurse + attrs = certificateCertificatePrimerAttrTypesRSRecurse } else { - attrs = segmentCountAttrTypesRS + attrs = certificateCertificatePrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["count"] = types.Int64PointerValue(tkh.GetCount()) - obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["alias"] = types.StringPointerValue(tkh.GetAlias()) + obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + { + elemType := attrs["certificate_data"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["certificate_data"] = val + } + obj["expiration"] = timePointerToTF(tkh.GetExpiration()) + obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) + obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) + obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) + obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = accountVaultVaultRecordAttrTypesRSRecurse + attrs = clientApplicationVaultVaultRecordAttrTypesRSRecurse } else { - attrs = accountVaultVaultRecordAttrTypesRS + attrs = clientApplicationVaultVaultRecordAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -243,7 +294,7 @@ func tkhToTFObjectRSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultV maps.Copy(obj, val.Attributes()) } } - obj["account_uuid"] = types.StringNull() + obj["client_application_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -288,13 +339,13 @@ func tkhToTFObjectRSAccountVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultV return objVal, diags } -func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditAuditRecordAttrTypesRSRecurse + attrs = clientClientApplicationAttrTypesRSRecurse } else { - attrs = auditAuditRecordAttrTypesRS + attrs = clientClientApplicationAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -303,7 +354,7 @@ func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSAuditAuditRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -328,53 +379,39 @@ func tkhToTFObjectRSAuditAuditRecord(recurse bool, tkh keyhubmodel.AuditAuditRec diags.Append(d...) obj["permissions"] = val } - obj["type"] = stringerToTF(tkh.GetAuditAuditRecordType()) - obj["date_time"] = timePointerToTF(tkh.GetDateTime()) - obj["on_account"] = types.StringPointerValue(tkh.GetOnAccount()) - obj["on_certificate"] = types.StringPointerValue(tkh.GetOnCertificate()) - obj["on_client"] = types.StringPointerValue(tkh.GetOnClient()) - obj["on_directory"] = types.StringPointerValue(tkh.GetOnDirectory()) - obj["on_group"] = types.StringPointerValue(tkh.GetOnGroup()) - obj["on_group2"] = types.StringPointerValue(tkh.GetOnGroup2()) - obj["on_group_classification"] = types.StringPointerValue(tkh.GetOnGroupClassification()) - obj["on_organizational_unit"] = types.StringPointerValue(tkh.GetOnOrganizationalUnit()) - obj["on_service_account"] = types.StringPointerValue(tkh.GetOnServiceAccount()) - obj["on_system"] = types.StringPointerValue(tkh.GetOnSystem()) - obj["on_vault_record"] = types.StringPointerValue(tkh.GetOnVaultRecord()) - obj["on_webhook"] = types.StringPointerValue(tkh.GetOnWebhook()) - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["performed_by"] = types.StringPointerValue(tkh.GetPerformedBy()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmodel.AuditAuditRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = auditAuditRecordLinkableWrapperAttrTypesRSRecurse - } else { - attrs = auditAuditRecordLinkableWrapperAttrTypesRS + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) + }) + diags.Append(d...) + obj["scopes"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) + { + tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) + val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) + diags.Append(d...) + obj["ldap_client"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuditAuditRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuditAuditRecord(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ClientOAuth2Clientable) + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkhCast) diags.Append(d...) - obj["items"] = val + obj["o_auth2_client"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) + val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) + diags.Append(d...) + obj["saml2_client"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -382,13 +419,13 @@ func tkhToTFObjectRSAuditAuditRecordLinkableWrapper(recurse bool, tkh keyhubmode return objVal, diags } -func tkhToTFObjectRSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubmodel.AuditAuditRecord_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = auditAuditRecord_additionalObjectsAttrTypesRSRecurse + attrs = clientClientApplicationLinkableWrapperAttrTypesRSRecurse } else { - attrs = auditAuditRecord_additionalObjectsAttrTypesRS + attrs = clientClientApplicationLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -396,9 +433,14 @@ func tkhToTFObjectRSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubm obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientClientApplication(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["audit"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -406,26 +448,19 @@ func tkhToTFObjectRSAuditAuditRecord_additionalObjects(recurse bool, tkh keyhubm return objVal, diags } -func tkhToTFObjectRSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountAttrTypesRSRecurse + attrs = clientClientApplicationPrimerAttrTypesRSRecurse } else { - attrs = authAccountAttrTypesRS + attrs = clientClientApplicationPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSAuthAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -446,100 +481,102 @@ func tkhToTFObjectRSAuthAccount(recurse bool, tkh keyhubmodel.AuthAccountable) ( diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(false, tkh) - diags.Append(d...) - return val + elemType := attrs["scopes"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh) }) diags.Append(d...) - obj["account_permissions"] = val + obj["scopes"] = val } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_password_change_required"] = types.BoolPointerValue(tkh.GetDirectoryPasswordChangeRequired()) - obj["directory_rotating_password"] = stringerToTF(tkh.GetDirectoryRotatingPassword()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["email"] = types.StringPointerValue(tkh.GetEmail()) - obj["id_in_directory"] = types.StringPointerValue(tkh.GetIdInDirectory()) - obj["key_hub_password_change_required"] = types.BoolPointerValue(tkh.GetKeyHubPasswordChangeRequired()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["token_password_enabled"] = types.BoolPointerValue(tkh.GetTokenPasswordEnabled()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["valid_in_directory"] = types.BoolPointerValue(tkh.GetValidInDirectory()) + obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountBulkUpdate(recurse bool, tkh keyhubmodel.AuthAccountBulkUpdateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountBulkUpdateAttrTypesRSRecurse + attrs = clientClientApplication_additionalObjectsAttrTypesRSRecurse } else { - attrs = authAccountBulkUpdateAttrTypesRS + attrs = clientClientApplication_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["exclusive_selection"] = types.BoolPointerValue(tkh.GetExclusiveSelection()) { - elemType := attrs["selected_accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSelectedAccounts(), func(tkh int64, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(tkh) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["selected_accounts"] = val + obj["audit"] = val } + obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) + { + val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) + diags.Append(d...) + obj["groupclients"] = getItemsAttr(val, attrs["groupclients"]) + } + { + val, d := tkhToTFObjectRSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = getItemsAttr(val, attrs["groups"]) + } + { + val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val + } + { + val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) + diags.Append(d...) + obj["tile"] = val + } + obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountChangeLocale(recurse bool, tkh keyhubmodel.AuthAccountChangeLocaleable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountChangeLocaleAttrTypesRSRecurse + attrs = clientLdapClientAttrTypesRSRecurse } else { - attrs = authAccountChangeLocaleAttrTypesRS + attrs = clientLdapClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["locale"] = types.StringPointerValue(tkh.GetLocale()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) + obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountLinkableWrapperAttrTypesRSRecurse + attrs = clientOAuth2ClientAttrTypesRSRecurse } else { - attrs = authAccountLinkableWrapperAttrTypesRS + attrs = clientOAuth2ClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -547,34 +584,56 @@ func tkhToTFObjectRSAuthAccountLinkableWrapper(recurse bool, tkh keyhubmodel.Aut obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthAccount(recurse, tkh) + elemType := attrs["account_permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["account_permissions"] = val + } + { + val, d := tkhToTFObjectRSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val } + obj["callback_uri"] = types.StringPointerValue(tkh.GetCallbackURI()) + obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) + obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) + obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) + obj["initiate_login_uri"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) + obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) + obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) + obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) + obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) + obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountPrimerAttrTypesRSRecurse + attrs = clientOAuth2ClientPermissionAttrTypesRSRecurse } else { - attrs = authAccountPrimerAttrTypesRS + attrs = clientOAuth2ClientPermissionAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -595,151 +654,148 @@ func tkhToTFObjectRSAuthAccountPrimer(recurse bool, tkh keyhubmodel.AuthAccountP diags.Append(d...) obj["permissions"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["validity"] = stringerToTF(tkh.GetValidity()) + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountRecoveryStatus(recurse bool, tkh keyhubmodel.AuthAccountRecoveryStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountRecoveryStatusAttrTypesRSRecurse + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse } else { - attrs = authAccountRecoveryStatusAttrTypesRS + attrs = clientOAuth2ClientPermissionWithClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["pending2fa_recovery_request"] = types.BoolPointerValue(tkh.GetPending2FARecoveryRequest()) - obj["pending_password_recovery_request"] = types.BoolPointerValue(tkh.GetPendingPasswordRecoveryRequest()) + if recurse { + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) + obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) + obj["value"] = stringerToTF(tkh.GetValue()) + { + val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountSettings(recurse bool, tkh keyhubmodel.AuthAccountSettingsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountSettingsAttrTypesRSRecurse + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse } else { - attrs = authAccountSettingsAttrTypesRS + attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["default_organizational_unit_uuid"] = withUuidToTF(tkh.GetDefaultOrganizationalUnit()) - obj["directory_name"] = types.StringPointerValue(tkh.GetDirectoryName()) - obj["directory_type"] = stringerToTF(tkh.GetDirectoryType()) - obj["in_groups"] = types.BoolPointerValue(tkh.GetInGroups()) - obj["in_multiple_organizational_units"] = types.BoolPointerValue(tkh.GetInMultipleOrganizationalUnits()) - obj["key_hub_admin"] = types.BoolPointerValue(tkh.GetKeyHubAdmin()) - obj["multiple_organizational_units_exist"] = types.BoolPointerValue(tkh.GetMultipleOrganizationalUnitsExist()) - obj["password_mode"] = stringerToTF(tkh.GetPasswordMode()) - obj["ssh_public_key"] = types.StringPointerValue(tkh.GetSshPublicKey()) - obj["two_factor_authentication"] = stringerToTF(tkh.GetTwoFactorAuthentication()) - obj["use_token_password"] = types.BoolPointerValue(tkh.GetUseTokenPassword()) - obj["vault_status"] = stringerToTF(tkh.GetVaultStatus()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountStatus(recurse bool, tkh keyhubmodel.AuthAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountStatusAttrTypesRSRecurse + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse } else { - attrs = authAccountStatusAttrTypesRS + attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - obj["can_request_groups"] = types.BoolPointerValue(tkh.GetCanRequestGroups()) - obj["decline_recovery_requests"] = types.BoolPointerValue(tkh.GetDeclineRecoveryRequests()) - obj["license_role"] = stringerToTF(tkh.GetLicenseRole()) - obj["reregistration_required"] = types.BoolPointerValue(tkh.GetReregistrationRequired()) - obj["two_factor_authentication_enabled"] = types.BoolPointerValue(tkh.GetTwoFactorAuthenticationEnabled()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccount_additionalObjects(recurse bool, tkh keyhubmodel.AuthAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccount_additionalObjectsAttrTypesRSRecurse + attrs = clientOAuth2Client_attributesAttrTypesRSRecurse } else { - attrs = authAccount_additionalObjectsAttrTypesRS + attrs = clientOAuth2Client_attributesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["active_login"] = types.BoolPointerValue(tkh.GetActiveLogin()) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = getItemsAttr(val, attrs["groups"]) - } - { - val, d := tkhToTFObjectRSAuthAccountRecoveryStatus(recurse, tkh.GetPendingRecoveryRequests()) - diags.Append(d...) - obj["pending_recovery_requests"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountSettings(recurse, tkh.GetSettings()) - diags.Append(d...) - obj["settings"] = val - } - { - val, d := tkhToTFObjectRSAuthStoredAccountAttributes(recurse, tkh.GetStoredAttributes()) - diags.Append(d...) - obj["stored_attributes"] = val - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStatsAttrTypesRSRecurse + attrs = clientSaml2ClientAttrTypesRSRecurse } else { - attrs = authAccountsAuditStatsAttrTypesRS + attrs = clientSaml2ClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -747,33 +803,26 @@ func tkhToTFObjectRSAuthAccountsAuditStats(recurse bool, tkh keyhubmodel.AuthAcc obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse, tkh.GetDirectoryStats()) - diags.Append(d...) - obj["directory_stats"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse, tkh.GetTwoFAStats()) - diags.Append(d...) - obj["two_fa_stats"] = val - } - { - val, d := tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse, tkh.GetValidityStats()) + val, d := tkhToTFObjectRSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) diags.Append(d...) - obj["validity_stats"] = val + obj["attributes"] = val } + obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) + obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) + obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_directoryStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_directoryStatsAttrTypesRSRecurse + attrs = clientSaml2Client_attributesAttrTypesRSRecurse } else { - attrs = authAccountsAuditStats_directoryStatsAttrTypesRS + attrs = clientSaml2Client_attributesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -786,127 +835,238 @@ func tkhToTFObjectRSAuthAccountsAuditStats_directoryStats(recurse bool, tkh keyh return objVal, diags } -func tkhToTFObjectRSAuthAccountsAuditStats_twoFAStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_twoFAStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesRSRecurse + attrs = directoryAccountDirectoryAttrTypesRSRecurse } else { - attrs = authAccountsAuditStats_twoFAStatsAttrTypesRS + attrs = directoryAccountDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) + obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) + obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) + obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) + obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) + val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + diags.Append(d...) + obj["internal_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) + val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["l_d_a_p_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) + val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + diags.Append(d...) + obj["maintenance_directory"] = val + } + { + tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) + val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["o_id_c_directory"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthAccountsAuditStats_validityStats(recurse bool, tkh keyhubmodel.AuthAccountsAuditStats_validityStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authAccountsAuditStats_validityStatsAttrTypesRSRecurse + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse } else { - attrs = authAccountsAuditStats_validityStatsAttrTypesRS + attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSDirectoryAccountDirectory(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountAttrTypesRSRecurse + attrs = directoryAccountDirectoryPrimerAttrTypesRSRecurse } else { - attrs = authInternalAccountAttrTypesRS + attrs = directoryAccountDirectoryPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["uuid"] = withUuidToTF(tkh) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthInternalAccountLinkableWrapper(recurse bool, tkh keyhubmodel.AuthInternalAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountLinkableWrapperAttrTypesRSRecurse + attrs = directoryAccountDirectoryStatusReportAttrTypesRSRecurse } else { - attrs = authInternalAccountLinkableWrapperAttrTypesRS + attrs = directoryAccountDirectoryStatusReportAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.AuthInternalAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthInternalAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) + obj["reason"] = types.StringPointerValue(tkh.GetReason()) + obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthInternalAccountStatusObject(recurse bool, tkh keyhubmodel.AuthInternalAccountStatusObjectable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authInternalAccountStatusObjectAttrTypesRSRecurse + attrs = directoryAccountDirectorySummaryAttrTypesRSRecurse } else { - attrs = authInternalAccountStatusObjectAttrTypesRS + attrs = directoryAccountDirectorySummaryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["status"] = stringerToTF(tkh.GetStatus()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val + } + obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMoveInternalAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authMoveInternalAccountAttrTypesRSRecurse + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse } else { - attrs = authMoveInternalAccountAttrTypesRS + attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -914,9 +1074,14 @@ func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMo obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSDirectoryInternalDirectory(recurse, tkh.GetInternalDirectory()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["internal_directory"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -924,170 +1089,149 @@ func tkhToTFObjectRSAuthMoveInternalAccount(recurse bool, tkh keyhubmodel.AuthMo return objVal, diags } -func tkhToTFObjectRSAuthPermission(recurse bool, tkh keyhubmodel.AuthPermissionable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authPermissionAttrTypesRSRecurse + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse } else { - attrs = authPermissionAttrTypesRS + attrs = directoryAccountDirectory_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["full"] = types.StringPointerValue(tkh.GetFull()) { - elemType := attrs["instances"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetInstances(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["instances"] = val + obj["audit"] = val } { - elemType := attrs["operations"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetOperations(), func(tkh keyhubmodel.AuthPermittedOperation, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - obj["operations"] = val + obj["markers"] = val + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) + diags.Append(d...) + obj["status"] = val } - obj["type_escaped"] = types.StringPointerValue(tkh.GetTypeEscaped()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthStoredAccountAttribute(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributeable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authStoredAccountAttributeAttrTypesRSRecurse + attrs = directoryInternalDirectoryAttrTypesRSRecurse } else { - attrs = authStoredAccountAttributeAttrTypesRS + attrs = directoryInternalDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["value"] = types.StringPointerValue(tkh.GetValue()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSAuthStoredAccountAttributes(recurse bool, tkh keyhubmodel.AuthStoredAccountAttributesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = authStoredAccountAttributesAttrTypesRSRecurse + attrs = directoryLDAPDirectoryAttrTypesRSRecurse } else { - attrs = authStoredAccountAttributesAttrTypesRS + attrs = directoryLDAPDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["attributes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAttributes(), func(tkh keyhubmodel.AuthStoredAccountAttributeable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthStoredAccountAttribute(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["attributes"] = val - } + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["dialect"] = stringerToTF(tkh.GetDialect()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["search_bind_dn"] = types.StringPointerValue(tkh.GetSearchBindDN()) + obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) + obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSCertificateCertificate(recurse bool, tkh keyhubmodel.CertificateCertificateable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificateAttrTypesRSRecurse + attrs = directoryMaintenanceDirectoryAttrTypesRSRecurse } else { - attrs = certificateCertificateAttrTypesRS + attrs = directoryMaintenanceDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type if recurse { - { - val, d := tkhToTFObjectRSCertificateCertificate_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) - { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["certificate_data"] = val + attrs = directoryOIDCDirectoryAttrTypesRSRecurse + } else { + attrs = directoryOIDCDirectoryAttrTypesRS } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - { - elemType := attrs["key_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetKeyData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["key_data"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + obj := make(map[string]attr.Value) + obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) + obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) + obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) + obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) + obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) + obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) + obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) + obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) + objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSCertificateCertificateLinkableWrapper(recurse bool, tkh keyhubmodel.CertificateCertificateLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificateLinkableWrapperAttrTypesRSRecurse + attrs = groupAuthorizedGroupsWrapperAttrTypesRSRecurse } else { - attrs = certificateCertificateLinkableWrapperAttrTypesRS + attrs = groupAuthorizedGroupsWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1096,33 +1240,41 @@ func tkhToTFObjectRSCertificateCertificateLinkableWrapper(recurse bool, tkh keyh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.CertificateCertificateable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) obj["items"] = val } + obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.CertificateCertificatePrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificatePrimerAttrTypesRSRecurse + attrs = groupGroupAttrTypesRSRecurse } else { - attrs = certificateCertificatePrimerAttrTypesRS + attrs = groupGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -1143,124 +1295,143 @@ func tkhToTFObjectRSCertificateCertificatePrimer(recurse bool, tkh keyhubmodel.C diags.Append(d...) obj["permissions"] = val } - obj["alias"] = types.StringPointerValue(tkh.GetAlias()) - obj["type"] = stringerToTF(tkh.GetCertificateCertificatePrimerType()) + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) { - elemType := attrs["certificate_data"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCertificateData(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) + val, d := tkhToTFObjectRSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) diags.Append(d...) - obj["certificate_data"] = val + obj["audit_config"] = val } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - obj["fingerprint_sha1"] = types.StringPointerValue(tkh.GetFingerprintSha1()) - obj["fingerprint_sha256"] = types.StringPointerValue(tkh.GetFingerprintSha256()) - obj["global"] = types.BoolPointerValue(tkh.GetGlobal()) - obj["subject_dn"] = types.StringPointerValue(tkh.GetSubjectDN()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) + obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) + obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) + obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) + obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) + obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) + { + elemType := attrs["authorizing_group_types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["authorizing_group_types"] = val + } + obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) + obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) + obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) + obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) + obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) + obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) + obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) + obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSCertificateCertificate_additionalObjects(recurse bool, tkh keyhubmodel.CertificateCertificate_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = certificateCertificate_additionalObjectsAttrTypesRSRecurse + attrs = groupGroupAccountAttrTypesRSRecurse } else { - attrs = certificateCertificate_additionalObjectsAttrTypesRS + attrs = groupGroupAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val + if recurse { + { + val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } + obj["uuid"] = withUuidToTF(tkh) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) + obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientApplicationVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientApplicationVaultVaultRecordAttrTypesRSRecurse + attrs = groupGroupAccountLinkableWrapperAttrTypesRSRecurse } else { - attrs = clientApplicationVaultVaultRecordAttrTypesRS + attrs = groupGroupAccountLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["client_application_uuid"] = types.StringNull() { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["links"] = val + obj["items"] = val } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupAccount_additionalObjectsAttrTypesRSRecurse + } else { + attrs = groupGroupAccount_additionalObjectsAttrTypesRS } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["types"] = val + obj["audit"] = val } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.ClientClientApplicationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationAttrTypesRSRecurse + attrs = groupGroupAuditAttrTypesRSRecurse } else { - attrs = clientClientApplicationAttrTypesRS + attrs = groupGroupAuditAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1269,7 +1440,7 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSClientClientApplication_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -1294,53 +1465,39 @@ func tkhToTFObjectRSClientClientApplication(recurse bool, tkh keyhubmodel.Client diags.Append(d...) obj["permissions"] = val } - obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["accounts"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["scopes"] = val - } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["last_modified_at"] = timePointerToTF(tkh.GetLastModifiedAt()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - { - tkhCast, _ := tkh.(keyhubmodel.ClientOAuth2Clientable) - val, d := tkhToTFObjectRSClientOAuth2Client(false, tkhCast) - diags.Append(d...) - obj["o_auth2_client"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ClientLdapClientable) - val, d := tkhToTFObjectRSClientLdapClient(false, tkhCast) - diags.Append(d...) - obj["ldap_client"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ClientSaml2Clientable) - val, d := tkhToTFObjectRSClientSaml2Client(false, tkhCast) - diags.Append(d...) - obj["saml2_client"] = val + obj["accounts"] = val } + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) + obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) + obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) + obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) + obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) + obj["status"] = stringerToTF(tkh.GetStatus()) + obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) + obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse bool, tkh keyhubmodel.ClientClientApplicationLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationLinkableWrapperAttrTypesRSRecurse + attrs = groupGroupAuditAccountAttrTypesRSRecurse } else { - attrs = clientClientApplicationLinkableWrapperAttrTypesRS + attrs = groupGroupAuditAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1348,28 +1505,50 @@ func tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientClientApplicationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSClientClientApplication(recurse, tkh) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) diags.Append(d...) return val }) diags.Append(d...) - obj["items"] = val + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } + obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) + obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) + obj["action"] = stringerToTF(tkh.GetAction()) + obj["comment"] = types.StringPointerValue(tkh.GetComment()) + obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["last_active"] = timePointerToTF(tkh.GetLastActive()) + obj["last_used"] = stringerToTF(tkh.GetLastUsed()) + obj["nested"] = types.BoolPointerValue(tkh.GetNested()) + obj["rights"] = stringerToTF(tkh.GetRights()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel.ClientClientApplicationPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplicationPrimerAttrTypesRSRecurse + attrs = groupGroupAuditConfigAttrTypesRSRecurse } else { - attrs = clientClientApplicationPrimerAttrTypesRS + attrs = groupGroupAuditConfigAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1396,32 +1575,27 @@ func tkhToTFObjectRSClientClientApplicationPrimer(recurse bool, tkh keyhubmodel. diags.Append(d...) obj["permissions"] = val } - obj["type"] = stringerToTF(tkh.GetClientClientApplicationPrimerType()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["name"] = types.StringPointerValue(tkh.GetName()) { - elemType := attrs["scopes"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetScopes(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) + elemType := attrs["months"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) }) diags.Append(d...) - obj["scopes"] = val + obj["months"] = val } - obj["sso_application"] = types.BoolPointerValue(tkh.GetSsoApplication()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh keyhubmodel.ClientClientApplication_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientClientApplication_additionalObjectsAttrTypesRSRecurse + attrs = groupGroupAuditLinkableWrapperAttrTypesRSRecurse } else { - attrs = clientClientApplication_additionalObjectsAttrTypesRS + attrs = groupGroupAuditLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1429,126 +1603,85 @@ func tkhToTFObjectRSClientClientApplication_additionalObjects(recurse bool, tkh obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - obj["delete_tile"] = types.BoolPointerValue(tkh.GetDeleteTile()) - { - val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetGroupclients()) - diags.Append(d...) - obj["groupclients"] = getItemsAttr(val, attrs["groupclients"]) - } - { - val, d := tkhToTFObjectRSGroupGroupLinkableWrapper(recurse, tkh.GetGroups()) - diags.Append(d...) - obj["groups"] = getItemsAttr(val, attrs["groups"]) - } - { - val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupAudit(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["secret"] = val + obj["items"] = val } - { - val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["vault_record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVaultRecordCount())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientLdapClient(recurse bool, tkh keyhubmodel.ClientLdapClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientLdapClientAttrTypesRSRecurse + attrs = groupGroupAudit_additionalObjectsAttrTypesRSRecurse } else { - attrs = clientLdapClientAttrTypesRS + attrs = groupGroupAudit_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDn()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) - obj["used_for_provisioning"] = types.BoolPointerValue(tkh.GetUsedForProvisioning()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth2Clientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientAttrTypesRSRecurse + attrs = groupGroupAuditingInfoAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientAttrTypesRS + attrs = groupGroupAuditingInfoAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - elemType := attrs["account_permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccountPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["account_permissions"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["callback_uri"] = types.StringPointerValue(tkh.GetCallbackURI()) - obj["confidential"] = types.BoolPointerValue(tkh.GetConfidential()) - obj["debug_mode"] = types.BoolPointerValue(tkh.GetDebugMode()) - obj["id_token_claims"] = types.StringPointerValue(tkh.GetIdTokenClaims()) - obj["initiate_login_uri"] = types.StringPointerValue(tkh.GetInitiateLoginURI()) - obj["resource_uris"] = types.StringPointerValue(tkh.GetResourceURIs()) - obj["share_secret_in_vault"] = types.BoolPointerValue(tkh.GetShareSecretInVault()) - obj["shared_secret_uuid"] = withUuidToTF(tkh.GetSharedSecret()) - obj["show_landing_page"] = types.BoolPointerValue(tkh.GetShowLandingPage()) - obj["use_client_credentials"] = types.BoolPointerValue(tkh.GetUseClientCredentials()) + obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) + obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) + obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) + obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) + obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) + obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) + obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) + obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionAttrTypesRSRecurse + attrs = groupGroupClassificationPrimerAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientPermissionAttrTypesRS + attrs = groupGroupClassificationPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -1569,51 +1702,21 @@ func tkhToTFObjectRSClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.C diags.Append(d...) obj["permissions"] = val } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientOAuth2ClientPermissionLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRSRecurse - } else { - attrs = clientOAuth2ClientPermissionLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesRSRecurse + attrs = groupGroupClientAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientPermissionWithClientAttrTypesRS + attrs = groupGroupClientAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1622,7 +1725,7 @@ func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -1647,27 +1750,24 @@ func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key diags.Append(d...) obj["permissions"] = val } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) - { - val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRSRecurse + attrs = groupGroupClientLinkableWrapperAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS + attrs = groupGroupClientLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1676,8 +1776,8 @@ func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurs obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ClientOAuth2ClientPermissionWithClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroupClient(recurse, tkh) diags.Append(d...) return val }) @@ -1690,13 +1790,13 @@ func tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurs return objVal, diags } -func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermission_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRSRecurse + attrs = groupGroupClient_additionalObjectsAttrTypesRSRecurse } else { - attrs = clientOAuth2ClientPermission_additionalObjectsAttrTypesRS + attrs = groupGroupClient_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1714,32 +1814,38 @@ func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, return objVal, diags } -func tkhToTFObjectRSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientOAuth2Client_attributesAttrTypesRSRecurse + attrs = groupGroupInfoAttrTypesRSRecurse } else { - attrs = clientOAuth2Client_attributesAttrTypesRS + attrs = groupGroupInfoAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) + obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) + obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) + obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) + obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) + obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = clientSaml2ClientAttrTypesRSRecurse + attrs = groupGroupLinkableWrapperAttrTypesRSRecurse } else { - attrs = clientSaml2ClientAttrTypesRS + attrs = groupGroupLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -1747,59 +1853,34 @@ func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["attributes"] = val - } - obj["metadata"] = types.StringPointerValue(tkh.GetMetadata()) - obj["metadata_url"] = types.StringPointerValue(tkh.GetMetadataUrl()) - obj["subject_format"] = stringerToTF(tkh.GetSubjectFormat()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesRSRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["items"] = val } - obj := make(map[string]attr.Value) - objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = deletedVaultHolderVaultVaultRecordAttrTypesRSRecurse + attrs = groupGroupPrimerAttrTypesRSRecurse } else { - attrs = deletedVaultHolderVaultVaultRecordAttrTypesRS + attrs = groupGroupPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["deleted_vault_holder_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -1820,219 +1901,212 @@ func tkhToTFObjectRSDeletedVaultHolderVaultVaultRecord(recurse bool, tkh keyhubm diags.Append(d...) obj["permissions"] = val } - obj["color"] = stringerToTF(tkh.GetColor()) + obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = groupGroupPrimerLinkableWrapperAttrTypesRSRecurse + } else { + attrs = groupGroupPrimerLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) - obj["types"] = val + obj["items"] = val } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectoryAttrTypesRSRecurse + attrs = groupGroup_additionalObjectsAttrTypesRSRecurse } else { - attrs = directoryAccountDirectoryAttrTypesRS + attrs = groupGroup_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) diags.Append(d...) - obj["links"] = val + obj["accounts"] = getItemsAttr(val, attrs["accounts"]) } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) diags.Append(d...) - obj["permissions"] = val + obj["administered_clients"] = getItemsAttr(val, attrs["administered_clients"]) } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["base_organizational_unit_uuid"] = withUuidToTF(tkh.GetBaseOrganizationalUnit()) - obj["default_directory"] = types.BoolPointerValue(tkh.GetDefaultDirectory()) - obj["helpdesk_group_uuid"] = withUuidToTF(tkh.GetHelpdeskGroup()) - obj["restrict2fa"] = types.BoolPointerValue(tkh.GetRestrict2fa()) - obj["rotating_password"] = stringerToTF(tkh.GetRotatingPassword()) - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) { - tkhCast, _ := tkh.(keyhubmodel.DirectoryOIDCDirectoryable) - val, d := tkhToTFObjectRSDirectoryOIDCDirectory(false, tkhCast) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) diags.Append(d...) - obj["o_id_c_directory"] = val + obj["administered_systems"] = getItemsAttr(val, attrs["administered_systems"]) } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryLDAPDirectoryable) - val, d := tkhToTFObjectRSDirectoryLDAPDirectory(false, tkhCast) + val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) diags.Append(d...) - obj["l_d_a_p_directory"] = val + obj["admins"] = getItemsAttr(val, attrs["admins"]) } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryMaintenanceDirectoryable) - val, d := tkhToTFObjectRSDirectoryMaintenanceDirectory(false, tkhCast) + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) - obj["maintenance_directory"] = val + obj["audit"] = val } { - tkhCast, _ := tkh.(keyhubmodel.DirectoryInternalDirectoryable) - val, d := tkhToTFObjectRSDirectoryInternalDirectory(false, tkhCast) + val, d := tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) diags.Append(d...) - obj["internal_directory"] = val + obj["authorized_groups"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryLinkableWrapperAttrTypesRS + { + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) + diags.Append(d...) + obj["client_permissions"] = getItemsAttr(val, attrs["client_permissions"]) } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) + diags.Append(d...) + obj["clients"] = getItemsAttr(val, attrs["clients"]) } - - obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectoryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSDirectoryAccountDirectory(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) diags.Append(d...) - obj["items"] = val + obj["content_administered_systems"] = getItemsAttr(val, attrs["content_administered_systems"]) } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectoryPrimer(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryPrimerAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryPrimerAttrTypesRS + { + val, d := tkhToTFObjectRSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) + diags.Append(d...) + obj["groupauditinginfo"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectRSGroupGroupInfo(recurse, tkh.GetGroupinfo()) + diags.Append(d...) + obj["groupinfo"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) diags.Append(d...) - obj["links"] = val + obj["helpdesk"] = getItemsAttr(val, attrs["helpdesk"]) } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - obj["permissions"] = val + obj["markers"] = val } - obj["account_validity_supported"] = types.BoolPointerValue(tkh.GetAccountValiditySupported()) - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectoryPrimerType()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectoryStatusReportAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectoryStatusReportAttrTypesRS + { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMyaccount()) + diags.Append(d...) + obj["myaccount"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) + diags.Append(d...) + obj["mydelegatedaccount"] = val + } + { + val, d := tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) + diags.Append(d...) + obj["nested_groups"] = getItemsAttr(val, attrs["nested_groups"]) + } + { + val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) + diags.Append(d...) + obj["owned_clients"] = getItemsAttr(val, attrs["owned_clients"]) + } + { + val, d := tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) + diags.Append(d...) + obj["owned_directories"] = getItemsAttr(val, attrs["owned_directories"]) + } + { + val, d := tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) + diags.Append(d...) + obj["owned_groups_on_system"] = val + } + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) + diags.Append(d...) + obj["owned_organizational_units"] = getItemsAttr(val, attrs["owned_organizational_units"]) + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) + diags.Append(d...) + obj["owned_systems"] = getItemsAttr(val, attrs["owned_systems"]) + } + { + val, d := tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) + diags.Append(d...) + obj["recent_audits"] = getItemsAttr(val, attrs["recent_audits"]) + } + obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) + } + { + val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = getItemsAttr(val, attrs["systems"]) + } + { + val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + diags.Append(d...) + obj["vault"] = val + } + { + val, d := tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) + diags.Append(d...) + obj["webhooks"] = getItemsAttr(val, attrs["webhooks"]) } - - obj := make(map[string]attr.Value) - obj["accounts"] = types.Int64PointerValue(tkh.GetAccounts()) - obj["reason"] = types.StringPointerValue(tkh.GetReason()) - obj["status"] = stringerToTF(tkh.GetStatus()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = directoryAccountDirectorySummaryAttrTypesRSRecurse + attrs = groupProvisioningGroupAttrTypesRSRecurse } else { - attrs = directoryAccountDirectorySummaryAttrTypesRS + attrs = groupProvisioningGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -2053,5023 +2127,209 @@ func tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse bool, tkh keyhubmod diags.Append(d...) obj["permissions"] = val } - obj["type"] = stringerToTF(tkh.GetDirectoryAccountDirectorySummaryType()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - obj["username_customizable"] = types.BoolPointerValue(tkh.GetUsernameCustomizable()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse bool, tkh keyhubmodel.DirectoryAccountDirectorySummaryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectorySummaryLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) + obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) + obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.DirectoryAccountDirectorySummaryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSDirectoryAccountDirectorySummary(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryAccountDirectory_additionalObjects(recurse bool, tkh keyhubmodel.DirectoryAccountDirectory_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesRSRecurse - } else { - attrs = directoryAccountDirectory_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectRSDirectoryAccountDirectoryStatusReport(recurse, tkh.GetStatus()) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryInternalDirectory(recurse bool, tkh keyhubmodel.DirectoryInternalDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryInternalDirectoryAttrTypesRSRecurse - } else { - attrs = directoryInternalDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryLDAPDirectory(recurse bool, tkh keyhubmodel.DirectoryLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryLDAPDirectoryAttrTypesRSRecurse - } else { - attrs = directoryLDAPDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["dialect"] = stringerToTF(tkh.GetDialect()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["password_recovery"] = stringerToTF(tkh.GetPasswordRecovery()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["search_bind_dn"] = types.StringPointerValue(tkh.GetSearchBindDN()) - obj["search_bind_password"] = types.StringPointerValue(tkh.GetSearchBindPassword()) - obj["search_filter"] = types.StringPointerValue(tkh.GetSearchFilter()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryMaintenanceDirectory(recurse bool, tkh keyhubmodel.DirectoryMaintenanceDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryMaintenanceDirectoryAttrTypesRSRecurse - } else { - attrs = directoryMaintenanceDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSDirectoryOIDCDirectory(recurse bool, tkh keyhubmodel.DirectoryOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = directoryOIDCDirectoryAttrTypesRSRecurse - } else { - attrs = directoryOIDCDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["acr_values"] = types.StringPointerValue(tkh.GetAcrValues()) - obj["attributes_to_store"] = types.StringPointerValue(tkh.GetAttributesToStore()) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["domain_restriction"] = types.StringPointerValue(tkh.GetDomainRestriction()) - obj["enforces2fa"] = types.BoolPointerValue(tkh.GetEnforces2fa()) - obj["fully_resolved_issuer"] = types.StringPointerValue(tkh.GetFullyResolvedIssuer()) - obj["issuer"] = types.StringPointerValue(tkh.GetIssuer()) - obj["logout_url"] = types.StringPointerValue(tkh.GetLogoutUrl()) - obj["send_login_hint"] = types.BoolPointerValue(tkh.GetSendLoginHint()) - obj["vendor_escaped"] = stringerToTF(tkh.GetVendorEscaped()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroupAttrTypesRSRecurse - } else { - attrs = groupAccountGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupAccountGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAccountGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupAccountGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse bool, tkh keyhubmodel.GroupAuthorizedGroupsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupAuthorizedGroupsWrapperAttrTypesRSRecurse - } else { - attrs = groupAuthorizedGroupsWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["group_count"] = types.Int64PointerValue(tkh.GetGroupCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroup(recurse bool, tkh keyhubmodel.GroupGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAttrTypesRSRecurse - } else { - attrs = groupGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["application_administration"] = types.BoolPointerValue(tkh.GetApplicationAdministration()) - { - val, d := tkhToTFObjectRSGroupGroupAuditConfig(false, tkh.GetAuditConfig()) - diags.Append(d...) - obj["audit_config"] = val - } - obj["audit_requested"] = types.BoolPointerValue(tkh.GetAuditRequested()) - obj["auditor"] = types.BoolPointerValue(tkh.GetAuditor()) - obj["authorizing_group_auditing_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupAuditing()) - obj["authorizing_group_delegation_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupDelegation()) - obj["authorizing_group_membership_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupMembership()) - obj["authorizing_group_provisioning_uuid"] = withUuidToTF(tkh.GetAuthorizingGroupProvisioning()) - { - elemType := attrs["authorizing_group_types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAuthorizingGroupTypes(), func(tkh keyhubmodel.RequestAuthorizingGroupType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["authorizing_group_types"] = val - } - obj["classification_uuid"] = withUuidToTF(tkh.GetClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["extended_access"] = stringerToTF(tkh.GetExtendedAccess()) - obj["hide_audit_trail"] = types.BoolPointerValue(tkh.GetHideAuditTrail()) - obj["nested_under_uuid"] = withUuidToTF(tkh.GetNestedUnder()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["private_group"] = types.BoolPointerValue(tkh.GetPrivateGroup()) - obj["record_trail"] = types.BoolPointerValue(tkh.GetRecordTrail()) - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["single_managed"] = types.BoolPointerValue(tkh.GetSingleManaged()) - obj["vault_recovery"] = stringerToTF(tkh.GetVaultRecovery()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountAttrTypesRSRecurse - } else { - attrs = groupGroupAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccountNesting(recurse bool, tkh keyhubmodel.GroupGroupAccountNestingable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountNestingAttrTypesRSRecurse - } else { - attrs = groupGroupAccountNestingAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["connected"] = types.BoolPointerValue(tkh.GetConnected()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccountStatus(recurse bool, tkh keyhubmodel.GroupGroupAccountStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccountStatusAttrTypesRSRecurse - } else { - attrs = groupGroupAccountStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAccount_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAdminMail(recurse bool, tkh keyhubmodel.GroupGroupAdminMailable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAdminMailAttrTypesRSRecurse - } else { - attrs = groupGroupAdminMailAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["body"] = types.StringPointerValue(tkh.GetBody()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAttrTypesRSRecurse - } else { - attrs = groupGroupAuditAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["accounts"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditAccount(recurse bool, tkh keyhubmodel.GroupGroupAuditAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditAccountAttrTypesRSRecurse - } else { - attrs = groupGroupAuditAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_uuid"] = types.StringPointerValue(tkh.GetAccountUuid()) - obj["account_valid"] = types.BoolPointerValue(tkh.GetAccountValid()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_active"] = timePointerToTF(tkh.GetLastActive()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditConfig(recurse bool, tkh keyhubmodel.GroupGroupAuditConfigable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditConfigAttrTypesRSRecurse - } else { - attrs = groupGroupAuditConfigAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["months"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupAuditLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupAuditLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupAuditable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAudit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAudit_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupAudit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAudit_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupAudit_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupAuditingInfo(recurse bool, tkh keyhubmodel.GroupGroupAuditingInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupAuditingInfoAttrTypesRSRecurse - } else { - attrs = groupGroupAuditingInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audit_due_date"] = stringerToTF(tkh.GetAuditDueDate()) - obj["last_audit_date"] = stringerToTF(tkh.GetLastAuditDate()) - obj["nr_accounts"] = types.Int64PointerValue(tkh.GetNrAccounts()) - obj["nr_disabled_accounts"] = types.Int64PointerValue(tkh.GetNrDisabledAccounts()) - obj["nr_disabled_managers"] = types.Int64PointerValue(tkh.GetNrDisabledManagers()) - obj["nr_expired_vault_records"] = types.Int64PointerValue(tkh.GetNrExpiredVaultRecords()) - obj["nr_managers"] = types.Int64PointerValue(tkh.GetNrManagers()) - obj["nr_vault_records_with_end_date"] = types.Int64PointerValue(tkh.GetNrVaultRecordsWithEndDate()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassification(recurse bool, tkh keyhubmodel.GroupGroupClassificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupClassification_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["authorizing_group_auditing_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupAuditingRequired()) - obj["authorizing_group_delegation_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupDelegationRequired()) - obj["authorizing_group_membership_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupMembershipRequired()) - obj["authorizing_group_provisioning_required"] = types.BoolPointerValue(tkh.GetAuthorizingGroupProvisioningRequired()) - obj["default_classification"] = types.BoolPointerValue(tkh.GetDefaultClassification()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["maximum_audit_interval"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMaximumAuditInterval())) - obj["minimum_nr_managers"] = types.Int64PointerValue(int32PToInt64P(tkh.GetMinimumNrManagers())) - obj["record_trail_required"] = types.BoolPointerValue(tkh.GetRecordTrailRequired()) - { - elemType := attrs["required_months"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetRequiredMonths(), func(tkh keyhubmodel.Month, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["required_months"] = val - } - obj["rotating_password_required"] = types.BoolPointerValue(tkh.GetRotatingPasswordRequired()) - obj["vault_requires_activation"] = types.BoolPointerValue(tkh.GetVaultRequiresActivation()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationInfo(recurse bool, tkh keyhubmodel.GroupGroupClassificationInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationInfoAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_groups"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrGroups())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClassificationLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationPrimer(recurse bool, tkh keyhubmodel.GroupGroupClassificationPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationPrimerAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassificationUpdate(recurse bool, tkh keyhubmodel.GroupGroupClassificationUpdateable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassificationUpdateAttrTypesRSRecurse - } else { - attrs = groupGroupClassificationUpdateAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["classificaton_uuid"] = withUuidToTF(tkh.GetClassificaton()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClassification_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClassification_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClassification_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupClassification_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupClassificationInfo(recurse, tkh.GetInfo()) - diags.Append(d...) - obj["info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClient(recurse bool, tkh keyhubmodel.GroupGroupClientable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientAttrTypesRSRecurse - } else { - attrs = groupGroupClientAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupClient_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["client_uuid"] = withUuidToTF(tkh.GetClient()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupClientLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClientLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupClientLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupClientable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupClient(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupClient_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupClient_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupClient_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupClient_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupFolder(recurse bool, tkh keyhubmodel.GroupGroupFolderable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderAttrTypesRSRecurse - } else { - attrs = groupGroupFolderAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupFolder_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupFolderLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupFolderLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolderLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupFolderLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupFolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupFolder_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroupFolder_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupFolder_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroupFolder_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupInfo(recurse bool, tkh keyhubmodel.GroupGroupInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupInfoAttrTypesRSRecurse - } else { - attrs = groupGroupInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nr_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccounts())) - obj["nr_accounts_with_vault"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAccountsWithVault())) - obj["nr_audits"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrAudits())) - obj["nr_clients"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrClients())) - obj["nr_provisioned_systems"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrProvisionedSystems())) - obj["nr_vault_records"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNrVaultRecords())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupPrimer(recurse bool, tkh keyhubmodel.GroupGroupPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerAttrTypesRSRecurse - } else { - attrs = groupGroupPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["admin"] = types.BoolPointerValue(tkh.GetAdmin()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupSegmentedLinkableWrapper(recurse bool, tkh keyhubmodel.GroupGroupSegmentedLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupGroupSegmentedLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - { - elemType := attrs["segments"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSegments(), func(tkh keyhubmodel.SegmentCountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSSegmentCount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["segments"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAccounts()) - diags.Append(d...) - obj["accounts"] = getItemsAttr(val, attrs["accounts"]) - } - { - val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetAdministeredClients()) - diags.Append(d...) - obj["administered_clients"] = getItemsAttr(val, attrs["administered_clients"]) - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetAdministeredSystems()) - diags.Append(d...) - obj["administered_systems"] = getItemsAttr(val, attrs["administered_systems"]) - } - { - val, d := tkhToTFObjectRSGroupGroupAccountLinkableWrapper(recurse, tkh.GetAdmins()) - diags.Append(d...) - obj["admins"] = getItemsAttr(val, attrs["admins"]) - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupAuthorizedGroupsWrapper(recurse, tkh.GetAuthorizedGroups()) - diags.Append(d...) - obj["authorized_groups"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetClientPermissions()) - diags.Append(d...) - obj["client_permissions"] = getItemsAttr(val, attrs["client_permissions"]) - } - { - val, d := tkhToTFObjectRSGroupGroupClientLinkableWrapper(recurse, tkh.GetClients()) - diags.Append(d...) - obj["clients"] = getItemsAttr(val, attrs["clients"]) - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetContentAdministeredSystems()) - diags.Append(d...) - obj["content_administered_systems"] = getItemsAttr(val, attrs["content_administered_systems"]) - } - { - val, d := tkhToTFObjectRSGroupGroupAuditingInfo(recurse, tkh.GetGroupauditinginfo()) - diags.Append(d...) - obj["groupauditinginfo"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupInfo(recurse, tkh.GetGroupinfo()) - diags.Append(d...) - obj["groupinfo"] = val - } - { - val, d := tkhToTFObjectRSDirectoryAccountDirectorySummaryLinkableWrapper(recurse, tkh.GetHelpdesk()) - diags.Append(d...) - obj["helpdesk"] = getItemsAttr(val, attrs["helpdesk"]) - } - { - val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMyaccount()) - diags.Append(d...) - obj["myaccount"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupAccount(recurse, tkh.GetMydelegatedaccount()) - diags.Append(d...) - obj["mydelegatedaccount"] = val - } - { - val, d := tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse, tkh.GetNestedGroups()) - diags.Append(d...) - obj["nested_groups"] = getItemsAttr(val, attrs["nested_groups"]) - } - { - val, d := tkhToTFObjectRSClientClientApplicationLinkableWrapper(recurse, tkh.GetOwnedClients()) - diags.Append(d...) - obj["owned_clients"] = getItemsAttr(val, attrs["owned_clients"]) - } - { - val, d := tkhToTFObjectRSDirectoryAccountDirectoryLinkableWrapper(recurse, tkh.GetOwnedDirectories()) - diags.Append(d...) - obj["owned_directories"] = getItemsAttr(val, attrs["owned_directories"]) - } - { - val, d := tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse, tkh.GetOwnedGroupsOnSystem()) - diags.Append(d...) - obj["owned_groups_on_system"] = val - } - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse, tkh.GetOwnedOrganizationalUnits()) - diags.Append(d...) - obj["owned_organizational_units"] = getItemsAttr(val, attrs["owned_organizational_units"]) - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse, tkh.GetOwnedSystems()) - diags.Append(d...) - obj["owned_systems"] = getItemsAttr(val, attrs["owned_systems"]) - } - { - val, d := tkhToTFObjectRSGroupGroupAuditLinkableWrapper(recurse, tkh.GetRecentAudits()) - diags.Append(d...) - obj["recent_audits"] = getItemsAttr(val, attrs["recent_audits"]) - } - obj["requeststatus"] = stringerToTF(tkh.GetRequeststatus()) - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) - } - { - val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = getItemsAttr(val, attrs["systems"]) - } - { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) - diags.Append(d...) - obj["vault"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse, tkh.GetWebhooks()) - diags.Append(d...) - obj["webhooks"] = getItemsAttr(val, attrs["webhooks"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupGroupsAuditStats(recurse bool, tkh keyhubmodel.GroupGroupsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupGroupsAuditStatsAttrTypesRSRecurse - } else { - attrs = groupGroupsAuditStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["audited_groups"] = types.Int64PointerValue(tkh.GetAuditedGroups()) - { - elemType := attrs["classifications"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetClassifications(), func(tkh keyhubmodel.GroupGroupClassificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupClassification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["classifications"] = val - } - obj["overdue_audit_groups"] = types.Int64PointerValue(tkh.GetOverdueAuditGroups()) - obj["overdue_vault_policies"] = types.Int64PointerValue(tkh.GetOverdueVaultPolicies()) - obj["unaudited_groups"] = types.Int64PointerValue(tkh.GetUnauditedGroups()) - obj["valid_vault_policies"] = types.Int64PointerValue(tkh.GetValidVaultPolicies()) - obj["vaults_without_policies"] = types.Int64PointerValue(tkh.GetVaultsWithoutPolicies()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupProvisioningGroup(recurse bool, tkh keyhubmodel.GroupProvisioningGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupAttrTypesRSRecurse - } else { - attrs = groupProvisioningGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = groupProvisioningGroupLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = groupProvisioningGroup_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = groupVaultVaultRecordAttrTypesRSRecurse - } else { - attrs = groupVaultVaultRecordAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["group_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["color"] = stringerToTF(tkh.GetColor()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["filename"] = types.StringPointerValue(tkh.GetFilename()) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - obj["url"] = types.StringPointerValue(tkh.GetUrl()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse, tkh.GetTile()) - diags.Append(d...) - obj["tile"] = val - } - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadDisplayedLaunchpadTiles(recurse bool, tkh keyhubmodel.LaunchpadDisplayedLaunchpadTilesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRSRecurse - } else { - attrs = launchpadDisplayedLaunchpadTilesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadDisplayedLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSLaunchpadDisplayedLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["identicon_code"] = types.Int64PointerValue(int32PToInt64P(tkh.GetIdenticonCode())) - obj["launchpad_launchpad_tile_type"] = stringerToTF(tkh.GetLaunchpadLaunchpadTileType()) - { - elemType := attrs["logo"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLogo(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["logo"] = val - } - obj["vault_record_uuid"] = withUuidToTF(tkh.GetVaultRecord()) - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) - val, d := tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["vault_record_launchpad_tile"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) - val, d := tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["sso_application_launchpad_tile"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.LaunchpadManualLaunchpadTileable) - val, d := tkhToTFObjectRSLaunchpadManualLaunchpadTile(false, tkhCast) - diags.Append(d...) - obj["manual_launchpad_tile"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTileLinkableWrapper(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTileLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTileLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.LaunchpadLaunchpadTileable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSLaunchpadLaunchpadTile(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTilePrimer(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTilePrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTilePrimerAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTilePrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadLaunchpadTile_additionalObjects(recurse bool, tkh keyhubmodel.LaunchpadLaunchpadTile_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRSRecurse - } else { - attrs = launchpadLaunchpadTile_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadManualLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadManualLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadManualLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadManualLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["title"] = types.StringPointerValue(tkh.GetTitle()) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["uri"] = types.StringPointerValue(tkh.GetUri()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse - } else { - attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse bool, tkh keyhubmodel.LicenseKeyHubLicenseInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = licenseKeyHubLicenseInfoAttrTypesRSRecurse - } else { - attrs = licenseKeyHubLicenseInfoAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["current_license_status"] = stringerToTF(tkh.GetCurrentLicenseStatus()) - obj["customer_company"] = types.StringPointerValue(tkh.GetCustomerCompany()) - obj["customer_contact"] = types.StringPointerValue(tkh.GetCustomerContact()) - { - elemType := attrs["customer_domains"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetCustomerDomains(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["customer_domains"] = val - } - { - elemType := attrs["details"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetDetails(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["details"] = val - } - obj["expiration_time"] = timePointerToTF(tkh.GetExpirationTime()) - { - elemType := attrs["features"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetFeatures(), func(tkh keyhubmodel.LicenseLicenseFeature, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["features"] = val - } - obj["issue_time"] = timePointerToTF(tkh.GetIssueTime()) - obj["key_hub_domain"] = types.StringPointerValue(tkh.GetKeyHubDomain()) - obj["license_key"] = types.StringPointerValue(tkh.GetLicenseKey()) - obj["not_before_time"] = timePointerToTF(tkh.GetNotBeforeTime()) - obj["users_hard_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersHardLimit())) - obj["users_pro_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersProLimit())) - obj["users_soft_limit"] = types.Int64PointerValue(int32PToInt64P(tkh.GetUsersSoftLimit())) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetVersion())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkerAttrTypesRSRecurse - } else { - attrs = markItemMarkerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["level"] = stringerToTF(tkh.GetLevel()) - obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) - { - val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarker_parametersAttrTypesRSRecurse - } else { - attrs = markItemMarker_parametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarkersAttrTypesRSRecurse - } else { - attrs = markItemMarkersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["markers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["markers"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedAuthInternalAccount(recurse bool, tkh keyhubmodel.AuthInternalAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedAuthInternalAccountAttrTypesRSRecurse - } else { - attrs = nestedAuthInternalAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_directory_uuid"] = types.StringNull() - obj["uuid"] = withUuidToTF(tkh) - obj["activation_code"] = types.StringPointerValue(tkh.GetActivationCode()) - obj["activation_deadline"] = timePointerToTF(tkh.GetActivationDeadline()) - obj["company"] = types.StringPointerValue(tkh.GetCompany()) - obj["first_name"] = types.StringPointerValue(tkh.GetFirstName()) - obj["last_name"] = types.StringPointerValue(tkh.GetLastName()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["telephone"] = types.StringPointerValue(tkh.GetTelephone()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedClientOAuth2ClientPermission(recurse bool, tkh keyhubmodel.ClientOAuth2ClientPermissionable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedClientOAuth2ClientPermissionAttrTypesRSRecurse - } else { - attrs = nestedClientOAuth2ClientPermissionAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["client_application_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) - obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) - obj["value"] = stringerToTF(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedGroupAccountGroup(recurse bool, tkh keyhubmodel.GroupAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedGroupAccountGroupAttrTypesRSRecurse - } else { - attrs = nestedGroupAccountGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["account_uuid"] = types.StringNull() - obj["uuid"] = withUuidToTF(tkh) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - { - val, d := tkhToTFObjectRSGroupGroupFolder(false, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedGroupGroupAccount(recurse bool, tkh keyhubmodel.GroupGroupAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedGroupGroupAccountAttrTypesRSRecurse - } else { - attrs = nestedGroupGroupAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["group_uuid"] = types.StringNull() - obj["uuid"] = withUuidToTF(tkh) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["disconnected_nested"] = types.BoolPointerValue(tkh.GetDisconnectedNested()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["last_used"] = stringerToTF(tkh.GetLastUsed()) - obj["nested"] = types.BoolPointerValue(tkh.GetNested()) - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["two_factor_status"] = stringerToTF(tkh.GetTwoFactorStatus()) - obj["visible_for_provisioning"] = types.BoolPointerValue(tkh.GetVisibleForProvisioning()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedGroupGroupAudit(recurse bool, tkh keyhubmodel.GroupGroupAuditable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedGroupGroupAuditAttrTypesRSRecurse - } else { - attrs = nestedGroupGroupAuditAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSGroupGroupAudit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["group_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - elemType := attrs["accounts"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAccounts(), func(tkh keyhubmodel.GroupGroupAuditAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSGroupGroupAuditAccount(false, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["accounts"] = val - } - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["created_by"] = types.StringPointerValue(tkh.GetCreatedBy()) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - obj["name_on_audit"] = types.StringPointerValue(tkh.GetNameOnAudit()) - obj["reviewed_at"] = timePointerToTF(tkh.GetReviewedAt()) - obj["reviewed_by"] = types.StringPointerValue(tkh.GetReviewedBy()) - obj["status"] = stringerToTF(tkh.GetStatus()) - obj["submitted_at"] = timePointerToTF(tkh.GetSubmittedAt()) - obj["submitted_by"] = types.StringPointerValue(tkh.GetSubmittedBy()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesRSRecurse - } else { - attrs = nestedOrganizationAccountOrganizationalUnitAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["account_uuid"] = types.StringNull() - obj["uuid"] = withUuidToTF(tkh) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesRSRecurse - } else { - attrs = nestedOrganizationOrganizationalUnitAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["organizational_unit_uuid"] = types.StringNull() - obj["uuid"] = withUuidToTF(tkh) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedProvisioningGroupOnSystemAttrTypesRSRecurse - } else { - attrs = nestedProvisioningGroupOnSystemAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["provisioned_system_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedProvisioningProvisionedAccountAttrTypesRSRecurse - } else { - attrs = nestedProvisioningProvisionedAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["provisioned_system_uuid"] = types.StringNull() - obj["uuid"] = withUuidToTF(tkh) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesRSRecurse - } else { - attrs = nestedProvisioningProvisionedSystemSyncLogAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["provisioned_system_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedServiceaccountServiceAccountGroupAttrTypesRSRecurse - } else { - attrs = nestedServiceaccountServiceAccountGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["service_account_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNestedWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = nestedWebhookWebhookDeliveryAttrTypesRSRecurse - } else { - attrs = nestedWebhookWebhookDeliveryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["webhook_uuid"] = types.StringNull() - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) - diags.Append(d...) - obj["payload"] = val - } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationCertificateExpiredNotification(recurse bool, tkh keyhubmodel.NotificationCertificateExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationCertificateExpiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationCertificateExpiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSCertificateCertificate(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectRSDirectoryLDAPDirectory(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - obj["expiration"] = timePointerToTF(tkh.GetExpiration()) - { - val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetLdapClient()) - diags.Append(d...) - obj["ldap_client"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["usage"] = stringerToTF(tkh.GetUsage()) - { - val, d := tkhToTFObjectRSWebhookWebhook(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationGroupAuditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupAuditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupAuditRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationGroupAuditRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["due_date"] = timePointerToTF(tkh.GetDueDate()) - { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - obj["notification_group_audit_required_notification_type"] = stringerToTF(tkh.GetNotificationGroupAuditRequiredNotificationType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationGroupEditRequiredNotification(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationGroupEditRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse, tkh.GetParameters()) - diags.Append(d...) - obj["parameters"] = val - } - obj["reason"] = stringerToTF(tkh.GetReason()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationGroupEditRequiredNotification_parameters(recurse bool, tkh keyhubmodel.NotificationGroupEditRequiredNotification_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRSRecurse - } else { - attrs = notificationGroupEditRequiredNotification_parametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationInvalidSignaturesDetectedNotification(recurse bool, tkh keyhubmodel.NotificationInvalidSignaturesDetectedNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRSRecurse - } else { - attrs = notificationInvalidSignaturesDetectedNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationLicenseStatusNotification(recurse bool, tkh keyhubmodel.NotificationLicenseStatusNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationLicenseStatusNotificationAttrTypesRSRecurse - } else { - attrs = notificationLicenseStatusNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["active_accounts"] = types.Int64PointerValue(int32PToInt64P(tkh.GetActiveAccounts())) - { - val, d := tkhToTFObjectRSLicenseKeyHubLicenseInfo(recurse, tkh.GetLicenseInfo()) - diags.Append(d...) - obj["license_info"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationModificationRequestNotification(recurse bool, tkh keyhubmodel.NotificationModificationRequestNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationModificationRequestNotificationAttrTypesRSRecurse - } else { - attrs = notificationModificationRequestNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["admins"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetAdmins(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["admins"] = val - } - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["groups"] = val - } - { - val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh.GetRequest()) - diags.Append(d...) - obj["request"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationNotification(recurse bool, tkh keyhubmodel.NotificationNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationAttrTypesRSRecurse - } else { - attrs = notificationNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationNotifications(recurse bool, tkh keyhubmodel.NotificationNotificationsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationNotificationsAttrTypesRSRecurse - } else { - attrs = notificationNotificationsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.NotificationNotificationable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSNotificationNotification(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationOldApiVersionUsageNotification(recurse bool, tkh keyhubmodel.NotificationOldApiVersionUsageNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationOldApiVersionUsageNotificationAttrTypesRSRecurse - } else { - attrs = notificationOldApiVersionUsageNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["api_version"] = types.Int64PointerValue(int32PToInt64P(tkh.GetApiVersion())) - { - val, d := tkhToTFObjectRSClientOAuth2Client(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationProvisionConfigRequiredNotification(recurse bool, tkh keyhubmodel.NotificationProvisionConfigRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationProvisionConfigRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["systems"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetSystems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["systems"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationRotatingPasswordRequiredNotification(recurse bool, tkh keyhubmodel.NotificationRotatingPasswordRequiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationRotatingPasswordRequiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["groups"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationUpdateAvailableNotification(recurse bool, tkh keyhubmodel.NotificationUpdateAvailableNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationUpdateAvailableNotificationAttrTypesRSRecurse - } else { - attrs = notificationUpdateAvailableNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["released_at"] = stringerToTF(tkh.GetReleasedAt()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSNotificationVaultRecordExpiredNotification(recurse bool, tkh keyhubmodel.NotificationVaultRecordExpiredNotificationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = notificationVaultRecordExpiredNotificationAttrTypesRSRecurse - } else { - attrs = notificationVaultRecordExpiredNotificationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh.GetRecord()) - diags.Append(d...) - obj["record"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitAttrTypesRSRecurse - } else { - attrs = organizationAccountOrganizationalUnitAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["uuid"] = withUuidToTF(tkh) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationAccountOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationAccountOrganizationalUnitLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationAccountOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSOrganizationAccountOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationAccountOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationAccountOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRSRecurse - } else { - attrs = organizationAccountOrganizationalUnit_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitAccountLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitAccount_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnit(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse - } else { - attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) - diags.Append(d...) - obj["create_as_parent_of"] = getItemsAttr(val, attrs["create_as_parent_of"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAPAttrTypesRSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAPAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) - diags.Append(d...) - obj["attributes"] = val - } - obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) - obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) - obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) - obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) - obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) - obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - obj["host"] = types.StringPointerValue(tkh.GetHost()) - obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) - obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) - obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) - obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) - obj["tls"] = stringerToTF(tkh.GetTls()) - obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) - obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusAttrTypesRSRecurse - } else { - attrs = provisioningAccountProvisioningStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["result"] = stringerToTF(tkh.GetResult()) - { - val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse bool, tkh keyhubmodel.ProvisioningAccountProvisioningStatusReportable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAccountProvisioningStatusReportAttrTypesRSRecurse - } else { - attrs = provisioningAccountProvisioningStatusReportAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["status"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetStatus(), func(tkh keyhubmodel.ProvisioningAccountProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["status"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningCircuitBreakerStatisticsAttrTypesRSRecurse - } else { - attrs = provisioningCircuitBreakerStatisticsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) - obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) - obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) - obj["state"] = stringerToTF(tkh.GetState()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemPrimerAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystemTypesAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystemTypesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["types"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh.String()) - }) - diags.Append(d...) - obj["types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) - diags.Append(d...) - obj["provgroups"] = getItemsAttr(val, attrs["provgroups"]) - } - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) - diags.Append(d...) - obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatusAttrTypesRSRecurse - } else { - attrs = provisioningGroupProvisioningStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSGroupGroupFolder(recurse, tkh.GetFolder()) - diags.Append(d...) - obj["folder"] = val - } - { - val, d := tkhToTFObjectRSGroupGroup(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse, tkh.GetProvisioningDuration()) - diags.Append(d...) - obj["provisioning_duration"] = val - } - obj["provisioning_end_time"] = timePointerToTF(tkh.GetProvisioningEndTime()) - obj["provisioning_permission_end_time"] = timePointerToTF(tkh.GetProvisioningPermissionEndTime()) - { - val, d := tkhToTFObjectRSProvisioningAccountProvisioningStatusReport(recurse, tkh.GetStatusReport()) - diags.Append(d...) - obj["status_report"] = val - } - obj["visible_on_dashboard"] = types.BoolPointerValue(tkh.GetVisibleOnDashboard()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningGroupProvisioningStatus_provisioningDuration(recurse bool, tkh keyhubmodel.ProvisioningGroupProvisioningStatus_provisioningDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRSRecurse - } else { - attrs = provisioningGroupProvisioningStatus_provisioningDurationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse - } else { - attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceAttrTypesRSRecurse - } else { - attrs = provisioningProvisionNumberSequenceAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["next_uid"] = types.Int64PointerValue(tkh.GetNextUID()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionNumberSequenceLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionNumberSequenceLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionNumberSequenceable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) - diags.Append(d...) - obj["systems"] = getItemsAttr(val, attrs["systems"]) - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedADAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedADAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAccountAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - obj["uuid"] = withUuidToTF(tkh) - obj["uid"] = types.Int64PointerValue(tkh.GetUid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAccountLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedAzureTenantAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) - obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) - obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) - obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedInternalLDAPAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedLDAPAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["gid"] = types.Int64PointerValue(tkh.GetGid()) - obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) - { - val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) - diags.Append(d...) - obj["numbering"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) - obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) - obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) - obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) - obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) - obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) - obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) - obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) - obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) - obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_oidc_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) - diags.Append(d...) - obj["abstract_provisioned_ldap"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_tenant"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_azure_sync_ldap_directory"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) - val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) - diags.Append(d...) - obj["provisioned_a_d"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) - val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) - diags.Append(d...) - obj["provisioned_internal_ldap"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) - val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) - diags.Append(d...) - obj["provisioned_ldap_directory"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["active"] = types.BoolPointerValue(tkh.GetActive()) - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - obj["created_at"] = timePointerToTF(tkh.GetCreatedAt()) - obj["errors"] = types.Int64PointerValue(int32PToInt64P(tkh.GetErrors())) - obj["log"] = types.StringPointerValue(tkh.GetLog()) - obj["modifications"] = types.Int64PointerValue(int32PToInt64P(tkh.GetModifications())) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLogLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLogLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemSyncLogable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningProvisionedSystemSyncLog(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystemSyncLog_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemSyncLog_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystemSyncLog_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse - } else { - attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - { - val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) - diags.Append(d...) - obj["issued_permissions"] = getItemsAttr(val, attrs["issued_permissions"]) - } - obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) - { - val, d := tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) - diags.Append(d...) - obj["management_permissions"] = val - } - { - val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) - diags.Append(d...) - obj["markers"] = val - } - { - val, d := tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) - diags.Append(d...) - obj["statistics"] = val - } - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) - diags.Append(d...) - obj["supported_group_types"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningManagementPermissionsAttrTypesRSRecurse - } else { - attrs = provisioningProvisioningManagementPermissionsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) - obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) - obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningProvisioningStatus(recurse bool, tkh keyhubmodel.ProvisioningProvisioningStatusable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningProvisioningStatusAttrTypesRSRecurse - } else { - attrs = provisioningProvisioningStatusAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["groups"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetGroups(), func(tkh keyhubmodel.ProvisioningGroupProvisioningStatusable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSProvisioningGroupProvisioningStatus(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["groups"] = val - } - obj["ignore_errors"] = types.BoolPointerValue(tkh.GetIgnoreErrors()) - obj["restricted_by_license"] = types.BoolPointerValue(tkh.GetRestrictedByLicense()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSProvisioningTokenPassword(recurse bool, tkh keyhubmodel.ProvisioningTokenPasswordable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningTokenPasswordAttrTypesRSRecurse - } else { - attrs = provisioningTokenPasswordAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAbstractApplicationModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractApplicationModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractApplicationModificationRequestAttrTypesRSRecurse - } else { - attrs = requestAbstractApplicationModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["application_uuid"] = withUuidToTF(tkh.GetApplication()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRSRecurse - } else { - attrs = requestAbstractOrganizationalUnitModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(recurse bool, tkh keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRSRecurse - } else { - attrs = requestAbstractProvisionedSystemModificationRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesRSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse, tkh.GetAccessDuration()) - diags.Append(d...) - obj["access_duration"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptGrantAccessRequestParameters_accessDuration(recurse bool, tkh keyhubmodel.RequestAcceptGrantAccessRequestParameters_accessDurationable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRSRecurse - } else { - attrs = requestAcceptGrantAccessRequestParameters_accessDurationAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptJoinGroupRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptJoinGroupRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesRSRecurse - } else { - attrs = requestAcceptJoinGroupRequestParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["make_manager"] = types.BoolPointerValue(tkh.GetMakeManager()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse bool, tkh keyhubmodel.RequestAcceptModificationRequestParametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAcceptModificationRequestParametersAttrTypesRSRecurse - } else { - attrs = requestAcceptModificationRequestParametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestAddGroupAdminRequest(recurse bool, tkh keyhubmodel.RequestAddGroupAdminRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestAddGroupAdminRequestAttrTypesRSRecurse - } else { - attrs = requestAddGroupAdminRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["new_admin_uuid"] = withUuidToTF(tkh.GetNewAdmin()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestCreateGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupOnSystemRequestAttrTypesRSRecurse - } else { - attrs = requestCreateGroupOnSystemRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - obj["group_on_system_type"] = stringerToTF(tkh.GetGroupOnSystemType()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestCreateGroupRequest(recurse bool, tkh keyhubmodel.RequestCreateGroupRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateGroupRequestAttrTypesRSRecurse - } else { - attrs = requestCreateGroupRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestCreateServiceAccountRequest(recurse bool, tkh keyhubmodel.RequestCreateServiceAccountRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestCreateServiceAccountRequestAttrTypesRSRecurse - } else { - attrs = requestCreateServiceAccountRequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestDisable2FARequest(recurse bool, tkh keyhubmodel.RequestDisable2FARequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestDisable2FARequestAttrTypesRSRecurse - } else { - attrs = requestDisable2FARequestAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(false, tkh.GetGroupOnSystem()) + diags.Append(d...) + obj["group_on_system"] = val } - obj := make(map[string]attr.Value) - obj["subject"] = types.StringPointerValue(tkh.GetSubject()) - objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(recurse bool, tkh keyhubmodel.RequestEnableTechnicalAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse bool, tkh keyhubmodel.GroupProvisioningGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesRSRecurse + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestEnableTechnicalAdministrationRequestAttrTypesRS + attrs = groupProvisioningGroupLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupProvisioningGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSGroupProvisioningGroup(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestExtendAccessRequest(recurse bool, tkh keyhubmodel.RequestExtendAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupProvisioningGroup_additionalObjects(recurse bool, tkh keyhubmodel.GroupProvisioningGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestExtendAccessRequestAttrTypesRSRecurse + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestExtendAccessRequestAttrTypesRS + attrs = groupProvisioningGroup_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["extend_until"] = timePointerToTF(tkh.GetExtendUntil()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestGrantAccessRequest(recurse bool, tkh keyhubmodel.RequestGrantAccessRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSGroupVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRecordable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantAccessRequestAttrTypesRSRecurse + attrs = groupVaultVaultRecordAttrTypesRSRecurse } else { - attrs = requestGrantAccessRequestAttrTypesRS + attrs = groupVaultVaultRecordAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantApplicationRequest(recurse bool, tkh keyhubmodel.RequestGrantApplicationRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = requestGrantApplicationRequestAttrTypesRSRecurse - } else { - attrs = requestGrantApplicationRequestAttrTypesRS + { + val, d := tkhToTFObjectRSVaultVaultRecord_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["group_uuid"] = types.StringNull() + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSRequestGrantClientPermissionRequest(recurse bool, tkh keyhubmodel.RequestGrantClientPermissionRequestable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = requestGrantClientPermissionRequestAttrTypesRSRecurse - } else { - attrs = requestGrantClientPermissionRequestAttrTypesRS + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["color"] = stringerToTF(tkh.GetColor()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["share_end_time"] = timePointerToTF(tkh.GetShareEndTime()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["derived"] = types.BoolPointerValue(tkh.GetDerived()) + obj["end_date"] = stringerToTF(tkh.GetEndDate()) + obj["filename"] = types.StringPointerValue(tkh.GetFilename()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.VaultVaultSecretType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val } - - obj := make(map[string]attr.Value) - obj["permission_type"] = stringerToTF(tkh.GetPermissionType()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["url"] = types.StringPointerValue(tkh.GetUrl()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["warning_period"] = stringerToTF(tkh.GetWarningPeriod()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestGrantGroupOnSystemRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadSsoApplicationLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadSsoApplicationLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantGroupOnSystemRequestAttrTypesRSRecurse + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestGrantGroupOnSystemRequestAttrTypesRS + attrs = launchpadSsoApplicationLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } + obj["uri"] = types.StringPointerValue(tkh.GetUri()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(recurse bool, tkh keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSLaunchpadVaultRecordLaunchpadTile(recurse bool, tkh keyhubmodel.LaunchpadVaultRecordLaunchpadTileable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRSRecurse + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRSRecurse } else { - attrs = requestGrantGroupOnSystemRequestRequestAttrTypesRS + attrs = launchpadVaultRecordLaunchpadTileAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["activation_required"] = types.BoolPointerValue(tkh.GetActivationRequired()) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val - } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(recurse bool, tkh keyhubmodel.RequestGrantServiceAccountGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestGrantServiceAccountGroupRequestAttrTypesRSRecurse + attrs = markItemMarkerAttrTypesRSRecurse } else { - attrs = requestGrantServiceAccountGroupRequestAttrTypesRS + attrs = markItemMarkerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["level"] = stringerToTF(tkh.GetLevel()) + obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) + val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) diags.Append(d...) - obj["group_on_system"] = val + obj["parameters"] = val } - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.RequestJoinGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestJoinGroupRequestAttrTypesRSRecurse + attrs = markItemMarker_parametersAttrTypesRSRecurse } else { - attrs = requestJoinGroupRequestAttrTypesRS + attrs = markItemMarker_parametersAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7082,32 +2342,42 @@ func tkhToTFObjectRSRequestJoinGroupRequest(recurse bool, tkh keyhubmodel.Reques return objVal, diags } -func tkhToTFObjectRSRequestJoinVaultRequest(recurse bool, tkh keyhubmodel.RequestJoinVaultRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestJoinVaultRequestAttrTypesRSRecurse + attrs = markItemMarkersAttrTypesRSRecurse } else { - attrs = requestJoinVaultRequestAttrTypesRS + attrs = markItemMarkersAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["markers"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetMarkers(), func(tkh keyhubmodel.MarkItemMarkerable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSMarkItemMarker(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["markers"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.RequestModificationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSNestedProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequestAttrTypesRSRecurse + attrs = nestedProvisioningGroupOnSystemAttrTypesRSRecurse } else { - attrs = requestModificationRequestAttrTypesRS + attrs = nestedProvisioningGroupOnSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7116,11 +2386,12 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSRequestModificationRequest_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } } + obj["provisioned_system_uuid"] = types.StringNull() { elemType := attrs["links"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { @@ -7141,248 +2412,146 @@ func tkhToTFObjectRSRequestModificationRequest(recurse bool, tkh keyhubmodel.Req diags.Append(d...) obj["permissions"] = val } - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["comment"] = types.StringPointerValue(tkh.GetComment()) - obj["feedback"] = types.StringPointerValue(tkh.GetFeedback()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) - obj["mail_key"] = types.StringPointerValue(tkh.GetMailKey()) - obj["request_modification_request_type"] = stringerToTF(tkh.GetRequestModificationRequestType()) - obj["status"] = stringerToTF(tkh.GetStatus()) - { - tkhCast, _ := tkh.(keyhubmodel.RequestEnableTechnicalAdministrationRequestable) - val, d := tkhToTFObjectRSRequestEnableTechnicalAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["enable_technical_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractApplicationModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractApplicationModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_application_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_application_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestPasswordResetRequestable) - val, d := tkhToTFObjectRSRequestPasswordResetRequest(false, tkhCast) - diags.Append(d...) - obj["password_reset_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractProvisionedSystemModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractProvisionedSystemModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_provisioned_system_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAddGroupAdminRequestable) - val, d := tkhToTFObjectRSRequestAddGroupAdminRequest(false, tkhCast) - diags.Append(d...) - obj["add_group_admin_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestAbstractOrganizationalUnitModificationRequestable) - val, d := tkhToTFObjectRSRequestAbstractOrganizationalUnitModificationRequest(false, tkhCast) - diags.Append(d...) - obj["abstract_organizational_unit_modification_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupRequest(false, tkhCast) - diags.Append(d...) - obj["create_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveProvisionedSystemRequestable) - val, d := tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(false, tkhCast) - diags.Append(d...) - obj["remove_provisioned_system_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantApplicationRequestable) - val, d := tkhToTFObjectRSRequestGrantApplicationRequest(false, tkhCast) - diags.Append(d...) - obj["grant_application_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestCreateGroupOnSystemRequest(false, tkhCast) - diags.Append(d...) - obj["create_group_on_system_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupNestedGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupNestedGroupRequest(false, tkhCast) - diags.Append(d...) - obj["setup_nested_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestVerifyInternalAccountRequestable) - val, d := tkhToTFObjectRSRequestVerifyInternalAccountRequest(false, tkhCast) - diags.Append(d...) - obj["verify_internal_account_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequestRequest(false, tkhCast) - diags.Append(d...) - obj["grant_group_on_system_request_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinGroupRequestable) - val, d := tkhToTFObjectRSRequestJoinGroupRequest(false, tkhCast) - diags.Append(d...) - obj["join_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_organizational_unit_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestDisable2FARequestable) - val, d := tkhToTFObjectRSRequestDisable2FARequest(false, tkhCast) - diags.Append(d...) - obj["disable2fa_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_content_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantGroupOnSystemRequestable) - val, d := tkhToTFObjectRSRequestGrantGroupOnSystemRequest(false, tkhCast) - diags.Append(d...) - obj["grant_group_on_system_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferApplicationOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_application_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) - val, d := tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_group_on_system_ownership_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_service_account_administration_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferAuditorGroupRequestable) - val, d := tkhToTFObjectRSRequestTransferAuditorGroupRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_auditor_group_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestReviewAuditRequestable) - val, d := tkhToTFObjectRSRequestReviewAuditRequest(false, tkhCast) - diags.Append(d...) - obj["review_audit_request"] = val - } - { - tkhCast, _ := tkh.(keyhubmodel.RequestUpdateGroupMembershipRequestable) - val, d := tkhToTFObjectRSRequestUpdateGroupMembershipRequest(false, tkhCast) - diags.Append(d...) - obj["update_group_membership_request"] = val + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnit(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitAttrTypesRS } - { - tkhCast, _ := tkh.(keyhubmodel.RequestExtendAccessRequestable) - val, d := tkhToTFObjectRSRequestExtendAccessRequest(false, tkhCast) - diags.Append(d...) - obj["extend_access_request"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveGroupRequestable) - val, d := tkhToTFObjectRSRequestRemoveGroupRequest(false, tkhCast) - diags.Append(d...) - obj["remove_group_request"] = val + + obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } { - tkhCast, _ := tkh.(keyhubmodel.RequestRevokeAdminRequestable) - val, d := tkhToTFObjectRSRequestRevokeAdminRequest(false, tkhCast) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["revoke_admin_request"] = val + obj["links"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantServiceAccountGroupRequestable) - val, d := tkhToTFObjectRSRequestGrantServiceAccountGroupRequest(false, tkhCast) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["grant_service_account_group_request"] = val + obj["permissions"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestSetupAuthorizingGroupRequestable) - val, d := tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(false, tkhCast) - diags.Append(d...) - obj["setup_authorizing_group_request"] = val + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["depth"] = types.Int64PointerValue(int32PToInt64P(tkh.GetDepth())) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["parent_uuid"] = withUuidToTF(tkh.GetParent()) + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitLinkableWrapperAttrTypesRS } - { - tkhCast, _ := tkh.(keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) - val, d := tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(false, tkhCast) - diags.Append(d...) - obj["transfer_provisioned_system_administration_request"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantAccessRequestable) - val, d := tkhToTFObjectRSRequestGrantAccessRequest(false, tkhCast) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSOrganizationOrganizationalUnit(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["grant_access_request"] = val + obj["items"] = val } - { - tkhCast, _ := tkh.(keyhubmodel.RequestJoinVaultRequestable) - val, d := tkhToTFObjectRSRequestJoinVaultRequest(false, tkhCast) - diags.Append(d...) - obj["join_vault_request"] = val + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSOrganizationOrganizationalUnitPrimer(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = organizationOrganizationalUnitPrimerAttrTypesRSRecurse + } else { + attrs = organizationOrganizationalUnitPrimerAttrTypesRS } - { - tkhCast, _ := tkh.(keyhubmodel.RequestRemoveOrganizationalUnitRequestable) - val, d := tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(false, tkhCast) - diags.Append(d...) - obj["remove_organizational_unit_request"] = val + if tkh == nil { + return types.ObjectNull(attrs), diags } + + obj := make(map[string]attr.Value) { - tkhCast, _ := tkh.(keyhubmodel.RequestCreateServiceAccountRequestable) - val, d := tkhToTFObjectRSRequestCreateServiceAccountRequest(false, tkhCast) + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["create_service_account_request"] = val + obj["links"] = val } { - tkhCast, _ := tkh.(keyhubmodel.RequestGrantClientPermissionRequestable) - val, d := tkhToTFObjectRSRequestGrantClientPermissionRequest(false, tkhCast) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["grant_client_permission_request"] = val + obj["permissions"] = val } + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh keyhubmodel.RequestModificationRequestLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnitPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequestLinkableWrapperAttrTypesRSRecurse + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestModificationRequestLinkableWrapperAttrTypesRS + attrs = organizationOrganizationalUnitPrimerLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7391,10 +2560,8 @@ func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.RequestModificationRequestable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRequestModificationRequest(recurse, tkh) - diags.Append(d...) - return val + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) }) diags.Append(d...) obj["items"] = val @@ -7405,33 +2572,28 @@ func tkhToTFObjectRSRequestModificationRequestLinkableWrapper(recurse bool, tkh return objVal, diags } -func tkhToTFObjectRSRequestModificationRequest_additionalObjects(recurse bool, tkh keyhubmodel.RequestModificationRequest_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSOrganizationOrganizationalUnit_additionalObjects(recurse bool, tkh keyhubmodel.OrganizationOrganizationalUnit_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestModificationRequest_additionalObjectsAttrTypesRSRecurse + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestModificationRequest_additionalObjectsAttrTypesRS + attrs = organizationOrganizationalUnit_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSRequestAcceptModificationRequestParameters(recurse, tkh.GetAcceptParams()) - diags.Append(d...) - obj["accept_params"] = val - } { val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse, tkh.GetResetStatus()) + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse, tkh.GetCreateAsParentOf()) diags.Append(d...) - obj["reset_status"] = val + obj["create_as_parent_of"] = getItemsAttr(val, attrs["create_as_parent_of"]) } objVal, d := types.ObjectValue(attrs, obj) @@ -7439,430 +2601,596 @@ func tkhToTFObjectRSRequestModificationRequest_additionalObjects(recurse bool, t return objVal, diags } -func tkhToTFObjectRSRequestPasswordResetRequest(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestPasswordResetRequestAttrTypesRSRecurse + attrs = provisioningAbstractProvisionedLDAPAttrTypesRSRecurse } else { - attrs = requestPasswordResetRequestAttrTypesRS + attrs = provisioningAbstractProvisionedLDAPAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["new_vault_and_directory_password"] = types.StringPointerValue(tkh.GetNewVaultAndDirectoryPassword()) - obj["new_vault_password"] = types.StringPointerValue(tkh.GetNewVaultPassword()) - obj["unsynced_password"] = types.BoolPointerValue(tkh.GetUnsyncedPassword()) + { + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) + diags.Append(d...) + obj["attributes"] = val + } + obj["base_dn"] = types.StringPointerValue(tkh.GetBaseDN()) + obj["bind_dn"] = types.StringPointerValue(tkh.GetBindDN()) + obj["bind_password"] = types.StringPointerValue(tkh.GetBindPassword()) + obj["client_certificate_uuid"] = withUuidToTF(tkh.GetClientCertificate()) + obj["failover_host"] = types.StringPointerValue(tkh.GetFailoverHost()) + obj["failover_trusted_certificate_uuid"] = withUuidToTF(tkh.GetFailoverTrustedCertificate()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) + obj["host"] = types.StringPointerValue(tkh.GetHost()) + obj["object_classes"] = types.StringPointerValue(tkh.GetObjectClasses()) + obj["port"] = types.Int64PointerValue(int32PToInt64P(tkh.GetPort())) + obj["service_account_dn"] = types.StringPointerValue(tkh.GetServiceAccountDN()) + obj["ssh_public_key_supported"] = types.BoolPointerValue(tkh.GetSshPublicKeySupported()) + obj["tls"] = stringerToTF(tkh.GetTls()) + obj["trusted_certificate_uuid"] = withUuidToTF(tkh.GetTrustedCertificate()) + obj["user_dn"] = types.StringPointerValue(tkh.GetUserDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestPasswordResetRequestStatus(recurse bool, tkh keyhubmodel.RequestPasswordResetRequestStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestPasswordResetRequestStatusAttrTypesRSRecurse + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse } else { - attrs = requestPasswordResetRequestStatusAttrTypesRS + attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["cooldown_end"] = timePointerToTF(tkh.GetCooldownEnd()) - { - elemType := attrs["managers"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetManagers(), func(tkh string, diags *diag.Diagnostics) attr.Value { - return types.StringValue(tkh) - }) - diags.Append(d...) - obj["managers"] = val - } - obj["nr_accepted"] = types.Int64PointerValue(tkh.GetNrAccepted()) - obj["reset_via_mail"] = stringerToTF(tkh.GetResetViaMail()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestRemoveGroupRequest(recurse bool, tkh keyhubmodel.RequestRemoveGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveGroupRequestAttrTypesRSRecurse + attrs = provisioningCircuitBreakerStatisticsAttrTypesRSRecurse } else { - attrs = requestRemoveGroupRequestAttrTypesRS + attrs = provisioningCircuitBreakerStatisticsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["group_name"] = types.StringPointerValue(tkh.GetGroupName()) + obj["number_of_failed_calls"] = types.Int64PointerValue(tkh.GetNumberOfFailedCalls()) + obj["number_of_not_permitted_calls"] = types.Int64PointerValue(tkh.GetNumberOfNotPermittedCalls()) + obj["number_of_successful_calls"] = types.Int64PointerValue(tkh.GetNumberOfSuccessfulCalls()) + obj["state"] = stringerToTF(tkh.GetState()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestRemoveOrganizationalUnitRequest(recurse bool, tkh keyhubmodel.RequestRemoveOrganizationalUnitRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystem(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesRSRecurse + attrs = provisioningGroupOnSystemAttrTypesRSRecurse } else { - attrs = requestRemoveOrganizationalUnitRequestAttrTypesRS + attrs = provisioningGroupOnSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["organizational_unit_name"] = types.StringPointerValue(tkh.GetOrganizationalUnitName()) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestRemoveProvisionedSystemRequest(recurse bool, tkh keyhubmodel.RequestRemoveProvisionedSystemRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRemoveProvisionedSystemRequestAttrTypesRSRecurse + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRSRecurse } else { - attrs = requestRemoveProvisionedSystemRequestAttrTypesRS + attrs = provisioningGroupOnSystemLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["system_name"] = types.StringPointerValue(tkh.GetSystemName()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestReviewAuditRequest(recurse bool, tkh keyhubmodel.RequestReviewAuditRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestReviewAuditRequestAttrTypesRSRecurse + attrs = provisioningGroupOnSystemPrimerAttrTypesRSRecurse } else { - attrs = requestReviewAuditRequestAttrTypesRS + attrs = provisioningGroupOnSystemPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestRevokeAdminRequest(recurse bool, tkh keyhubmodel.RequestRevokeAdminRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystemTypesable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestRevokeAdminRequestAttrTypesRSRecurse + attrs = provisioningGroupOnSystemTypesAttrTypesRSRecurse } else { - attrs = requestRevokeAdminRequestAttrTypesRS + attrs = provisioningGroupOnSystemTypesAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["admin_uuid"] = withUuidToTF(tkh.GetAdmin()) + { + elemType := attrs["types"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetTypes(), func(tkh keyhubmodel.ProvisioningGroupOnSystemType, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.String()) + }) + diags.Append(d...) + obj["types"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestSetupAuthorizingGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupAuthorizingGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningGroupOnSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningGroupOnSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestSetupAuthorizingGroupRequestAttrTypesRSRecurse + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestSetupAuthorizingGroupRequestAttrTypesRS + attrs = provisioningGroupOnSystem_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["authorizing_group_type"] = stringerToTF(tkh.GetAuthorizingGroupType()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSGroupProvisioningGroupLinkableWrapper(recurse, tkh.GetProvgroups()) + diags.Append(d...) + obj["provgroups"] = getItemsAttr(val, attrs["provgroups"]) + } + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse, tkh.GetServiceAccounts()) + diags.Append(d...) + obj["service_accounts"] = getItemsAttr(val, attrs["service_accounts"]) + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestSetupNestedGroupRequest(recurse bool, tkh keyhubmodel.RequestSetupNestedGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningOwnedGroupOnSystemsWrapper(recurse bool, tkh keyhubmodel.ProvisioningOwnedGroupOnSystemsWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestSetupNestedGroupRequestAttrTypesRSRecurse + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRSRecurse } else { - attrs = requestSetupNestedGroupRequestAttrTypesRS + attrs = provisioningOwnedGroupOnSystemsWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_action"] = stringerToTF(tkh.GetAccountAction()) - obj["connect"] = types.BoolPointerValue(tkh.GetConnect()) - obj["requesting_group_uuid"] = withUuidToTF(tkh.GetRequestingGroup()) + { + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningGroupOnSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["items"] = val + } + obj["unlinked_count"] = types.Int64PointerValue(tkh.GetUnlinkedCount()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferApplicationAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequenceable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferApplicationAdministrationRequestAttrTypesRSRecurse + attrs = provisioningProvisionNumberSequenceAttrTypesRSRecurse } else { - attrs = requestTransferApplicationAdministrationRequestAttrTypesRS + attrs = provisioningProvisionNumberSequenceAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } + } + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["next_uid"] = types.Int64PointerValue(tkh.GetNextUID()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferApplicationOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferApplicationOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionNumberSequence_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionNumberSequence_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferApplicationOwnershipRequestAttrTypesRSRecurse + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestTransferApplicationOwnershipRequestAttrTypesRS + attrs = provisioningProvisionNumberSequence_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse, tkh.GetSystems()) + diags.Append(d...) + obj["systems"] = getItemsAttr(val, attrs["systems"]) + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferAuditorGroupRequest(recurse bool, tkh keyhubmodel.RequestTransferAuditorGroupRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAD(recurse bool, tkh keyhubmodel.ProvisioningProvisionedADable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferAuditorGroupRequestAttrTypesRSRecurse + attrs = provisioningProvisionedADAttrTypesRSRecurse } else { - attrs = requestTransferAuditorGroupRequestAttrTypesRS + attrs = provisioningProvisionedADAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["sam_account_name_scheme"] = stringerToTF(tkh.GetSamAccountNameScheme()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferGroupOnSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferGroupOnSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAccount(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRSRecurse + attrs = provisioningProvisionedAccountAttrTypesRSRecurse } else { - attrs = requestTransferGroupOnSystemOwnershipRequestAttrTypesRS + attrs = provisioningProvisionedAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSProvisioningGroupOnSystem(recurse, tkh.GetGroupOnSystem()) - diags.Append(d...) - obj["group_on_system"] = val + if recurse { + { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } + obj["uuid"] = withUuidToTF(tkh) + obj["uid"] = types.Int64PointerValue(tkh.GetUid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferOrganizationalUnitOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferOrganizationalUnitOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAccount_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRSRecurse + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRSRecurse } else { - attrs = requestTransferOrganizationalUnitOwnershipRequestAttrTypesRS + attrs = provisioningProvisionedAccount_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferProvisionedSystemAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRSRecurse + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRSRecurse } else { - attrs = requestTransferProvisionedSystemAdministrationRequestAttrTypesRS + attrs = provisioningProvisionedAzureOIDCDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferProvisionedSystemContentAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemContentAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRSRecurse + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRSRecurse } else { - attrs = requestTransferProvisionedSystemContentAdministrationRequestAttrTypesRS + attrs = provisioningProvisionedAzureSyncLDAPDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferProvisionedSystemOwnershipRequest(recurse bool, tkh keyhubmodel.RequestTransferProvisionedSystemOwnershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedAzureTenant(recurse bool, tkh keyhubmodel.ProvisioningProvisionedAzureTenantable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRSRecurse + attrs = provisioningProvisionedAzureTenantAttrTypesRSRecurse } else { - attrs = requestTransferProvisionedSystemOwnershipRequestAttrTypesRS + attrs = provisioningProvisionedAzureTenantAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["client_id"] = types.StringPointerValue(tkh.GetClientId()) + obj["client_secret"] = types.StringPointerValue(tkh.GetClientSecret()) + obj["idp_domain"] = types.StringPointerValue(tkh.GetIdpDomain()) + obj["tenant"] = types.StringPointerValue(tkh.GetTenant()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestTransferServiceAccountAdministrationRequest(recurse bool, tkh keyhubmodel.RequestTransferServiceAccountAdministrationRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRSRecurse + attrs = provisioningProvisionedInternalLDAPAttrTypesRSRecurse } else { - attrs = requestTransferServiceAccountAdministrationRequestAttrTypesRS + attrs = provisioningProvisionedInternalLDAPAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["service_account_uuid"] = withUuidToTF(tkh.GetServiceAccount()) + { + val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetClient()) + diags.Append(d...) + obj["client"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestUpdateGroupMembershipRequest(recurse bool, tkh keyhubmodel.RequestUpdateGroupMembershipRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedLDAP(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestUpdateGroupMembershipRequestAttrTypesRSRecurse + attrs = provisioningProvisionedLDAPAttrTypesRSRecurse } else { - attrs = requestUpdateGroupMembershipRequestAttrTypesRS + attrs = provisioningProvisionedLDAPAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_to_update_uuid"] = withUuidToTF(tkh.GetAccountToUpdate()) - obj["current_end_date"] = stringerToTF(tkh.GetCurrentEndDate()) - obj["current_rights"] = stringerToTF(tkh.GetCurrentRights()) - obj["end_date"] = stringerToTF(tkh.GetEndDate()) - obj["rights"] = stringerToTF(tkh.GetRights()) - obj["update_group_membership_type"] = stringerToTF(tkh.GetUpdateGroupMembershipType()) + obj["gid"] = types.Int64PointerValue(tkh.GetGid()) + obj["hashing_scheme"] = stringerToTF(tkh.GetHashingScheme()) + { + val, d := tkhToTFObjectRSProvisioningProvisionNumberSequence(recurse, tkh.GetNumbering()) + diags.Append(d...) + obj["numbering"] = val + } objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSRequestVerifyInternalAccountRequest(recurse bool, tkh keyhubmodel.RequestVerifyInternalAccountRequestable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(recurse bool, tkh keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = requestVerifyInternalAccountRequestAttrTypesRSRecurse + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRSRecurse } else { - attrs = requestVerifyInternalAccountRequestAttrTypesRS + attrs = provisioningProvisionedLDAPDirectoryAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["internal_account_name"] = types.StringPointerValue(tkh.GetInternalAccountName()) + obj["directory_uuid"] = withUuidToTF(tkh.GetDirectory()) + obj["group_dn"] = types.StringPointerValue(tkh.GetGroupDN()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountAttrTypesRSRecurse + attrs = provisioningProvisionedSystemAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountAttrTypesRS + attrs = provisioningProvisionedSystemAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -7871,7 +3199,7 @@ func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -7898,115 +3226,66 @@ func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.S } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - obj["description"] = types.StringPointerValue(tkh.GetDescription()) - obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) - obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + obj["account_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetAccountCount())) + obj["content_administrator_uuid"] = withUuidToTF(tkh.GetContentAdministrator()) + obj["external_uuid"] = stringerToTF(tkh.GetExternalUuid()) + obj["owner_uuid"] = withUuidToTF(tkh.GetOwner()) + obj["self_service_existing_groups"] = types.BoolPointerValue(tkh.GetSelfServiceExistingGroups()) + obj["self_service_new_groups"] = types.BoolPointerValue(tkh.GetSelfServiceNewGroups()) + obj["self_service_service_accounts"] = types.BoolPointerValue(tkh.GetSelfServiceServiceAccounts()) + obj["should_destroy_unknown_accounts"] = types.BoolPointerValue(tkh.GetShouldDestroyUnknownAccounts()) obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountGroupAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } + obj["username_prefix"] = types.StringPointerValue(tkh.GetUsernamePrefix()) { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningAbstractProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(false, tkhCast) diags.Append(d...) - obj["links"] = val + obj["abstract_provisioned_ldap"] = val } { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedADable) + val, d := tkhToTFObjectRSProvisioningProvisionedAD(false, tkhCast) diags.Append(d...) - obj["permissions"] = val + obj["provisioned_a_d"] = val } - obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) - obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) - obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) - obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureOIDCDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureOIDCDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_oidc_directory"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureSyncLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureSyncLDAPDirectory(false, tkhCast) + diags.Append(d...) + obj["provisioned_azure_sync_ldap_directory"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse, tkh) - diags.Append(d...) - return val - }) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedAzureTenantable) + val, d := tkhToTFObjectRSProvisioningProvisionedAzureTenant(false, tkhCast) diags.Append(d...) - obj["items"] = val + obj["provisioned_azure_tenant"] = val } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedInternalLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedInternalLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_internal_ldap"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAP(false, tkhCast) + diags.Append(d...) + obj["provisioned_ldap"] = val } - - obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + tkhCast, _ := tkh.(keyhubmodel.ProvisioningProvisionedLDAPDirectoryable) + val, d := tkhToTFObjectRSProvisioningProvisionedLDAPDirectory(false, tkhCast) diags.Append(d...) - obj["audit"] = val + obj["provisioned_ldap_directory"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8014,13 +3293,13 @@ func tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(recurse return objVal, diags } -func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRS + attrs = provisioningProvisionedSystemLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8029,8 +3308,8 @@ func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tk obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSServiceaccountServiceAccount(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSProvisioningProvisionedSystem(recurse, tkh) diags.Append(d...) return val }) @@ -8043,13 +3322,13 @@ func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tk return objVal, diags } -func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountPrimerAttrTypesRSRecurse + attrs = provisioningProvisionedSystemPrimerAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountPrimerAttrTypesRS + attrs = provisioningProvisionedSystemPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8078,8 +3357,8 @@ func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubm } obj["active"] = types.BoolPointerValue(tkh.GetActive()) obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) - obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["organizational_unit_uuid"] = withUuidToTF(tkh.GetOrganizationalUnit()) + obj["type"] = stringerToTF(tkh.GetProvisioningProvisionedSystemPrimerType()) obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) @@ -8087,13 +3366,13 @@ func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubm return objVal, diags } -func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystemPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS + attrs = provisioningProvisionedSystemPrimerLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8102,7 +3381,7 @@ func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bo obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { return withUuidToTF(tkh) }) diags.Append(d...) @@ -8114,183 +3393,145 @@ func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bo return objVal, diags } -func tkhToTFObjectRSServiceaccountServiceAccountStatus(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountStatusable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisionedSystem_additionalObjects(recurse bool, tkh keyhubmodel.ProvisioningProvisionedSystem_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountStatusAttrTypesRSRecurse + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountStatusAttrTypesRS + attrs = provisioningProvisionedSystem_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_enabled"] = types.BoolPointerValue(tkh.GetAccountEnabled()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectRSProvisioningProvisionedAccount(recurse, tkh.GetAccount()) + diags.Append(d...) + obj["account"] = val } - - obj := make(map[string]attr.Value) { val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) diags.Append(d...) obj["audit"] = val } { - val, d := tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + val, d := tkhToTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(recurse, tkh.GetIssuedPermissions()) diags.Append(d...) - obj["groups"] = getItemsAttr(val, attrs["groups"]) + obj["issued_permissions"] = getItemsAttr(val, attrs["issued_permissions"]) } + obj["login_name"] = types.StringPointerValue(tkh.GetLoginName()) { - val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + val, d := tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse, tkh.GetManagementPermissions()) diags.Append(d...) - obj["secret"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStatsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags + obj["management_permissions"] = val } - - obj := make(map[string]attr.Value) - obj["disabled_count"] = types.Int64PointerValue(tkh.GetDisabledCount()) { - val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse, tkh.GetPasswordSchemeEnabledStats()) + val, d := tkhToTFObjectRSMarkItemMarkers(recurse, tkh.GetMarkers()) diags.Append(d...) - obj["password_scheme_enabled_stats"] = val + obj["markers"] = val } { - val, d := tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse, tkh.GetSystemStats()) + val, d := tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse, tkh.GetStatistics()) diags.Append(d...) - obj["system_stats"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRSRecurse - } else { - attrs = serviceaccountServiceAccountsAuditStats_passwordSchemeEnabledStatsAttrTypesRS + obj["statistics"] = val } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectRSProvisioningGroupOnSystemTypes(recurse, tkh.GetSupportedGroupTypes()) + diags.Append(d...) + obj["supported_group_types"] = val } - obj := make(map[string]attr.Value) - objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSServiceaccountServiceAccountsAuditStats_systemStats(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountsAuditStats_systemStatsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSProvisioningProvisioningManagementPermissions(recurse bool, tkh keyhubmodel.ProvisioningProvisioningManagementPermissionsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRSRecurse + attrs = provisioningProvisioningManagementPermissionsAttrTypesRSRecurse } else { - attrs = serviceaccountServiceAccountsAuditStats_systemStatsAttrTypesRS + attrs = provisioningProvisioningManagementPermissionsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) + obj["create_new_groups_allowed"] = types.BoolPointerValue(tkh.GetCreateNewGroupsAllowed()) + obj["create_service_accounts_allowed"] = types.BoolPointerValue(tkh.GetCreateServiceAccountsAllowed()) + obj["reuse_existing_groups_allowed"] = types.BoolPointerValue(tkh.GetReuseExistingGroupsAllowed()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSSimpleStringValue(recurse bool, tkh keyhubmodel.SimpleStringValueable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccount(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = simpleStringValueAttrTypesRSRecurse + attrs = serviceaccountServiceAccountAttrTypesRSRecurse } else { - attrs = simpleStringValueAttrTypesRS + attrs = serviceaccountServiceAccountAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["value"] = types.StringPointerValue(tkh.GetValue()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSSimpleVersionInfo(recurse bool, tkh keyhubmodel.SimpleVersionInfoable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type if recurse { - attrs = simpleVersionInfoAttrTypesRSRecurse - } else { - attrs = simpleVersionInfoAttrTypesRS + { + val, d := tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(false, tkh.GetAdditionalObjects()) + diags.Append(d...) + maps.Copy(obj, val.Attributes()) + } } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val } - - obj := make(map[string]attr.Value) { - elemType := attrs["contract_versions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetContractVersions(), func(tkh int32, diags *diag.Diagnostics) attr.Value { - return types.Int64Value(int64(tkh)) + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) - obj["contract_versions"] = val + obj["permissions"] = val } - obj["key_hub_version"] = types.StringPointerValue(tkh.GetKeyHubVersion()) + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) + obj["description"] = types.StringPointerValue(tkh.GetDescription()) + obj["password_uuid"] = withUuidToTF(tkh.GetPassword()) + obj["password_rotation"] = stringerToTF(tkh.GetPasswordRotation()) + obj["technical_administrator_uuid"] = withUuidToTF(tkh.GetTechnicalAdministrator()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolderAttrTypesRSRecurse + attrs = serviceaccountServiceAccountGroupAttrTypesRSRecurse } else { - attrs = vaultDeletedVaultHolderAttrTypesRS + attrs = serviceaccountServiceAccountGroupAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8299,7 +3540,7 @@ func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD obj := make(map[string]attr.Value) if recurse { { - val, d := tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(false, tkh.GetAdditionalObjects()) + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(false, tkh.GetAdditionalObjects()) diags.Append(d...) maps.Copy(obj, val.Attributes()) } @@ -8324,22 +3565,23 @@ func tkhToTFObjectRSVaultDeletedVaultHolder(recurse bool, tkh keyhubmodel.VaultD diags.Append(d...) obj["permissions"] = val } - obj["name"] = types.StringPointerValue(tkh.GetName()) - obj["record_count"] = types.Int64PointerValue(int32PToInt64P(tkh.GetRecordCount())) - obj["vault_deleted_vault_holder_type"] = stringerToTF(tkh.GetVaultDeletedVaultHolderType()) + obj["display_name"] = types.StringPointerValue(tkh.GetDisplayName()) + obj["name_in_system"] = types.StringPointerValue(tkh.GetNameInSystem()) + obj["type"] = stringerToTF(tkh.GetProvisioningGroupOnSystemPrimerType()) + obj["short_name_in_system"] = types.StringPointerValue(tkh.GetShortNameInSystem()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolderLinkableWrapperable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroupLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRSRecurse + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRSRecurse } else { - attrs = vaultDeletedVaultHolderLinkableWrapperAttrTypesRS + attrs = serviceaccountServiceAccountGroupLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8348,8 +3590,8 @@ func tkhToTFObjectRSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh key obj := make(map[string]attr.Value) { elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultDeletedVaultHolderable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultDeletedVaultHolder(recurse, tkh) + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountGroupable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroup(recurse, tkh) diags.Append(d...) return val }) @@ -8362,13 +3604,13 @@ func tkhToTFObjectRSVaultDeletedVaultHolderLinkableWrapper(recurse bool, tkh key return objVal, diags } -func tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh keyhubmodel.VaultDeletedVaultHolder_additionalObjectsable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountGroup_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountGroup_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRSRecurse + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRSRecurse } else { - attrs = vaultDeletedVaultHolder_additionalObjectsAttrTypesRS + attrs = serviceaccountServiceAccountGroup_additionalObjectsAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags @@ -8380,10 +3622,34 @@ func tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh diags.Append(d...) obj["audit"] = val } + + objVal, d := types.ObjectValue(attrs, obj) + diags.Append(d...) + return objVal, diags +} + +func tkhToTFObjectRSServiceaccountServiceAccountLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountLinkableWrapperable) (types.Object, diag.Diagnostics) { + var diags diag.Diagnostics + var attrs map[string]attr.Type + if recurse { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRSRecurse + } else { + attrs = serviceaccountServiceAccountLinkableWrapperAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSVaultVault(recurse, tkh.GetVault()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSServiceaccountServiceAccount(recurse, tkh) + diags.Append(d...) + return val + }) diags.Append(d...) - obj["vault"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8391,48 +3657,70 @@ func tkhToTFObjectRSVaultDeletedVaultHolder_additionalObjects(recurse bool, tkh return objVal, diags } -func tkhToTFObjectRSVaultDeletedVaultRecovery(recurse bool, tkh keyhubmodel.VaultDeletedVaultRecoveryable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultDeletedVaultRecoveryAttrTypesRSRecurse + attrs = serviceaccountServiceAccountPrimerAttrTypesRSRecurse } else { - attrs = vaultDeletedVaultRecoveryAttrTypesRS + attrs = serviceaccountServiceAccountPrimerAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["prefix"] = types.StringPointerValue(tkh.GetPrefix()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - obj["target_group_uuid"] = withUuidToTF(tkh.GetTargetGroup()) + { + elemType := attrs["links"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSRestLink(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["links"] = val + } + { + elemType := attrs["permissions"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { + val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) + diags.Append(d...) + return val + }) + diags.Append(d...) + obj["permissions"] = val + } + obj["active"] = types.BoolPointerValue(tkh.GetActive()) + obj["name"] = types.StringPointerValue(tkh.GetName()) + obj["system_uuid"] = withUuidToTF(tkh.GetSystem()) + obj["username"] = types.StringPointerValue(tkh.GetUsername()) + obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags } -func tkhToTFObjectRSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMoveVaultRecordable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccountPrimerLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultMoveVaultRecordAttrTypesRSRecurse + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRSRecurse } else { - attrs = vaultMoveVaultRecordAttrTypesRS + attrs = serviceaccountServiceAccountPrimerLinkableWrapperAttrTypesRS } if tkh == nil { return types.ObjectNull(attrs), diags } obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["action"] = stringerToTF(tkh.GetAction()) - obj["group_uuid"] = withUuidToTF(tkh.GetGroup()) { - val, d := tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse, tkh.GetShareDuration()) + elemType := attrs["items"].(types.ListType).ElemType + val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { + return withUuidToTF(tkh) + }) diags.Append(d...) - obj["share_duration"] = val + obj["items"] = val } objVal, d := types.ObjectValue(attrs, obj) @@ -8440,22 +3728,35 @@ func tkhToTFObjectRSVaultMoveVaultRecord(recurse bool, tkh keyhubmodel.VaultMove return objVal, diags } -func tkhToTFObjectRSVaultMoveVaultRecord_shareDuration(recurse bool, tkh keyhubmodel.VaultMoveVaultRecord_shareDurationable) (types.Object, diag.Diagnostics) { +func tkhToTFObjectRSServiceaccountServiceAccount_additionalObjects(recurse bool, tkh keyhubmodel.ServiceaccountServiceAccount_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type if recurse { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesRSRecurse + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRSRecurse } else { - attrs = vaultMoveVaultRecord_shareDurationAttrTypesRS + attrs = serviceaccountServiceAccount_additionalObjectsAttrTypesRS + } + if tkh == nil { + return types.ObjectNull(attrs), diags + } + + obj := make(map[string]attr.Value) + { + val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) + diags.Append(d...) + obj["audit"] = val + } + { + val, d := tkhToTFObjectRSServiceaccountServiceAccountGroupLinkableWrapper(recurse, tkh.GetGroups()) + diags.Append(d...) + obj["groups"] = getItemsAttr(val, attrs["groups"]) } - if tkh == nil { - return types.ObjectNull(attrs), diags + { + val, d := tkhToTFObjectRSGeneratedSecret(recurse, tkh.GetSecret()) + diags.Append(d...) + obj["secret"] = val } - obj := make(map[string]attr.Value) - obj["nanos"] = types.Int64PointerValue(int32PToInt64P(tkh.GetNanos())) - obj["seconds"] = types.Int64PointerValue(tkh.GetSeconds()) - objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) return objVal, diags @@ -8623,35 +3924,6 @@ func tkhToTFObjectRSVaultVaultRecord(recurse bool, tkh keyhubmodel.VaultVaultRec return objVal, diags } -func tkhToTFObjectRSVaultVaultRecordLinkableWrapper(recurse bool, tkh keyhubmodel.VaultVaultRecordLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecordLinkableWrapperAttrTypesRSRecurse - } else { - attrs = vaultVaultRecordLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSVaultVaultRecordPrimer(recurse bool, tkh keyhubmodel.VaultVaultRecordPrimerable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -8857,68 +4129,6 @@ func tkhToTFObjectRSVaultVaultRecord_additionalObjects(recurse bool, tkh keyhubm return objVal, diags } -func tkhToTFObjectRSVaultVaultRecovery(recurse bool, tkh keyhubmodel.VaultVaultRecoveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultRecoveryAttrTypesRSRecurse - } else { - attrs = vaultVaultRecoveryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["account_uuid"] = withUuidToTF(tkh.GetAccount()) - obj["private_key"] = types.StringPointerValue(tkh.GetPrivateKey()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultUnlock(recurse bool, tkh keyhubmodel.VaultVaultUnlockable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockAttrTypesRSRecurse - } else { - attrs = vaultVaultUnlockAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["password"] = types.StringPointerValue(tkh.GetPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSVaultVaultUnlockResponse(recurse bool, tkh keyhubmodel.VaultVaultUnlockResponseable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = vaultVaultUnlockResponseAttrTypesRSRecurse - } else { - attrs = vaultVaultUnlockResponseAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["expires_at"] = timePointerToTF(tkh.GetExpiresAt()) - obj["session_password"] = types.StringPointerValue(tkh.GetSessionPassword()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhookable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -8993,116 +4203,6 @@ func tkhToTFObjectRSWebhookWebhook(recurse bool, tkh keyhubmodel.WebhookWebhooka return objVal, diags } -func tkhToTFObjectRSWebhookWebhookDelivery(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryAttrTypesRSRecurse - } else { - attrs = webhookWebhookDeliveryAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - if recurse { - { - val, d := tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(false, tkh.GetAdditionalObjects()) - diags.Append(d...) - maps.Copy(obj, val.Attributes()) - } - } - { - elemType := attrs["links"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetLinks(), func(tkh keyhubmodel.RestLinkable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSRestLink(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["links"] = val - } - { - elemType := attrs["permissions"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetPermissions(), func(tkh keyhubmodel.AuthPermissionable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSAuthPermission(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["permissions"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookPush(false, tkh.GetPayload()) - diags.Append(d...) - obj["payload"] = val - } - obj["reponse_headers"] = types.StringPointerValue(tkh.GetReponseHeaders()) - obj["request_headers"] = types.StringPointerValue(tkh.GetRequestHeaders()) - obj["response"] = types.StringPointerValue(tkh.GetResponse()) - obj["status"] = types.Int64PointerValue(int32PToInt64P(tkh.GetStatus())) - obj["time"] = types.Int64PointerValue(int32PToInt64P(tkh.GetTime())) - obj["trigger_time"] = timePointerToTF(tkh.GetTriggerTime()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookDeliveryLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookDeliveryLinkableWrapperable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRSRecurse - } else { - attrs = webhookWebhookDeliveryLinkableWrapperAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - elemType := attrs["items"].(types.ListType).ElemType - val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.WebhookWebhookDeliveryable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSWebhookWebhookDelivery(recurse, tkh) - diags.Append(d...) - return val - }) - diags.Append(d...) - obj["items"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookDelivery_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhookDelivery_additionalObjectsable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRSRecurse - } else { - attrs = webhookWebhookDelivery_additionalObjectsAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSAuditInfo(recurse, tkh.GetAudit()) - diags.Append(d...) - obj["audit"] = val - } - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel.WebhookWebhookLinkableWrapperable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -9132,128 +4232,6 @@ func tkhToTFObjectRSWebhookWebhookLinkableWrapper(recurse bool, tkh keyhubmodel. return objVal, diags } -func tkhToTFObjectRSWebhookWebhookNameUuid(recurse bool, tkh keyhubmodel.WebhookWebhookNameUuidable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookNameUuidAttrTypesRSRecurse - } else { - attrs = webhookWebhookNameUuidAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - obj["name"] = types.StringPointerValue(tkh.GetName()) - { - val, d := tkhToTFObjectRSLinkable(recurse, tkh.GetObject()) - diags.Append(d...) - obj["object"] = val - } - obj["uuid"] = types.StringPointerValue(tkh.GetUuid()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - -func tkhToTFObjectRSWebhookWebhookPush(recurse bool, tkh keyhubmodel.WebhookWebhookPushable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = webhookWebhookPushAttrTypesRSRecurse - } else { - attrs = webhookWebhookPushAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetAccount()) - diags.Append(d...) - obj["account"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetByParty()) - diags.Append(d...) - obj["by_party"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetCertificate()) - diags.Append(d...) - obj["certificate"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetDirectory()) - diags.Append(d...) - obj["directory"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup()) - diags.Append(d...) - obj["group"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroup2()) - diags.Append(d...) - obj["group2"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetGroupClassification()) - diags.Append(d...) - obj["group_classification"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetModificationRequest()) - diags.Append(d...) - obj["modification_request"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetOrganizationalUnit()) - diags.Append(d...) - obj["organizational_unit"] = val - } - obj["parameter1"] = types.StringPointerValue(tkh.GetParameter1()) - obj["parameter2"] = types.StringPointerValue(tkh.GetParameter2()) - obj["parameter3"] = types.StringPointerValue(tkh.GetParameter3()) - obj["security_level"] = stringerToTF(tkh.GetSecurityLevel()) - obj["seq"] = types.Int64PointerValue(tkh.GetSeq()) - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetServiceAccount()) - diags.Append(d...) - obj["service_account"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetSystem()) - diags.Append(d...) - obj["system"] = val - } - obj["timestamp"] = timePointerToTF(tkh.GetTimestamp()) - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetVaultRecord()) - diags.Append(d...) - obj["vault_record"] = val - } - { - val, d := tkhToTFObjectRSWebhookWebhookNameUuid(recurse, tkh.GetWebhook()) - diags.Append(d...) - obj["webhook"] = val - } - obj["type"] = stringerToTF(tkh.GetWebhookWebhookPushType()) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSWebhookWebhook_additionalObjects(recurse bool, tkh keyhubmodel.WebhookWebhook_additionalObjectsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type From 72e6f3edb8be197c50933080e113a5902abd1beb Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 20 Oct 2023 11:53:29 +0200 Subject: [PATCH 25/34] Support maps --- docs/data-sources/client.md | 12 +-- docs/data-sources/directory.md | 6 +- docs/data-sources/group.md | 54 ++--------- docs/data-sources/system.md | 18 +--- docs/resources/clientapplication.md | 12 +-- docs/resources/group.md | 54 ++--------- .../provider-install-verification/main.tf | 16 ++-- internal/provider/full-data-struct-ds.go | 32 +------ internal/provider/full-data-struct-rs.go | 32 +------ internal/provider/full-helpers.go | 21 ++++ internal/provider/full-object-attrs-ds.go | 28 +----- internal/provider/full-object-attrs-rs.go | 28 +----- internal/provider/full-schema-ds.go | 52 +++------- internal/provider/full-schema-rs.go | 52 +++------- .../provider/full-tf-to-data-struct-ds.go | 20 +--- .../provider/full-tf-to-data-struct-rs.go | 20 +--- internal/provider/full-tf-to-tkh-ds.go | 56 +++-------- internal/provider/full-tf-to-tkh-rs.go | 56 +++-------- internal/provider/full-tkh-to-tf-ds.go | 96 ++++--------------- internal/provider/full-tkh-to-tf-rs.go | 96 ++++--------------- 20 files changed, 158 insertions(+), 603 deletions(-) diff --git a/docs/data-sources/client.md b/docs/data-sources/client.md index e84bace..b77eb79 100644 --- a/docs/data-sources/client.md +++ b/docs/data-sources/client.md @@ -666,7 +666,7 @@ Read-Only: Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -689,10 +689,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `o_auth2_client.attributes` - - ### Nested Schema for `o_auth2_client.shared_secret` @@ -779,15 +775,11 @@ Read-Only: Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--saml2_client--attributes)) +- `attributes` (Map of String) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `saml2_client.attributes` - - ### Nested Schema for `secret` diff --git a/docs/data-sources/directory.md b/docs/data-sources/directory.md index f2953e3..610622f 100644 --- a/docs/data-sources/directory.md +++ b/docs/data-sources/directory.md @@ -334,13 +334,9 @@ Read-Only: Read-Only: - `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) +- `parameters` (Map of String) - `type` (String) - -### Nested Schema for `markers.markers.parameters` - - diff --git a/docs/data-sources/group.md b/docs/data-sources/group.md index 038b600..8edfe7f 100644 --- a/docs/data-sources/group.md +++ b/docs/data-sources/group.md @@ -291,7 +291,7 @@ Read-Only: Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -314,10 +314,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `administered_clients.o_auth2_client.attributes` - - ### Nested Schema for `administered_clients.o_auth2_client.shared_secret` @@ -404,15 +400,11 @@ Read-Only: Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client--attributes)) +- `attributes` (Map of String) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `administered_clients.saml2_client.attributes` - - ### Nested Schema for `administered_clients.technical_administrator` @@ -489,7 +481,7 @@ Read-Only: Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) @@ -506,10 +498,6 @@ Read-Only: - `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `administered_systems.abstract_provisioned_ldap.attributes` - - ### Nested Schema for `administered_systems.abstract_provisioned_ldap.client_certificate` @@ -1743,7 +1731,7 @@ Read-Only: Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -1766,10 +1754,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `client_permissions.client.attributes` - - ### Nested Schema for `client_permissions.client.shared_secret` @@ -2151,7 +2135,7 @@ Read-Only: Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) @@ -2168,10 +2152,6 @@ Read-Only: - `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.attributes` - - ### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.client_certificate` @@ -2849,13 +2829,9 @@ Read-Only: Read-Only: - `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) +- `parameters` (Map of String) - `type` (String) - -### Nested Schema for `markers.markers.parameters` - - @@ -3257,7 +3233,7 @@ Read-Only: Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -3280,10 +3256,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `owned_clients.o_auth2_client.attributes` - - ### Nested Schema for `owned_clients.o_auth2_client.shared_secret` @@ -3370,15 +3342,11 @@ Read-Only: Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client--attributes)) +- `attributes` (Map of String) - `metadata` (String) - `metadata_url` (String) - `subject_format` (String) - -### Nested Schema for `owned_clients.saml2_client.attributes` - - ### Nested Schema for `owned_clients.technical_administrator` @@ -3968,7 +3936,7 @@ Read-Only: Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) @@ -3985,10 +3953,6 @@ Read-Only: - `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `owned_systems.abstract_provisioned_ldap.attributes` - - ### Nested Schema for `owned_systems.abstract_provisioned_ldap.client_certificate` diff --git a/docs/data-sources/system.md b/docs/data-sources/system.md index 753d055..6d9bb70 100644 --- a/docs/data-sources/system.md +++ b/docs/data-sources/system.md @@ -63,7 +63,7 @@ description: |- Read-Only: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `base_dn` (String) - `bind_dn` (String) - `bind_password` (String) @@ -80,10 +80,6 @@ Read-Only: - `trusted_certificate` (Attributes) (see [below for nested schema](#nestedatt--abstract_provisioned_ldap--trusted_certificate)) - `user_dn` (String) - -### Nested Schema for `abstract_provisioned_ldap.attributes` - - ### Nested Schema for `abstract_provisioned_ldap.client_certificate` @@ -313,7 +309,7 @@ Read-Only: Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--issued_permissions--client--account_permissions)) -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--issued_permissions--client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -336,10 +332,6 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `issued_permissions.client.attributes` - - ### Nested Schema for `issued_permissions.client.shared_secret` @@ -536,13 +528,9 @@ Read-Only: Read-Only: - `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) +- `parameters` (Map of String) - `type` (String) - -### Nested Schema for `markers.markers.parameters` - - diff --git a/docs/resources/clientapplication.md b/docs/resources/clientapplication.md index af3e8e0..9e4f42c 100644 --- a/docs/resources/clientapplication.md +++ b/docs/resources/clientapplication.md @@ -104,7 +104,7 @@ Read-Only: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -120,10 +120,6 @@ Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `o_auth2_client.attributes` - - ### Nested Schema for `o_auth2_client.account_permissions` @@ -145,14 +141,10 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--saml2_client--attributes)) +- `attributes` (Map of String) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `saml2_client.attributes` - - ### Nested Schema for `secret` diff --git a/docs/resources/group.md b/docs/resources/group.md index c6b3a2d..da40c47 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -181,7 +181,7 @@ Read-Only: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -197,10 +197,6 @@ Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `client_permissions.client.attributes` - - ### Nested Schema for `client_permissions.client.account_permissions` @@ -282,7 +278,7 @@ Read-Only: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -298,10 +294,6 @@ Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `administered_clients.o_auth2_client.attributes` - - ### Nested Schema for `administered_clients.o_auth2_client.account_permissions` @@ -323,14 +315,10 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client--attributes)) +- `attributes` (Map of String) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `administered_clients.saml2_client.attributes` - - ### Nested Schema for `administered_clients.links` @@ -403,7 +391,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -417,10 +405,6 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `administered_systems.abstract_provisioned_ldap.attributes` - - ### Nested Schema for `administered_systems.provisioned_a_d` @@ -775,7 +759,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -789,10 +773,6 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `content_administered_systems.abstract_provisioned_ldap.attributes` - - ### Nested Schema for `content_administered_systems.provisioned_a_d` @@ -1046,13 +1026,9 @@ Optional: Optional: - `level` (String) -- `parameters` (Attributes) (see [below for nested schema](#nestedatt--markers--markers--parameters)) +- `parameters` (Map of String) - `type` (String) - -### Nested Schema for `markers.markers.parameters` - - @@ -1147,7 +1123,7 @@ Read-Only: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--attributes)) +- `attributes` (Map of String) - `callback_uri` (String) - `confidential` (Boolean) - `debug_mode` (Boolean) @@ -1163,10 +1139,6 @@ Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--account_permissions)) - `shared_secret_uuid` (String) - -### Nested Schema for `owned_clients.o_auth2_client.attributes` - - ### Nested Schema for `owned_clients.o_auth2_client.account_permissions` @@ -1188,14 +1160,10 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client--attributes)) +- `attributes` (Map of String) - `metadata` (String) - `metadata_url` (String) - -### Nested Schema for `owned_clients.saml2_client.attributes` - - ### Nested Schema for `owned_clients.links` @@ -1474,7 +1442,7 @@ Required: Optional: -- `attributes` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap--attributes)) +- `attributes` (Map of String) - `bind_dn` (String) - `bind_password` (String) - `client_certificate_uuid` (String) @@ -1488,10 +1456,6 @@ Optional: - `trusted_certificate_uuid` (String) - `user_dn` (String) - -### Nested Schema for `owned_systems.abstract_provisioned_ldap.attributes` - - ### Nested Schema for `owned_systems.provisioned_a_d` diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index f5a4796..0a2dee3 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -42,15 +42,13 @@ provider "keyhubpreview" { # value = data.keyhubpreview_client.test #} -#resource "keyhubpreview_vaultrecord" "terrarecord" { -# name = "Terraform Record" -# group_uuid = data.keyhubpreview_group.test.uuid -# additional_objects = { -# secret = { -# password = "test3" -# } -# } -#} +resource "keyhubpreview_group_vaultrecord" "terrarecord" { + name = "Terraform Record" + group_uuid = resource.keyhubpreview_group.terra.uuid + secret = { + password = "test3" + } +} resource "keyhubpreview_group" "terra" { name = "Terraform" diff --git a/internal/provider/full-data-struct-ds.go b/internal/provider/full-data-struct-ds.go index 0326762..f159e75 100644 --- a/internal/provider/full-data-struct-ds.go +++ b/internal/provider/full-data-struct-ds.go @@ -286,7 +286,7 @@ var clientOAuth2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client(t type clientOAuth2ClientDataDS struct { AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` + Attributes types.Map `tfsdk:"attributes"` CallbackURI types.String `tfsdk:"callback_uri"` Confidential types.Bool `tfsdk:"confidential"` DebugMode types.Bool `tfsdk:"debug_mode"` @@ -340,28 +340,16 @@ type clientOAuth2ClientPermission_additionalObjectsDataDS struct { Audit types.Object `tfsdk:"audit"` } -var clientOAuth2Client_attributesAttrTypesDS = objectAttrsTypeDSClientOAuth2Client_attributes(false) -var clientOAuth2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientOAuth2Client_attributes(true) - -type clientOAuth2Client_attributesDataDS struct { -} - var clientSaml2ClientAttrTypesDS = objectAttrsTypeDSClientSaml2Client(false) var clientSaml2ClientAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client(true) type clientSaml2ClientDataDS struct { - Attributes types.Object `tfsdk:"attributes"` + Attributes types.Map `tfsdk:"attributes"` Metadata types.String `tfsdk:"metadata"` MetadataURL types.String `tfsdk:"metadata_url"` SubjectFormat types.String `tfsdk:"subject_format"` } -var clientSaml2Client_attributesAttrTypesDS = objectAttrsTypeDSClientSaml2Client_attributes(false) -var clientSaml2Client_attributesAttrTypesDSRecurse = objectAttrsTypeDSClientSaml2Client_attributes(true) - -type clientSaml2Client_attributesDataDS struct { -} - var directoryAccountDirectoryAttrTypesDS = objectAttrsTypeDSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesDSRecurse = objectAttrsTypeDSDirectoryAccountDirectory(true) @@ -930,13 +918,7 @@ var markItemMarkerAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker(true) type markItemMarkerDataDS struct { Level types.String `tfsdk:"level"` MarkItemMarkerType types.String `tfsdk:"type"` - Parameters types.Object `tfsdk:"parameters"` -} - -var markItemMarker_parametersAttrTypesDS = objectAttrsTypeDSMarkItemMarker_parameters(false) -var markItemMarker_parametersAttrTypesDSRecurse = objectAttrsTypeDSMarkItemMarker_parameters(true) - -type markItemMarker_parametersDataDS struct { + Parameters types.Map `tfsdk:"parameters"` } var markItemMarkersAttrTypesDS = objectAttrsTypeDSMarkItemMarkers(false) @@ -990,7 +972,7 @@ var provisioningAbstractProvisionedLDAPAttrTypesDS = objectAttrsTypeDSProvisioni var provisioningAbstractProvisionedLDAPAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(true) type provisioningAbstractProvisionedLDAPDataDS struct { - Attributes types.Object `tfsdk:"attributes"` + Attributes types.Map `tfsdk:"attributes"` BaseDN types.String `tfsdk:"base_dn"` BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` @@ -1008,12 +990,6 @@ type provisioningAbstractProvisionedLDAPDataDS struct { UserDN types.String `tfsdk:"user_dn"` } -var provisioningAbstractProvisionedLDAP_attributesAttrTypesDS = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(false) -var provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse = objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(true) - -type provisioningAbstractProvisionedLDAP_attributesDataDS struct { -} - var provisioningCircuitBreakerStatisticsAttrTypesDS = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(false) var provisioningCircuitBreakerStatisticsAttrTypesDSRecurse = objectAttrsTypeDSProvisioningCircuitBreakerStatistics(true) diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index eb647a6..874ffb7 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -196,7 +196,7 @@ var clientOAuth2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client(t type clientOAuth2ClientDataRS struct { AccountPermissions types.List `tfsdk:"account_permissions"` - Attributes types.Object `tfsdk:"attributes"` + Attributes types.Map `tfsdk:"attributes"` CallbackURI types.String `tfsdk:"callback_uri"` Confidential types.Bool `tfsdk:"confidential"` DebugMode types.Bool `tfsdk:"debug_mode"` @@ -248,28 +248,16 @@ type clientOAuth2ClientPermission_additionalObjectsDataRS struct { Audit types.Object `tfsdk:"audit"` } -var clientOAuth2Client_attributesAttrTypesRS = objectAttrsTypeRSClientOAuth2Client_attributes(false) -var clientOAuth2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientOAuth2Client_attributes(true) - -type clientOAuth2Client_attributesDataRS struct { -} - var clientSaml2ClientAttrTypesRS = objectAttrsTypeRSClientSaml2Client(false) var clientSaml2ClientAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client(true) type clientSaml2ClientDataRS struct { - Attributes types.Object `tfsdk:"attributes"` + Attributes types.Map `tfsdk:"attributes"` Metadata types.String `tfsdk:"metadata"` MetadataURL types.String `tfsdk:"metadata_url"` SubjectFormat types.String `tfsdk:"subject_format"` } -var clientSaml2Client_attributesAttrTypesRS = objectAttrsTypeRSClientSaml2Client_attributes(false) -var clientSaml2Client_attributesAttrTypesRSRecurse = objectAttrsTypeRSClientSaml2Client_attributes(true) - -type clientSaml2Client_attributesDataRS struct { -} - var directoryAccountDirectoryAttrTypesRS = objectAttrsTypeRSDirectoryAccountDirectory(false) var directoryAccountDirectoryAttrTypesRSRecurse = objectAttrsTypeRSDirectoryAccountDirectory(true) @@ -762,13 +750,7 @@ var markItemMarkerAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker(true) type markItemMarkerDataRS struct { Level types.String `tfsdk:"level"` MarkItemMarkerType types.String `tfsdk:"type"` - Parameters types.Object `tfsdk:"parameters"` -} - -var markItemMarker_parametersAttrTypesRS = objectAttrsTypeRSMarkItemMarker_parameters(false) -var markItemMarker_parametersAttrTypesRSRecurse = objectAttrsTypeRSMarkItemMarker_parameters(true) - -type markItemMarker_parametersDataRS struct { + Parameters types.Map `tfsdk:"parameters"` } var markItemMarkersAttrTypesRS = objectAttrsTypeRSMarkItemMarkers(false) @@ -847,7 +829,7 @@ var provisioningAbstractProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioni var provisioningAbstractProvisionedLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(true) type provisioningAbstractProvisionedLDAPDataRS struct { - Attributes types.Object `tfsdk:"attributes"` + Attributes types.Map `tfsdk:"attributes"` BaseDN types.String `tfsdk:"base_dn"` BindDN types.String `tfsdk:"bind_dn"` BindPassword types.String `tfsdk:"bind_password"` @@ -865,12 +847,6 @@ type provisioningAbstractProvisionedLDAPDataRS struct { UserDN types.String `tfsdk:"user_dn"` } -var provisioningAbstractProvisionedLDAP_attributesAttrTypesRS = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(false) -var provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse = objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(true) - -type provisioningAbstractProvisionedLDAP_attributesDataRS struct { -} - var provisioningCircuitBreakerStatisticsAttrTypesRS = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(false) var provisioningCircuitBreakerStatisticsAttrTypesRSRecurse = objectAttrsTypeRSProvisioningCircuitBreakerStatistics(true) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index d330fde..81ee283 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -16,6 +16,7 @@ import ( "github.com/hashicorp/terraform-plugin-framework/types" "github.com/hashicorp/terraform-plugin-framework/types/basetypes" "github.com/hashicorp/terraform-plugin-log/tflog" + "github.com/microsoft/kiota-abstractions-go/serialization" keyhub "github.com/topicuskeyhub/sdk-go" keyhubaccount "github.com/topicuskeyhub/sdk-go/account" keyhubcertificate "github.com/topicuskeyhub/sdk-go/certificate" @@ -55,6 +56,26 @@ func tfToSlice[T any](val basetypes.ListValue, toValue func(attr.Value, *diag.Di return ret, diags } +func mapToTF[T any](elemType attr.Type, vals map[string]T, toValue func(T, *diag.Diagnostics) attr.Value) (attr.Value, diag.Diagnostics) { + var diags diag.Diagnostics + ret := make(map[string]attr.Value) + for name, val := range vals { + ret[name] = toValue(val, &diags) + } + return types.MapValue(elemType, ret) +} + +func tfToMap[T serialization.AdditionalDataHolder](val basetypes.MapValue, toValue func(attr.Value, *diag.Diagnostics) any, ret T) (T, diag.Diagnostics) { + var diags diag.Diagnostics + vals := val.Elements() + retMap := make(map[string]any) + for name, val := range vals { + retMap[name] = toValue(val, &diags) + } + ret.SetAdditionalData(retMap) + return ret, diags +} + func int32PToInt64P(in *int32) *int64 { if in == nil { return nil diff --git a/internal/provider/full-object-attrs-ds.go b/internal/provider/full-object-attrs-ds.go index 5a570c0..e0188d2 100644 --- a/internal/provider/full-object-attrs-ds.go +++ b/internal/provider/full-object-attrs-ds.go @@ -270,7 +270,7 @@ func objectAttrsTypeDSClientLdapClient(recurse bool) map[string]attr.Type { func objectAttrsTypeDSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeDSAuthPermission(recurse)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientOAuth2Client_attributes(recurse)} + objectAttrs["attributes"] = types.MapType{ElemType: types.StringType} objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -325,25 +325,15 @@ func objectAttrsTypeDSClientOAuth2ClientPermission_additionalObjects(recurse boo return objectAttrs } -func objectAttrsTypeDSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeDSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSClientSaml2Client_attributes(recurse)} + objectAttrs["attributes"] = types.MapType{ElemType: types.StringType} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType return objectAttrs } -func objectAttrsTypeDSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeDSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -884,12 +874,7 @@ func objectAttrsTypeDSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType objectAttrs["type"] = types.StringType - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeDSMarkItemMarker_parameters(recurse)} - return objectAttrs -} - -func objectAttrsTypeDSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) + objectAttrs["parameters"] = types.MapType{ElemType: types.StringType} return objectAttrs } @@ -939,7 +924,7 @@ func objectAttrsTypeDSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse)} + objectAttrs["attributes"] = types.MapType{ElemType: types.StringType} objectAttrs["base_dn"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType @@ -958,11 +943,6 @@ func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri return objectAttrs } -func objectAttrsTypeDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeDSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["number_of_failed_calls"] = types.Int64Type diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 58f0acd..4082283 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -185,7 +185,7 @@ func objectAttrsTypeRSClientLdapClient(recurse bool) map[string]attr.Type { func objectAttrsTypeRSClientOAuth2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["account_permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client_attributes(recurse)} + objectAttrs["attributes"] = types.MapType{ElemType: types.StringType} objectAttrs["callback_uri"] = types.StringType objectAttrs["confidential"] = types.BoolType objectAttrs["debug_mode"] = types.BoolType @@ -238,25 +238,15 @@ func objectAttrsTypeRSClientOAuth2ClientPermission_additionalObjects(recurse boo return objectAttrs } -func objectAttrsTypeRSClientOAuth2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeRSClientSaml2Client(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientSaml2Client_attributes(recurse)} + objectAttrs["attributes"] = types.MapType{ElemType: types.StringType} objectAttrs["metadata"] = types.StringType objectAttrs["metadata_url"] = types.StringType objectAttrs["subject_format"] = types.StringType return objectAttrs } -func objectAttrsTypeRSClientSaml2Client_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeRSDirectoryAccountDirectory(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) if recurse { @@ -724,12 +714,7 @@ func objectAttrsTypeRSMarkItemMarker(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["level"] = types.StringType objectAttrs["type"] = types.StringType - objectAttrs["parameters"] = types.ObjectType{AttrTypes: objectAttrsTypeRSMarkItemMarker_parameters(recurse)} - return objectAttrs -} - -func objectAttrsTypeRSMarkItemMarker_parameters(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) + objectAttrs["parameters"] = types.MapType{ElemType: types.StringType} return objectAttrs } @@ -804,7 +789,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnit_additionalObjects(recurse b func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["attributes"] = types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse)} + objectAttrs["attributes"] = types.MapType{ElemType: types.StringType} objectAttrs["base_dn"] = types.StringType objectAttrs["bind_dn"] = types.StringType objectAttrs["bind_password"] = types.StringType @@ -823,11 +808,6 @@ func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP(recurse bool) map[stri return objectAttrs } -func objectAttrsTypeRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]attr.Type { - objectAttrs := make(map[string]attr.Type) - return objectAttrs -} - func objectAttrsTypeRSProvisioningCircuitBreakerStatistics(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) objectAttrs["number_of_failed_calls"] = types.Int64Type diff --git a/internal/provider/full-schema-ds.go b/internal/provider/full-schema-ds.go index 7d497b5..3677be2 100644 --- a/internal/provider/full-schema-ds.go +++ b/internal/provider/full-schema-ds.go @@ -699,12 +699,9 @@ func dataSourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]dsschema.A }, Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse), - } - attr.Computed = true - schemaAttrs["attributes"] = attr + schemaAttrs["attributes"] = dsschema.MapAttribute{ + ElementType: types.StringType, + Computed: true, } schemaAttrs["callback_uri"] = dsschema.StringAttribute{ Computed: true, @@ -860,18 +857,11 @@ func dataSourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse } return schemaAttrs } -func dataSourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsClientSaml2Client_attributes(recurse), - } - attr.Computed = true - schemaAttrs["attributes"] = attr + schemaAttrs["attributes"] = dsschema.MapAttribute{ + ElementType: types.StringType, + Computed: true, } schemaAttrs["metadata"] = dsschema.StringAttribute{ Computed: true, @@ -884,10 +874,6 @@ func dataSourceSchemaAttrsClientSaml2Client(recurse bool) map[string]dsschema.At } return schemaAttrs } -func dataSourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} func dataSourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) if recurse { @@ -2322,19 +2308,12 @@ func dataSourceSchemaAttrsMarkItemMarker(recurse bool) map[string]dsschema.Attri schemaAttrs["type"] = dsschema.StringAttribute{ Computed: true, } - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsMarkItemMarker_parameters(recurse), - } - attr.Computed = true - schemaAttrs["parameters"] = attr + schemaAttrs["parameters"] = dsschema.MapAttribute{ + ElementType: types.StringType, + Computed: true, } return schemaAttrs } -func dataSourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} func dataSourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["markers"] = dsschema.ListNestedAttribute{ @@ -2454,12 +2433,9 @@ func dataSourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recur } func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) - { - attr := dsschema.SingleNestedAttribute{ - Attributes: dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), - } - attr.Computed = true - schemaAttrs["attributes"] = attr + schemaAttrs["attributes"] = dsschema.MapAttribute{ + ElementType: types.StringType, + Computed: true, } schemaAttrs["base_dn"] = dsschema.StringAttribute{ Computed: true, @@ -2520,10 +2496,6 @@ func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[ } return schemaAttrs } -func dataSourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]dsschema.Attribute { - schemaAttrs := make(map[string]dsschema.Attribute) - return schemaAttrs -} func dataSourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]dsschema.Attribute { schemaAttrs := make(map[string]dsschema.Attribute) schemaAttrs["number_of_failed_calls"] = dsschema.Int64Attribute{ diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 8fc65e5..b5308b9 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -506,12 +506,9 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att }, Computed: true, } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client_attributes(recurse), - } - attr.Optional = true - schemaAttrs["attributes"] = attr + schemaAttrs["attributes"] = rsschema.MapAttribute{ + ElementType: types.StringType, + Optional: true, } schemaAttrs["callback_uri"] = rsschema.StringAttribute{ Optional: true, @@ -668,18 +665,11 @@ func resourceSchemaAttrsClientOAuth2ClientPermission_additionalObjects(recurse b } return schemaAttrs } -func resourceSchemaAttrsClientOAuth2Client_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientSaml2Client_attributes(recurse), - } - attr.Optional = true - schemaAttrs["attributes"] = attr + schemaAttrs["attributes"] = rsschema.MapAttribute{ + ElementType: types.StringType, + Optional: true, } schemaAttrs["metadata"] = rsschema.StringAttribute{ Optional: true, @@ -700,10 +690,6 @@ func resourceSchemaAttrsClientSaml2Client(recurse bool) map[string]rsschema.Attr } return schemaAttrs } -func resourceSchemaAttrsClientSaml2Client_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) if recurse { @@ -2091,19 +2077,12 @@ func resourceSchemaAttrsMarkItemMarker(recurse bool) map[string]rsschema.Attribu ), }, } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsMarkItemMarker_parameters(recurse), - } - attr.Optional = true - schemaAttrs["parameters"] = attr + schemaAttrs["parameters"] = rsschema.MapAttribute{ + ElementType: types.StringType, + Optional: true, } return schemaAttrs } -func resourceSchemaAttrsMarkItemMarker_parameters(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} func resourceSchemaAttrsMarkItemMarkers(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["markers"] = rsschema.ListNestedAttribute{ @@ -2282,12 +2261,9 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse } func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse), - } - attr.Optional = true - schemaAttrs["attributes"] = attr + schemaAttrs["attributes"] = rsschema.MapAttribute{ + ElementType: types.StringType, + Optional: true, } schemaAttrs["base_dn"] = rsschema.StringAttribute{ Required: true, @@ -2378,10 +2354,6 @@ func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP(recurse bool) map[st } return schemaAttrs } -func resourceSchemaAttrsProvisioningAbstractProvisionedLDAP_attributes(recurse bool) map[string]rsschema.Attribute { - schemaAttrs := make(map[string]rsschema.Attribute) - return schemaAttrs -} func resourceSchemaAttrsProvisioningCircuitBreakerStatistics(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["number_of_failed_calls"] = rsschema.Int64Attribute{ diff --git a/internal/provider/full-tf-to-data-struct-ds.go b/internal/provider/full-tf-to-data-struct-ds.go index dddc496..d399c5e 100644 --- a/internal/provider/full-tf-to-data-struct-ds.go +++ b/internal/provider/full-tf-to-data-struct-ds.go @@ -221,7 +221,7 @@ func fillDataStructFromTFObjectDSClientLdapClient(data *clientLdapClientDataDS, func fillDataStructFromTFObjectDSClientOAuth2Client(data *clientOAuth2ClientDataDS, obj types.Object) { data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.MapValue) data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) @@ -263,19 +263,13 @@ func fillDataStructFromTFObjectDSClientOAuth2ClientPermission_additionalObjects( data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectDSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataDS, obj types.Object) { -} - func fillDataStructFromTFObjectDSClientSaml2Client(data *clientSaml2ClientDataDS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.MapValue) data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataDS, obj types.Object) { -} - func fillDataStructFromTFObjectDSDirectoryAccountDirectory(data *directoryAccountDirectoryDataDS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -709,10 +703,7 @@ func fillDataStructFromTFObjectDSLaunchpadVaultRecordLaunchpadTile(data *launchp func fillDataStructFromTFObjectDSMarkItemMarker(data *markItemMarkerDataDS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectDSMarkItemMarker_parameters(data *markItemMarker_parametersDataDS, obj types.Object) { + data.Parameters = obj.Attributes()["parameters"].(basetypes.MapValue) } func fillDataStructFromTFObjectDSMarkItemMarkers(data *markItemMarkersDataDS, obj types.Object) { @@ -748,7 +739,7 @@ func fillDataStructFromTFObjectDSOrganizationOrganizationalUnit_additionalObject } func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataDS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.MapValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) @@ -766,9 +757,6 @@ func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP(data *provi data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) } -func fillDataStructFromTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataDS, obj types.Object) { -} - func fillDataStructFromTFObjectDSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataDS, obj types.Object) { data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 3dba160..7adb735 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -152,7 +152,7 @@ func fillDataStructFromTFObjectRSClientLdapClient(data *clientLdapClientDataRS, func fillDataStructFromTFObjectRSClientOAuth2Client(data *clientOAuth2ClientDataRS, obj types.Object) { data.AccountPermissions = obj.Attributes()["account_permissions"].(basetypes.ListValue) - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.MapValue) data.CallbackURI = obj.Attributes()["callback_uri"].(basetypes.StringValue) data.Confidential = obj.Attributes()["confidential"].(basetypes.BoolValue) data.DebugMode = obj.Attributes()["debug_mode"].(basetypes.BoolValue) @@ -192,19 +192,13 @@ func fillDataStructFromTFObjectRSClientOAuth2ClientPermission_additionalObjects( data.Audit = obj.Attributes()["audit"].(basetypes.ObjectValue) } -func fillDataStructFromTFObjectRSClientOAuth2Client_attributes(data *clientOAuth2Client_attributesDataRS, obj types.Object) { -} - func fillDataStructFromTFObjectRSClientSaml2Client(data *clientSaml2ClientDataRS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.MapValue) data.Metadata = obj.Attributes()["metadata"].(basetypes.StringValue) data.MetadataURL = obj.Attributes()["metadata_url"].(basetypes.StringValue) data.SubjectFormat = obj.Attributes()["subject_format"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSClientSaml2Client_attributes(data *clientSaml2Client_attributesDataRS, obj types.Object) { -} - func fillDataStructFromTFObjectRSDirectoryAccountDirectory(data *directoryAccountDirectoryDataRS, obj types.Object) { data.Links = obj.Attributes()["links"].(basetypes.ListValue) data.Permissions = obj.Attributes()["permissions"].(basetypes.ListValue) @@ -583,10 +577,7 @@ func fillDataStructFromTFObjectRSLaunchpadVaultRecordLaunchpadTile(data *launchp func fillDataStructFromTFObjectRSMarkItemMarker(data *markItemMarkerDataRS, obj types.Object) { data.Level = obj.Attributes()["level"].(basetypes.StringValue) data.MarkItemMarkerType = obj.Attributes()["type"].(basetypes.StringValue) - data.Parameters = obj.Attributes()["parameters"].(basetypes.ObjectValue) -} - -func fillDataStructFromTFObjectRSMarkItemMarker_parameters(data *markItemMarker_parametersDataRS, obj types.Object) { + data.Parameters = obj.Attributes()["parameters"].(basetypes.MapValue) } func fillDataStructFromTFObjectRSMarkItemMarkers(data *markItemMarkersDataRS, obj types.Object) { @@ -641,7 +632,7 @@ func fillDataStructFromTFObjectRSOrganizationOrganizationalUnit_additionalObject } func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provisioningAbstractProvisionedLDAPDataRS, obj types.Object) { - data.Attributes = obj.Attributes()["attributes"].(basetypes.ObjectValue) + data.Attributes = obj.Attributes()["attributes"].(basetypes.MapValue) data.BaseDN = obj.Attributes()["base_dn"].(basetypes.StringValue) data.BindDN = obj.Attributes()["bind_dn"].(basetypes.StringValue) data.BindPassword = obj.Attributes()["bind_password"].(basetypes.StringValue) @@ -659,9 +650,6 @@ func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP(data *provi data.UserDN = obj.Attributes()["user_dn"].(basetypes.StringValue) } -func fillDataStructFromTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(data *provisioningAbstractProvisionedLDAP_attributesDataRS, obj types.Object) { -} - func fillDataStructFromTFObjectRSProvisioningCircuitBreakerStatistics(data *provisioningCircuitBreakerStatisticsDataRS, obj types.Object) { data.NumberOfFailedCalls = obj.Attributes()["number_of_failed_calls"].(basetypes.Int64Value) data.NumberOfNotPermittedCalls = obj.Attributes()["number_of_not_permitted_calls"].(basetypes.Int64Value) diff --git a/internal/provider/full-tf-to-tkh-ds.go b/internal/provider/full-tf-to-tkh-ds.go index 2514ea2..9cd01a9 100644 --- a/internal/provider/full-tf-to-tkh-ds.go +++ b/internal/provider/full-tf-to-tkh-ds.go @@ -793,7 +793,9 @@ func tfObjectToTKHDSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetAccountPermissions(val) } { - val, d := tfObjectToTKHDSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["attributes"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewClientOAuth2Client_attributes()) diags.Append(d...) tkh.SetAttributes(val) } @@ -961,16 +963,6 @@ func tfObjectToTKHDSClientOAuth2ClientPermission_additionalObjects(ctx context.C return tkh, diags } -func tfObjectToTKHDSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ClientOAuth2Client_attributesable - tkh = keyhubmodel.NewClientOAuth2Client_attributes() - return tkh, diags -} - func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -980,7 +972,9 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal var tkh keyhubmodel.ClientSaml2Clientable tkh = keyhubmodel.NewClientSaml2Client() { - val, d := tfObjectToTKHDSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["attributes"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewClientSaml2Client_attributes()) diags.Append(d...) tkh.SetAttributes(val) } @@ -994,16 +988,6 @@ func tfObjectToTKHDSClientSaml2Client(ctx context.Context, recurse bool, objVal return tkh, diags } -func tfObjectToTKHDSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ClientSaml2Client_attributesable - tkh = keyhubmodel.NewClientSaml2Client_attributes() - return tkh, diags -} - func tfObjectToTKHDSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2598,23 +2582,15 @@ func tfObjectToTKHDSMarkItemMarker(ctx context.Context, recurse bool, objVal typ tkh.SetMarkItemMarkerType(val) } { - val, d := tfObjectToTKHDSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["parameters"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewMarkItemMarker_parameters()) diags.Append(d...) tkh.SetParameters(val) } return tkh, diags } -func tfObjectToTKHDSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() - return tkh, diags -} - func tfObjectToTKHDSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2761,7 +2737,9 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["attributes"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes()) diags.Append(d...) tkh.SetAttributes(val) } @@ -2799,16 +2777,6 @@ func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec return tkh, diags } -func tfObjectToTKHDSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable - tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags -} - func tfObjectToTKHDSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 6a5a207..549fa82 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -549,7 +549,9 @@ func tfObjectToTKHRSClientOAuth2Client(ctx context.Context, recurse bool, objVal tkh.SetAccountPermissions(val) } { - val, d := tfObjectToTKHRSClientOAuth2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["attributes"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewClientOAuth2Client_attributes()) diags.Append(d...) tkh.SetAttributes(val) } @@ -717,16 +719,6 @@ func tfObjectToTKHRSClientOAuth2ClientPermission_additionalObjects(ctx context.C return tkh, diags } -func tfObjectToTKHRSClientOAuth2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientOAuth2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ClientOAuth2Client_attributesable - tkh = keyhubmodel.NewClientOAuth2Client_attributes() - return tkh, diags -} - func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Clientable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -736,7 +728,9 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal var tkh keyhubmodel.ClientSaml2Clientable tkh = keyhubmodel.NewClientSaml2Client() { - val, d := tfObjectToTKHRSClientSaml2Client_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["attributes"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewClientSaml2Client_attributes()) diags.Append(d...) tkh.SetAttributes(val) } @@ -750,16 +744,6 @@ func tfObjectToTKHRSClientSaml2Client(ctx context.Context, recurse bool, objVal return tkh, diags } -func tfObjectToTKHRSClientSaml2Client_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ClientSaml2Client_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ClientSaml2Client_attributesable - tkh = keyhubmodel.NewClientSaml2Client_attributes() - return tkh, diags -} - func tfObjectToTKHRSDirectoryAccountDirectory(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.DirectoryAccountDirectoryable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2194,23 +2178,15 @@ func tfObjectToTKHRSMarkItemMarker(ctx context.Context, recurse bool, objVal typ tkh.SetMarkItemMarkerType(val) } { - val, d := tfObjectToTKHRSMarkItemMarker_parameters(ctx, recurse, objAttrs["parameters"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["parameters"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewMarkItemMarker_parameters()) diags.Append(d...) tkh.SetParameters(val) } return tkh, diags } -func tfObjectToTKHRSMarkItemMarker_parameters(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarker_parametersable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.MarkItemMarker_parametersable - tkh = keyhubmodel.NewMarkItemMarker_parameters() - return tkh, diags -} - func tfObjectToTKHRSMarkItemMarkers(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.MarkItemMarkersable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { @@ -2436,7 +2412,9 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAPable tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP() { - val, d := tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx, recurse, objAttrs["attributes"].(basetypes.ObjectValue)) + val, d := tfToMap(objAttrs["attributes"].(basetypes.MapValue), func(val attr.Value, diags *diag.Diagnostics) any { + return val.(basetypes.StringValue).ValueString() + }, keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes()) diags.Append(d...) tkh.SetAttributes(val) } @@ -2474,16 +2452,6 @@ func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP(ctx context.Context, rec return tkh, diags } -func tfObjectToTKHRSProvisioningAbstractProvisionedLDAP_attributes(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable, diag.Diagnostics) { - var diags diag.Diagnostics - if objVal.IsNull() || objVal.IsUnknown() { - return nil, diags - } - var tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable - tkh = keyhubmodel.NewProvisioningAbstractProvisionedLDAP_attributes() - return tkh, diags -} - func tfObjectToTKHRSProvisioningCircuitBreakerStatistics(ctx context.Context, recurse bool, objVal types.Object) (keyhubmodel.ProvisioningCircuitBreakerStatisticsable, diag.Diagnostics) { var diags diag.Diagnostics if objVal.IsNull() || objVal.IsUnknown() { diff --git a/internal/provider/full-tkh-to-tf-ds.go b/internal/provider/full-tkh-to-tf-ds.go index 141b98f..631a35d 100644 --- a/internal/provider/full-tkh-to-tf-ds.go +++ b/internal/provider/full-tkh-to-tf-ds.go @@ -879,7 +879,10 @@ func tkhToTFObjectDSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["account_permissions"] = val } { - val, d := tkhToTFObjectDSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["attributes"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetAttributes().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["attributes"] = val } @@ -1077,25 +1080,6 @@ func tkhToTFObjectDSClientOAuth2ClientPermission_additionalObjects(recurse bool, return objVal, diags } -func tkhToTFObjectDSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2Client_attributesAttrTypesDSRecurse - } else { - attrs = clientOAuth2Client_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -1110,7 +1094,10 @@ func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["attributes"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetAttributes().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["attributes"] = val } @@ -1123,25 +1110,6 @@ func tkhToTFObjectDSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C return objVal, diags } -func tkhToTFObjectDSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesDSRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -2970,7 +2938,10 @@ func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera obj["level"] = stringerToTF(tkh.GetLevel()) obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - val, d := tkhToTFObjectDSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + elemType := attrs["parameters"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetParameters().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["parameters"] = val } @@ -2980,25 +2951,6 @@ func tkhToTFObjectDSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera return objVal, diags } -func tkhToTFObjectDSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarker_parametersAttrTypesDSRecurse - } else { - attrs = markItemMarker_parametersAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -3197,7 +3149,10 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["attributes"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetAttributes().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["attributes"] = val } @@ -3234,25 +3189,6 @@ func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectDSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesDS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectDSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index 7a66bdc..c774d0d 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -594,7 +594,10 @@ func tkhToTFObjectRSClientOAuth2Client(recurse bool, tkh keyhubmodel.ClientOAuth obj["account_permissions"] = val } { - val, d := tkhToTFObjectRSClientOAuth2Client_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["attributes"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetAttributes().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["attributes"] = val } @@ -770,25 +773,6 @@ func tkhToTFObjectRSClientOAuth2ClientPermission_additionalObjects(recurse bool, return objVal, diags } -func tkhToTFObjectRSClientOAuth2Client_attributes(recurse bool, tkh keyhubmodel.ClientOAuth2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientOAuth2Client_attributesAttrTypesRSRecurse - } else { - attrs = clientOAuth2Client_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2Clientable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -803,7 +787,10 @@ func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSClientSaml2Client_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["attributes"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetAttributes().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["attributes"] = val } @@ -816,25 +803,6 @@ func tkhToTFObjectRSClientSaml2Client(recurse bool, tkh keyhubmodel.ClientSaml2C return objVal, diags } -func tkhToTFObjectRSClientSaml2Client_attributes(recurse bool, tkh keyhubmodel.ClientSaml2Client_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = clientSaml2Client_attributesAttrTypesRSRecurse - } else { - attrs = clientSaml2Client_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSDirectoryAccountDirectory(recurse bool, tkh keyhubmodel.DirectoryAccountDirectoryable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -2313,7 +2281,10 @@ func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera obj["level"] = stringerToTF(tkh.GetLevel()) obj["type"] = stringerToTF(tkh.GetMarkItemMarkerType()) { - val, d := tkhToTFObjectRSMarkItemMarker_parameters(recurse, tkh.GetParameters()) + elemType := attrs["parameters"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetParameters().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["parameters"] = val } @@ -2323,25 +2294,6 @@ func tkhToTFObjectRSMarkItemMarker(recurse bool, tkh keyhubmodel.MarkItemMarkera return objVal, diags } -func tkhToTFObjectRSMarkItemMarker_parameters(recurse bool, tkh keyhubmodel.MarkItemMarker_parametersable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = markItemMarker_parametersAttrTypesRSRecurse - } else { - attrs = markItemMarker_parametersAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSMarkItemMarkers(recurse bool, tkh keyhubmodel.MarkItemMarkersable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type @@ -2615,7 +2567,10 @@ func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub obj := make(map[string]attr.Value) { - val, d := tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse, tkh.GetAttributes()) + elemType := attrs["attributes"].(types.MapType).ElemType + val, d := mapToTF(elemType, tkh.GetAttributes().GetAdditionalData(), func(tkh any, diags *diag.Diagnostics) attr.Value { + return types.StringValue(tkh.(string)) + }) diags.Append(d...) obj["attributes"] = val } @@ -2640,25 +2595,6 @@ func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP(recurse bool, tkh keyhub return objVal, diags } -func tkhToTFObjectRSProvisioningAbstractProvisionedLDAP_attributes(recurse bool, tkh keyhubmodel.ProvisioningAbstractProvisionedLDAP_attributesable) (types.Object, diag.Diagnostics) { - var diags diag.Diagnostics - var attrs map[string]attr.Type - if recurse { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRSRecurse - } else { - attrs = provisioningAbstractProvisionedLDAP_attributesAttrTypesRS - } - if tkh == nil { - return types.ObjectNull(attrs), diags - } - - obj := make(map[string]attr.Value) - - objVal, d := types.ObjectValue(attrs, obj) - diags.Append(d...) - return objVal, diags -} - func tkhToTFObjectRSProvisioningCircuitBreakerStatistics(recurse bool, tkh keyhubmodel.ProvisioningCircuitBreakerStatisticsable) (types.Object, diag.Diagnostics) { var diags diag.Diagnostics var attrs map[string]attr.Type From b576d03dc0da15e43bd623caa885ec756c3b8406 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Fri, 20 Oct 2023 21:21:38 +0200 Subject: [PATCH 26/34] Improvements to find-by-uuid-types --- docs/resources/client_vaultrecord.md | 43 ++++- docs/resources/group.md | 175 +++++------------- docs/resources/group_vaultrecord.md | 43 ++++- docs/resources/grouponsystem.md | 44 ++++- .../provider-install-verification/main.tf | 40 ++-- go.mod | 5 +- go.sum | 14 +- internal/provider/full-data-struct-rs.go | 4 +- internal/provider/full-helpers.go | 66 ++++++- internal/provider/full-object-attrs-rs.go | 16 +- internal/provider/full-schema-rs.go | 102 +++++----- .../provider/full-tf-to-data-struct-rs.go | 4 +- internal/provider/full-tf-to-tkh-rs.go | 22 +-- internal/provider/full-tkh-to-tf-rs.go | 36 ++-- 14 files changed, 334 insertions(+), 280 deletions(-) diff --git a/docs/resources/client_vaultrecord.md b/docs/resources/client_vaultrecord.md index 380e605..6836e0c 100644 --- a/docs/resources/client_vaultrecord.md +++ b/docs/resources/client_vaultrecord.md @@ -42,7 +42,7 @@ description: |- - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `share_end_time` (String) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) -- `shares` (List of String) +- `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) - `types` (List of String) - `uuid` (String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) @@ -139,5 +139,46 @@ Optional: + +### Nested Schema for `shares` + +Required: + +- `name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `shares.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `shares.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + ### Nested Schema for `vaultholder` diff --git a/docs/resources/group.md b/docs/resources/group.md index da40c47..d380cda 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -62,7 +62,7 @@ description: |- - `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) - `myaccount` (Attributes) (see [below for nested schema](#nestedatt--myaccount)) - `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--mydelegatedaccount)) -- `nested_groups` (List of String) +- `nested_groups` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups)) - `owned_clients` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients)) - `owned_directories` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories)) - `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system)) @@ -167,7 +167,7 @@ Required: Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--client_permissions--client)) +- `client_uuid` (String) - `for_group_uuid` (String) - `for_system_uuid` (String) @@ -176,39 +176,6 @@ Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--permissions)) - -### Nested Schema for `client_permissions.client` - -Optional: - -- `attributes` (Map of String) -- `callback_uri` (String) -- `confidential` (Boolean) -- `debug_mode` (Boolean) -- `id_token_claims` (String) -- `initiate_login_uri` (String) -- `resource_uris` (String) -- `share_secret_in_vault` (Boolean) -- `show_landing_page` (Boolean) -- `use_client_credentials` (Boolean) - -Read-Only: - -- `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--client--account_permissions)) -- `shared_secret_uuid` (String) - - -### Nested Schema for `client_permissions.client.account_permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - ### Nested Schema for `client_permissions.links` @@ -453,22 +420,7 @@ Optional: Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_internal_ldap--client)) - - -### Nested Schema for `administered_systems.provisioned_internal_ldap.client` - -Optional: - -- `client_certificate_uuid` (String) -- `share_secret_in_vault` (Boolean) - -Read-Only: - -- `bind_dn` (String) -- `shared_secret_uuid` (String) -- `used_for_provisioning` (Boolean) - +- `client_uuid` (String) @@ -821,22 +773,7 @@ Optional: Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_internal_ldap--client)) - - -### Nested Schema for `content_administered_systems.provisioned_internal_ldap.client` - -Optional: - -- `client_certificate_uuid` (String) -- `share_secret_in_vault` (Boolean) - -Read-Only: - -- `bind_dn` (String) -- `shared_secret_uuid` (String) -- `used_for_provisioning` (Boolean) - +- `client_uuid` (String) @@ -1077,6 +1014,43 @@ Read-Only: - `visible_for_provisioning` (Boolean) + +### Nested Schema for `nested_groups` + +Required: + +- `name` (String) + +Read-Only: + +- `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--permissions)) +- `uuid` (String) + + +### Nested Schema for `nested_groups.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `nested_groups.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + ### Nested Schema for `owned_clients` @@ -1504,22 +1478,7 @@ Optional: Optional: -- `client` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_internal_ldap--client)) - - -### Nested Schema for `owned_systems.provisioned_internal_ldap.client` - -Optional: - -- `client_certificate_uuid` (String) -- `share_secret_in_vault` (Boolean) - -Read-Only: - -- `bind_dn` (String) -- `shared_secret_uuid` (String) -- `used_for_provisioning` (Boolean) - +- `client_uuid` (String) @@ -1847,61 +1806,13 @@ Optional: - `access_available` (Boolean) - `name` (String) -- `records` (Attributes List) (see [below for nested schema](#nestedatt--vault--records)) +- `records` (List of String) Read-Only: - `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) - -### Nested Schema for `vault.records` - -Required: - -- `name` (String) - -Optional: - -- `color` (String) -- `end_date` (String) -- `filename` (String) -- `url` (String) -- `username` (String) -- `warning_period` (String) - -Read-Only: - -- `derived` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--records--permissions)) -- `share_end_time` (String) -- `types` (List of String) -- `uuid` (String) - - -### Nested Schema for `vault.records.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `vault.records.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - ### Nested Schema for `vault.links` diff --git a/docs/resources/group_vaultrecord.md b/docs/resources/group_vaultrecord.md index 4594d20..f886bab 100644 --- a/docs/resources/group_vaultrecord.md +++ b/docs/resources/group_vaultrecord.md @@ -42,7 +42,7 @@ description: |- - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `share_end_time` (String) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) -- `shares` (List of String) +- `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) - `types` (List of String) - `uuid` (String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) @@ -139,5 +139,46 @@ Optional: + +### Nested Schema for `shares` + +Required: + +- `name` (String) + +Optional: + +- `color` (String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) +- `share_end_time` (String) +- `uuid` (String) + + +### Nested Schema for `shares.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `shares.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + ### Nested Schema for `vaultholder` diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 042f33a..32b8694 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -26,7 +26,7 @@ description: |- - `display_name` (String) - `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--provgroups)) -- `service_accounts` (List of String) +- `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) ### Read-Only @@ -117,6 +117,48 @@ Optional: + +### Nested Schema for `service_accounts` + +Required: + +- `name` (String) +- `system_uuid` (String) + +Optional: + +- `active` (Boolean) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) +- `username` (String) +- `uuid` (String) + + +### Nested Schema for `service_accounts.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `service_accounts.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + ### Nested Schema for `audit` diff --git a/examples/provider-install-verification/main.tf b/examples/provider-install-verification/main.tf index 0a2dee3..61853bd 100644 --- a/examples/provider-install-verification/main.tf +++ b/examples/provider-install-verification/main.tf @@ -24,23 +24,17 @@ provider "keyhubpreview" { clientsecret = var.keyhub_secret_local } -#data "keyhubpreview_group" "test" { -# # uuid = "2fb85263-6406-44f9-9e8a-b1a6d1f43250" -# uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" -# additional = ["accounts"] -#} - -#output "data_group" { -# value = data.keyhubpreview_group.test -#} - -#data "keyhubpreview_client" "test" { -# uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" -#} - -#output "data_client" { -# value = data.keyhubpreview_client.test -#} +resource "keyhubpreview_group" "terra" { + name = "Terraform" + accounts = [{ + uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" + rights = "MANAGER" + }] + client_permissions = [{ + client_uuid = "ebdf81ac-b02b-4335-9dc4-4a9bc4eb406d" + value = "GROUP_FULL_VAULT_ACCESS" + }] +} resource "keyhubpreview_group_vaultrecord" "terrarecord" { name = "Terraform Record" @@ -50,14 +44,6 @@ resource "keyhubpreview_group_vaultrecord" "terrarecord" { } } -resource "keyhubpreview_group" "terra" { - name = "Terraform" - accounts = [{ - uuid = "7ea6622b-f9d2-4e52-a799-217b26f88376" - rights = "MANAGER" - }] -} - resource "keyhubpreview_grouponsystem" "terragos" { provisioned_system_uuid = "47923975-b1af-47c8-bd7a-e52ebb4b9b84" owner_uuid = resource.keyhubpreview_group.terra.uuid @@ -68,7 +54,3 @@ resource "keyhubpreview_grouponsystem" "terragos" { group_uuid = "c6c98d08-2cbf-45e9-937a-c5c0427348e2" }] } - -#output "resource_group" { -# value = resource.keyhubpreview_group.terra -#} diff --git a/go.mod b/go.mod index fa209ff..2845301 100644 --- a/go.mod +++ b/go.mod @@ -30,6 +30,7 @@ require ( github.com/fatih/color v1.15.0 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-test/deep v1.0.8 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect @@ -65,10 +66,11 @@ require ( github.com/oklog/run v1.1.0 // indirect github.com/posener/complete v1.2.3 // indirect github.com/pquerna/cachecontrol v0.2.0 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/russross/blackfriday v1.6.0 // indirect github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.1 // indirect - github.com/std-uritemplate/std-uritemplate/go v0.0.42 // indirect + github.com/std-uritemplate/std-uritemplate/go v0.0.46 // indirect github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect @@ -86,5 +88,6 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect google.golang.org/grpc v1.58.3 // indirect google.golang.org/protobuf v1.31.0 // indirect + gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index 4bb6960..12e7686 100644 --- a/go.sum +++ b/go.sum @@ -48,7 +48,8 @@ github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-test/deep v1.0.3 h1:ZrJSEWsXzPOxaZnFteGEfooLba+ju3FYIbOrS+rQd68= +github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= +github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= @@ -127,6 +128,7 @@ github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOl github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= @@ -173,7 +175,8 @@ github.com/posener/complete v1.2.3 h1:NP0eAhjcjImqslEwo/1hq7gpajME0fTLTezBKDqfXq github.com/posener/complete v1.2.3/go.mod h1:WZIdtGGp+qx0sLrYKtIRAruyNpv6hFCicSgv7Sy7s/s= github.com/pquerna/cachecontrol v0.2.0 h1:vBXSNuE5MYP9IJ5kjsdo8uq+w41jSPgvba2DEnkRx9k= github.com/pquerna/cachecontrol v0.2.0/go.mod h1:NrUG3Z7Rdu85UNR3vm7SOsl1nFIeSiQnrHV5K9mBcUI= -github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/russross/blackfriday v1.6.0 h1:KqfZb0pUVN2lYqZUYRddxF4OR8ZMURnJIG5Y3VRLtww= github.com/russross/blackfriday v1.6.0/go.mod h1:ti0ldHuxg49ri4ksnFxlkCfN+hvslNlmVHqNRXXJNAY= github.com/sergi/go-diff v1.2.0 h1:XU+rvMAioB0UC3q1MFrIQy4Vo5/4VsRDQQXHsEya6xQ= @@ -184,8 +187,8 @@ github.com/skeema/knownhosts v1.2.0 h1:h9r9cf0+u7wSE+M183ZtMGgOJKiL96brpaz5ekfJC github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= github.com/spf13/cast v1.5.1 h1:R+kOtfhWQE6TVQzY+4D7wJLBgkdVasCEFxSUBYBYIlA= github.com/spf13/cast v1.5.1/go.mod h1:b9PdjNptOpzXr7Rq1q9gJML/2cdGQAo69NKzQ10KN48= -github.com/std-uritemplate/std-uritemplate/go v0.0.42 h1:rG+XlE4drkVWs2NLfGS15N+vg+CUcjXElQKvJ0fctlI= -github.com/std-uritemplate/std-uritemplate/go v0.0.42/go.mod h1:Qov4Ay4U83j37XjgxMYevGJFLbnZ2o9cEOhGufBKgKY= +github.com/std-uritemplate/std-uritemplate/go v0.0.46 h1:rWcEym/hz9YhPTXJELTXfrq48lTx69jNVhv+dOMmyZY= +github.com/std-uritemplate/std-uritemplate/go v0.0.46/go.mod h1:Qov4Ay4U83j37XjgxMYevGJFLbnZ2o9cEOhGufBKgKY= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= @@ -294,8 +297,9 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= diff --git a/internal/provider/full-data-struct-rs.go b/internal/provider/full-data-struct-rs.go index 874ffb7..8986d17 100644 --- a/internal/provider/full-data-struct-rs.go +++ b/internal/provider/full-data-struct-rs.go @@ -231,7 +231,7 @@ type clientOAuth2ClientPermissionWithClientDataRS struct { ForGroupUUID types.String `tfsdk:"for_group_uuid"` ForSystemUUID types.String `tfsdk:"for_system_uuid"` Value types.String `tfsdk:"value"` - Client types.Object `tfsdk:"client"` + ClientUUID types.String `tfsdk:"client_uuid"` } var clientOAuth2ClientPermissionWithClientLinkableWrapperAttrTypesRS = objectAttrsTypeRSClientOAuth2ClientPermissionWithClientLinkableWrapper(false) @@ -992,7 +992,7 @@ var provisioningProvisionedInternalLDAPAttrTypesRS = objectAttrsTypeRSProvisioni var provisioningProvisionedInternalLDAPAttrTypesRSRecurse = objectAttrsTypeRSProvisioningProvisionedInternalLDAP(true) type provisioningProvisionedInternalLDAPDataRS struct { - Client types.Object `tfsdk:"client"` + ClientUUID types.String `tfsdk:"client_uuid"` } var provisioningProvisionedLDAPAttrTypesRS = objectAttrsTypeRSProvisioningProvisionedLDAP(false) diff --git a/internal/provider/full-helpers.go b/internal/provider/full-helpers.go index 81ee283..be9bb42 100644 --- a/internal/provider/full-helpers.go +++ b/internal/provider/full-helpers.go @@ -362,6 +362,48 @@ func findClientClientApplicationPrimerByUUID(ctx context.Context, uuid *string) return nil, diag } +func findClientOAuth2ClientByUUID(ctx context.Context, uuid *string) (keyhubmodels.ClientOAuth2Clientable, diag.Diagnostics) { + if uuid == nil || *uuid == "" { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Client().Get(ctx, &keyhubclient.ClientRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubclient.ClientRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + ret, diag := findFirst[keyhubmodels.ClientClientApplicationable](ctx, wrapper, "client application", uuid, err) + if ret == nil { + return nil, diag + } + if retSub, ok := ret.(*keyhubmodels.ClientOAuth2Client); ok { + return retSub, diag + } + diag.AddError("Type error", "Result not of type ClientOAuth2Client") + return nil, diag +} + +func findClientLdapClientByUUID(ctx context.Context, uuid *string) (keyhubmodels.ClientLdapClientable, diag.Diagnostics) { + if uuid == nil || *uuid == "" { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Client().Get(ctx, &keyhubclient.ClientRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubclient.ClientRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + ret, diag := findFirst[keyhubmodels.ClientClientApplicationable](ctx, wrapper, "client application", uuid, err) + if ret == nil { + return nil, diag + } + if retSub, ok := ret.(*keyhubmodels.ClientLdapClient); ok { + return retSub, diag + } + diag.AddError("Type error", "Result not of type ClientLdapClient") + return nil, diag +} + func findAuthAccountPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.AuthAccountPrimerable, diag.Diagnostics) { ret, diag := findAuthAccountByUUID(ctx, uuid) if ret == nil { @@ -411,16 +453,7 @@ func findServiceaccountServiceAccountPrimerByUUID(ctx context.Context, uuid *str } func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhubmodels.VaultVaultRecordPrimerable, diag.Diagnostics) { - if uuid == nil || *uuid == "" { - return nil, diag.Diagnostics{} - } - client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) - wrapper, err := client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ - QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ - Uuid: []string{*uuid}, - }, - }) - ret, diag := findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vault record", uuid, err) + ret, diag := findVaultVaultRecordByUUID(ctx, uuid) if ret == nil { return ret, diag } @@ -432,6 +465,19 @@ func findVaultVaultRecordPrimerByUUID(ctx context.Context, uuid *string) (keyhub return nil, diag } +func findVaultVaultRecordByUUID(ctx context.Context, uuid *string) (keyhubmodels.VaultVaultRecordable, diag.Diagnostics) { + if uuid == nil || *uuid == "" { + return nil, diag.Diagnostics{} + } + client := ctx.Value(keyHubClientKey).(*keyhub.KeyHubClient) + wrapper, err := client.Vaultrecord().Get(ctx, &keyhubvaultrecord.VaultrecordRequestBuilderGetRequestConfiguration{ + QueryParameters: &keyhubvaultrecord.VaultrecordRequestBuilderGetQueryParameters{ + Uuid: []string{*uuid}, + }, + }) + return findFirst[keyhubmodels.VaultVaultRecordable](ctx, wrapper, "vault record", uuid, err) +} + func errorReportToString(ctx context.Context, err error) string { report, ok := err.(keyhubmodels.ErrorReportable) if !ok { diff --git a/internal/provider/full-object-attrs-rs.go b/internal/provider/full-object-attrs-rs.go index 4082283..d6728c9 100644 --- a/internal/provider/full-object-attrs-rs.go +++ b/internal/provider/full-object-attrs-rs.go @@ -222,7 +222,7 @@ func objectAttrsTypeRSClientOAuth2ClientPermissionWithClient(recurse bool) map[s objectAttrs["for_group_uuid"] = types.StringType objectAttrs["for_system_uuid"] = types.StringType objectAttrs["value"] = types.StringType - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientOAuth2Client(false)} + objectAttrs["client_uuid"] = types.StringType return objectAttrs } @@ -608,7 +608,7 @@ func objectAttrsTypeRSGroupGroupPrimer(recurse bool) map[string]attr.Type { func objectAttrsTypeRSGroupGroupPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSGroupGroupPrimer(recurse)}} return objectAttrs } @@ -776,7 +776,7 @@ func objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse bool) map[str func objectAttrsTypeRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSOrganizationOrganizationalUnitPrimer(recurse)}} return objectAttrs } @@ -942,7 +942,7 @@ func objectAttrsTypeRSProvisioningProvisionedAzureTenant(recurse bool) map[strin func objectAttrsTypeRSProvisioningProvisionedInternalLDAP(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["client"] = types.ObjectType{AttrTypes: objectAttrsTypeRSClientLdapClient(recurse)} + objectAttrs["client_uuid"] = types.StringType return objectAttrs } @@ -1021,7 +1021,7 @@ func objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse bool) map[stri func objectAttrsTypeRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSProvisioningProvisionedSystemPrimer(recurse)}} return objectAttrs } @@ -1113,7 +1113,7 @@ func objectAttrsTypeRSServiceaccountServiceAccountPrimer(recurse bool) map[strin func objectAttrsTypeRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSServiceaccountServiceAccountPrimer(recurse)}} return objectAttrs } @@ -1145,7 +1145,7 @@ func objectAttrsTypeRSVaultVault(recurse bool) map[string]attr.Type { objectAttrs["permissions"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSAuthPermission(recurse)}} objectAttrs["access_available"] = types.BoolType objectAttrs["name"] = types.StringType - objectAttrs["records"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecord(recurse)}} + objectAttrs["records"] = types.ListType{ElemType: types.StringType} return objectAttrs } @@ -1196,7 +1196,7 @@ func objectAttrsTypeRSVaultVaultRecordPrimer(recurse bool) map[string]attr.Type func objectAttrsTypeRSVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]attr.Type { objectAttrs := make(map[string]attr.Type) - objectAttrs["items"] = types.ListType{ElemType: types.StringType} + objectAttrs["items"] = types.ListType{ElemType: types.ObjectType{AttrTypes: objectAttrsTypeRSVaultVaultRecordPrimer(recurse)}} return objectAttrs } diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index b5308b9..459d803 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -575,12 +575,14 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -616,12 +618,14 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -635,12 +639,11 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map ), }, } - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientOAuth2Client(false), - } - attr.Optional = true - schemaAttrs["client"] = attr + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -1735,14 +1738,11 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri } func resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsGroupGroupPrimer(recurse), }, + Optional: true, } return schemaAttrs } @@ -1839,7 +1839,7 @@ func resourceSchemaAttrsGroupGroup_additionalObjects(recurse bool) map[string]rs schemaAttrs["mydelegatedaccount"] = attr } { - attr := resetListAttributeFlags(resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr := resetListNestedAttributeFlags(resourceSchemaAttrsGroupGroupPrimerLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Computed = true schemaAttrs["nested_groups"] = attr } @@ -2232,14 +2232,11 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s } func resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse), }, + Optional: true, } return schemaAttrs } @@ -2253,7 +2250,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit_additionalObjects(recurse schemaAttrs["audit"] = attr } { - attr := resetListAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr := resetListNestedAttributeFlags(resourceSchemaAttrsOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Optional = true schemaAttrs["create_as_parent_of"] = attr } @@ -2506,7 +2503,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem_additionalObjects(recurse bool schemaAttrs["provgroups"] = attr } { - attr := resetListAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr := resetListNestedAttributeFlags(resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Optional = true schemaAttrs["service_accounts"] = attr } @@ -2575,7 +2572,7 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence_additionalObjects(re schemaAttrs["audit"] = attr } { - attr := resetListAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr := resetListNestedAttributeFlags(resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Computed = true schemaAttrs["systems"] = attr } @@ -2680,12 +2677,11 @@ func resourceSchemaAttrsProvisioningProvisionedAzureTenant(recurse bool) map[str } func resourceSchemaAttrsProvisioningProvisionedInternalLDAP(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - { - attr := rsschema.SingleNestedAttribute{ - Attributes: resourceSchemaAttrsClientLdapClient(recurse), - } - attr.Optional = true - schemaAttrs["client"] = attr + schemaAttrs["client_uuid"] = rsschema.StringAttribute{ + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -2936,14 +2932,11 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st } func resourceSchemaAttrsProvisioningProvisionedSystemPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse), }, + Optional: true, } return schemaAttrs } @@ -3203,14 +3196,11 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str } func resourceSchemaAttrsServiceaccountServiceAccountPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse), }, + Optional: true, } return schemaAttrs } @@ -3308,11 +3298,14 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { schemaAttrs["name"] = rsschema.StringAttribute{ Optional: true, } - schemaAttrs["records"] = rsschema.ListNestedAttribute{ - NestedObject: rsschema.NestedAttributeObject{ - Attributes: resourceSchemaAttrsVaultVaultRecord(recurse), + schemaAttrs["records"] = rsschema.ListAttribute{ + ElementType: types.StringType, + Optional: true, + Validators: []validator.List{ + listvalidator.ValueStringsAre( + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + ), }, - Optional: true, } return schemaAttrs } @@ -3443,14 +3436,11 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema } func resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) - schemaAttrs["items"] = rsschema.ListAttribute{ - ElementType: types.StringType, - Optional: true, - Validators: []validator.List{ - listvalidator.ValueStringsAre( - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - ), + schemaAttrs["items"] = rsschema.ListNestedAttribute{ + NestedObject: rsschema.NestedAttributeObject{ + Attributes: resourceSchemaAttrsVaultVaultRecordPrimer(recurse), }, + Optional: true, } return schemaAttrs } @@ -3544,7 +3534,7 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str schemaAttrs["share_summary"] = attr } { - attr := resetListAttributeFlags(resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse)["items"].(rsschema.ListAttribute)) + attr := resetListNestedAttributeFlags(resourceSchemaAttrsVaultVaultRecordPrimerLinkableWrapper(recurse)["items"].(rsschema.ListNestedAttribute)) attr.Computed = true schemaAttrs["shares"] = attr } diff --git a/internal/provider/full-tf-to-data-struct-rs.go b/internal/provider/full-tf-to-data-struct-rs.go index 7adb735..1b3fc4d 100644 --- a/internal/provider/full-tf-to-data-struct-rs.go +++ b/internal/provider/full-tf-to-data-struct-rs.go @@ -181,7 +181,7 @@ func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClient(data *cl data.ForGroupUUID = obj.Attributes()["for_group_uuid"].(basetypes.StringValue) data.ForSystemUUID = obj.Attributes()["for_system_uuid"].(basetypes.StringValue) data.Value = obj.Attributes()["value"].(basetypes.StringValue) - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSClientOAuth2ClientPermissionWithClientLinkableWrapper(data *clientOAuth2ClientPermissionWithClientLinkableWrapperDataRS, obj types.Object) { @@ -747,7 +747,7 @@ func fillDataStructFromTFObjectRSProvisioningProvisionedAzureTenant(data *provis } func fillDataStructFromTFObjectRSProvisioningProvisionedInternalLDAP(data *provisioningProvisionedInternalLDAPDataRS, obj types.Object) { - data.Client = obj.Attributes()["client"].(basetypes.ObjectValue) + data.ClientUUID = obj.Attributes()["client_uuid"].(basetypes.StringValue) } func fillDataStructFromTFObjectRSProvisioningProvisionedLDAP(data *provisioningProvisionedLDAPDataRS, obj types.Object) { diff --git a/internal/provider/full-tf-to-tkh-rs.go b/internal/provider/full-tf-to-tkh-rs.go index 549fa82..aab10a9 100644 --- a/internal/provider/full-tf-to-tkh-rs.go +++ b/internal/provider/full-tf-to-tkh-rs.go @@ -499,9 +499,6 @@ func tfObjectToTKHRSClientClientApplication_additionalObjects(ctx context.Contex val, d := tfObjectToTKHRSLaunchpadSsoApplicationLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "launchpad.SsoApplicationLaunchpadTile"}) - } } tkh.SetVaultRecordCount(int64PToInt32P(objAttrs["vault_record_count"].(basetypes.Int64Value).ValueInt64Pointer())) return tkh, diags @@ -669,7 +666,7 @@ func tfObjectToTKHRSClientOAuth2ClientPermissionWithClient(ctx context.Context, tkh.SetValue(val) } { - val, d := tfObjectToTKHRSClientOAuth2Client(ctx, false, objAttrs["client"].(basetypes.ObjectValue)) + val, d := findClientOAuth2ClientByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetClient(val) } @@ -1786,7 +1783,7 @@ func tfObjectToTKHRSGroupGroupPrimerLinkableWrapper(ctx context.Context, recurse tkh = keyhubmodel.NewGroupGroupPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.GroupGroupPrimerable { - tkh, d := findGroupGroupPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + tkh, d := tfObjectToTKHRSGroupGroupPrimer(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -2369,7 +2366,7 @@ func tfObjectToTKHRSOrganizationOrganizationalUnitPrimerLinkableWrapper(ctx cont tkh = keyhubmodel.NewOrganizationOrganizationalUnitPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.OrganizationOrganizationalUnitPrimerable { - tkh, d := findOrganizationOrganizationalUnitPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + tkh, d := tfObjectToTKHRSOrganizationOrganizationalUnitPrimer(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -2843,7 +2840,7 @@ func tfObjectToTKHRSProvisioningProvisionedInternalLDAP(ctx context.Context, rec var tkh keyhubmodel.ProvisioningProvisionedInternalLDAPable tkh = keyhubmodel.NewProvisioningProvisionedInternalLDAP() { - val, d := tfObjectToTKHRSClientLdapClient(ctx, recurse, objAttrs["client"].(basetypes.ObjectValue)) + val, d := findClientLdapClientByUUID(ctx, objAttrs["client_uuid"].(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) tkh.SetClient(val) } @@ -3106,7 +3103,7 @@ func tfObjectToTKHRSProvisioningProvisionedSystemPrimerLinkableWrapper(ctx conte tkh = keyhubmodel.NewProvisioningProvisionedSystemPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ProvisioningProvisionedSystemPrimerable { - tkh, d := findProvisioningProvisionedSystemPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + tkh, d := tfObjectToTKHRSProvisioningProvisionedSystemPrimer(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -3393,7 +3390,7 @@ func tfObjectToTKHRSServiceaccountServiceAccountPrimerLinkableWrapper(ctx contex tkh = keyhubmodel.NewServiceaccountServiceAccountPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.ServiceaccountServiceAccountPrimerable { - tkh, d := findServiceaccountServiceAccountPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + tkh, d := tfObjectToTKHRSServiceaccountServiceAccountPrimer(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -3482,7 +3479,7 @@ func tfObjectToTKHRSVaultVault(ctx context.Context, recurse bool, objVal types.O tkh.SetName(objAttrs["name"].(basetypes.StringValue).ValueStringPointer()) { val, d := tfToSlice(objAttrs["records"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordable { - tkh, d := tfObjectToTKHRSVaultVaultRecord(ctx, recurse, val.(basetypes.ObjectValue)) + tkh, d := findVaultVaultRecordByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) diags.Append(d...) return tkh }) @@ -3626,7 +3623,7 @@ func tfObjectToTKHRSVaultVaultRecordPrimerLinkableWrapper(ctx context.Context, r tkh = keyhubmodel.NewVaultVaultRecordPrimerLinkableWrapper() { val, d := tfToSlice(objAttrs["items"].(basetypes.ListValue), func(val attr.Value, diags *diag.Diagnostics) keyhubmodel.VaultVaultRecordPrimerable { - tkh, d := findVaultVaultRecordPrimerByUUID(ctx, val.(basetypes.StringValue).ValueStringPointer()) + tkh, d := tfObjectToTKHRSVaultVaultRecordPrimer(ctx, recurse, val.(basetypes.ObjectValue)) diags.Append(d...) return tkh }) @@ -3740,9 +3737,6 @@ func tfObjectToTKHRSVaultVaultRecord_additionalObjects(ctx context.Context, recu val, d := tfObjectToTKHRSLaunchpadVaultRecordLaunchpadTile(ctx, recurse, objAttrs["tile"].(basetypes.ObjectValue)) diags.Append(d...) tkh.SetTile(val) - if val != nil { - val.SetAdditionalData(map[string]any{"$type": "launchpad.VaultRecordLaunchpadTile"}) - } } { val, d := tfObjectToTKHRSVaultVaultHolder(ctx, recurse, objAttrs["vaultholder"].(basetypes.ObjectValue)) diff --git a/internal/provider/full-tkh-to-tf-rs.go b/internal/provider/full-tkh-to-tf-rs.go index c774d0d..d57c6de 100644 --- a/internal/provider/full-tkh-to-tf-rs.go +++ b/internal/provider/full-tkh-to-tf-rs.go @@ -709,11 +709,7 @@ func tkhToTFObjectRSClientOAuth2ClientPermissionWithClient(recurse bool, tkh key obj["for_group_uuid"] = withUuidToTF(tkh.GetForGroup()) obj["for_system_uuid"] = withUuidToTF(tkh.GetForSystem()) obj["value"] = stringerToTF(tkh.GetValue()) - { - val, d := tkhToTFObjectRSClientOAuth2Client(false, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -1894,7 +1890,9 @@ func tkhToTFObjectRSGroupGroupPrimerLinkableWrapper(recurse bool, tkh keyhubmode { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.GroupGroupPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + val, d := tkhToTFObjectRSGroupGroupPrimer(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) obj["items"] = val @@ -2513,7 +2511,9 @@ func tkhToTFObjectRSOrganizationOrganizationalUnitPrimerLinkableWrapper(recurse { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.OrganizationOrganizationalUnitPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + val, d := tkhToTFObjectRSOrganizationOrganizationalUnitPrimer(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) obj["items"] = val @@ -3062,11 +3062,7 @@ func tkhToTFObjectRSProvisioningProvisionedInternalLDAP(recurse bool, tkh keyhub } obj := make(map[string]attr.Value) - { - val, d := tkhToTFObjectRSClientLdapClient(recurse, tkh.GetClient()) - diags.Append(d...) - obj["client"] = val - } + obj["client_uuid"] = withUuidToTF(tkh.GetClient()) objVal, d := types.ObjectValue(attrs, obj) diags.Append(d...) @@ -3318,7 +3314,9 @@ func tkhToTFObjectRSProvisioningProvisionedSystemPrimerLinkableWrapper(recurse b { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ProvisioningProvisionedSystemPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + val, d := tkhToTFObjectRSProvisioningProvisionedSystemPrimer(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) obj["items"] = val @@ -3653,7 +3651,9 @@ func tkhToTFObjectRSServiceaccountServiceAccountPrimerLinkableWrapper(recurse bo { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.ServiceaccountServiceAccountPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + val, d := tkhToTFObjectRSServiceaccountServiceAccountPrimer(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) obj["items"] = val @@ -3764,9 +3764,7 @@ func tkhToTFObjectRSVaultVault(recurse bool, tkh keyhubmodel.VaultVaultable) (ty { elemType := attrs["records"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetRecords(), func(tkh keyhubmodel.VaultVaultRecordable, diags *diag.Diagnostics) attr.Value { - val, d := tkhToTFObjectRSVaultVaultRecord(recurse, tkh) - diags.Append(d...) - return val + return withUuidToTF(tkh) }) diags.Append(d...) obj["records"] = val @@ -3919,7 +3917,9 @@ func tkhToTFObjectRSVaultVaultRecordPrimerLinkableWrapper(recurse bool, tkh keyh { elemType := attrs["items"].(types.ListType).ElemType val, d := sliceToTF(elemType, tkh.GetItems(), func(tkh keyhubmodel.VaultVaultRecordPrimerable, diags *diag.Diagnostics) attr.Value { - return withUuidToTF(tkh) + val, d := tkhToTFObjectRSVaultVaultRecordPrimer(recurse, tkh) + diags.Append(d...) + return val }) diags.Append(d...) obj["items"] = val From c3d9775f1412ae49d95acd77976eb8f962ff09df Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 16:16:20 +0100 Subject: [PATCH 27/34] Upgrade dependencies --- go.mod | 6 +++--- go.sum | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/go.mod b/go.mod index 2845301..04e9181 100644 --- a/go.mod +++ b/go.mod @@ -3,15 +3,15 @@ module github.com/topicuskeyhub/terraform-provider-keyhubpreview go 1.19 require ( - github.com/google/uuid v1.3.1 + github.com/google/uuid v1.4.0 github.com/hashicorp/terraform-plugin-docs v0.16.0 github.com/hashicorp/terraform-plugin-framework v1.4.1 github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 github.com/hashicorp/terraform-plugin-go v0.19.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/hashicorp/terraform-plugin-testing v1.5.1 - github.com/microsoft/kiota-abstractions-go v1.3.0 - github.com/topicuskeyhub/sdk-go v0.28.1 + github.com/microsoft/kiota-abstractions-go v1.3.1 + github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f golang.org/x/exp v0.0.0-20231006140011-7918f672742d ) diff --git a/go.sum b/go.sum index 12e7686..b0f389a 100644 --- a/go.sum +++ b/go.sum @@ -62,8 +62,8 @@ github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4= -github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= +github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I= github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= @@ -145,8 +145,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/microsoft/kiota-abstractions-go v1.3.0 h1:mZTAg+Lf43+hoqTYWT53F/Dg+f0bqtHULnTI/GyiXn8= -github.com/microsoft/kiota-abstractions-go v1.3.0/go.mod h1:yPSuzNSOIVQSFFe1iT+3Lu5zmis22E8Wg+bkyjhd+pY= +github.com/microsoft/kiota-abstractions-go v1.3.1 h1:lZ4hLvU/HpnAkvjqIt/mL1ooZ0b/2RKuM2K65fl2/mY= +github.com/microsoft/kiota-abstractions-go v1.3.1/go.mod h1:NRJnAFg8qqOoX/VQWTe3ZYmcIbLa20LNC+eTqO2j60U= github.com/microsoft/kiota-http-go v1.1.0 h1:L5I93EiNtlP/X6YzeTlhjWt7Q1DxzC9CmWSVtX3b0tE= github.com/microsoft/kiota-http-go v1.1.0/go.mod h1:zESUM6ovki9LEupqziCbxJ+FAYoF0dFDYZVpOkAfSLc= github.com/microsoft/kiota-serialization-json-go v1.0.4 h1:5TaISWwd2Me8clrK7SqNATo0tv9seOq59y4I5953egQ= @@ -196,8 +196,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/topicuskeyhub/sdk-go v0.28.1 h1:TXpkypK2KiH/9fnlEd9SFfXR/cK63RnCe6eqVR0Ew8k= -github.com/topicuskeyhub/sdk-go v0.28.1/go.mod h1:nP1C2RvZXfnEPjFy5AfdLJIWaM6IQAyar1pVbgPXsMg= +github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f h1:/Umyd1P2MaEVi8eoWnPCbkZOoHz5QZg81dqw5G//Ybo= +github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f/go.mod h1:rYrE+VBV3sYYXR44U5VZgihBnj/KQPtZvm9isb7Zp28= github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= From d6c90fbf601871796df9ae78513cc07a7a721d42 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 16:36:49 +0100 Subject: [PATCH 28/34] Remove tests --- internal/provider/group_data_source_test.go | 32 ------------ internal/provider/group_resource_test.go | 56 --------------------- internal/provider/provider_test.go | 25 --------- 3 files changed, 113 deletions(-) delete mode 100644 internal/provider/group_data_source_test.go delete mode 100644 internal/provider/group_resource_test.go delete mode 100644 internal/provider/provider_test.go diff --git a/internal/provider/group_data_source_test.go b/internal/provider/group_data_source_test.go deleted file mode 100644 index 5185574..0000000 --- a/internal/provider/group_data_source_test.go +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package provider - -import ( - "testing" - - "github.com/hashicorp/terraform-plugin-testing/helper/resource" -) - -func TestAccExampleDataSource(t *testing.T) { - resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - ProtoV6ProviderFactories: testAccProtoV6ProviderFactories, - Steps: []resource.TestStep{ - // Read testing - { - Config: testAccGroupDataSourceConfig, - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.keyhub_group.test", "id", "example-id"), - ), - }, - }, - }) -} - -const testAccGroupDataSourceConfig = ` -data "keyhub_group" "test" { - uuid = "c20a6ed4-1ae5-4a9f-91b5-2f56f5a1522f" -} -` diff --git a/internal/provider/group_resource_test.go b/internal/provider/group_resource_test.go deleted file mode 100644 index c5464d0..0000000 --- a/internal/provider/group_resource_test.go +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package provider - -import ( - "fmt" - "testing" - - "github.com/hashicorp/terraform-plugin-testing/helper/resource" -) - -func TestAccExampleResource(t *testing.T) { - resource.Test(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, - ProtoV6ProviderFactories: testAccProtoV6ProviderFactories, - Steps: []resource.TestStep{ - // Create and Read testing - { - Config: testAccExampleResourceConfig("one"), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("scaffolding_example.test", "configurable_attribute", "one"), - resource.TestCheckResourceAttr("scaffolding_example.test", "defaulted", "example value when not configured"), - resource.TestCheckResourceAttr("scaffolding_example.test", "id", "example-id"), - ), - }, - // ImportState testing - { - ResourceName: "scaffolding_example.test", - ImportState: true, - ImportStateVerify: true, - // This is not normally necessary, but is here because this - // example code does not have an actual upstream service. - // Once the Read method is able to refresh information from - // the upstream service, this can be removed. - ImportStateVerifyIgnore: []string{"configurable_attribute", "defaulted"}, - }, - // Update and Read testing - { - Config: testAccExampleResourceConfig("two"), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("scaffolding_example.test", "configurable_attribute", "two"), - ), - }, - // Delete testing automatically occurs in TestCase - }, - }) -} - -func testAccExampleResourceConfig(configurableAttribute string) string { - return fmt.Sprintf(` -resource "scaffolding_example" "test" { - configurable_attribute = %[1]q -} -`, configurableAttribute) -} diff --git a/internal/provider/provider_test.go b/internal/provider/provider_test.go deleted file mode 100644 index ef6599b..0000000 --- a/internal/provider/provider_test.go +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) HashiCorp, Inc. -// SPDX-License-Identifier: MPL-2.0 - -package provider - -import ( - "testing" - - "github.com/hashicorp/terraform-plugin-framework/providerserver" - "github.com/hashicorp/terraform-plugin-go/tfprotov6" -) - -// testAccProtoV6ProviderFactories are used to instantiate a provider during -// acceptance testing. The factory function will be invoked for every Terraform -// CLI command executed to create a provider server to which the CLI can -// reattach. -var testAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){ - "scaffolding": providerserver.NewProtocol6WithError(New("test")()), -} - -func testAccPreCheck(t *testing.T) { - // You can add code here to run prior to any test case execution, for example assertions - // about the appropriate environment variables being set are common to see in a pre-check - // function. -} From e5167190750703e06dc45e1a525ffed435136e21 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 16:43:47 +0100 Subject: [PATCH 29/34] Add generator --- go.mod | 14 +------------- go.sum | 36 ------------------------------------ 2 files changed, 1 insertion(+), 49 deletions(-) diff --git a/go.mod b/go.mod index 04e9181..0660094 100644 --- a/go.mod +++ b/go.mod @@ -7,9 +7,7 @@ require ( github.com/hashicorp/terraform-plugin-docs v0.16.0 github.com/hashicorp/terraform-plugin-framework v1.4.1 github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 - github.com/hashicorp/terraform-plugin-go v0.19.0 github.com/hashicorp/terraform-plugin-log v0.9.0 - github.com/hashicorp/terraform-plugin-testing v1.5.1 github.com/microsoft/kiota-abstractions-go v1.3.1 github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f golang.org/x/exp v0.0.0-20231006140011-7918f672742d @@ -20,7 +18,6 @@ require ( github.com/Masterminds/semver/v3 v3.2.1 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c // indirect - github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/bgentry/speakeasy v0.1.0 // indirect @@ -30,24 +27,19 @@ require ( github.com/fatih/color v1.15.0 // indirect github.com/go-logr/logr v1.2.4 // indirect github.com/go-logr/stdr v1.2.2 // indirect - github.com/go-test/deep v1.0.8 // indirect github.com/golang/protobuf v1.5.3 // indirect - github.com/google/go-cmp v0.6.0 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-checkpoint v0.5.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect - github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect github.com/hashicorp/go-hclog v1.5.0 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.5.2 // indirect github.com/hashicorp/go-uuid v1.0.3 // indirect github.com/hashicorp/go-version v1.6.0 // indirect github.com/hashicorp/hc-install v0.6.1 // indirect - github.com/hashicorp/hcl/v2 v2.18.1 // indirect - github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-exec v0.19.0 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 // indirect + github.com/hashicorp/terraform-plugin-go v0.19.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.2 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect @@ -60,8 +52,6 @@ require ( github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect - github.com/mitchellh/go-wordwrap v1.0.1 // indirect - github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/oklog/run v1.1.0 // indirect github.com/posener/complete v1.2.3 // indirect @@ -71,7 +61,6 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.1 // indirect github.com/std-uritemplate/std-uritemplate/go v0.0.46 // indirect - github.com/vmihailenco/msgpack v4.0.4+incompatible // indirect github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/zclconf/go-cty v1.14.1 // indirect @@ -88,6 +77,5 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect google.golang.org/grpc v1.58.3 // indirect google.golang.org/protobuf v1.31.0 // indirect - gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index b0f389a..de10ab2 100644 --- a/go.sum +++ b/go.sum @@ -12,9 +12,6 @@ github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migc github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c h1:kMFnB0vCcX7IL/m9Y5LO+KQYv+t1CQOiFe6+SV2J7bE= github.com/ProtonMail/go-crypto v0.0.0-20230923063757-afb1ddc0824c/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= github.com/acomagu/bufpipe v1.0.4 h1:e3H4WUzM3npvo5uv95QuJM3cQspFNtFBzvJ2oNjKIDQ= -github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= -github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= -github.com/apparentlymart/go-textseg/v12 v12.0.0/go.mod h1:S/4uRK2UtaQttw1GenVJEynmyUenKwP++x/+DdGV/Ec= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= @@ -48,18 +45,13 @@ github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= -github.com/go-test/deep v1.0.8 h1:TDsG77qcSprGbC6vTN8OuXp5g+J+b5Pcguhf7Zt61VM= -github.com/go-test/deep v1.0.8/go.mod h1:5C2ZWiW0ErCdrYzpqxLbTX7MG14M9iiw8DgHncVwcsE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= -github.com/golang/protobuf v1.1.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= -github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= @@ -72,8 +64,6 @@ github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuD github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= -github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= -github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= @@ -88,10 +78,6 @@ github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mO github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/hc-install v0.6.1 h1:IGxShH7AVhPaSuSJpKtVi/EFORNjO+OYVJJrAtGG2mY= github.com/hashicorp/hc-install v0.6.1/go.mod h1:0fW3jpg+wraYSnFDJ6Rlie3RvLf1bIqVIkzoon4KoVE= -github.com/hashicorp/hcl/v2 v2.18.1 h1:6nxnOJFku1EuSawSD81fuviYUV8DxFr3fp2dUi3ZYSo= -github.com/hashicorp/hcl/v2 v2.18.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE= -github.com/hashicorp/logutils v1.0.0 h1:dLEQVugN8vlakKOUE3ihGLTZJRB4j+M2cdTm/ORI65Y= -github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= github.com/hashicorp/terraform-exec v0.19.0 h1:FpqZ6n50Tk95mItTSS9BjeOVUb4eg81SpgVtZNNtFSM= github.com/hashicorp/terraform-exec v0.19.0/go.mod h1:tbxUpe3JKruE9Cuf65mycSIT8KiNPZ0FkuTE3H4urQg= github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQHgyRwf3RkyA= @@ -106,10 +92,6 @@ github.com/hashicorp/terraform-plugin-go v0.19.0 h1:BuZx/6Cp+lkmiG0cOBk6Zps0Cb2t github.com/hashicorp/terraform-plugin-go v0.19.0/go.mod h1:EhRSkEPNoylLQntYsk5KrDHTZJh9HQoumZXbOGOXmec= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0 h1:wcOKYwPI9IorAJEBLzgclh3xVolO7ZorYd6U1vnok14= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0/go.mod h1:qH/34G25Ugdj5FcM95cSoXzUgIbgfhVLXCcEcYaMwq8= -github.com/hashicorp/terraform-plugin-testing v1.5.1 h1:T4aQh9JAhmWo4+t1A7x+rnxAJHCDIYW9kXyo4sVO92c= -github.com/hashicorp/terraform-plugin-testing v1.5.1/go.mod h1:dg8clO6K59rZ8w9EshBmDp1CxTIPu3yA4iaDpX1h5u0= github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJDC6YlgCVbWDtNmmZKtBno= github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= @@ -127,13 +109,8 @@ github.com/imdario/mergo v0.3.15/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+h github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= -github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= -github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= @@ -158,10 +135,6 @@ github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa1 github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= -github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= -github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= -github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= -github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= @@ -198,9 +171,6 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f h1:/Umyd1P2MaEVi8eoWnPCbkZOoHz5QZg81dqw5G//Ybo= github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f/go.mod h1:rYrE+VBV3sYYXR44U5VZgihBnj/KQPtZvm9isb7Zp28= -github.com/vmihailenco/msgpack v3.3.3+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= -github.com/vmihailenco/msgpack v4.0.4+incompatible h1:dSLoQfGFAo3F6OoNhwUmLwVgaUXK79GlxNBwueZn0xI= -github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod h1:fy3FlTQTDXWkZ7Bh6AcGMlsjHatGryHQYUTf1ShIgkk= github.com/vmihailenco/msgpack/v5 v5.4.0 h1:hRM0digJwyR6vll33NNAwCFguy5JuBD6jxDmQP3l608= github.com/vmihailenco/msgpack/v5 v5.4.0/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= @@ -241,7 +211,6 @@ golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= golang.org/x/oauth2 v0.13.0 h1:jDDenyj+WgFtmV3zYVoi8aE2BwtXFLWOA67ZfNWftiY= golang.org/x/oauth2 v0.13.0/go.mod h1:/JMhi4ZRXAf4HG9LiNmxvk+45+96RUlVThiH8FzNBn0= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -269,7 +238,6 @@ golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= @@ -285,7 +253,6 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a h1:a2MQQVoTo96JC9PMGtGBymLp7+/RzpFc2yX/9WfFg1c= @@ -297,9 +264,6 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= -gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/square/go-jose.v2 v2.6.0 h1:NGk74WTnPKBNUhNzQX7PYcTLUjoq7mzKk2OKbvwk2iI= gopkg.in/square/go-jose.v2 v2.6.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI= gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME= From 242dad7f716d30a81a2da69e3a390448ba4dbc54 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 16:59:19 +0100 Subject: [PATCH 30/34] Use generator v0.0.3 --- internal/provider/full-schema-rs.go | 455 ++++++++++++---------------- main.go | 36 +-- 2 files changed, 219 insertions(+), 272 deletions(-) diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 459d803..3a4c401 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -14,8 +14,6 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" - "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" @@ -59,15 +57,13 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } return schemaAttrs } @@ -78,20 +74,16 @@ func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["href"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["id"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["rel"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["type_escaped"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, } return schemaAttrs } @@ -101,15 +93,13 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, @@ -121,11 +111,15 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["validity"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "VALID", "NOT_APPLICABLE", "REREGISTRATION_REQUIRED", "DISABLED", "DIRECTORY_DISABLED", "INVALID_IN_DIRECTORY", + ), + }, } return schemaAttrs } @@ -160,15 +154,13 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, @@ -177,8 +169,12 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs }, } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "PUBLIC_CERTIFICATE", "PRIVATE_KEY_PAIR", + ), + }, } schemaAttrs["certificate_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -202,8 +198,7 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -222,15 +217,13 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -249,16 +242,13 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -301,19 +291,21 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "OAUTH2", "SAML2", "LDAP", + ), + }, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -332,12 +324,10 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ Computed: true, @@ -393,19 +383,21 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Required: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "OAUTH2", "SAML2", "LDAP", + ), + }, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -424,12 +416,10 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -491,7 +481,10 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri Default: booldefault.StaticBool(true), } schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -541,7 +534,10 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att Default: booldefault.StaticBool(true), } schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ Computed: true, @@ -564,25 +560,21 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ - Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ - Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -607,25 +599,21 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ - Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ - Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -702,19 +690,16 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -722,8 +707,12 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Default: booldefault.StaticBool(false), } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -732,8 +721,7 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, @@ -816,19 +804,16 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -836,8 +821,12 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Default: booldefault.StaticBool(false), } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", + ), + }, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -846,8 +835,7 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -877,15 +865,13 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, @@ -1147,15 +1133,13 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -1181,7 +1165,6 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), } attr.Optional = true - attr.Computed = true schemaAttrs["audit_config"] = attr } schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ @@ -1219,7 +1202,6 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, } schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ - Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -1250,7 +1232,6 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ - Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -1305,7 +1286,10 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ Computed: true, @@ -1331,7 +1315,12 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr }, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "DISABLED", "EXTERNAL", "TOTP", "APP", "WEBAUTHN", "MIXED", + ), + }, } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -1368,15 +1357,13 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1427,15 +1414,13 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1473,7 +1458,12 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, } schemaAttrs["rights"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "MANAGER", "NORMAL", + ), + }, } schemaAttrs["username"] = rsschema.StringAttribute{ Computed: true, @@ -1486,20 +1476,17 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["months"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, - Computed: true, Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( @@ -1577,15 +1564,13 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -1608,15 +1593,13 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -1632,10 +1615,16 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -1710,15 +1699,13 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -1911,15 +1898,13 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -1927,10 +1912,8 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Default: booldefault.StaticBool(true), } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } { attr := rsschema.SingleNestedAttribute{ @@ -1978,15 +1961,13 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -2005,16 +1986,13 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -2108,15 +2086,13 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -2136,7 +2112,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, @@ -2155,15 +2131,13 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2172,8 +2146,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["depth"] = rsschema.Int64Attribute{ Computed: true, @@ -2188,7 +2161,10 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] }, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } return schemaAttrs } @@ -2208,15 +2184,13 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2225,8 +2199,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -2387,15 +2360,13 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -2415,7 +2386,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, @@ -2441,15 +2412,13 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -2469,7 +2438,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, } return schemaAttrs } @@ -2533,15 +2502,13 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -2602,8 +2569,7 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, - PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -2734,15 +2700,13 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -2762,12 +2726,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r }, } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "LDAP", "ACTIVE_DIRECTORY", "AZURE_TENANT", "SOURCE_LDAP_DIRECTORY", "SOURCE_AZURE_OIDC_DIRECTORY", "SOURCE_AZURE_SYNC_LDAP_DIRECTORY", "INTERNAL_LDAP", + ), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -2893,15 +2860,13 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -2921,12 +2886,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st }, } schemaAttrs["type"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Optional: true, + Validators: []validator.String{ + stringvalidator.OneOf( + "LDAP", "ACTIVE_DIRECTORY", "AZURE_TENANT", "SOURCE_LDAP_DIRECTORY", "SOURCE_AZURE_OIDC_DIRECTORY", "SOURCE_AZURE_SYNC_LDAP_DIRECTORY", "INTERNAL_LDAP", + ), + }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -3022,15 +2990,13 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3050,18 +3016,19 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs }, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["password_uuid"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } schemaAttrs["password_rotation"] = rsschema.StringAttribute{ Required: true, @@ -3088,15 +3055,13 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -3116,7 +3081,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Computed: true, + Optional: true, } return schemaAttrs } @@ -3157,15 +3122,13 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3185,12 +3148,10 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str }, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -3280,15 +3241,13 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["access_available"] = rsschema.BoolAttribute{ Computed: true, @@ -3322,15 +3281,13 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -3349,16 +3306,13 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, - PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -3398,15 +3352,13 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -3425,12 +3377,10 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } return schemaAttrs } @@ -3523,7 +3473,7 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str attr := rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), } - attr.Optional = true + attr.Computed = true schemaAttrs["secret"] = attr } { @@ -3542,7 +3492,7 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str attr := rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), } - attr.Optional = true + attr.Computed = true schemaAttrs["tile"] = attr } { @@ -3563,15 +3513,13 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Computed: true, - PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, + Optional: true, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -3699,8 +3647,7 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Computed: true, } schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ Computed: true, diff --git a/main.go b/main.go index a6d6ba3..89f2b36 100644 --- a/main.go +++ b/main.go @@ -31,24 +31,24 @@ import ( // system/{systemid}/group // serviceaccount/{accountid}/group -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode model -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource account --linkable authAccount -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource certificate --linkable certificateCertificate -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource client --linkable clientClientApplication -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource directory --linkable directoryAccountDirectory -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource group --linkable groupGroup -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource groupclassification --linkable groupGroupClassification -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource organizationalunit --linkable organizationOrganizationalUnit -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource serviceaccount --linkable serviceaccountServiceAccount -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource system --linkable provisioningProvisionedSystem -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource vaultrecord --linkable vaultVaultRecord -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode data --resource webhook --linkable webhookWebhook -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource clientapplication -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource client_vaultrecord -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group_vaultrecord -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource group -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource grouponsystem -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator --mode resource --resource serviceaccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode model +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource account --linkable authAccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource certificate --linkable certificateCertificate +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource client --linkable clientClientApplication +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource directory --linkable directoryAccountDirectory +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource group --linkable groupGroup +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource groupclassification --linkable groupGroupClassification +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource organizationalunit --linkable organizationOrganizationalUnit +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource serviceaccount --linkable serviceaccountServiceAccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource system --linkable provisioningProvisionedSystem +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource vaultrecord --linkable vaultVaultRecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource webhook --linkable webhookWebhook +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource clientapplication +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource client_vaultrecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource group_vaultrecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource group +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource grouponsystem +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource serviceaccount // If you do not have terraform installed, you can remove the formatting command, but its suggested to // ensure the documentation is formatted properly. From 95c44c24f281cd6d2d653162a62f7c03a45b4f6d Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 17:02:20 +0100 Subject: [PATCH 31/34] Upgrade go version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 0660094..c8fa99b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/topicuskeyhub/terraform-provider-keyhubpreview -go 1.19 +go 1.20 require ( github.com/google/uuid v1.4.0 From 90982e389600b3c85ba5061ea05b9c0535f8147f Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 17:05:25 +0100 Subject: [PATCH 32/34] Update documentation --- docs/resources/client_vaultrecord.md | 66 ++-- docs/resources/clientapplication.md | 78 ++-- docs/resources/group.md | 553 +++++++++++++-------------- docs/resources/group_vaultrecord.md | 66 ++-- docs/resources/grouponsystem.md | 112 +++--- docs/resources/serviceaccount.md | 56 ++- 6 files changed, 448 insertions(+), 483 deletions(-) diff --git a/docs/resources/client_vaultrecord.md b/docs/resources/client_vaultrecord.md index 6836e0c..9a4d8bc 100644 --- a/docs/resources/client_vaultrecord.md +++ b/docs/resources/client_vaultrecord.md @@ -26,8 +26,8 @@ description: |- - `delete_tile` (Boolean) - `end_date` (String) - `filename` (String) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `url` (String) - `username` (String) - `warning_period` (String) @@ -36,31 +36,37 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `derived` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `parent_uuid` (String) - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `share_end_time` (String) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) - `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `types` (List of String) - `uuid` (String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - -### Nested Schema for `secret` + +### Nested Schema for `links` Optional: -- `comment` (String) -- `file` (String) -- `password` (String) -- `totp` (String) -- `write_totp` (Boolean) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) - -### Nested Schema for `tile` + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) @@ -74,17 +80,6 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `password_metadata` @@ -101,15 +96,16 @@ Optional: - `upper_count` (Number) - -### Nested Schema for `permissions` + +### Nested Schema for `secret` Optional: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) @@ -149,18 +145,18 @@ Required: Optional: - `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) - `share_end_time` (String) - `uuid` (String) ### Nested Schema for `shares.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -180,5 +176,9 @@ Optional: + +### Nested Schema for `tile` + + ### Nested Schema for `vaultholder` diff --git a/docs/resources/clientapplication.md b/docs/resources/clientapplication.md index 9e4f42c..750177e 100644 --- a/docs/resources/clientapplication.md +++ b/docs/resources/clientapplication.md @@ -18,6 +18,7 @@ description: |- ### Required - `name` (String) +- `type` (String) ### Optional @@ -25,8 +26,10 @@ description: |- - `delete_tile` (Boolean) - `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--groupclients)) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client)) - `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--saml2_client)) - `scopes` (List of String) - `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) @@ -38,10 +41,7 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `sso_application` (Boolean) -- `type` (String) - `uuid` (String) - `vault_record_count` (Number) @@ -51,20 +51,20 @@ description: |- Optional: - `activation_required` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--permissions)) +- `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--links)) -- `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--permissions)) -- `technical_administrator_uuid` (String) ### Nested Schema for `groupclients.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -91,14 +91,25 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) -- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) + +### Nested Schema for `links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `o_auth2_client` @@ -112,13 +123,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) -- `shared_secret_uuid` (String) ### Nested Schema for `o_auth2_client.account_permissions` @@ -132,6 +143,17 @@ Optional: + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `saml2_client` @@ -194,8 +216,10 @@ Optional: - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -209,8 +233,6 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `uuid` (String) @@ -218,17 +240,14 @@ Read-Only: Optional: -- `months` (List of String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--links)) +- `months` (List of String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--permissions)) ### Nested Schema for `groups.audit_config.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -251,7 +270,7 @@ Optional: ### Nested Schema for `groups.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -268,26 +287,3 @@ Optional: - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) diff --git a/docs/resources/group.md b/docs/resources/group.md index d380cda..2725b3c 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -34,8 +34,10 @@ description: |- - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -58,7 +60,6 @@ description: |- - `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--groupauditinginfo)) - `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--groupinfo)) - `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) - `myaccount` (Attributes) (see [below for nested schema](#nestedatt--myaccount)) - `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--mydelegatedaccount)) @@ -68,7 +69,6 @@ description: |- - `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system)) - `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units)) - `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits)) - `requeststatus` (String) - `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) @@ -87,16 +87,16 @@ Required: Optional: +- `directory_uuid` (String) - `end_date` (String) +- `two_factor_status` (String) Read-Only: -- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) -- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -110,16 +110,16 @@ Required: Optional: +- `directory_uuid` (String) - `end_date` (String) +- `two_factor_status` (String) Read-Only: -- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) -- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -128,17 +128,14 @@ Read-Only: Optional: -- `months` (List of String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) +- `months` (List of String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) ### Nested Schema for `audit_config.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -170,16 +167,13 @@ Optional: - `client_uuid` (String) - `for_group_uuid` (String) - `for_system_uuid` (String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--permissions)) ### Nested Schema for `client_permissions.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -199,19 +193,44 @@ Optional: + +### Nested Schema for `links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `administered_clients` Required: - `name` (String) +- `type` (String) Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client)) - `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -219,10 +238,7 @@ Optional: Read-Only: - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--permissions)) - `sso_application` (Boolean) -- `type` (String) - `uuid` (String) @@ -232,14 +248,25 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) -- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) + +### Nested Schema for `administered_clients.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `administered_clients.o_auth2_client` @@ -253,13 +280,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--account_permissions)) -- `shared_secret_uuid` (String) ### Nested Schema for `administered_clients.o_auth2_client.account_permissions` @@ -273,6 +300,17 @@ Optional: + +### Nested Schema for `administered_clients.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `administered_clients.saml2_client` @@ -287,28 +325,6 @@ Optional: - `metadata_url` (String) - -### Nested Schema for `administered_clients.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `administered_clients.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `administered_systems` @@ -324,7 +340,9 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--links)) - `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory)) @@ -336,15 +354,13 @@ Optional: - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) +- `type` (String) - `username_prefix` (String) Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--permissions)) -- `type` (String) - `uuid` (String) @@ -373,6 +389,28 @@ Optional: - `user_dn` (String) + +### Nested Schema for `administered_systems.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `administered_systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `administered_systems.provisioned_a_d` @@ -444,18 +482,18 @@ Required: Optional: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--links)) - `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--permissions)) Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--permissions)) -### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` +### Nested Schema for `administered_systems.provisioned_ldap.numbering.account_count` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -464,7 +502,7 @@ Read-Only: -### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` +### Nested Schema for `administered_systems.provisioned_ldap.numbering.account_count` Optional: @@ -485,28 +523,6 @@ Required: - `group_dn` (String) - -### Nested Schema for `administered_systems.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `administered_systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `audit` @@ -546,8 +562,10 @@ Optional: - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -561,8 +579,6 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--permissions)) - `uuid` (String) @@ -570,17 +586,14 @@ Read-Only: Optional: -- `months` (List of String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--links)) +- `months` (List of String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--permissions)) ### Nested Schema for `authorized_groups.items.audit_config.permissions` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -603,7 +616,7 @@ Optional: ### Nested Schema for `authorized_groups.items.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -630,20 +643,20 @@ Optional: Optional: - `activation_required` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--permissions)) +- `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--links)) -- `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--permissions)) -- `technical_administrator_uuid` (String) ### Nested Schema for `clients.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -677,7 +690,9 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--links)) - `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory)) @@ -689,15 +704,13 @@ Optional: - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) +- `type` (String) - `username_prefix` (String) Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--permissions)) -- `type` (String) - `uuid` (String) @@ -726,6 +739,28 @@ Optional: - `user_dn` (String) + +### Nested Schema for `content_administered_systems.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `content_administered_systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `content_administered_systems.provisioned_a_d` @@ -797,18 +832,18 @@ Required: Optional: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--links)) - `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--permissions)) Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--permissions)) -### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.account_count` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -817,7 +852,7 @@ Read-Only: -### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.account_count` Optional: @@ -838,28 +873,6 @@ Required: - `group_dn` (String) - -### Nested Schema for `content_administered_systems.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `content_administered_systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `groupauditinginfo` @@ -896,30 +909,17 @@ Optional: - `domain_restriction` (String) - `fully_resolved_issuer` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--links)) - `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--permissions)) - `status` (Attributes) (see [below for nested schema](#nestedatt--helpdesk--status)) - `type` (String) - `username_customizable` (Boolean) -Read-Only: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--permissions)) - - -### Nested Schema for `helpdesk.status` - -Optional: - -- `accounts` (Number) -- `reason` (String) -- `status` (String) - - ### Nested Schema for `helpdesk.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -938,16 +938,15 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `helpdesk.status` - -### Nested Schema for `links` +Optional: -Read-Only: +- `accounts` (Number) +- `reason` (String) +- `status` (String) -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) @@ -978,16 +977,16 @@ Required: Optional: +- `directory_uuid` (String) - `end_date` (String) +- `two_factor_status` (String) Read-Only: -- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) -- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -1001,16 +1000,16 @@ Required: Optional: +- `directory_uuid` (String) - `end_date` (String) +- `two_factor_status` (String) Read-Only: -- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) -- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -1021,17 +1020,20 @@ Required: - `name` (String) -Read-Only: +Optional: -- `admin` (Boolean) - `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--permissions)) + +Read-Only: + +- `admin` (Boolean) - `uuid` (String) ### Nested Schema for `nested_groups.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1057,13 +1059,16 @@ Optional: Required: - `name` (String) +- `type` (String) Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--ldap_client)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client)) - `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -1071,10 +1076,7 @@ Optional: Read-Only: - `last_modified_at` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--permissions)) - `sso_application` (Boolean) -- `type` (String) - `uuid` (String) @@ -1084,14 +1086,25 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) -- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) + +### Nested Schema for `owned_clients.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `owned_clients.o_auth2_client` @@ -1105,13 +1118,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) +- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--account_permissions)) -- `shared_secret_uuid` (String) ### Nested Schema for `owned_clients.o_auth2_client.account_permissions` @@ -1125,6 +1138,17 @@ Optional: + +### Nested Schema for `owned_clients.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `owned_clients.saml2_client` @@ -1139,28 +1163,6 @@ Optional: - `metadata_url` (String) - -### Nested Schema for `owned_clients.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `owned_clients.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `owned_directories` @@ -1178,17 +1180,17 @@ Optional: - `helpdesk_group_uuid` (String) - `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--internal_directory)) - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--links)) - `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--maintenance_directory)) - `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--o_id_c_directory)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--permissions)) - `restrict2fa` (Boolean) +- `type` (String) - `username_customizable` (Boolean) Read-Only: - `account_validity_supported` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--permissions)) -- `type` (String) - `uuid` (String) @@ -1223,6 +1225,17 @@ Optional: - `trusted_certificate_uuid` (String) + +### Nested Schema for `owned_directories.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `owned_directories.maintenance_directory` @@ -1251,17 +1264,6 @@ Read-Only: - `fully_resolved_issuer` (String) - -### Nested Schema for `owned_directories.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `owned_directories.permissions` @@ -1294,9 +1296,6 @@ Required: Optional: - `display_name` (String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--permissions)) - `short_name_in_system` (String) @@ -1304,7 +1303,7 @@ Read-Only: ### Nested Schema for `owned_groups_on_system.items.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1336,19 +1335,19 @@ Required: Optional: - `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--links)) +- `parent_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--permissions)) Read-Only: - `depth` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--links)) -- `parent_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--permissions)) - `uuid` (String) ### Nested Schema for `owned_organizational_units.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1382,7 +1381,9 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap)) - `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--links)) - `organizational_unit_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory)) @@ -1394,15 +1395,13 @@ Optional: - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) +- `type` (String) - `username_prefix` (String) Read-Only: - `account_count` (Number) - `external_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--permissions)) -- `type` (String) - `uuid` (String) @@ -1431,6 +1430,28 @@ Optional: - `user_dn` (String) + +### Nested Schema for `owned_systems.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owned_systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `owned_systems.provisioned_a_d` @@ -1502,18 +1523,18 @@ Required: Optional: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--links)) - `next_uid` (Number) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--permissions)) Read-Only: - `account_count` (Number) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--permissions)) -### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` +### Nested Schema for `owned_systems.provisioned_ldap.numbering.account_count` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1522,7 +1543,7 @@ Read-Only: -### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` +### Nested Schema for `owned_systems.provisioned_ldap.numbering.account_count` Optional: @@ -1543,39 +1564,6 @@ Required: - `group_dn` (String) - -### Nested Schema for `owned_systems.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `owned_systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - - - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - ### Nested Schema for `recent_audits` @@ -1588,15 +1576,15 @@ Optional: - `accounts` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts)) - `comment` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--permissions)) Read-Only: - `created_at` (String) - `created_by` (String) - `group_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--links)) - `name_on_audit` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `submitted_at` (String) @@ -1610,6 +1598,9 @@ Optional: - `account_uuid` (String) - `action` (String) - `comment` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--permissions)) +- `rights` (String) Read-Only: @@ -1619,16 +1610,13 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--links)) - `nested` (Boolean) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--permissions)) -- `rights` (String) - `username` (String) ### Nested Schema for `recent_audits.accounts.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1651,7 +1639,7 @@ Optional: ### Nested Schema for `recent_audits.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1684,20 +1672,20 @@ Optional: - `active` (Boolean) - `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) +- `password_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `technical_administrator_uuid` (String) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) -- `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `username` (String) - `uuid` (String) ### Nested Schema for `service_accounts.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1720,19 +1708,38 @@ Optional: ### Nested Schema for `systems` -Required: - -- `group_uuid` (String) - Optional: - `activation_required` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) Read-Only: - `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) +- `group_uuid` (String) + + +### Nested Schema for `systems.links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + ### Nested Schema for `systems.group_on_system` @@ -1746,9 +1753,6 @@ Required: Optional: - `display_name` (String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--permissions)) - `short_name_in_system` (String) @@ -1756,7 +1760,7 @@ Read-Only: ### Nested Schema for `systems.group_on_system.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1776,28 +1780,6 @@ Optional: - -### Nested Schema for `systems.links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `vault` @@ -1805,18 +1787,15 @@ Optional: Optional: - `access_available` (Boolean) -- `name` (String) -- `records` (List of String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) +- `name` (String) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) +- `records` (List of String) ### Nested Schema for `vault.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -1858,7 +1837,9 @@ Optional: - `custom_header_value` (String) - `directory_uuid` (String) - `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--links)) - `name` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--permissions)) - `system_uuid` (String) - `tls` (String) - `trusted_certificate_uuid` (String) @@ -1867,14 +1848,12 @@ Optional: Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--permissions)) - `uuid` (String) ### Nested Schema for `webhooks.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) diff --git a/docs/resources/group_vaultrecord.md b/docs/resources/group_vaultrecord.md index f886bab..7a46bc3 100644 --- a/docs/resources/group_vaultrecord.md +++ b/docs/resources/group_vaultrecord.md @@ -26,8 +26,8 @@ description: |- - `delete_tile` (Boolean) - `end_date` (String) - `filename` (String) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `url` (String) - `username` (String) - `warning_period` (String) @@ -36,31 +36,37 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `derived` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `parent_uuid` (String) - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `share_end_time` (String) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) - `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `types` (List of String) - `uuid` (String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - -### Nested Schema for `secret` + +### Nested Schema for `links` Optional: -- `comment` (String) -- `file` (String) -- `password` (String) -- `totp` (String) -- `write_totp` (Boolean) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) - -### Nested Schema for `tile` + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) @@ -74,17 +80,6 @@ Optional: - `last_modified_by` (String) - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `password_metadata` @@ -101,15 +96,16 @@ Optional: - `upper_count` (Number) - -### Nested Schema for `permissions` + +### Nested Schema for `secret` Optional: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) @@ -149,18 +145,18 @@ Required: Optional: - `color` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) - `share_end_time` (String) - `uuid` (String) ### Nested Schema for `shares.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -180,5 +176,9 @@ Optional: + +### Nested Schema for `tile` + + ### Nested Schema for `vaultholder` diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index 32b8694..b79b219 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -25,56 +25,56 @@ description: |- ### Optional - `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--provgroups)) - `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) +- `short_name_in_system` (String) ### Read-Only - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) -- `short_name_in_system` (String) - - -### Nested Schema for `provgroups` - -Required: -- `group_uuid` (String) + +### Nested Schema for `links` Optional: -- `activation_required` (Boolean) +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) -Read-Only: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--provgroups--group_on_system)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--permissions)) + +### Nested Schema for `permissions` - -### Nested Schema for `provgroups.group_on_system` +Optional: -Required: +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) -- `name_in_system` (String) -- `owner_uuid` (String) -- `type` (String) + + +### Nested Schema for `provgroups` Optional: -- `display_name` (String) +- `activation_required` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--permissions)) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--permissions)) -- `short_name_in_system` (String) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--provgroups--group_on_system)) +- `group_uuid` (String) - -### Nested Schema for `provgroups.group_on_system.links` + +### Nested Schema for `provgroups.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -82,8 +82,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `provgroups.group_on_system.permissions` + +### Nested Schema for `provgroups.permissions` Optional: @@ -93,11 +93,26 @@ Optional: - `type_escaped` (String) + +### Nested Schema for `provgroups.group_on_system` - -### Nested Schema for `provgroups.links` +Required: -Read-Only: +- `name_in_system` (String) +- `owner_uuid` (String) +- `type` (String) + +Optional: + +- `display_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--permissions)) +- `short_name_in_system` (String) + + +### Nested Schema for `provgroups.group_on_system.links` + +Optional: - `href` (String) - `id` (Number) @@ -105,8 +120,8 @@ Read-Only: - `type_escaped` (String) - -### Nested Schema for `provgroups.permissions` + +### Nested Schema for `provgroups.group_on_system.permissions` Optional: @@ -117,6 +132,7 @@ Optional: + ### Nested Schema for `service_accounts` @@ -128,18 +144,18 @@ Required: Optional: - `active` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) Read-Only: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `username` (String) - `uuid` (String) ### Nested Schema for `service_accounts.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -168,25 +184,3 @@ Optional: - `created_by` (String) - `last_modified_at` (String) - `last_modified_by` (String) - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index 3b7deeb..8e06cce 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -25,6 +25,9 @@ description: |- - `active` (Boolean) - `description` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `password_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `technical_administrator_uuid` (String) @@ -32,12 +35,31 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `username` (String) - `uuid` (String) + +### Nested Schema for `links` + +Optional: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `secret` @@ -70,9 +92,6 @@ Required: Optional: - `display_name` (String) - -Read-Only: - - `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `short_name_in_system` (String) @@ -80,7 +99,7 @@ Read-Only: ### Nested Schema for `groups.links` -Read-Only: +Optional: - `href` (String) - `id` (Number) @@ -97,26 +116,3 @@ Optional: - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) - - - - -### Nested Schema for `links` - -Read-Only: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) From bd6dbd9305ac297aea62330c1a776b071c489604 Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 17:37:47 +0100 Subject: [PATCH 33/34] Upgrade dependencies --- docs/resources/client_vaultrecord.md | 66 ++-- docs/resources/clientapplication.md | 78 ++-- docs/resources/group.md | 553 ++++++++++++++------------- docs/resources/group_vaultrecord.md | 66 ++-- docs/resources/grouponsystem.md | 112 +++--- docs/resources/serviceaccount.md | 56 +-- go.mod | 14 +- go.sum | 28 +- internal/provider/full-schema-rs.go | 455 ++++++++++++---------- main.go | 36 +- 10 files changed, 776 insertions(+), 688 deletions(-) diff --git a/docs/resources/client_vaultrecord.md b/docs/resources/client_vaultrecord.md index 9a4d8bc..6836e0c 100644 --- a/docs/resources/client_vaultrecord.md +++ b/docs/resources/client_vaultrecord.md @@ -26,8 +26,8 @@ description: |- - `delete_tile` (Boolean) - `end_date` (String) - `filename` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `url` (String) - `username` (String) - `warning_period` (String) @@ -36,37 +36,31 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `parent_uuid` (String) - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `share_end_time` (String) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) - `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `types` (List of String) - `uuid` (String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - -### Nested Schema for `links` + +### Nested Schema for `secret` Optional: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) -Optional: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) + +### Nested Schema for `tile` @@ -80,6 +74,17 @@ Optional: - `last_modified_by` (String) + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `password_metadata` @@ -96,16 +101,15 @@ Optional: - `upper_count` (Number) - -### Nested Schema for `secret` + +### Nested Schema for `permissions` Optional: -- `comment` (String) -- `file` (String) -- `password` (String) -- `totp` (String) -- `write_totp` (Boolean) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) @@ -145,18 +149,18 @@ Required: Optional: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) - `share_end_time` (String) - `uuid` (String) ### Nested Schema for `shares.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -176,9 +180,5 @@ Optional: - -### Nested Schema for `tile` - - ### Nested Schema for `vaultholder` diff --git a/docs/resources/clientapplication.md b/docs/resources/clientapplication.md index 750177e..9e4f42c 100644 --- a/docs/resources/clientapplication.md +++ b/docs/resources/clientapplication.md @@ -18,7 +18,6 @@ description: |- ### Required - `name` (String) -- `type` (String) ### Optional @@ -26,10 +25,8 @@ description: |- - `delete_tile` (Boolean) - `groupclients` (Attributes List) (see [below for nested schema](#nestedatt--groupclients)) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--saml2_client)) - `scopes` (List of String) - `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) @@ -41,7 +38,10 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) - `vault_record_count` (Number) @@ -51,20 +51,20 @@ description: |- Optional: - `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--links)) -- `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--permissions)) -- `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groupclients--permissions)) +- `technical_administrator_uuid` (String) ### Nested Schema for `groupclients.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -91,25 +91,14 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) - -### Nested Schema for `links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `o_auth2_client` @@ -123,13 +112,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--o_auth2_client--account_permissions)) +- `shared_secret_uuid` (String) ### Nested Schema for `o_auth2_client.account_permissions` @@ -143,17 +132,6 @@ Optional: - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `saml2_client` @@ -216,10 +194,8 @@ Optional: - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -233,6 +209,8 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `uuid` (String) @@ -240,14 +218,17 @@ Read-Only: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--audit_config--permissions)) ### Nested Schema for `groups.audit_config.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -270,7 +251,7 @@ Optional: ### Nested Schema for `groups.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -287,3 +268,26 @@ Optional: - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/resources/group.md b/docs/resources/group.md index 2725b3c..d380cda 100644 --- a/docs/resources/group.md +++ b/docs/resources/group.md @@ -34,10 +34,8 @@ description: |- - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -60,6 +58,7 @@ description: |- - `groupauditinginfo` (Attributes) (see [below for nested schema](#nestedatt--groupauditinginfo)) - `groupinfo` (Attributes) (see [below for nested schema](#nestedatt--groupinfo)) - `helpdesk` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `markers` (Attributes) (see [below for nested schema](#nestedatt--markers)) - `myaccount` (Attributes) (see [below for nested schema](#nestedatt--myaccount)) - `mydelegatedaccount` (Attributes) (see [below for nested schema](#nestedatt--mydelegatedaccount)) @@ -69,6 +68,7 @@ description: |- - `owned_groups_on_system` (Attributes) (see [below for nested schema](#nestedatt--owned_groups_on_system)) - `owned_organizational_units` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units)) - `owned_systems` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `recent_audits` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits)) - `requeststatus` (String) - `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) @@ -87,16 +87,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -110,16 +110,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -128,14 +128,17 @@ Read-Only: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--audit_config--permissions)) ### Nested Schema for `audit_config.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -167,13 +170,16 @@ Optional: - `client_uuid` (String) - `for_group_uuid` (String) - `for_system_uuid` (String) + +Read-Only: + - `links` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--client_permissions--permissions)) ### Nested Schema for `client_permissions.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -193,44 +199,19 @@ Optional: - -### Nested Schema for `links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `administered_clients` Required: - `name` (String) -- `type` (String) Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--administered_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -238,7 +219,10 @@ Optional: Read-Only: - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--permissions)) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) @@ -248,25 +232,14 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) - -### Nested Schema for `administered_clients.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `administered_clients.o_auth2_client` @@ -280,13 +253,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_clients--o_auth2_client--account_permissions)) +- `shared_secret_uuid` (String) ### Nested Schema for `administered_clients.o_auth2_client.account_permissions` @@ -300,17 +273,6 @@ Optional: - -### Nested Schema for `administered_clients.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `administered_clients.saml2_client` @@ -325,6 +287,28 @@ Optional: - `metadata_url` (String) + +### Nested Schema for `administered_clients.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `administered_clients.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `administered_systems` @@ -340,9 +324,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--administered_systems--provisioned_azure_sync_ldap_directory)) @@ -354,13 +336,15 @@ Optional: - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `type` (String) - `username_prefix` (String) Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--permissions)) +- `type` (String) - `uuid` (String) @@ -389,28 +373,6 @@ Optional: - `user_dn` (String) - -### Nested Schema for `administered_systems.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `administered_systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `administered_systems.provisioned_a_d` @@ -482,18 +444,18 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--administered_systems--provisioned_ldap--numbering--permissions)) -### Nested Schema for `administered_systems.provisioned_ldap.numbering.account_count` +### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -502,7 +464,7 @@ Optional: -### Nested Schema for `administered_systems.provisioned_ldap.numbering.account_count` +### Nested Schema for `administered_systems.provisioned_ldap.numbering.permissions` Optional: @@ -523,6 +485,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `administered_systems.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `administered_systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `audit` @@ -562,10 +546,8 @@ Optional: - `description` (String) - `extended_access` (String) - `hide_audit_trail` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--links)) - `nested_under_uuid` (String) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--permissions)) - `private_group` (Boolean) - `record_trail` (Boolean) - `rotating_password_required` (Boolean) @@ -579,6 +561,8 @@ Read-Only: - `audit_requested` (Boolean) - `auditor` (Boolean) - `authorizing_group_types` (List of String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--permissions)) - `uuid` (String) @@ -586,14 +570,17 @@ Read-Only: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--links)) - `months` (List of String) + +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--authorized_groups--items--audit_config--permissions)) ### Nested Schema for `authorized_groups.items.audit_config.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -616,7 +603,7 @@ Optional: ### Nested Schema for `authorized_groups.items.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -643,20 +630,20 @@ Optional: Optional: - `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--links)) -- `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--permissions)) -- `technical_administrator_uuid` (String) Read-Only: - `client_uuid` (String) - `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--clients--links)) +- `owner_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--clients--permissions)) +- `technical_administrator_uuid` (String) ### Nested Schema for `clients.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -690,9 +677,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_azure_sync_ldap_directory)) @@ -704,13 +689,15 @@ Optional: - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `type` (String) - `username_prefix` (String) Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--permissions)) +- `type` (String) - `uuid` (String) @@ -739,28 +726,6 @@ Optional: - `user_dn` (String) - -### Nested Schema for `content_administered_systems.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `content_administered_systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `content_administered_systems.provisioned_a_d` @@ -832,18 +797,18 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--content_administered_systems--provisioned_ldap--numbering--permissions)) -### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.account_count` +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -852,7 +817,7 @@ Optional: -### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.account_count` +### Nested Schema for `content_administered_systems.provisioned_ldap.numbering.permissions` Optional: @@ -873,6 +838,28 @@ Required: - `group_dn` (String) + +### Nested Schema for `content_administered_systems.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `content_administered_systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `groupauditinginfo` @@ -909,17 +896,30 @@ Optional: - `domain_restriction` (String) - `fully_resolved_issuer` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--permissions)) - `status` (Attributes) (see [below for nested schema](#nestedatt--helpdesk--status)) - `type` (String) - `username_customizable` (Boolean) +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--helpdesk--permissions)) + + +### Nested Schema for `helpdesk.status` + +Optional: + +- `accounts` (Number) +- `reason` (String) +- `status` (String) + + ### Nested Schema for `helpdesk.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -938,15 +938,16 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `helpdesk.status` -Optional: + +### Nested Schema for `links` -- `accounts` (Number) -- `reason` (String) -- `status` (String) +Read-Only: +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) @@ -977,16 +978,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -1000,16 +1001,16 @@ Required: Optional: -- `directory_uuid` (String) - `end_date` (String) -- `two_factor_status` (String) Read-Only: +- `directory_uuid` (String) - `disconnected_nested` (Boolean) - `last_used` (String) - `nested` (Boolean) - `provisioning_end_time` (String) +- `two_factor_status` (String) - `visible_for_provisioning` (Boolean) @@ -1020,20 +1021,17 @@ Required: - `name` (String) -Optional: - -- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--permissions)) - Read-Only: - `admin` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--nested_groups--permissions)) - `uuid` (String) ### Nested Schema for `nested_groups.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1059,16 +1057,13 @@ Optional: Required: - `name` (String) -- `type` (String) Optional: - `client_id` (String) - `ldap_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--ldap_client)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--links)) - `o_auth2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client)) - `owner_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--permissions)) - `saml2_client` (Attributes) (see [below for nested schema](#nestedatt--owned_clients--saml2_client)) - `scopes` (List of String) - `technical_administrator_uuid` (String) @@ -1076,7 +1071,10 @@ Optional: Read-Only: - `last_modified_at` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--permissions)) - `sso_application` (Boolean) +- `type` (String) - `uuid` (String) @@ -1086,25 +1084,14 @@ Optional: - `client_certificate_uuid` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) Read-Only: - `bind_dn` (String) +- `shared_secret_uuid` (String) - `used_for_provisioning` (Boolean) - -### Nested Schema for `owned_clients.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `owned_clients.o_auth2_client` @@ -1118,13 +1105,13 @@ Optional: - `initiate_login_uri` (String) - `resource_uris` (String) - `share_secret_in_vault` (Boolean) -- `shared_secret_uuid` (String) - `show_landing_page` (Boolean) - `use_client_credentials` (Boolean) Read-Only: - `account_permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_clients--o_auth2_client--account_permissions)) +- `shared_secret_uuid` (String) ### Nested Schema for `owned_clients.o_auth2_client.account_permissions` @@ -1138,17 +1125,6 @@ Optional: - -### Nested Schema for `owned_clients.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `owned_clients.saml2_client` @@ -1163,6 +1139,28 @@ Optional: - `metadata_url` (String) + +### Nested Schema for `owned_clients.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owned_clients.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `owned_directories` @@ -1180,17 +1178,17 @@ Optional: - `helpdesk_group_uuid` (String) - `internal_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--internal_directory)) - `l_d_a_p_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--l_d_a_p_directory)) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--links)) - `maintenance_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--maintenance_directory)) - `o_id_c_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_directories--o_id_c_directory)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--permissions)) - `restrict2fa` (Boolean) -- `type` (String) - `username_customizable` (Boolean) Read-Only: - `account_validity_supported` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_directories--permissions)) +- `type` (String) - `uuid` (String) @@ -1225,17 +1223,6 @@ Optional: - `trusted_certificate_uuid` (String) - -### Nested Schema for `owned_directories.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - ### Nested Schema for `owned_directories.maintenance_directory` @@ -1264,6 +1251,17 @@ Read-Only: - `fully_resolved_issuer` (String) + +### Nested Schema for `owned_directories.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `owned_directories.permissions` @@ -1296,6 +1294,9 @@ Required: Optional: - `display_name` (String) + +Read-Only: + - `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_groups_on_system--items--permissions)) - `short_name_in_system` (String) @@ -1303,7 +1304,7 @@ Optional: ### Nested Schema for `owned_groups_on_system.items.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1335,19 +1336,19 @@ Required: Optional: - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--links)) -- `parent_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--permissions)) Read-Only: - `depth` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--links)) +- `parent_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_organizational_units--permissions)) - `uuid` (String) ### Nested Schema for `owned_organizational_units.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1381,9 +1382,7 @@ Optional: - `abstract_provisioned_ldap` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--abstract_provisioned_ldap)) - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--links)) - `organizational_unit_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--permissions)) - `provisioned_a_d` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_a_d)) - `provisioned_azure_oidc_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_oidc_directory)) - `provisioned_azure_sync_ldap_directory` (Attributes) (see [below for nested schema](#nestedatt--owned_systems--provisioned_azure_sync_ldap_directory)) @@ -1395,13 +1394,15 @@ Optional: - `self_service_new_groups` (Boolean) - `self_service_service_accounts` (Boolean) - `should_destroy_unknown_accounts` (Boolean) -- `type` (String) - `username_prefix` (String) Read-Only: - `account_count` (Number) - `external_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--permissions)) +- `type` (String) - `uuid` (String) @@ -1430,28 +1431,6 @@ Optional: - `user_dn` (String) - -### Nested Schema for `owned_systems.links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `owned_systems.permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `owned_systems.provisioned_a_d` @@ -1523,18 +1502,18 @@ Required: Optional: -- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--links)) - `next_uid` (Number) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--permissions)) Read-Only: - `account_count` (Number) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--owned_systems--provisioned_ldap--numbering--permissions)) -### Nested Schema for `owned_systems.provisioned_ldap.numbering.account_count` +### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1543,7 +1522,7 @@ Optional: -### Nested Schema for `owned_systems.provisioned_ldap.numbering.account_count` +### Nested Schema for `owned_systems.provisioned_ldap.numbering.permissions` Optional: @@ -1564,6 +1543,39 @@ Required: - `group_dn` (String) + +### Nested Schema for `owned_systems.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `owned_systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + ### Nested Schema for `recent_audits` @@ -1576,15 +1588,15 @@ Optional: - `accounts` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts)) - `comment` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--permissions)) Read-Only: - `created_at` (String) - `created_by` (String) - `group_name` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--links)) - `name_on_audit` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--permissions)) - `reviewed_at` (String) - `reviewed_by` (String) - `submitted_at` (String) @@ -1598,9 +1610,6 @@ Optional: - `account_uuid` (String) - `action` (String) - `comment` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--permissions)) -- `rights` (String) Read-Only: @@ -1610,13 +1619,16 @@ Read-Only: - `end_date` (String) - `last_active` (String) - `last_used` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--links)) - `nested` (Boolean) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--recent_audits--accounts--permissions)) +- `rights` (String) - `username` (String) ### Nested Schema for `recent_audits.accounts.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1639,7 +1651,7 @@ Optional: ### Nested Schema for `recent_audits.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1672,20 +1684,20 @@ Optional: - `active` (Boolean) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) -- `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `technical_administrator_uuid` (String) Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) +- `password_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `username` (String) - `uuid` (String) ### Nested Schema for `service_accounts.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1708,38 +1720,19 @@ Optional: ### Nested Schema for `systems` -Optional: - -- `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) - -Read-Only: +Required: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system)) - `group_uuid` (String) - -### Nested Schema for `systems.links` - Optional: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `systems.permissions` - -Optional: +- `activation_required` (Boolean) -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) +Read-Only: +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--systems--group_on_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--permissions)) ### Nested Schema for `systems.group_on_system` @@ -1753,6 +1746,9 @@ Required: Optional: - `display_name` (String) + +Read-Only: + - `links` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--systems--group_on_system--permissions)) - `short_name_in_system` (String) @@ -1760,7 +1756,7 @@ Optional: ### Nested Schema for `systems.group_on_system.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1780,6 +1776,28 @@ Optional: + +### Nested Schema for `systems.links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `systems.permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) + + ### Nested Schema for `vault` @@ -1787,15 +1805,18 @@ Optional: Optional: - `access_available` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) - `records` (List of String) +Read-Only: + +- `links` (Attributes List) (see [below for nested schema](#nestedatt--vault--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--vault--permissions)) + ### Nested Schema for `vault.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -1837,9 +1858,7 @@ Optional: - `custom_header_value` (String) - `directory_uuid` (String) - `group_uuid` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--links)) - `name` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--permissions)) - `system_uuid` (String) - `tls` (String) - `trusted_certificate_uuid` (String) @@ -1848,12 +1867,14 @@ Optional: Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--webhooks--permissions)) - `uuid` (String) ### Nested Schema for `webhooks.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) diff --git a/docs/resources/group_vaultrecord.md b/docs/resources/group_vaultrecord.md index 7a46bc3..f886bab 100644 --- a/docs/resources/group_vaultrecord.md +++ b/docs/resources/group_vaultrecord.md @@ -26,8 +26,8 @@ description: |- - `delete_tile` (Boolean) - `end_date` (String) - `filename` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) +- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `url` (String) - `username` (String) - `warning_period` (String) @@ -36,37 +36,31 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `derived` (Boolean) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) - `parent_uuid` (String) - `password_metadata` (Attributes) (see [below for nested schema](#nestedatt--password_metadata)) -- `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `share_end_time` (String) - `share_summary` (Attributes) (see [below for nested schema](#nestedatt--share_summary)) - `shares` (Attributes List) (see [below for nested schema](#nestedatt--shares)) -- `tile` (Attributes) (see [below for nested schema](#nestedatt--tile)) - `types` (List of String) - `uuid` (String) - `vaultholder` (Attributes) (see [below for nested schema](#nestedatt--vaultholder)) - -### Nested Schema for `links` + +### Nested Schema for `secret` Optional: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` +- `comment` (String) +- `file` (String) +- `password` (String) +- `totp` (String) +- `write_totp` (Boolean) -Optional: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) + +### Nested Schema for `tile` @@ -80,6 +74,17 @@ Optional: - `last_modified_by` (String) + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + ### Nested Schema for `password_metadata` @@ -96,16 +101,15 @@ Optional: - `upper_count` (Number) - -### Nested Schema for `secret` + +### Nested Schema for `permissions` Optional: -- `comment` (String) -- `file` (String) -- `password` (String) -- `totp` (String) -- `write_totp` (Boolean) +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) @@ -145,18 +149,18 @@ Required: Optional: - `color` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--shares--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--shares--permissions)) - `share_end_time` (String) - `uuid` (String) ### Nested Schema for `shares.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -176,9 +180,5 @@ Optional: - -### Nested Schema for `tile` - - ### Nested Schema for `vaultholder` diff --git a/docs/resources/grouponsystem.md b/docs/resources/grouponsystem.md index b79b219..32b8694 100644 --- a/docs/resources/grouponsystem.md +++ b/docs/resources/grouponsystem.md @@ -25,56 +25,56 @@ description: |- ### Optional - `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `provgroups` (Attributes List) (see [below for nested schema](#nestedatt--provgroups)) - `service_accounts` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts)) -- `short_name_in_system` (String) ### Read-Only - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) +- `short_name_in_system` (String) - -### Nested Schema for `links` + +### Nested Schema for `provgroups` -Optional: +Required: -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) +- `group_uuid` (String) +Optional: - -### Nested Schema for `permissions` +- `activation_required` (Boolean) -Optional: +Read-Only: -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) +- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--provgroups--group_on_system)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--permissions)) + +### Nested Schema for `provgroups.group_on_system` - -### Nested Schema for `provgroups` +Required: + +- `name_in_system` (String) +- `owner_uuid` (String) +- `type` (String) Optional: -- `activation_required` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--permissions)) +- `display_name` (String) Read-Only: -- `group_on_system` (Attributes) (see [below for nested schema](#nestedatt--provgroups--group_on_system)) -- `group_uuid` (String) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--permissions)) +- `short_name_in_system` (String) - -### Nested Schema for `provgroups.links` + +### Nested Schema for `provgroups.group_on_system.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -82,8 +82,8 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `provgroups.permissions` + +### Nested Schema for `provgroups.group_on_system.permissions` Optional: @@ -93,26 +93,11 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `provgroups.group_on_system` - -Required: - -- `name_in_system` (String) -- `owner_uuid` (String) -- `type` (String) - -Optional: - -- `display_name` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--provgroups--group_on_system--permissions)) -- `short_name_in_system` (String) - -### Nested Schema for `provgroups.group_on_system.links` + +### Nested Schema for `provgroups.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -120,8 +105,8 @@ Optional: - `type_escaped` (String) - -### Nested Schema for `provgroups.group_on_system.permissions` + +### Nested Schema for `provgroups.permissions` Optional: @@ -132,7 +117,6 @@ Optional: - ### Nested Schema for `service_accounts` @@ -144,18 +128,18 @@ Required: Optional: - `active` (Boolean) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) Read-Only: +- `links` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--links)) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--service_accounts--permissions)) - `username` (String) - `uuid` (String) ### Nested Schema for `service_accounts.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -184,3 +168,25 @@ Optional: - `created_by` (String) - `last_modified_at` (String) - `last_modified_by` (String) + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/docs/resources/serviceaccount.md b/docs/resources/serviceaccount.md index 8e06cce..3b7deeb 100644 --- a/docs/resources/serviceaccount.md +++ b/docs/resources/serviceaccount.md @@ -25,9 +25,6 @@ description: |- - `active` (Boolean) - `description` (String) -- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) -- `password_uuid` (String) -- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `secret` (Attributes) (see [below for nested schema](#nestedatt--secret)) - `technical_administrator_uuid` (String) @@ -35,31 +32,12 @@ description: |- - `audit` (Attributes) (see [below for nested schema](#nestedatt--audit)) - `groups` (Attributes List) (see [below for nested schema](#nestedatt--groups)) +- `links` (Attributes List) (see [below for nested schema](#nestedatt--links)) +- `password_uuid` (String) +- `permissions` (Attributes List) (see [below for nested schema](#nestedatt--permissions)) - `username` (String) - `uuid` (String) - -### Nested Schema for `links` - -Optional: - -- `href` (String) -- `id` (Number) -- `rel` (String) -- `type_escaped` (String) - - - -### Nested Schema for `permissions` - -Optional: - -- `full` (String) -- `instances` (List of String) -- `operations` (List of String) -- `type_escaped` (String) - - ### Nested Schema for `secret` @@ -92,6 +70,9 @@ Required: Optional: - `display_name` (String) + +Read-Only: + - `links` (Attributes List) (see [below for nested schema](#nestedatt--groups--links)) - `permissions` (Attributes List) (see [below for nested schema](#nestedatt--groups--permissions)) - `short_name_in_system` (String) @@ -99,7 +80,7 @@ Optional: ### Nested Schema for `groups.links` -Optional: +Read-Only: - `href` (String) - `id` (Number) @@ -116,3 +97,26 @@ Optional: - `instances` (List of String) - `operations` (List of String) - `type_escaped` (String) + + + + +### Nested Schema for `links` + +Read-Only: + +- `href` (String) +- `id` (Number) +- `rel` (String) +- `type_escaped` (String) + + + +### Nested Schema for `permissions` + +Optional: + +- `full` (String) +- `instances` (List of String) +- `operations` (List of String) +- `type_escaped` (String) diff --git a/go.mod b/go.mod index c8fa99b..419eb7b 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( github.com/google/uuid v1.4.0 github.com/hashicorp/terraform-plugin-docs v0.16.0 - github.com/hashicorp/terraform-plugin-framework v1.4.1 + github.com/hashicorp/terraform-plugin-framework v1.4.2 github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/microsoft/kiota-abstractions-go v1.3.1 @@ -25,7 +25,7 @@ require ( github.com/cloudflare/circl v1.3.3 // indirect github.com/coreos/go-oidc v2.2.1+incompatible // indirect github.com/fatih/color v1.15.0 // indirect - github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/logr v1.3.0 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/hashicorp/errwrap v1.1.0 // indirect @@ -40,13 +40,13 @@ require ( github.com/hashicorp/terraform-exec v0.19.0 // indirect github.com/hashicorp/terraform-json v0.17.1 // indirect github.com/hashicorp/terraform-plugin-go v0.19.0 // indirect - github.com/hashicorp/terraform-registry-address v0.2.2 // indirect + github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/yamux v0.1.1 // indirect github.com/huandu/xstrings v1.4.0 // indirect github.com/imdario/mergo v0.3.15 // indirect github.com/mattn/go-colorable v0.1.13 // indirect - github.com/mattn/go-isatty v0.0.19 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect github.com/microsoft/kiota-http-go v1.1.0 // indirect github.com/microsoft/kiota-serialization-json-go v1.0.4 // indirect github.com/mitchellh/cli v1.1.5 // indirect @@ -61,7 +61,7 @@ require ( github.com/shopspring/decimal v1.3.1 // indirect github.com/spf13/cast v1.5.1 // indirect github.com/std-uritemplate/std-uritemplate/go v0.0.46 // indirect - github.com/vmihailenco/msgpack/v5 v5.4.0 // indirect + github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect github.com/zclconf/go-cty v1.14.1 // indirect go.opentelemetry.io/otel v1.19.0 // indirect @@ -74,8 +74,8 @@ require ( golang.org/x/sys v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect google.golang.org/appengine v1.6.8 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a // indirect - google.golang.org/grpc v1.58.3 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 // indirect + google.golang.org/grpc v1.59.0 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/square/go-jose.v2 v2.6.0 // indirect ) diff --git a/go.sum b/go.sum index de10ab2..875425e 100644 --- a/go.sum +++ b/go.sum @@ -41,8 +41,8 @@ github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66D github.com/go-git/go-billy/v5 v5.5.0 h1:yEY4yhzCDuMGSv83oGxiBotRzhwhNr8VZyphhiu+mTU= github.com/go-git/go-git/v5 v5.9.0 h1:cD9SFA7sHVRdJ7AYck1ZaAa/yeuBvGPxwXDL8cxrObY= github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.3.0 h1:2y3SDp0ZXuc6/cjLSZ+Q3ir+QB9T/iG5yYRXqsagWSY= +github.com/go-logr/logr v1.3.0/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= @@ -84,16 +84,16 @@ github.com/hashicorp/terraform-json v0.17.1 h1:eMfvh/uWggKmY7Pmb3T85u86E2EQg6EQH github.com/hashicorp/terraform-json v0.17.1/go.mod h1:Huy6zt6euxaY9knPAFKjUITn8QxUFIe9VuSzb4zn/0o= github.com/hashicorp/terraform-plugin-docs v0.16.0 h1:UmxFr3AScl6Wged84jndJIfFccGyBZn52KtMNsS12dI= github.com/hashicorp/terraform-plugin-docs v0.16.0/go.mod h1:M3ZrlKBJAbPMtNOPwHicGi1c+hZUh7/g0ifT/z7TVfA= -github.com/hashicorp/terraform-plugin-framework v1.4.1 h1:ZC29MoB3Nbov6axHdgPbMz7799pT5H8kIrM8YAsaVrs= -github.com/hashicorp/terraform-plugin-framework v1.4.1/go.mod h1:XC0hPcQbBvlbxwmjxuV/8sn8SbZRg4XwGMs22f+kqV0= +github.com/hashicorp/terraform-plugin-framework v1.4.2 h1:P7a7VP1GZbjc4rv921Xy5OckzhoiO3ig6SGxwelD2sI= +github.com/hashicorp/terraform-plugin-framework v1.4.2/go.mod h1:GWl3InPFZi2wVQmdVnINPKys09s9mLmTZr95/ngLnbY= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= github.com/hashicorp/terraform-plugin-go v0.19.0 h1:BuZx/6Cp+lkmiG0cOBk6Zps0Cb2tmqQpDM3iAtnhDQU= github.com/hashicorp/terraform-plugin-go v0.19.0/go.mod h1:EhRSkEPNoylLQntYsk5KrDHTZJh9HQoumZXbOGOXmec= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-registry-address v0.2.2 h1:lPQBg403El8PPicg/qONZJDC6YlgCVbWDtNmmZKtBno= -github.com/hashicorp/terraform-registry-address v0.2.2/go.mod h1:LtwNbCihUoUZ3RYriyS2wF/lGPB6gF9ICLRtuDk7hSo= +github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= +github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.1.1 h1:EZZimZ1GxdqFRinZ1tpJwVxxt49xc/S52uzrw4x0jKQ= github.com/hashicorp/terraform-svchost v0.1.1/go.mod h1:mNsjQfZyf/Jhz35v6/0LWcv26+X7JPS+buii2c9/ctc= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= @@ -120,8 +120,8 @@ github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNx github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= -github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA= -github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/microsoft/kiota-abstractions-go v1.3.1 h1:lZ4hLvU/HpnAkvjqIt/mL1ooZ0b/2RKuM2K65fl2/mY= github.com/microsoft/kiota-abstractions-go v1.3.1/go.mod h1:NRJnAFg8qqOoX/VQWTe3ZYmcIbLa20LNC+eTqO2j60U= github.com/microsoft/kiota-http-go v1.1.0 h1:L5I93EiNtlP/X6YzeTlhjWt7Q1DxzC9CmWSVtX3b0tE= @@ -171,8 +171,8 @@ github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1F github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f h1:/Umyd1P2MaEVi8eoWnPCbkZOoHz5QZg81dqw5G//Ybo= github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f/go.mod h1:rYrE+VBV3sYYXR44U5VZgihBnj/KQPtZvm9isb7Zp28= -github.com/vmihailenco/msgpack/v5 v5.4.0 h1:hRM0digJwyR6vll33NNAwCFguy5JuBD6jxDmQP3l608= -github.com/vmihailenco/msgpack/v5 v5.4.0/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= +github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= +github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= @@ -255,10 +255,10 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a h1:a2MQQVoTo96JC9PMGtGBymLp7+/RzpFc2yX/9WfFg1c= -google.golang.org/genproto/googleapis/rpc v0.0.0-20231012201019-e917dd12ba7a/go.mod h1:4cYg8o5yUbm77w8ZX00LhMVNl/YVBFJRYWDc0uYWMs0= -google.golang.org/grpc v1.58.3 h1:BjnpXut1btbtgN/6sp+brB2Kbm2LjNXnidYujAVbSoQ= -google.golang.org/grpc v1.58.3/go.mod h1:tgX3ZQDlNJGU96V6yHh1T/JeoBQ2TXdr43YbYSsCJk0= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405 h1:AB/lmRny7e2pLhFEYIbl5qkDAUt2h0ZRO4wGPhZf+ik= +google.golang.org/genproto/googleapis/rpc v0.0.0-20231030173426-d783a09b4405/go.mod h1:67X1fPuzjcrkymZzZV1vvkFeTn2Rvc6lYF9MYFGCcwE= +google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk= +google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98= google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8= diff --git a/internal/provider/full-schema-rs.go b/internal/provider/full-schema-rs.go index 3a4c401..459d803 100644 --- a/internal/provider/full-schema-rs.go +++ b/internal/provider/full-schema-rs.go @@ -14,6 +14,8 @@ import ( "github.com/hashicorp/terraform-plugin-framework/resource/schema/booldefault" "github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64default" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier" + "github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier" "github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault" @@ -57,13 +59,15 @@ func resourceSchemaAttrsLinkable(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -74,16 +78,20 @@ func resourceSchemaAttrsNonLinkable(recurse bool) map[string]rsschema.Attribute func resourceSchemaAttrsRestLink(recurse bool) map[string]rsschema.Attribute { schemaAttrs := make(map[string]rsschema.Attribute) schemaAttrs["href"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["id"] = rsschema.Int64Attribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } schemaAttrs["rel"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["type_escaped"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -93,13 +101,15 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Computed: true, @@ -111,15 +121,11 @@ func resourceSchemaAttrsAuthAccountPrimer(recurse bool) map[string]rsschema.Attr Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["validity"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "VALID", "NOT_APPLICABLE", "REREGISTRATION_REQUIRED", "DISABLED", "DIRECTORY_DISABLED", "INVALID_IN_DIRECTORY", - ), - }, + Computed: true, } return schemaAttrs } @@ -154,13 +160,15 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["alias"] = rsschema.StringAttribute{ Optional: true, @@ -169,12 +177,8 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs }, } schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "PUBLIC_CERTIFICATE", "PRIVATE_KEY_PAIR", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["certificate_data"] = rsschema.ListAttribute{ ElementType: types.StringType, @@ -198,7 +202,8 @@ func resourceSchemaAttrsCertificateCertificatePrimer(recurse bool) map[string]rs Computed: true, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -217,13 +222,15 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -242,13 +249,16 @@ func resourceSchemaAttrsClientApplicationVaultVaultRecord(recurse bool) map[stri }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -291,21 +301,19 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "OAUTH2", "SAML2", "LDAP", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -324,10 +332,12 @@ func resourceSchemaAttrsClientClientApplication(recurse bool) map[string]rsschem Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["last_modified_at"] = rsschema.StringAttribute{ Computed: true, @@ -383,21 +393,19 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["type"] = rsschema.StringAttribute{ - Required: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "OAUTH2", "SAML2", "LDAP", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["client_id"] = rsschema.StringAttribute{ Optional: true, @@ -416,10 +424,12 @@ func resourceSchemaAttrsClientClientApplicationPrimer(recurse bool) map[string]r Optional: true, } schemaAttrs["sso_application"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -481,10 +491,7 @@ func resourceSchemaAttrsClientLdapClient(recurse bool) map[string]rsschema.Attri Default: booldefault.StaticBool(true), } schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } schemaAttrs["used_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -534,10 +541,7 @@ func resourceSchemaAttrsClientOAuth2Client(recurse bool) map[string]rsschema.Att Default: booldefault.StaticBool(true), } schemaAttrs["shared_secret_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } schemaAttrs["show_landing_page"] = rsschema.BoolAttribute{ Computed: true, @@ -560,21 +564,25 @@ func resourceSchemaAttrsClientOAuth2ClientPermission(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -599,21 +607,25 @@ func resourceSchemaAttrsClientOAuth2ClientPermissionWithClient(recurse bool) map NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["for_group_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), }, } schemaAttrs["for_system_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -690,16 +702,19 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -707,12 +722,8 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch Default: booldefault.StaticBool(false), } schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -721,7 +732,8 @@ func resourceSchemaAttrsDirectoryAccountDirectory(recurse bool) map[string]rssch }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["base_organizational_unit_uuid"] = rsschema.StringAttribute{ Required: true, @@ -804,16 +816,19 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_validity_supported"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -821,12 +836,8 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string Default: booldefault.StaticBool(false), } schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MAINTENANCE", "LDAP", "INTERNAL", "OIDC", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -835,7 +846,8 @@ func resourceSchemaAttrsDirectoryAccountDirectoryPrimer(recurse bool) map[string }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -865,13 +877,15 @@ func resourceSchemaAttrsDirectoryAccountDirectorySummary(recurse bool) map[strin NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["type"] = rsschema.StringAttribute{ Optional: true, @@ -1133,13 +1147,15 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -1165,6 +1181,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Attributes: resourceSchemaAttrsGroupGroupAuditConfig(false), } attr.Optional = true + attr.Computed = true schemaAttrs["audit_config"] = attr } schemaAttrs["audit_requested"] = rsschema.BoolAttribute{ @@ -1202,6 +1219,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { Computed: true, } schemaAttrs["classification_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -1232,6 +1250,7 @@ func resourceSchemaAttrsGroupGroup(recurse bool) map[string]rsschema.Attribute { }, } schemaAttrs["organizational_unit_uuid"] = rsschema.StringAttribute{ + Computed: true, Optional: true, Validators: []validator.String{ stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), @@ -1286,10 +1305,7 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr }, } schemaAttrs["directory_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } schemaAttrs["disconnected_nested"] = rsschema.BoolAttribute{ Computed: true, @@ -1315,12 +1331,7 @@ func resourceSchemaAttrsGroupGroupAccount(recurse bool) map[string]rsschema.Attr }, } schemaAttrs["two_factor_status"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "DISABLED", "EXTERNAL", "TOTP", "APP", "WEBAUTHN", "MIXED", - ), - }, + Computed: true, } schemaAttrs["visible_for_provisioning"] = rsschema.BoolAttribute{ Computed: true, @@ -1357,13 +1368,15 @@ func resourceSchemaAttrsGroupGroupAudit(recurse bool) map[string]rsschema.Attrib NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["accounts"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ @@ -1414,13 +1427,15 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -1458,12 +1473,7 @@ func resourceSchemaAttrsGroupGroupAuditAccount(recurse bool) map[string]rsschema Computed: true, } schemaAttrs["rights"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "MANAGER", "NORMAL", - ), - }, + Computed: true, } schemaAttrs["username"] = rsschema.StringAttribute{ Computed: true, @@ -1476,17 +1486,20 @@ func resourceSchemaAttrsGroupGroupAuditConfig(recurse bool) map[string]rsschema. NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["months"] = rsschema.ListAttribute{ ElementType: types.StringType, Optional: true, + Computed: true, Validators: []validator.List{ listvalidator.ValueStringsAre( stringvalidator.OneOf( @@ -1564,13 +1577,15 @@ func resourceSchemaAttrsGroupGroupClassificationPrimer(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -1593,13 +1608,15 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -1615,16 +1632,10 @@ func resourceSchemaAttrsGroupGroupClient(recurse bool) map[string]rsschema.Attri PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } schemaAttrs["technical_administrator_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } return schemaAttrs } @@ -1699,13 +1710,15 @@ func resourceSchemaAttrsGroupGroupPrimer(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["admin"] = rsschema.BoolAttribute{ Computed: true, @@ -1898,13 +1911,15 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["activation_required"] = rsschema.BoolAttribute{ Computed: true, @@ -1912,8 +1927,10 @@ func resourceSchemaAttrsGroupProvisioningGroup(recurse bool) map[string]rsschema Default: booldefault.StaticBool(true), } schemaAttrs["group_uuid"] = rsschema.StringAttribute{ - Computed: true, - PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, + Required: true, + Validators: []validator.String{ + stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), + }, } { attr := rsschema.SingleNestedAttribute{ @@ -1961,13 +1978,15 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -1986,13 +2005,16 @@ func resourceSchemaAttrsGroupVaultVaultRecord(recurse bool) map[string]rsschema. }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -2086,13 +2108,15 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -2112,7 +2136,7 @@ func resourceSchemaAttrsNestedProvisioningGroupOnSystem(recurse bool) map[string }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, @@ -2131,13 +2155,15 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2146,7 +2172,8 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["depth"] = rsschema.Int64Attribute{ Computed: true, @@ -2161,10 +2188,7 @@ func resourceSchemaAttrsOrganizationOrganizationalUnit(recurse bool) map[string] }, } schemaAttrs["parent_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } return schemaAttrs } @@ -2184,13 +2208,15 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["name"] = rsschema.StringAttribute{ Required: true, @@ -2199,7 +2225,8 @@ func resourceSchemaAttrsOrganizationOrganizationalUnitPrimer(recurse bool) map[s }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -2360,13 +2387,15 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -2386,7 +2415,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystem(recurse bool) map[string]rssch }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } schemaAttrs["owner_uuid"] = rsschema.StringAttribute{ Required: true, @@ -2412,13 +2441,15 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -2438,7 +2469,7 @@ func resourceSchemaAttrsProvisioningGroupOnSystemPrimer(recurse bool) map[string }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -2502,13 +2533,15 @@ func resourceSchemaAttrsProvisioningProvisionNumberSequence(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -2569,7 +2602,8 @@ func resourceSchemaAttrsProvisioningProvisionedAccount(recurse bool) map[string] }, } schemaAttrs["uid"] = rsschema.Int64Attribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Int64{int64planmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -2700,13 +2734,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -2726,15 +2762,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystem(recurse bool) map[string]r }, } schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "LDAP", "ACTIVE_DIRECTORY", "AZURE_TENANT", "SOURCE_LDAP_DIRECTORY", "SOURCE_AZURE_OIDC_DIRECTORY", "SOURCE_AZURE_SYNC_LDAP_DIRECTORY", "INTERNAL_LDAP", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_count"] = rsschema.Int64Attribute{ Computed: true, @@ -2860,13 +2893,15 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -2886,15 +2921,12 @@ func resourceSchemaAttrsProvisioningProvisionedSystemPrimer(recurse bool) map[st }, } schemaAttrs["type"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.OneOf( - "LDAP", "ACTIVE_DIRECTORY", "AZURE_TENANT", "SOURCE_LDAP_DIRECTORY", "SOURCE_AZURE_OIDC_DIRECTORY", "SOURCE_AZURE_SYNC_LDAP_DIRECTORY", "INTERNAL_LDAP", - ), - }, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -2990,13 +3022,15 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3016,19 +3050,18 @@ func resourceSchemaAttrsServiceaccountServiceAccount(recurse bool) map[string]rs }, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["description"] = rsschema.StringAttribute{ Optional: true, } schemaAttrs["password_uuid"] = rsschema.StringAttribute{ - Optional: true, - Validators: []validator.String{ - stringvalidator.RegexMatches(regexp.MustCompile("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"), "The value must be a valid UUID"), - }, + Computed: true, } schemaAttrs["password_rotation"] = rsschema.StringAttribute{ Required: true, @@ -3055,13 +3088,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["display_name"] = rsschema.StringAttribute{ Optional: true, @@ -3081,7 +3116,7 @@ func resourceSchemaAttrsServiceaccountServiceAccountGroup(recurse bool) map[stri }, } schemaAttrs["short_name_in_system"] = rsschema.StringAttribute{ - Optional: true, + Computed: true, } return schemaAttrs } @@ -3122,13 +3157,15 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["active"] = rsschema.BoolAttribute{ Computed: true, @@ -3148,10 +3185,12 @@ func resourceSchemaAttrsServiceaccountServiceAccountPrimer(recurse bool) map[str }, } schemaAttrs["username"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3241,13 +3280,15 @@ func resourceSchemaAttrsVaultVault(recurse bool) map[string]rsschema.Attribute { NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["access_available"] = rsschema.BoolAttribute{ Computed: true, @@ -3281,13 +3322,15 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -3306,13 +3349,16 @@ func resourceSchemaAttrsVaultVaultRecord(recurse bool) map[string]rsschema.Attri }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["derived"] = rsschema.BoolAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.Bool{boolplanmodifier.UseStateForUnknown()}, } schemaAttrs["end_date"] = rsschema.StringAttribute{ Optional: true, @@ -3352,13 +3398,15 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["color"] = rsschema.StringAttribute{ Computed: true, @@ -3377,10 +3425,12 @@ func resourceSchemaAttrsVaultVaultRecordPrimer(recurse bool) map[string]rsschema }, } schemaAttrs["share_end_time"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } return schemaAttrs } @@ -3473,7 +3523,7 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str attr := rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsVaultVaultRecordSecrets(recurse), } - attr.Computed = true + attr.Optional = true schemaAttrs["secret"] = attr } { @@ -3492,7 +3542,7 @@ func resourceSchemaAttrsVaultVaultRecord_additionalObjects(recurse bool) map[str attr := rsschema.SingleNestedAttribute{ Attributes: resourceSchemaAttrsLaunchpadVaultRecordLaunchpadTile(recurse), } - attr.Computed = true + attr.Optional = true schemaAttrs["tile"] = attr } { @@ -3513,13 +3563,15 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsRestLink(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["permissions"] = rsschema.ListNestedAttribute{ NestedObject: rsschema.NestedAttributeObject{ Attributes: resourceSchemaAttrsAuthPermission(recurse), }, - Optional: true, + Computed: true, + PlanModifiers: []planmodifier.List{listplanmodifier.UseStateForUnknown()}, } schemaAttrs["account_uuid"] = rsschema.StringAttribute{ Optional: true, @@ -3647,7 +3699,8 @@ func resourceSchemaAttrsWebhookWebhook(recurse bool) map[string]rsschema.Attribu }, } schemaAttrs["uuid"] = rsschema.StringAttribute{ - Computed: true, + Computed: true, + PlanModifiers: []planmodifier.String{stringplanmodifier.UseStateForUnknown()}, } schemaAttrs["verbose_payloads"] = rsschema.BoolAttribute{ Computed: true, diff --git a/main.go b/main.go index 89f2b36..7a3b3a1 100644 --- a/main.go +++ b/main.go @@ -31,24 +31,24 @@ import ( // system/{systemid}/group // serviceaccount/{accountid}/group -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode model -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource account --linkable authAccount -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource certificate --linkable certificateCertificate -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource client --linkable clientClientApplication -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource directory --linkable directoryAccountDirectory -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource group --linkable groupGroup -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource groupclassification --linkable groupGroupClassification -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource organizationalunit --linkable organizationOrganizationalUnit -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource serviceaccount --linkable serviceaccountServiceAccount -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource system --linkable provisioningProvisionedSystem -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource vaultrecord --linkable vaultVaultRecord -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode data --resource webhook --linkable webhookWebhook -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource clientapplication -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource client_vaultrecord -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource group_vaultrecord -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource group -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource grouponsystem -//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.3 --mode resource --resource serviceaccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode model +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource account --linkable authAccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource certificate --linkable certificateCertificate +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource client --linkable clientClientApplication +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource directory --linkable directoryAccountDirectory +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource group --linkable groupGroup +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource groupclassification --linkable groupGroupClassification +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource organizationalunit --linkable organizationOrganizationalUnit +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource serviceaccount --linkable serviceaccountServiceAccount +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource system --linkable provisioningProvisionedSystem +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource vaultrecord --linkable vaultVaultRecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode data --resource webhook --linkable webhookWebhook +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode resource --resource clientapplication +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode resource --resource client_vaultrecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode resource --resource group_vaultrecord +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode resource --resource group +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode resource --resource grouponsystem +//go:generate go run github.com/topicuskeyhub/terraform-provider-keyhub-generator@v0.0.5 --mode resource --resource serviceaccount // If you do not have terraform installed, you can remove the formatting command, but its suggested to // ensure the documentation is formatted properly. From 9b96a46757b2236ec420a75813700d63ec9e0d4e Mon Sep 17 00:00:00 2001 From: Emond Papegaaij Date: Tue, 31 Oct 2023 17:45:24 +0100 Subject: [PATCH 34/34] Upgrade sdk --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 419eb7b..91fc726 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 github.com/hashicorp/terraform-plugin-log v0.9.0 github.com/microsoft/kiota-abstractions-go v1.3.1 - github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f + github.com/topicuskeyhub/sdk-go v0.29.1-0.20231031163120-580c3f972b4d golang.org/x/exp v0.0.0-20231006140011-7918f672742d ) diff --git a/go.sum b/go.sum index 875425e..7b6a993 100644 --- a/go.sum +++ b/go.sum @@ -169,8 +169,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5 github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f h1:/Umyd1P2MaEVi8eoWnPCbkZOoHz5QZg81dqw5G//Ybo= -github.com/topicuskeyhub/sdk-go v0.29.1-0.20231020192028-022be2ba030f/go.mod h1:rYrE+VBV3sYYXR44U5VZgihBnj/KQPtZvm9isb7Zp28= +github.com/topicuskeyhub/sdk-go v0.29.1-0.20231031163120-580c3f972b4d h1:QUcCSysZOnwe7rr0Oyu4ikkRKWmuenJvnooCbR2ud/Y= +github.com/topicuskeyhub/sdk-go v0.29.1-0.20231031163120-580c3f972b4d/go.mod h1:s8qOQieJ+9cm/2s0uxPySRH9YNFbln3Nb9J8/XNaWbM= github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=